Пример #1
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            FormWarningBoards pFormWarningBoards = new FormWarningBoards(OperationType.Edit, this.currentFireWarningBoards);

            if (pFormWarningBoards.ShowDialog(this) == DialogResult.OK)
            {
                MessageBox.Show(this, "大型警示牌修改成功", "提示");
                this.GetFireWarningBoardsList(this.navigationControl1.Pac);
            }
        }
Пример #2
0
        private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewItem item = listView1.GetItemAt(e.X, e.Y);

            if (item.Tag is Fire_WarningBoards)
            {
                var warningBoards = item.Tag as Fire_WarningBoards;
                FormWarningBoards pFormWarningBoards = new FormWarningBoards(OperationType.Check, warningBoards);
                pFormWarningBoards.ShowDialog(this);
            }
        }