Exemple #1
0
 public maxResultBlok(string name, Color color, double xp, double xn, double maxp, double maxn, ResearchPage _parent)
 {
     InitializeComponent();
     Border.Text      = name;
     Border.ForeColor = color;
     max    = maxp.ToString("E13");
     min    = maxn.ToString("E13");
     maxpos = xp.ToString("F7");
     minpos = xn.ToString("F7");
     parent = _parent;
 }
Exemple #2
0
 private void refreshResearch_Click(object sender, EventArgs e)
 {
     if (_workThread == null || !_workThread.IsAlive)
     {
         ResearchPage researchPage = new ResearchPage(comboBoxMethod.Text, tabControl);
         tabControl.TabPages[tabControl.SelectedIndex].Controls.RemoveAt(0);
         tabControl.TabPages[tabControl.SelectedIndex].Controls.Add(researchPage);
         _workThread = new Thread(ResearchCreateThreadMethod);
         _workThread.Start(researchPage);
     }
 }
 public maxResultBlok(string name, Color color, double xp, double xn, double maxp, double maxn, ResearchPage _parent)
 {
     InitializeComponent();
     Border.Text = name;
     Border.ForeColor = color;
     max = maxp.ToString("E13");
     min = maxn.ToString("E13");
     maxpos = xp.ToString("F7");
     minpos = xn.ToString("F7");
     parent = _parent;
 }
Exemple #4
0
 private void CreateResearch_Click(object sender, EventArgs e)
 {
     if (_workThread == null || !_workThread.IsAlive)
     {
         ResearchPage researchPage = new ResearchPage(comboBoxMethod.Text, tabControl);
         TabPage      tabResearch  = new TabPage("Research №" + (tabControl.TabCount + 1));
         tabResearch.Controls.Add(researchPage);
         tabControl.TabPages.Add(tabResearch);
         tabControl.SelectedIndex = tabControl.TabCount - 1;
         _workThread = new Thread(ResearchCreateThreadMethod);
         _workThread.Start(researchPage);
     }
 }
 private void refreshResearch_Click(object sender, EventArgs e)
 {
     if (_workThread == null || !_workThread.IsAlive)
     {
         ResearchPage researchPage = new ResearchPage(comboBoxMethod.Text, tabControl);
         tabControl.TabPages[tabControl.SelectedIndex].Controls.RemoveAt(0);
         tabControl.TabPages[tabControl.SelectedIndex].Controls.Add(researchPage);
         _workThread = new Thread(ResearchCreateThreadMethod);
         _workThread.Start(researchPage);
     }
 }
 private void CreateResearch_Click(object sender, EventArgs e)
 {
     if (_workThread == null || !_workThread.IsAlive)
     {
         ResearchPage researchPage = new ResearchPage(comboBoxMethod.Text, tabControl);
         TabPage tabResearch = new TabPage("Research №" + (tabControl.TabCount + 1));
         tabResearch.Controls.Add(researchPage);
         tabControl.TabPages.Add(tabResearch);
         tabControl.SelectedIndex = tabControl.TabCount - 1;
         _workThread = new Thread(ResearchCreateThreadMethod);
         _workThread.Start(researchPage);
     }
 }