Ejemplo n.º 1
0
 private void OpenUShowForm(Protocol pro,bool canEdit)
 {
     U_Show_Form usf = new U_Show_Form(canEdit);
     this.AddOwnedForm(usf);
     usf.Show();
     List<string> columnName = new List<string>();
     columnName.Add("用户名");
     columnName.Add("权限");
     usf.userDataGridView.DataSource = TableDataUtil.convertListListDataToDataTable(columnName, pro.data);
     if (canEdit)
         foreach (DataGridViewRow row in usf.userDataGridView.Rows)
         {
             row.ContextMenuStrip = usf.contextMenuStrip1;
         }
 }
Ejemplo n.º 2
0
 public U_Modify_Form(U_Show_Form parentForm)
 {
     InitializeComponent();
     this.parentForm = parentForm;
 }