Beispiel #1
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            FormFireCommand pFormFireCommand = new FormFireCommand(OperationType.Edit, this.currentFireCommand);

            if (pFormFireCommand.ShowDialog(this) == DialogResult.OK)
            {
                this.GetFireCommandList(this.navigationControl1.Pac);
                MessageBox.Show(this, "森林防火指挥部修改成功", "提示");
            }
        }
Beispiel #2
0
        private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewItem item = listView1.GetItemAt(e.X, e.Y);

            if (item.Tag is Fire_Command)
            {
                var             fireCommand      = item.Tag as Fire_Command;
                FormFireCommand pFormFireCommand = new FormFireCommand(OperationType.Check, fireCommand);
                pFormFireCommand.ShowDialog(this);
            }
        }