Beispiel #1
0
        private void newButton_Click(object sender, EventArgs e)
        {
            if (null == newUserForm || newUserForm.IsDisposed)
            {
                newUserForm = new dataUserDetailForm(globalConstants.NEW_USER);
            }

            newUserForm.Show();
            newUserForm.WindowState = FormWindowState.Normal;
        }
Beispiel #2
0
        public dataGroupForm(int moduleID, dataUserDetailForm parentForm)
        {
            InitializeComponent();

            if (moduleID > 50)
            {
                newButton.Visible = false;
            }

            originModuleID = moduleID;
            userDetailForm = parentForm;
            gutil.saveSystemDebugLog(0, "CREATE DATA GROUP FORM MODULE_ID [" + moduleID + "] FROM DATA USER DETAIL FORM");
        }
Beispiel #3
0
        private void displaySpecificForm()
        {
            switch (originModuleID)
            {
            default:
                gutil.saveSystemDebugLog(0, "CREATE DATA USER DETAIL FORM, UID [" + selectedUserID + "]");

                if (null == editUserForm || editUserForm.IsDisposed)
                {
                    editUserForm = new dataUserDetailForm(globalConstants.EDIT_USER, selectedUserID);
                }

                editUserForm.Show();
                editUserForm.WindowState = FormWindowState.Normal;
                break;
            }
        }