/// <summary>
        /// Creates and initializes window UI.
        /// </summary>
        private void InitUI()
        {
            this.Size = new Size(400, 400);

            mt_MessageType           = new Label();
            mt_MessageType.Size      = new Size(100, 20);
            mt_MessageType.Location  = new Point(0, 20);
            mt_MessageType.TextAlign = ContentAlignment.MiddleRight;
            mt_MessageType.Text      = "Message Type:";

            m_pMessageType               = new ComboBox();
            m_pMessageType.Size          = new Size(200, 20);
            m_pMessageType.Location      = new Point(105, 20);
            m_pMessageType.DropDownStyle = ComboBoxStyle.DropDownList;
            m_pMessageType.Items.Add(new WComboBoxItem("Delayed delivery warning", "delayed_delivery_warning"));
            m_pMessageType.Items.Add(new WComboBoxItem("Undelivered notice", "undelivered"));
            m_pMessageType.SelectedIndexChanged += new EventHandler(m_pMessageType_SelectedIndexChanged);

            mt_Subject           = new Label();
            mt_Subject.Size      = new Size(100, 20);
            mt_Subject.Location  = new Point(0, 65);
            mt_Subject.TextAlign = ContentAlignment.MiddleRight;
            mt_Subject.Text      = "Subject:";

            m_pSubject          = new TextBox();
            m_pSubject.Size     = new Size(280, 20);
            m_pSubject.Location = new Point(105, 65);
            m_pSubject.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pText          = new WRichEditEx();
            m_pText.Size     = new Size(375, 240);
            m_pText.Location = new Point(10, 90);
            m_pText.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pHelp          = new Button();
            m_pHelp.Size     = new Size(70, 20);
            m_pHelp.Location = new Point(10, 340);
            m_pHelp.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
            m_pHelp.Text     = "Help";
            m_pHelp.Click   += new EventHandler(m_pHelp_Click);

            m_pSave          = new Button();
            m_pSave.Size     = new Size(70, 20);
            m_pSave.Location = new Point(315, 340);
            m_pSave.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
            m_pSave.Text     = "Save";
            m_pSave.Click   += new EventHandler(m_pSave_Click);

            this.Controls.Add(mt_MessageType);
            this.Controls.Add(m_pMessageType);
            this.Controls.Add(mt_Subject);
            this.Controls.Add(m_pSubject);
            this.Controls.Add(m_pText);
            this.Controls.Add(m_pHelp);
            this.Controls.Add(m_pSave);
        }
        /// <summary>
        /// Creates and initializes window UI.
        /// </summary>
        private void InitUI()
        {
            this.Size = new Size(400,400);

            mt_MessageType = new Label();
            mt_MessageType.Size = new Size(100,20);
            mt_MessageType.Location = new Point(0,20);
            mt_MessageType.TextAlign = ContentAlignment.MiddleRight;
            mt_MessageType.Text = "Message Type:";

            m_pMessageType = new ComboBox();
            m_pMessageType.Size = new Size(200,20);
            m_pMessageType.Location = new Point(105,20);
            m_pMessageType.DropDownStyle = ComboBoxStyle.DropDownList;
            m_pMessageType.Items.Add(new WComboBoxItem("Delayed delivery warning","delayed_delivery_warning"));
            m_pMessageType.Items.Add(new WComboBoxItem("Undelivered notice","undelivered"));
            m_pMessageType.SelectedIndexChanged += new EventHandler(m_pMessageType_SelectedIndexChanged);

            mt_Subject = new Label();
            mt_Subject.Size = new Size(100,20);
            mt_Subject.Location = new Point(0,65);
            mt_Subject.TextAlign = ContentAlignment.MiddleRight;
            mt_Subject.Text = "Subject:";

            m_pSubject = new TextBox();
            m_pSubject.Size = new Size(280,20);
            m_pSubject.Location = new Point(105,65);
            m_pSubject.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pText = new WRichEditEx();
            m_pText.Size = new Size(375,240);
            m_pText.Location = new Point(10,90);
            m_pText.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pHelp = new Button();
            m_pHelp.Size = new Size(70,20);
            m_pHelp.Location = new Point(10,340);
            m_pHelp.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
            m_pHelp.Text = "Help";
            m_pHelp.Click += new EventHandler(m_pHelp_Click);

            m_pSave = new Button();
            m_pSave.Size = new Size(70,20);
            m_pSave.Location = new Point(315,340);
            m_pSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
            m_pSave.Text = "Save";
            m_pSave.Click += new EventHandler(m_pSave_Click);

            this.Controls.Add(mt_MessageType);
            this.Controls.Add(m_pMessageType);
            this.Controls.Add(mt_Subject);
            this.Controls.Add(m_pSubject);
            this.Controls.Add(m_pText);
            this.Controls.Add(m_pHelp);
            this.Controls.Add(m_pSave);
        }
