Beispiel #1
0
        private void closeForm()
        {
            adminForm originForm;
            this.Hide();

            messagingForm newMessagingForm = new messagingForm();
            newMessagingForm.ShowDialog(this);

            originForm = (adminForm)parentForm;
            originForm.setNewMessageFormExist(false);

            this.Close();
        }
Beispiel #2
0
 private void captureCtrlModifier(Keys key)
 {
     int userAccessOptions = 0;
     switch (key)
     {
         case Keys.Enter: // CTRL + ENTER
             userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_MODULE_MESSAGING, gutil.getUserGroupID());
             if (!newMessageFormExist && userAccessOptions == 1)
             {
                 if (DialogResult.Yes == MessageBox.Show("DISPLAY MESSAGE ?", "WARNING", MessageBoxButtons.YesNo, MessageBoxIcon.Warning))
                 {
                     messagingForm displayForm = new messagingForm();
                     displayForm.ShowDialog(this);
                 }
             }
             break;
     }
 }