static void Main(string[] args) { Members Igor = new Members("Igor", 36); windowone I = new windowone(); AddNewMember w = new AddNewMember(I); Application.Run(w); Application.Run(I); }
private void buttonAddNewMember_Click(object sender, EventArgs e) { AddNewMember w = new AddNewMember(this); w.Show(); }