public void FormTrainOpen() { if (FrmTrain == null) { FrmTrain = new FormTraining(); FrmTrain.FormClosing += FrmTrainClose; } FrmTrain.Show(); FrmTrain.BringToFront(); //_frmTrain.WindowState = FormWindowState.Maximized; }
private void FrmTrainClose(object sender, System.Windows.Forms.FormClosingEventArgs e) { FrmTrain = null; }