private void buttonNew_Click(object sender, EventArgs e) { Wizard wiz = new Wizard(); if (DialogResult.OK == wiz.ShowDialog()) { OpenConfig(wiz.savepath); } }
private void buttonEdit_Click(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(CurrentConfigPath)) { buttonOpen_Click(sender, e); } Wizard wiz = new Wizard(CurrentConfigPath); if (DialogResult.OK == wiz.ShowDialog()) { OpenConfig(CurrentConfigPath); } }