private void Button_CopyDelegate_Click(object sender, EventArgs e) { RegisterParticipant participant = new RegisterParticipant(mainWindow, mainWindow.events, this.participant, participantEvent); participant.Show(); participant.BringToFront(); this.Dispose(); }
public RegisterParticipationString(RegisterParticipant registerParticipant) { this.registerParticipant = registerParticipant; participationForm = "register"; InitializeComponent(); bool toMaximize = WindowHelper.checkIfMaximizeWindow(this.Width, this.Height); if (toMaximize) { this.WindowState = FormWindowState.Maximized; } BringToFront(); }