private void CloneFakeInstanceMenuItem_Click(object sender, EventArgs e) { CloneFakeKspDialog dialog = new CloneFakeKspDialog(_manager); dialog.ShowDialog(); UpdateInstancesList(); }
private void CloneFakeInstanceMenuItem_Click(object sender, EventArgs e) { var old_instance = Main.Instance.CurrentInstance; var result = new CloneFakeKspDialog(_manager).ShowDialog(); if (result == DialogResult.OK && !Equals(old_instance, Main.Instance.CurrentInstance)) { DialogResult = DialogResult.OK; this.Close(); } UpdateInstancesList(); }