コード例 #1
0
 public static WordObject ShowWindowDialog(string w, string tr, string pof, string title, CreateOrEditTestWindow owner)
 {
     AddNewWordWindow wnd = new AddNewWordWindow(owner);
     wnd.Text = title;
     wnd.textBox1.Text = w;
     wnd.textBox2.Text = tr;
     wnd.comboBox1.SelectedItem = pof;
     wnd.ShowDialog();
     if (!isCancel) return result;
     return null;
 }
コード例 #2
0
 // Add word button
 private void button1_Click(object sender, EventArgs e)
 {
     AddNewWordWindow wnd = new AddNewWordWindow(this);
     wnd.Text = "Добавить слово";
     wnd.ShowDialog();
 }