예제 #1
0
 public void noSuchButtonStringTest()
 {
     form = new MessageDialog();
     form.Show();
     ButtonTester b = new ButtonTester("openBtn");
     b.Click();
 }
 private void errorMessage(string text)
 {
     MessageDialog form = new MessageDialog();
     form.errorTxt.Text = text;
     form.StartPosition = FormStartPosition.Manual;
     form.Location = new Point(this.Location.X + (this.Width - form.Width) / 2, this.Location.Y + (this.Height - form.Height) / 2);
     form.Show(this);
 }
예제 #3
0
 void simpleMessage(string text, string filename)
 {
     MessageDialog form = new MessageDialog(filename);
      form.errorTxt.Text = text;
      form.Text = "Успех";
      form.StartPosition = FormStartPosition.Manual;
      form.Location = new Point(this.Location.X + (this.Width - form.Width) / 2, this.Location.Y + (this.Height - form.Height) / 2);
      form.Show(this);
 }