Ejemplo n.º 1
0
        private void buttonFunctionAdd_Click(object sender, EventArgs e)
        {
            FormRoleFunctionDetail formRFD = new FormRoleFunctionDetail();

            formRFD.ShowDialog();

            refreshDataViewFunction();
        }
Ejemplo n.º 2
0
        private void dataViewFunction_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataViewFunction.SelectedRows.Count > 0)
            {
                int funtionlID = Convert.ToInt16(dataViewFunction.SelectedRows[0].Cells[0].Value);
                RoleFunction updateFunction = RoleFunction.GetFunction(funtionlID);
                FormRoleFunctionDetail formRFD = new FormRoleFunctionDetail(updateFunction, "edit");
                formRFD.ShowDialog();

                refreshDataViewFunction();
            }
        }
Ejemplo n.º 3
0
        private void buttonFunctionEdit_Click(object sender, EventArgs e)
        {
            if (dataViewFunction.SelectedRows.Count > 0)
            {
                int                    funtionlID     = Convert.ToInt16(dataViewFunction.SelectedRows[0].Cells[0].Value);
                RoleFunction           updateFunction = RoleFunction.GetFunction(funtionlID);
                FormRoleFunctionDetail formRFD        = new FormRoleFunctionDetail(updateFunction, "edit");
                formRFD.ShowDialog();

                refreshDataViewFunction();
            }
        }
Ejemplo n.º 4
0
        private void buttonFunctionAdd_Click(object sender, EventArgs e)
        {
            FormRoleFunctionDetail formRFD = new FormRoleFunctionDetail();
            formRFD.ShowDialog();

            refreshDataViewFunction();
        }