internal static void CreateAndShowDialog(GrblCore core) { using (SaveOptionForm f = new SaveOptionForm()) { if (f.ShowDialog() == DialogResult.OK) { core.SaveProgram(f.CBHeader.Checked, f.CBFooter.Checked, f.CBBetween.Checked, (int)f.UDCount.Value); } } }
private void MnAdvancedSave_Click(object sender, EventArgs e) { SaveOptionForm.CreateAndShowDialog(Core); }