예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserAccess         userAccess = new UserAccess();
            UserAccess_AddEdit dAE        = new UserAccess_AddEdit(userAccess);

            if (dAE.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _userAccessList.Add(userAccess);
                loadData();
            }
        }
예제 #2
0
        private void _dgvUserAccess_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int idDiller = Convert.ToInt32(_dgvUserAccess.Rows[_dgvUserAccess.SelectedCells[0].RowIndex].Cells[0].Value);

            UserAccess userAccess = _userAccessList.getItem(idDiller);

            UserAccess_AddEdit dAE = new UserAccess_AddEdit(userAccess);

            if (dAE.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadData();
            }
        }