private void btnGo_Click(object sender, EventArgs e) { if (dropAction.SelectedIndex == 0) { using (CopyForm copyForm = new CopyForm(PARENT_FORM,CH_NUMBER, CopyFormType.Delay)) { // passing this in ShowDialog will set the .Owner // property of the child form copyForm.ShowDialog(this); } } }
private void btnGo_Click(object sender, EventArgs e) { CopyFormType copyType = CopyFormType.Filter3; if (IS_SIX_CHANNEL) { copyType = CopyFormType.Filter6; } using (CopyForm copyForm = new CopyForm(PARENT_FORM, CH_NUMBER, copyType)) { // passing this in ShowDialog will set the .Owner // property of the child form copyForm.ShowDialog(this); } }
private void btnGo_Click(object sender, EventArgs e) { CopyFormType copyType = CopyFormType.Compressor; if (dropAction.SelectedIndex == 0) { if (is_limiter) { copyType = CopyFormType.Limiter; } using (CopyForm copyForm = new CopyForm(PARENT_FORM, CH_NUMBER, copyType)) { copyForm.ShowDialog(this); } } }