コード例 #1
0
ファイル: FormMainRole.cs プロジェクト: hpbaotho/benhvien
        private void buttonRoleAdd_Click(object sender, EventArgs e)
        {
            FormRoleDetail formRoleDetail = new FormRoleDetail();
            formRoleDetail.ShowDialog();

            refreshDataViewRole();
            refreshDataViewRoleDetail();
        }
コード例 #2
0
        private void buttonRoleAdd_Click(object sender, EventArgs e)
        {
            FormRoleDetail formRoleDetail = new FormRoleDetail();

            formRoleDetail.ShowDialog();

            refreshDataViewRole();
            refreshDataViewRoleDetail();
        }
コード例 #3
0
ファイル: FormMainRole.cs プロジェクト: hpbaotho/benhvien
        private void dataViewRole_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataViewRole.SelectedRows.Count > 0)
            {
                int roleID = Convert.ToInt16(dataViewRole.SelectedRows[0].Cells[0].Value);
                FormRoleDetail formRoleDetail = new FormRoleDetail(Role.GetRole(roleID), "edit");
                formRoleDetail.ShowDialog();

                refreshDataViewRole();
                refreshDataViewRoleDetail();
            }
        }
コード例 #4
0
        private void buttonRoleEdit_Click(object sender, EventArgs e)
        {
            if (dataViewRole.SelectedRows.Count > 0)
            {
                int            roleID         = Convert.ToInt16(dataViewRole.SelectedRows[0].Cells[0].Value);
                FormRoleDetail formRoleDetail = new FormRoleDetail(Role.GetRole(roleID), "edit");
                formRoleDetail.ShowDialog();

                refreshDataViewRole();
                refreshDataViewRoleDetail();
            }
        }