public void OnScriptAdded(DebugScriptInfo info) { if (AddScript != null) { AddScript(info); } }
private void btnAddTab_Click(object sender, EventArgs e) { DebugScriptInfo dsi = new DebugScriptInfo(); dsi.HalIPAddress = TryToFindHalIPAddress(); AddTabPage(dsi); }
void svc_AddScript(DebugScriptInfo info) { //check if script exists & such here... //to do AddTabPage(info); toolStripStatusLabel.Text = ""; }
/// <summary> /// C'tor /// </summary> /// <param name="dsi"></param> public ScriptSession(DebugScriptInfo dsi) { if (dsi.SourceFile == null) { //new script dsi.ScriptName = "New Script"; isNewScript = true; } ScriptInfo = dsi; }
public ScriptTabPage(DebugScriptInfo info) { InitializeComponent(); this.Dock = DockStyle.Fill; Session = new ScriptSession(info); textBox1.Text = Session.ScriptInfo.Source; //set tabpage text if (Parent != null) Parent.Text = Session.ScriptInfo.ScriptName; }
public ScriptTabPage(DebugScriptInfo info) { InitializeComponent(); this.Dock = DockStyle.Fill; Session = new ScriptSession(info); textBox1.Text = Session.ScriptInfo.Source; //set tabpage text if (Parent != null) { Parent.Text = Session.ScriptInfo.ScriptName; } }
void AddTabPage(DebugScriptInfo info) { TabPage newPage = new TabPage(); ScriptTabPage control = new ScriptTabPage(info); newPage.Controls.Add(control); newPage.Text = control.Session.ScriptInfo.ScriptName; tabControl1.TabPages.Add(newPage); btnRunScript.Enabled = true; btnRunSelection.Enabled = true; btnAddTab.Enabled = true; btnSaveScript.Enabled = true; btnReload.Enabled = true; if (SETTING_NEW_TAB_GETS_FOCUS) { tabControl1.SelectedIndex = tabControl1.TabCount - 1; } closelabel.Visible = true; }
public void SetDebugScriptInfo(ref DebugScriptInfo info) { OnScriptAdded(info); }
void AddTabPage(DebugScriptInfo info) { TabPage newPage = new TabPage(); ScriptTabPage control = new ScriptTabPage(info); newPage.Controls.Add(control); newPage.Text = control.Session.ScriptInfo.ScriptName; tabControl1.TabPages.Add(newPage); btnRunScript.Enabled = true; btnRunSelection.Enabled = true; btnAddTab.Enabled = true; btnSaveScript.Enabled = true; btnReload.Enabled = true; if (SETTING_NEW_TAB_GETS_FOCUS) tabControl1.SelectedIndex = tabControl1.TabCount - 1; closelabel.Visible = true; }
public void OnScriptAdded(DebugScriptInfo info) { if (AddScript != null) AddScript(info); }