コード例 #1
0
ファイル: PhaseSelectForm.cs プロジェクト: debugest/mr-gui-cs
 private void timedPauseBtn_Click(object sender, EventArgs e)
 {
     Button btn = (sender as Button);
     if (btn != null)
     {
         String result = btn.Text.Replace("\n", "");
         NumberInputForm form = new NumberInputForm("Timed Pause Range 1-900 sec", "", 900, 1, 1);
         form.Owner = this;
         form.ShowDialog();
         if (this.Tag != null)
         {
             this.Owner.Tag = new Object[] { result, Tag };
             this.Close();
         }
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: debugest/mr-gui-cs
 private void time4Lbl_Click(object sender, EventArgs e)
 {
     if ("----" != rate4Lbl.Text)
     {
         int rate = LabelTextToInt(rate4Lbl.Text, 10);
         int volume = LabelTextToInt(volume4Lbl.Text, 10);
         if (0 == volume)
         {
             volume = 100 * 10;
         }
         int time = volume / rate;
         Label label = sender as Label;
         NumberInputForm form = new NumberInputForm("Phase Time Range 1-" + time + "sec", label.Text, time, 1, 1);
         form.Owner = this;
         form.ShowDialog();
         if (this.Tag != null)
         {
             label.Text = this.Tag.ToString();
             AutoCaculate(currentStepIndex + 3, rate4Lbl, volume4Lbl, label, "time");
         }
     }
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: debugest/mr-gui-cs
 private void volume4Lbl_Click(object sender, EventArgs e)
 {
     if ("----" != rate4Lbl.Text)
     {
         Label label = sender as Label;
         NumberInputForm form = new NumberInputForm("Volume Range 1-100ml", label.Text, 1000, 10, 10);
         form.Owner = this;
         form.ShowDialog();
         if (this.Tag != null)
         {
             label.Text = this.Tag.ToString();
             AutoCaculate(currentStepIndex + 3, rate4Lbl, label, time4Lbl, "volume");
         }
     }
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: debugest/mr-gui-cs
 private void rate4Lbl_Click(object sender, EventArgs e)
 {
     if ("----" != phase4Lbl.Text && !(phase4Lbl.Text.EndsWith("P")))
     {
         Label label = sender as Label;
         NumberInputForm form = new NumberInputForm("Flow Rate Range 0.1-10.0ml/sec", label.Text, 100, 1, 10);
         form.Owner = this;
         form.ShowDialog();
         if (this.Tag != null)
         {
             label.Text = this.Tag.ToString();
             AutoCaculate(currentStepIndex + 3, label, volume4Lbl, time4Lbl, "rate");
         }
     }
 }