예제 #1
0
        private void CloneFakeInstanceMenuItem_Click(object sender, EventArgs e)
        {
            CloneFakeKspDialog dialog = new CloneFakeKspDialog(_manager);

            dialog.ShowDialog();
            UpdateInstancesList();
        }
예제 #2
0
        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();
        }