// ADD private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { SecondForm form = new SecondForm(); form.ShowDialog(); Users.Add(form.User); }
public Form1() { InitializeComponent(); var lp = new Lichtpunkt(); var mast = new Mast(); var s = new SecondForm(); s.ShowDialog(); }
public void Save(String firstName, String lastName) { string _firstname = firstName; Form.Invoke(new Action(() => { Form.Hide(); })); SecondForm frm = new SecondForm(firstName); frm.ShowDialog(); }
// UPDATE private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (listBox1.SelectedItem != null) { User selUser = (User)listBox1.SelectedItem; SecondForm form = new SecondForm(selUser); form.ShowDialog(); Users.ResetBindings(); //listBox1.DataSource = null; //listBox1.DataSource = users; } }
private void button1_Click(object sender, EventArgs e) { SecondForm form = new SecondForm(textBox1.Text); form.UserName = textBox1.Text; if (DialogResult.OK == form.ShowDialog()) { } //ShowDialog invokes the modal form textBox1.Text = form.UserName; if (form != null) { form.Close(); } form = new SecondForm(); form.UserName = textBox1.Text; form.Visible = true; form.Show(this); }
private void button9_Click(object sender, EventArgs e) { var secondQuery = new SecondForm(); secondQuery.ShowDialog(); }