Exemple #1
0
 private void setProgressBar()
 {
     if (!string.IsNullOrEmpty(this.textBox4.Text))
     {
         if (int.Parse(Invokes.GetTextBoxText(textBox4).ToString()) > 100 || int.Parse(Invokes.GetTextBoxText(textBox4).ToString()) < 0)
         {
             MessageBox.Show("值在0-100之间");
             return;
         }
         Invokes.SetProgressBarValue(progressBar1, int.Parse((string.IsNullOrEmpty(Invokes.GetTextBoxText(textBox4)) ? "0" : Invokes.GetTextBoxText(textBox4).ToString())));
     }
 }
Exemple #2
0
 private void getTextBox()
 {
     MessageBox.Show(Invokes.GetTextBoxText(textBox1));
 }