Esempio n. 1
0
 //添加
 private void Btn_Add_Click(object sender, EventArgs e)
 {
     Role_Show RoleShowFrm = new Role_Show();
     RoleShowFrm.ParentCode = ParentCode;
     RoleShowFrm.Parent = Parent;
     RoleShowFrm.ShowDialog() ;
     TreeViewBind();
 }
Esempio n. 2
0
 //修改
 private void Gv_Role_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     int i = e.RowIndex;
     if (i >= 0)
     {
         Role_Show RoleShowFrm = new Role_Show();
         RoleShowFrm.Id = Convert.ToInt32(this.Gv_Role.Rows[i].Cells["Col_Id"].Value);
         RoleShowFrm.ParentCode = ParentCode;
         RoleShowFrm.Parent = Parent;
         RoleShowFrm.ShowDialog();
         TreeViewBind();
     }
 }