Beispiel #1
0
 private void btadd_Click(object sender, EventArgs e)
 {
     using (FrmUserInfo form = new FrmUserInfo("", "0"))
     {
         form.StartPosition = FormStartPosition.CenterScreen;
         form.ShowDialog(this);
         if (form.IsOper)
         {
             LoadUserList();
         }
     }
 }
Beispiel #2
0
 private void userlist_DoubleClick(object sender, EventArgs e)
 {
     if (userlist.SelectedItems.Count > 0)
     {
         string uname = userlist.SelectedItems[0].SubItems[0].Text.Trim();
         if (uname != "")
         {
             using (FrmUserInfo form = new FrmUserInfo(uname, "1"))
             {
                 form.StartPosition = FormStartPosition.CenterScreen;
                 form.ShowDialog(this);
                 if (form.IsOper)
                 {
                     LoadUserList();
                 }
             }
         }
     }
 }