Esempio n. 1
0
        private void TaskPropertiesToolStripBt_Click(object sender, EventArgs e)
        {
            var Form = new DDOSTaskProperties();

            Form.ShowDialog(this);
            Form.Dispose();
        }
Esempio n. 2
0
        private void AddTaskToolStripBt_Click(object sender, EventArgs e)
        {
            var Form = new DDOSTaskProperties();

            Form.ShowDialog(this);
            Form.Dispose();

            //Adds a new tab page task
            string  title     = "TabPage " + (tabControl1.TabCount + 1).ToString();
            TabPage myTabPage = new TabPage(title);

            tabControl1.TabPages.Add(myTabPage);

            //Adds the DDOSTaskListView control to the new tab
            var MyControl = new DDOSTaskListView();

            MyControl.Dock = DockStyle.Fill;
            myTabPage.Controls.Add(MyControl);
        }