Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();

            formDepartmentInput.Tag   = "Add"; //添加操作
            formDepartmentInput.Owner = this;
            formDepartmentInput.ShowDialog();
        }
Exemplo n.º 2
0
 private void btnAmend_Click(object sender, EventArgs e)
 {
     if (tvDepartment.SelectedNode != null)
     {
         if (tvDepartment.SelectedNode.Tag != null)
         {
             FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();
             formDepartmentInput.Tag   = "Edit"; //修改操作
             formDepartmentInput.Owner = this;
             formDepartmentInput.ShowDialog();
         }
     }
 }