Esempio n. 1
0
 public void OnScriptAdded(DebugScriptInfo info)
 {
     if (AddScript != null)
     {
         AddScript(info);
     }
 }
Esempio n. 2
0
        private void btnAddTab_Click(object sender, EventArgs e)
        {
            DebugScriptInfo dsi = new DebugScriptInfo();

            dsi.HalIPAddress = TryToFindHalIPAddress();

            AddTabPage(dsi);
        }
Esempio n. 3
0
        void svc_AddScript(DebugScriptInfo info)
        {
            //check if script exists & such here...
            //to do
            AddTabPage(info);

            toolStripStatusLabel.Text = "";
        }
Esempio n. 4
0
        /// <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;
        }
Esempio n. 5
0
        /// <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;
        }
Esempio n. 6
0
        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;
        }
Esempio n. 7
0
        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;
            }
        }
Esempio n. 8
0
        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;
        }
Esempio n. 9
0
 public void SetDebugScriptInfo(ref DebugScriptInfo info)
 {
     OnScriptAdded(info);
 }
Esempio n. 10
0
        void svc_AddScript(DebugScriptInfo info)
        {
            //check if script exists & such here...
            //to do
            AddTabPage(info);

            toolStripStatusLabel.Text = "";
        }
Esempio n. 11
0
        private void btnAddTab_Click(object sender, EventArgs e)
        {
            DebugScriptInfo dsi = new DebugScriptInfo();
            dsi.HalIPAddress = TryToFindHalIPAddress();

            AddTabPage(dsi);
        }
Esempio n. 12
0
        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;
        }
Esempio n. 13
0
 public void SetDebugScriptInfo(ref DebugScriptInfo info)
 {
     OnScriptAdded(info);
 }
Esempio n. 14
0
 public void OnScriptAdded(DebugScriptInfo info)
 {
     if (AddScript != null)
         AddScript(info);
 }