Example #1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            BomberEdit be = new BomberEdit();

            be.refForm      = this;
            be.origObjIndex = list.Count;
            Debug.WriteLine(list.Count);
            be.EditMode = false;
            be.ShowDialog();
            // be.Updating(); This time we'll not use a existing Bomber
        }
Example #2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex < 0)
            {
                MessageBox.Show("没有选择任务", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            BomberEdit be = new BomberEdit();

            be.refForm      = this;
            be.origObjIndex = listBox1.SelectedIndex;
            be.Updating();
            be.ShowDialog();
        }