Пример #1
0
        /// <summary>
        /// 添加出入口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd1_Click(object sender, EventArgs e)
        {
            FrmGuard guard = new FrmGuard();

            guard.ModifyGuardDele = ModifyGuard;
            guard.ShowDialog();
        }
Пример #2
0
        private void btnEdit1_Click(object sender, EventArgs e)
        {
            TreeNode tn = tvGuard.SelectedNode;

            if (tn == null)
            {
                return;
            }
            FrmGuard guard = new FrmGuard(tn);

            guard.ModifyGuardDele = ModifyGuard;
            guard.ShowDialog();
        }