private void InitializeComponent() { base.Size = new Size(450, 300); this.m_pClearAllEvents = new Button(); this.m_pClearAllEvents.Size = new Size(100, 20); this.m_pClearAllEvents.Location = new Point(9, 15); this.m_pClearAllEvents.Text = "Clear all Events"; this.m_pClearAllEvents.Click += new EventHandler(this.m_pClearAllEvents_Click); this.m_pEventsImages = new ImageList(); this.m_pEventsImages.Images.Add(ResManager.GetIcon("error.ico")); this.m_pEvents = new WListView(); this.m_pEvents.Size = new Size(425, 210); this.m_pEvents.Location = new Point(9, 47); this.m_pEvents.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.m_pEvents.View = View.Details; this.m_pEvents.FullRowSelect = true; this.m_pEvents.HideSelection = false; this.m_pEvents.SmallImageList = this.m_pEventsImages; this.m_pEvents.DoubleClick += new EventHandler(this.m_pEvents_DoubleClick); this.m_pEvents.Columns.Add("", 20, HorizontalAlignment.Left); this.m_pEvents.Columns.Add("Virtual Server", 120, HorizontalAlignment.Left); this.m_pEvents.Columns.Add("Date", 130, HorizontalAlignment.Left); this.m_pEvents.Columns.Add("Text", 200, HorizontalAlignment.Left); base.Controls.Add(this.m_pClearAllEvents); base.Controls.Add(this.m_pEvents); }
private void InitializeComponent() { base.Size = new Size(472, 357); this.mt_Show = new Label(); this.mt_Show.Size = new Size(70, 20); this.mt_Show.Location = new Point(10, 20); this.mt_Show.TextAlign = ContentAlignment.MiddleRight; this.mt_Show.Text = "Show:"; this.m_pShow = new ComboBox(); this.m_pShow.Size = new Size(100, 20); this.m_pShow.Location = new Point(85, 20); this.m_pShow.DropDownStyle = ComboBoxStyle.DropDownList; this.m_pShow.SelectedIndexChanged += new EventHandler(this.m_pShow_SelectedIndexChanged); this.m_pShow.Items.Add("ALL"); this.m_pShow.Items.Add("SMTP"); this.m_pShow.Items.Add("POP3"); this.m_pShow.Items.Add("IMAP"); this.m_pShow.Items.Add("RELAY"); this.m_pShow.Items.Add("ADMIN"); this.m_pKill = new Button(); this.m_pKill.Size = new Size(70, 20); this.m_pKill.Location = new Point(307, 20); this.m_pKill.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.m_pKill.Text = "Kill"; this.m_pKill.Enabled = false; this.m_pKill.Click += new EventHandler(this.m_pKill_Click); this.m_pViewSession = new Button(); this.m_pViewSession.Size = new Size(70, 20); this.m_pViewSession.Location = new Point(382, 20); this.m_pViewSession.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.m_pViewSession.Text = "View"; this.m_pViewSession.Enabled = false; this.m_pViewSession.Click += new EventHandler(this.m_pViewSession_Click); this.m_pSessionsImages = new ImageList(); this.m_pSessionsImages.Images.Add(ResManager.GetIcon("user.ico")); this.m_pSessions = new WListView(); this.m_pSessions.Size = new Size(445, 265); this.m_pSessions.Location = new Point(9, 47); this.m_pSessions.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.m_pSessions.View = View.Details; this.m_pSessions.FullRowSelect = true; this.m_pSessions.HideSelection = false; this.m_pSessions.SmallImageList = this.m_pSessionsImages; this.m_pSessions.SelectedIndexChanged += new EventHandler(this.m_pSessions_SelectedIndexChanged); this.m_pSessions.MouseClick += new MouseEventHandler(this.m_pSessions_MouseClick); this.m_pSessions.Columns.Add("Type", 60, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("UserName", 80, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("LocalEndPoint", 100, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("RemoteEndPoint", 100, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("R KB/S", 55, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("W KB/S", 55, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("Session Start", 100, HorizontalAlignment.Left); this.m_pSessions.Columns.Add("Timeout after sec.", 100, HorizontalAlignment.Left); base.Controls.Add(this.mt_Show); base.Controls.Add(this.m_pShow); base.Controls.Add(this.m_pKill); base.Controls.Add(this.m_pViewSession); base.Controls.Add(this.m_pSessions); }
private void InitializeComponent() { base.Size = new Size(472, 357); this.m_pToolbar = new ToolStrip(); this.m_pToolbar.GripStyle = ToolStripGripStyle.Hidden; this.m_pToolbar.BackColor = this.BackColor; this.m_pToolbar.Renderer = new ToolBarRendererEx(); this.m_pToolbar.ItemClicked += new ToolStripItemClickedEventHandler(this.m_pToolbar_ItemClicked); ToolStripButton toolStripButton = new ToolStripButton(); toolStripButton.Image = ResManager.GetIcon("add.ico").ToBitmap(); toolStripButton.Tag = "add"; toolStripButton.ToolTipText = "Add"; this.m_pToolbar.Items.Add(toolStripButton); ToolStripButton toolStripButton2 = new ToolStripButton(); toolStripButton2.Enabled = false; toolStripButton2.Image = ResManager.GetIcon("edit.ico").ToBitmap(); toolStripButton2.Tag = "edit"; toolStripButton2.ToolTipText = "Edit"; this.m_pToolbar.Items.Add(toolStripButton2); ToolStripButton toolStripButton3 = new ToolStripButton(); toolStripButton3.Enabled = false; toolStripButton3.Image = ResManager.GetIcon("delete.ico").ToBitmap(); toolStripButton3.Tag = "delete"; toolStripButton3.ToolTipText = "Delete"; this.m_pToolbar.Items.Add(toolStripButton3); this.m_pToolbar.Items.Add(new ToolStripSeparator()); ToolStripButton toolStripButton4 = new ToolStripButton(); toolStripButton4.Image = ResManager.GetIcon("refresh.ico").ToBitmap(); toolStripButton4.Tag = "refresh"; toolStripButton4.ToolTipText = "Refresh"; this.m_pToolbar.Items.Add(toolStripButton4); this.m_pDomainsImages = new ImageList(); this.m_pDomainsImages.Images.Add(ResManager.GetImage("icon-domain.png")); this.m_pDomains = new WListView(); this.m_pDomains.Size = new Size(445, 265); this.m_pDomains.Location = new Point(9, 47); this.m_pDomains.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.m_pDomains.View = View.Details; this.m_pDomains.FullRowSelect = true; this.m_pDomains.HideSelection = false; this.m_pDomains.SmallImageList = this.m_pDomainsImages; this.m_pDomains.SelectedIndexChanged += new EventHandler(this.m_pDomains_SelectedIndexChanged); this.m_pDomains.DoubleClick += new EventHandler(this.m_pDomains_DoubleClick); this.m_pDomains.MouseUp += new MouseEventHandler(this.m_pDomains_MouseUp); this.m_pDomains.Columns.Add("Name", 190, HorizontalAlignment.Left); this.m_pDomains.Columns.Add("Description", 290, HorizontalAlignment.Left); base.Controls.Add(this.m_pToolbar); base.Controls.Add(this.m_pDomains); }
private void InitializeComponent() { base.Size = new Size(450, 300); this.m_pToolbar = new ToolStrip(); this.m_pToolbar.GripStyle = ToolStripGripStyle.Hidden; this.m_pToolbar.BackColor = this.BackColor; this.m_pToolbar.Renderer = new ToolBarRendererEx(); this.m_pToolbar.ItemClicked += new ToolStripItemClickedEventHandler(this.m_pToolbar_ItemClicked); ToolStripButton toolStripButton = new ToolStripButton(); toolStripButton.Image = ResManager.GetIcon("add.ico").ToBitmap(); toolStripButton.Tag = "add"; this.m_pToolbar.Items.Add(toolStripButton); ToolStripButton toolStripButton2 = new ToolStripButton(); toolStripButton2.Enabled = false; toolStripButton2.Image = ResManager.GetIcon("edit.ico").ToBitmap(); toolStripButton2.Tag = "edit"; this.m_pToolbar.Items.Add(toolStripButton2); ToolStripButton toolStripButton3 = new ToolStripButton(); toolStripButton3.Enabled = false; toolStripButton3.Image = ResManager.GetIcon("delete.ico").ToBitmap(); toolStripButton3.Tag = "delete"; this.m_pToolbar.Items.Add(toolStripButton3); ImageList imageList = new ImageList(); imageList.Images.Add(ResManager.GetImage("icon-server-running.png")); imageList.Images.Add(ResManager.GetImage("icon-server-stopped.png")); this.m_pServers = new WListView(); this.m_pServers.Size = new Size(425, 210); this.m_pServers.Location = new Point(9, 47); this.m_pServers.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.m_pServers.View = View.Details; this.m_pServers.FullRowSelect = true; this.m_pServers.HideSelection = false; this.m_pServers.SmallImageList = imageList; this.m_pServers.SelectedIndexChanged += new EventHandler(this.m_pServers_SelectedIndexChanged); this.m_pServers.DoubleClick += new EventHandler(this.m_pServers_DoubleClick); this.m_pServers.Columns.Add("Name", 400, HorizontalAlignment.Left); base.Controls.Add(this.m_pServers); }
private void InitializeComponent() { base.Size = new Size(300, 300); this.m_pToolbar = new ToolStrip(); this.m_pToolbar.GripStyle = ToolStripGripStyle.Hidden; this.m_pToolbar.BackColor = this.BackColor; this.m_pToolbar.Renderer = new ToolBarRendererEx(); this.m_pToolbar.ItemClicked += new ToolStripItemClickedEventHandler(this.m_pToolbar_ItemClicked); ToolStripButton toolStripButton = new ToolStripButton(); toolStripButton.Image = ResManager.GetIcon("add.ico").ToBitmap(); toolStripButton.Tag = "add"; toolStripButton.ToolTipText = "Add"; this.m_pToolbar.Items.Add(toolStripButton); ToolStripButton toolStripButton2 = new ToolStripButton(); toolStripButton2.Enabled = false; toolStripButton2.Image = ResManager.GetIcon("edit.ico").ToBitmap(); toolStripButton2.Tag = "edit"; toolStripButton2.ToolTipText = "Edit"; this.m_pToolbar.Items.Add(toolStripButton2); ToolStripButton toolStripButton3 = new ToolStripButton(); toolStripButton3.Enabled = false; toolStripButton3.Image = ResManager.GetIcon("delete.ico").ToBitmap(); toolStripButton3.Tag = "delete"; toolStripButton3.ToolTipText = "Delete"; this.m_pToolbar.Items.Add(toolStripButton3); this.m_pToolbar.Items.Add(new ToolStripSeparator()); ToolStripButton toolStripButton4 = new ToolStripButton(); toolStripButton4.Image = ResManager.GetIcon("refresh.ico").ToBitmap(); toolStripButton4.Tag = "refresh"; toolStripButton4.ToolTipText = "Refresh"; this.m_pToolbar.Items.Add(toolStripButton4); this.mt_Filter = new Label(); this.mt_Filter.Size = new Size(100, 20); this.mt_Filter.Location = new Point(9, 20); this.mt_Filter.Text = "Filter:"; this.mt_Filter.TextAlign = ContentAlignment.MiddleRight; this.m_pFilter = new TextBox(); this.m_pFilter.Size = new Size(150, 13); this.m_pFilter.Location = new Point(115, 20); this.m_pFilter.Text = "*"; this.m_pGetMailingLists = new Button(); this.m_pGetMailingLists.Size = new Size(70, 20); this.m_pGetMailingLists.Location = new Point(280, 20); this.m_pGetMailingLists.Text = "Get"; this.m_pGetMailingLists.Click += new EventHandler(this.m_pGetMailingLists_Click); this.m_pMailingListsImages = new ImageList(); this.m_pMailingListsImages.Images.Add(ResManager.GetImage("icon-mail.png")); this.m_pMailingListsImages.Images.Add(ResManager.GetImage("mailinglist_disabled.ico")); this.m_pMailingLists = new WListView(); this.m_pMailingLists.Size = new Size(270, 200); this.m_pMailingLists.Location = new Point(10, 50); this.m_pMailingLists.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.m_pMailingLists.View = View.Details; this.m_pMailingLists.FullRowSelect = true; this.m_pMailingLists.HideSelection = false; this.m_pMailingLists.SmallImageList = this.m_pMailingListsImages; this.m_pMailingLists.SelectedIndexChanged += new EventHandler(this.m_pMailingLists_SelectedIndexChanged); this.m_pMailingLists.DoubleClick += new EventHandler(this.m_pMailingLists_DoubleClick); this.m_pMailingLists.MouseUp += new MouseEventHandler(this.m_pMailingLists_MouseUp); this.m_pMailingLists.Columns.Add("Name", 190, HorizontalAlignment.Left); this.m_pMailingLists.Columns.Add("Description", 290, HorizontalAlignment.Left); base.Controls.Add(this.m_pToolbar); base.Controls.Add(this.mt_Filter); base.Controls.Add(this.m_pFilter); base.Controls.Add(this.m_pGetMailingLists); base.Controls.Add(this.m_pMailingLists); }
private void InitializeComponent() { base.ClientSize = new Size(492, 373); this.m_pDeleteToRecycleBin = new CheckBox(); this.m_pDeleteToRecycleBin.Size = new Size(300, 20); this.m_pDeleteToRecycleBin.Location = new Point(10, 15); this.m_pDeleteToRecycleBin.Text = "Delete all messages to recycle bin"; this.m_pDeleteToRecycleBin.CheckedChanged += new EventHandler(this.m_pDeleteToRecycleBin_CheckedChanged); this.m_pDeleteAfterDays = new NumericUpDown(); this.m_pDeleteAfterDays.Size = new Size(50, 20); this.m_pDeleteAfterDays.Location = new Point(65, 45); this.m_pDeleteAfterDays.Minimum = 1m; this.m_pDeleteAfterDays.Maximum = 365m; this.m_pDeleteAfterDays.Value = 1m; this.mt_DeleteAfterDays = new Label(); this.mt_DeleteAfterDays.Size = new Size(300, 20); this.mt_DeleteAfterDays.Location = new Point(125, 45); this.mt_DeleteAfterDays.TextAlign = ContentAlignment.MiddleLeft; this.mt_DeleteAfterDays.Text = "Delete messages permanently after specified days"; this.m_pApply = new Button(); this.m_pApply.Size = new Size(70, 20); this.m_pApply.Location = new Point(415, 45); this.m_pApply.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.m_pApply.Text = "Apply"; this.m_pApply.Click += new EventHandler(this.m_pApply_Click); this.m_pGroupBox1 = new GroupBox(); this.m_pGroupBox1.Size = new Size(480, 3); this.m_pGroupBox1.Location = new Point(5, 75); this.m_pGroupBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.mt_User = new Label(); this.mt_User.Size = new Size(50, 20); this.mt_User.Location = new Point(10, 95); this.mt_User.TextAlign = ContentAlignment.MiddleRight; this.mt_User.Text = "User:"******"..."; this.m_pGetUser.Click += new EventHandler(this.m_pGetUser_Click); this.mt_Between = new Label(); this.mt_Between.Size = new Size(60, 20); this.mt_Between.Location = new Point(0, 120); this.mt_Between.TextAlign = ContentAlignment.MiddleRight; this.mt_Between.Text = "Between:"; this.m_pSince = new DateTimePicker(); this.m_pSince.Size = new Size(80, 20); this.m_pSince.Location = new Point(65, 120); this.m_pSince.Format = DateTimePickerFormat.Short; this.m_pTo = new DateTimePicker(); this.m_pTo.Size = new Size(80, 20); this.m_pTo.Location = new Point(150, 120); this.m_pTo.Format = DateTimePickerFormat.Short; this.m_pGet = new Button(); this.m_pGet.Size = new Size(50, 20); this.m_pGet.Location = new Point(355, 120); this.m_pGet.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.m_pGet.Text = "Get"; this.m_pGet.Click += new EventHandler(this.m_pGet_Click); this.m_pRestore = new Button(); this.m_pRestore.Size = new Size(70, 20); this.m_pRestore.Location = new Point(415, 120); this.m_pRestore.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.m_pRestore.Text = "Restore"; this.m_pRestore.Click += new EventHandler(this.m_pRestore_Click); this.m_pMessages = new WListView(); this.m_pMessages.Size = new Size(475, 215); this.m_pMessages.Location = new Point(10, 150); this.m_pMessages.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.m_pMessages.View = View.Details; this.m_pMessages.HideSelection = false; this.m_pMessages.FullRowSelect = true; this.m_pMessages.Columns.Add("User", 100, HorizontalAlignment.Left); this.m_pMessages.Columns.Add("Folder", 120, HorizontalAlignment.Left); this.m_pMessages.Columns.Add("Subject", 250, HorizontalAlignment.Left); this.m_pMessages.Columns.Add("Sender", 170, HorizontalAlignment.Left); this.m_pMessages.Columns.Add("Date", 120, HorizontalAlignment.Left); this.m_pMessages.Columns.Add("Date Deleted", 120, HorizontalAlignment.Left); this.m_pMessages.Columns.Add("Size KB", 60, HorizontalAlignment.Right); this.m_pMessages.SelectedIndexChanged += new EventHandler(this.m_pMessages_SelectedIndexChanged); base.Controls.Add(this.m_pDeleteToRecycleBin); base.Controls.Add(this.m_pDeleteAfterDays); base.Controls.Add(this.mt_DeleteAfterDays); base.Controls.Add(this.m_pApply); base.Controls.Add(this.m_pGroupBox1); base.Controls.Add(this.mt_User); base.Controls.Add(this.m_pUser); base.Controls.Add(this.m_pGetUser); base.Controls.Add(this.mt_Between); base.Controls.Add(this.m_pSince); base.Controls.Add(this.m_pTo); base.Controls.Add(this.m_pGet); base.Controls.Add(this.m_pRestore); base.Controls.Add(this.m_pMessages); }