private void new_toolStripButton_Click(object sender, EventArgs e) { Member m = new Member(); var mf = new MemberForm(ref m); mf.ShowDialog(); }
private void nyMedlemToolStripMenuItem_Click(object sender, EventArgs e) { Member m = new Member(); var mf = new MemberForm(ref m); mf.ShowDialog(); MessageBox.Show(m.FirstName); }