Task Main.Refresh()

Refresh FristView and SecondView,  you can await this function.

void Main.CloseTab(int index)

Close a tab page, the parameter is the tab page index.

void Main.NewTab()

Create a new tab page.

void Main.SwitchTab(int index)

Make the specified tab page the currently active window.

int Main.GetActiveTabIndex()

Get the index of current active tab page.

int Main.GetTabCount()

Get the number of all total tab pages.

void Main.UpdateOption()

After changing the options through the script, you need to call this function to refresh the interface.

For example you change the GUI language to "Chinese" through below scripts:

Option.Setting.Lang = "Chinese"; //Change the language

Main.UpdateOption();   //Update the main GUI