Beispiel #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (FormEditUser form = new FormEditUser(null, mListUser))
     {
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             DoRefresh();
         }
     }
 }
Beispiel #2
0
        private void mListViewData_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            User data = mListViewData.SelectedObject as User;

            if (data != null && data.UserID > 0)
            {
                using (FormEditUser form = new FormEditUser(data, mListUser))
                {
                    if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        DoRefresh();
                    }
                }
            }
        }