private void newMatchReplace_Click(object sender, EventArgs e) { FormMatchReplace f = new FormMatchReplace(); f.StartPosition = FormStartPosition.CenterParent; f.ShowDialog(); if (f.returnedMatch != null) { Program.data.AddMatchAndReplace(f.returnedMatch); } }
private void newMatchReplace_Click(object sender, EventArgs e) { FormMatchReplace f = new FormMatchReplace(); f.StartPosition = FormStartPosition.CenterParent; f.ShowDialog(); if (f.returnedMatch != null) Program.data.AddMatchAndReplace(f.returnedMatch); }