private void showMCURollCallButton_Click(object sender, EventArgs e) { var factory = new ReleaseMcrFactory(); this.Hide(); var MainForm = new MainForm(factory, new RollcallWebPanel(factory)); MainForm.Closed += (s, args) => this.Close(); MainForm.Show(); }
private void showUserDefinedButton_Click(object sender, EventArgs e) { var factory = new ReleaseMcrFactory(); this.Hide(); var rollcallUserDefinedSessionPanel = new RollcallUserDefinedSessionPanel(factory); var MainForm = new MainForm(factory, rollcallUserDefinedSessionPanel); rollcallUserDefinedSessionPanel.setRollcallView(MainForm); MainForm.Closed += (s, args) => this.Close(); MainForm.Show(); }