public MyApplicationContext()
        {
            MailboxViewerForm mailboxViewerForm = new MailboxViewerForm();

            mailboxViewerForm.FormClosed += new FormClosedEventHandler(OnFormClosed);
            mailboxViewerForm.Show();
        }
示例#2
0
        public MyApplicationContext()
        {
            string mode = "";

            ModeSelectionForm modeSelectionForm = new ModeSelectionForm();

            modeSelectionForm.ShowDialog(out mode);

            if (mode == "Editor")
            {
                RequestForm requestForm = new RequestForm();

                requestForm.FormClosed += new FormClosedEventHandler(OnFormClosed);
                requestForm.Show();
            }
            else if (mode == "MailboxViewer")
            {
                MailboxViewerForm mailboxViewerForm = new MailboxViewerForm();

                mailboxViewerForm.FormClosed += new FormClosedEventHandler(OnFormClosed);
                mailboxViewerForm.Show();
            }
            else
            {
                Environment.Exit(0);
            }
        }
示例#3
0
        private void RequestForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            MailboxViewerForm parent = (MailboxViewerForm)this.Owner;

            parent.requestFormOpened = false;
        }