コード例 #1
0
        private void dgvAllFunctions_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvAllFunctions.SelectedRows.Count == 0)
            {
                return;
            }
            int    FunctionID          = Convert.ToInt32(dgvAllFunctions.SelectedRows[0].Cells["FunctionID"].Value);
            string FunctionName        = dgvAllFunctions.SelectedRows[0].Cells["FunctionName"].Value.ToString();
            string FunctionDescription = dgvAllFunctions.SelectedRows[0].Cells["FunctionDescription"].Value.ToString();

            PhantomForm PhantomForm = new Infinium.PhantomForm();

            PhantomForm.Show();

            AddFunctionsForm AddResponsibilitiesForm = new AddFunctionsForm(ref AdminFunctionsEdit,
                                                                            FunctionID, FunctionName, FunctionDescription);

            TopForm = AddResponsibilitiesForm;

            AddResponsibilitiesForm.ShowDialog();

            PhantomForm.Close();
            PhantomForm.Dispose();

            TopForm = null;

            AddResponsibilitiesForm.Dispose();
            AdminFunctionsEdit.MoveToFunction(FunctionID);
        }
コード例 #2
0
        private void btnAddFunction_Click(object sender, EventArgs e)
        {
            PhantomForm PhantomForm = new Infinium.PhantomForm();

            PhantomForm.Show();

            AddFunctionsForm AddResponsibilitiesForm = new AddFunctionsForm(ref AdminFunctionsEdit);

            TopForm = AddResponsibilitiesForm;

            AddResponsibilitiesForm.ShowDialog();

            PhantomForm.Close();
            PhantomForm.Dispose();

            TopForm = null;

            AddResponsibilitiesForm.Dispose();
        }