Exemple #3
0
        /// <summary>
        /// Creates and initializes window UI.
        /// </summary>
        private void InitUI()
        {
            this.ClientSize = new Size(435,390);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "Compose:";
            this.Icon = ResManager.GetIcon("write.ico");
            this.MaximizeBox = false;

            mt_From = new Label();
            mt_From.Size = new Size(78,20);
            mt_From.Location = new Point(10,10);
            mt_From.TextAlign = ContentAlignment.MiddleRight;
            mt_From.Text = "From:";

            m_pFrom = new TextBox();
            m_pFrom.Size = new Size(336,20);
            m_pFrom.Location = new Point(90,10);
            m_pFrom.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            mt_Subject = new Label();
            mt_Subject.Size = new Size(78,20);
            mt_Subject.Location = new Point(10,60);
            mt_Subject.TextAlign = ContentAlignment.MiddleRight;
            mt_Subject.Text = "Subject:";

            m_pSubject = new TextBox();
            m_pSubject.Size = new Size(336,20);
            m_pSubject.Location = new Point(90,60);
            m_pSubject.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            mt_Attachments = new Label();
            mt_Attachments.Size = new Size(78,20);
            mt_Attachments.Location = new Point(10,85);
            mt_Attachments.TextAlign = ContentAlignment.MiddleRight;
            mt_Attachments.Text = "Attachemnts:";

            m_pAttachments = new ListView();
            m_pAttachments.Size = new Size(336,54);
            m_pAttachments.Location = new Point(90,85);
            m_pAttachments.BorderStyle = BorderStyle.FixedSingle;
            m_pAttachments.View = View.SmallIcon;
            m_pAttachments.SmallImageList = new ImageList();
            m_pAttachments.MouseUp += new MouseEventHandler(m_pAttachments_MouseUp);
            m_pAttachments.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pText = new WRichEditEx();
            m_pText.Size = new Size(416,200);
            m_pText.Location = new Point(10,150);
            m_pText.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pSend = new Button();
            m_pSend.Size = new Size(70,20);
            m_pSend.Location = new Point(280,360);
            m_pSend.Text = "Send";
            m_pSend.Click += new EventHandler(m_pSend_ButtonPressed);
            m_pSend.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;

            m_pCancel = new Button();
            m_pCancel.Size = new Size(70,20);
            m_pCancel.Location = new Point(355,360);
            m_pCancel.Text = "Cancel";
            m_pCancel.Click += new EventHandler(m_pCancel_ButtonPressed);
            m_pCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
                                    
            this.Controls.Add(mt_From);
            this.Controls.Add(m_pFrom);
            this.Controls.Add(mt_Subject);
            this.Controls.Add(m_pSubject);
            this.Controls.Add(mt_Attachments);
            this.Controls.Add(m_pAttachments);
            this.Controls.Add(m_pText);
            this.Controls.Add(m_pSend);
            this.Controls.Add(m_pCancel);            
        }
Exemple #4
0
        /// <summary>
        /// Creates and initializes window UI.
        /// </summary>
        private void InitUI()
        {
            this.ClientSize    = new Size(435, 390);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "Compose:";
            this.Icon          = ResManager.GetIcon("write.ico");
            this.MaximizeBox   = false;

            mt_From           = new Label();
            mt_From.Size      = new Size(78, 20);
            mt_From.Location  = new Point(10, 10);
            mt_From.TextAlign = ContentAlignment.MiddleRight;
            mt_From.Text      = "From:";

            m_pFrom          = new TextBox();
            m_pFrom.Size     = new Size(336, 20);
            m_pFrom.Location = new Point(90, 10);
            m_pFrom.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            mt_Subject           = new Label();
            mt_Subject.Size      = new Size(78, 20);
            mt_Subject.Location  = new Point(10, 60);
            mt_Subject.TextAlign = ContentAlignment.MiddleRight;
            mt_Subject.Text      = "Subject:";

            m_pSubject          = new TextBox();
            m_pSubject.Size     = new Size(336, 20);
            m_pSubject.Location = new Point(90, 60);
            m_pSubject.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            mt_Attachments           = new Label();
            mt_Attachments.Size      = new Size(78, 20);
            mt_Attachments.Location  = new Point(10, 85);
            mt_Attachments.TextAlign = ContentAlignment.MiddleRight;
            mt_Attachments.Text      = "Attachemnts:";

            m_pAttachments                = new ListView();
            m_pAttachments.Size           = new Size(336, 54);
            m_pAttachments.Location       = new Point(90, 85);
            m_pAttachments.BorderStyle    = BorderStyle.FixedSingle;
            m_pAttachments.View           = View.SmallIcon;
            m_pAttachments.SmallImageList = new ImageList();
            m_pAttachments.MouseUp       += new MouseEventHandler(m_pAttachments_MouseUp);
            m_pAttachments.Anchor         = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pText          = new WRichEditEx();
            m_pText.Size     = new Size(416, 200);
            m_pText.Location = new Point(10, 150);
            m_pText.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            m_pSend          = new Button();
            m_pSend.Size     = new Size(70, 20);
            m_pSend.Location = new Point(280, 360);
            m_pSend.Text     = "Send";
            m_pSend.Click   += new EventHandler(m_pSend_ButtonPressed);
            m_pSend.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;

            m_pCancel          = new Button();
            m_pCancel.Size     = new Size(70, 20);
            m_pCancel.Location = new Point(355, 360);
            m_pCancel.Text     = "Cancel";
            m_pCancel.Click   += new EventHandler(m_pCancel_ButtonPressed);
            m_pCancel.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;

            this.Controls.Add(mt_From);
            this.Controls.Add(m_pFrom);
            this.Controls.Add(mt_Subject);
            this.Controls.Add(m_pSubject);
            this.Controls.Add(mt_Attachments);
            this.Controls.Add(m_pAttachments);
            this.Controls.Add(m_pText);
            this.Controls.Add(m_pSend);
            this.Controls.Add(m_pCancel);
        }