/// <summary> /// Creates and initializes UI. /// </summary> private void InitUI() { this.ClientSize = new Size(500, 400); this.StartPosition = FormStartPosition.CenterScreen; this.SizeGripStyle = SizeGripStyle.Hide; this.FormBorderStyle = FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.Text = "Virtual Server Messages Backup Wizard"; this.Icon = ResManager.GetIcon("ruleaction.ico"); #region Common UI m_pIcon = new PictureBox(); m_pIcon.Size = new Size(36, 36); m_pIcon.Location = new Point(10, 5); m_pIcon.Image = ResManager.GetIcon("ruleaction.ico").ToBitmap(); m_pTitle = new Label(); m_pTitle.Size = new Size(300, 30); m_pTitle.Location = new Point(50, 10); m_pTitle.TextAlign = ContentAlignment.MiddleLeft; m_pSeparator1 = new GroupBox(); m_pSeparator1.Size = new Size(490, 3); m_pSeparator1.Location = new Point(5, 44); m_pSeparator2 = new GroupBox(); m_pSeparator2.Size = new Size(490, 3); m_pSeparator2.Location = new Point(5, 360); m_pBack = new Button(); m_pBack.Size = new Size(70, 20); m_pBack.Location = new Point(265, 375); m_pBack.Text = "Back"; m_pBack.Click += new EventHandler(m_pBack_Click); m_pNext = new Button(); m_pNext.Size = new Size(70, 20); m_pNext.Location = new Point(340, 375); m_pNext.Text = "Next"; m_pNext.Click += new EventHandler(m_pNext_Click); m_pCancel = new Button(); m_pCancel.Size = new Size(70, 20); m_pCancel.Location = new Point(420, 375); m_pCancel.Text = "Cancel"; m_pCancel.Click += new EventHandler(m_pCancel_Click); this.Controls.Add(m_pIcon); this.Controls.Add(m_pTitle); this.Controls.Add(m_pSeparator1); this.Controls.Add(m_pSeparator2); this.Controls.Add(m_pBack); this.Controls.Add(m_pNext); this.Controls.Add(m_pCancel); #endregion #region Destination m_pDestination = new Panel(); m_pDestination.Size = new Size(500, 300); m_pDestination.Location = new Point(0, 75); m_pDestination.Visible = false; mt_Destination_Folder = new Label(); mt_Destination_Folder.Size = new Size(100, 20); mt_Destination_Folder.Location = new Point(0, 0); mt_Destination_Folder.TextAlign = ContentAlignment.MiddleRight; mt_Destination_Folder.Text = "Folder:"; m_pDestionation_Folder = new TextBox(); m_pDestionation_Folder.Size = new Size(270, 20); m_pDestionation_Folder.Location = new Point(105, 0); m_pDestionation_Folder.ReadOnly = true; m_pDestination_GetFolder = new Button(); m_pDestination_GetFolder.Size = new Size(25, 20); m_pDestination_GetFolder.Location = new Point(380, 0); m_pDestination_GetFolder.Text = "..."; m_pDestination_GetFolder.Click += new EventHandler(m_pDestination_GetFolder_Click); m_pDestination.Controls.Add(mt_Destination_Folder); m_pDestination.Controls.Add(m_pDestionation_Folder); m_pDestination.Controls.Add(m_pDestination_GetFolder); this.Controls.Add(m_pDestination); #endregion #region Users m_pUsers = new Panel(); m_pUsers.Size = new Size(500, 300); m_pUsers.Location = new Point(0, 50); m_pUsers.Visible = false; m_pUsers_SelectAll = new Button(); m_pUsers_SelectAll.Size = new Size(70, 20); m_pUsers_SelectAll.Location = new Point(10, 0); m_pUsers_SelectAll.Text = "Select All"; m_pUsers_SelectAll.Click += new EventHandler(m_pUsers_SelectAll_Click); ImageList imageList_m_pUsers_Users = new ImageList(); imageList_m_pUsers_Users.Images.Add(ResManager.GetIcon("user.ico")); m_pUsers_Users = new WTreeView(); m_pUsers_Users.Size = new Size(480, 265); m_pUsers_Users.Location = new Point(10, 25); m_pUsers_Users.CheckBoxes = true; m_pUsers_Users.ImageList = imageList_m_pUsers_Users; m_pUsers.Controls.Add(m_pUsers_SelectAll); m_pUsers.Controls.Add(m_pUsers_Users); this.Controls.Add(m_pUsers); #endregion #region Finish m_pFinish = new Panel(); m_pFinish.Size = new Size(500, 300); m_pFinish.Location = new Point(0, 50); m_pFinish.Visible = false; m_pFinish_ProgressTotal = new ProgressBar(); m_pFinish_ProgressTotal.Size = new Size(480, 20); m_pFinish_ProgressTotal.Location = new Point(10, 0); m_pFinish_Progress = new ProgressBar(); m_pFinish_Progress.Size = new Size(480, 20); m_pFinish_Progress.Location = new Point(10, 25); ImageList imgList_m_pFinish_Completed = new ImageList(); imgList_m_pFinish_Completed.Images.Add(ResManager.GetIcon("folder.ico")); m_pFinish_Completed = new ListView(); m_pFinish_Completed.Size = new Size(480, 250); m_pFinish_Completed.Location = new Point(10, 50); m_pFinish_Completed.View = View.Details; m_pFinish_Completed.FullRowSelect = true; m_pFinish_Completed.HideSelection = false; m_pFinish_Completed.SmallImageList = imgList_m_pFinish_Completed; m_pFinish_Completed.Columns.Add("Folder", 340); m_pFinish_Completed.Columns.Add("Count", 70); m_pFinish_Completed.Columns.Add("Errors", 50); m_pFinish_Completed.DoubleClick += new EventHandler(m_pFinish_Completed_DoubleClick); m_pFinish.Controls.Add(m_pFinish_ProgressTotal); m_pFinish.Controls.Add(m_pFinish_Progress); m_pFinish.Controls.Add(m_pFinish_Completed); this.Controls.Add(m_pFinish); #endregion }
/// <summary> /// Creates and initializes UI. /// </summary> private void InitUI() { this.ClientSize = new Size(500,400); this.StartPosition = FormStartPosition.CenterScreen; this.SizeGripStyle = SizeGripStyle.Hide; this.FormBorderStyle = FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.Text = "Virtual Server Messages Backup Wizard"; this.Icon = ResManager.GetIcon("ruleaction.ico"); #region Common UI m_pIcon = new PictureBox(); m_pIcon.Size = new Size(36,36); m_pIcon.Location = new Point(10,5); m_pIcon.Image = ResManager.GetIcon("ruleaction.ico").ToBitmap(); m_pTitle = new Label(); m_pTitle.Size = new Size(300,30); m_pTitle.Location = new Point(50,10); m_pTitle.TextAlign = ContentAlignment.MiddleLeft; m_pSeparator1 = new GroupBox(); m_pSeparator1.Size = new Size(490,3); m_pSeparator1.Location = new Point(5,44); m_pSeparator2 = new GroupBox(); m_pSeparator2.Size = new Size(490,3); m_pSeparator2.Location = new Point(5,360); m_pBack = new Button(); m_pBack.Size = new Size(70,20); m_pBack.Location = new Point(265,375); m_pBack.Text = "Back"; m_pBack.Click += new EventHandler(m_pBack_Click); m_pNext = new Button(); m_pNext.Size = new Size(70,20); m_pNext.Location = new Point(340,375); m_pNext.Text = "Next"; m_pNext.Click += new EventHandler(m_pNext_Click); m_pCancel = new Button(); m_pCancel.Size = new Size(70,20); m_pCancel.Location = new Point(420,375); m_pCancel.Text = "Cancel"; m_pCancel.Click += new EventHandler(m_pCancel_Click); this.Controls.Add(m_pIcon); this.Controls.Add(m_pTitle); this.Controls.Add(m_pSeparator1); this.Controls.Add(m_pSeparator2); this.Controls.Add(m_pBack); this.Controls.Add(m_pNext); this.Controls.Add(m_pCancel); #endregion #region Destination m_pDestination = new Panel(); m_pDestination.Size = new Size(500,300); m_pDestination.Location = new Point(0,75); m_pDestination.Visible = false; mt_Destination_Folder = new Label(); mt_Destination_Folder.Size = new Size(100,20); mt_Destination_Folder.Location = new Point(0,0); mt_Destination_Folder.TextAlign = ContentAlignment.MiddleRight; mt_Destination_Folder.Text = "Folder:"; m_pDestionation_Folder = new TextBox(); m_pDestionation_Folder.Size = new Size(270,20); m_pDestionation_Folder.Location = new Point(105,0); m_pDestionation_Folder.ReadOnly = true; m_pDestination_GetFolder = new Button(); m_pDestination_GetFolder.Size = new Size(25,20); m_pDestination_GetFolder.Location = new Point(380,0); m_pDestination_GetFolder.Text = "..."; m_pDestination_GetFolder.Click += new EventHandler(m_pDestination_GetFolder_Click); m_pDestination.Controls.Add(mt_Destination_Folder); m_pDestination.Controls.Add(m_pDestionation_Folder); m_pDestination.Controls.Add(m_pDestination_GetFolder); this.Controls.Add(m_pDestination); #endregion #region Users m_pUsers = new Panel(); m_pUsers.Size = new Size(500,300); m_pUsers.Location = new Point(0,50); m_pUsers.Visible = false; m_pUsers_SelectAll = new Button(); m_pUsers_SelectAll.Size = new Size(70,20); m_pUsers_SelectAll.Location = new Point(10,0); m_pUsers_SelectAll.Text = "Select All"; m_pUsers_SelectAll.Click += new EventHandler(m_pUsers_SelectAll_Click); ImageList imageList_m_pUsers_Users = new ImageList(); imageList_m_pUsers_Users.Images.Add(ResManager.GetIcon("user.ico")); m_pUsers_Users = new WTreeView(); m_pUsers_Users.Size = new Size(480,265); m_pUsers_Users.Location = new Point(10,25); m_pUsers_Users.CheckBoxes = true; m_pUsers_Users.ImageList = imageList_m_pUsers_Users; m_pUsers.Controls.Add(m_pUsers_SelectAll); m_pUsers.Controls.Add(m_pUsers_Users); this.Controls.Add(m_pUsers); #endregion #region Finish m_pFinish = new Panel(); m_pFinish.Size = new Size(500,300); m_pFinish.Location = new Point(0,50); m_pFinish.Visible = false; m_pFinish_ProgressTotal = new ProgressBar(); m_pFinish_ProgressTotal.Size = new Size(480,20); m_pFinish_ProgressTotal.Location = new Point(10,0); m_pFinish_Progress = new ProgressBar(); m_pFinish_Progress.Size = new Size(480,20); m_pFinish_Progress.Location = new Point(10,25); ImageList imgList_m_pFinish_Completed = new ImageList(); imgList_m_pFinish_Completed.Images.Add(ResManager.GetIcon("folder.ico")); m_pFinish_Completed = new ListView(); m_pFinish_Completed.Size = new Size(480,250); m_pFinish_Completed.Location = new Point(10,50); m_pFinish_Completed.View = View.Details; m_pFinish_Completed.FullRowSelect = true; m_pFinish_Completed.HideSelection = false; m_pFinish_Completed.SmallImageList = imgList_m_pFinish_Completed; m_pFinish_Completed.Columns.Add("Folder",340); m_pFinish_Completed.Columns.Add("Count",70); m_pFinish_Completed.Columns.Add("Errors",50); m_pFinish_Completed.DoubleClick += new EventHandler(m_pFinish_Completed_DoubleClick); m_pFinish.Controls.Add(m_pFinish_ProgressTotal); m_pFinish.Controls.Add(m_pFinish_Progress); m_pFinish.Controls.Add(m_pFinish_Completed); this.Controls.Add(m_pFinish); #endregion }
/// <summary> /// Creates and initializes window UI. /// </summary> private void InitUI() { this.ClientSize = new Size(500,400); this.StartPosition = FormStartPosition.CenterScreen; this.SizeGripStyle = SizeGripStyle.Hide; this.FormBorderStyle = FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.Text = "Transfer Messages"; this.Icon = ResManager.GetIcon("ruleaction.ico"); this.FormClosed += new FormClosedEventHandler(wfrm_utils_MessagesTransferer_FormClosed); #region Common UI m_pIcon = new PictureBox(); m_pIcon.Size = new Size(36,36); m_pIcon.Location = new Point(10,5); m_pIcon.Image = ResManager.GetIcon("ruleaction.ico").ToBitmap(); m_pTitle = new Label(); m_pTitle.Size = new Size(300,30); m_pTitle.Location = new Point(50,10); m_pTitle.TextAlign = ContentAlignment.MiddleLeft; m_pSeparator1 = new GroupBox(); m_pSeparator1.Size = new Size(490,3); m_pSeparator1.Location = new Point(5,44); m_pSeparator2 = new GroupBox(); m_pSeparator2.Size = new Size(490,3); m_pSeparator2.Location = new Point(5,360); m_pBack = new Button(); m_pBack.Size = new Size(70,20); m_pBack.Location = new Point(265,375); m_pBack.Text = "Back"; m_pBack.Click += new EventHandler(m_pBack_Click); m_pNext = new Button(); m_pNext.Size = new Size(70,20); m_pNext.Location = new Point(340,375); m_pNext.Text = "Next"; m_pNext.Click += new EventHandler(m_pNext_Click); m_pCancel = new Button(); m_pCancel.Size = new Size(70,20); m_pCancel.Location = new Point(420,375); m_pCancel.Text = "Cancel"; m_pCancel.Click += new EventHandler(m_pCancel_Click); this.Controls.Add(m_pIcon); this.Controls.Add(m_pTitle); this.Controls.Add(m_pSeparator1); this.Controls.Add(m_pSeparator2); this.Controls.Add(m_pBack); this.Controls.Add(m_pNext); this.Controls.Add(m_pCancel); #endregion #region Source UI m_pSource = new Panel(); m_pSource.Size = new Size(500,300); m_pSource.Location = new Point(0,75); m_pSource.Visible = false; mt_Source_Type = new Label(); mt_Source_Type.Size = new Size(100,20); mt_Source_Type.Location = new Point(0,0); mt_Source_Type.TextAlign = ContentAlignment.MiddleRight; mt_Source_Type.Text = "Source:"; m_pSource_Type = new ComboBox(); m_pSource_Type.Size = new Size(300,20); m_pSource_Type.Location = new Point(105,0); m_pSource_Type.DropDownStyle = ComboBoxStyle.DropDownList; m_pSource_Type.Items.Add("LumiSoft Mail Server User"); m_pSource_Type.Items.Add("IMAP"); m_pSource_Type.Items.Add("ZIP Messages Archive"); m_pSource_Type.SelectedIndexChanged += new EventHandler(m_pSource_Type_SelectedIndexChanged); mt_Source_TypeLSUser_User = new Label(); mt_Source_TypeLSUser_User.Size = new Size(100,20); mt_Source_TypeLSUser_User.Location = new Point(0,25); mt_Source_TypeLSUser_User.TextAlign = ContentAlignment.MiddleRight; mt_Source_TypeLSUser_User.Text = "User:"******"..."; m_pSource_TypeLSUser_UserGet.Visible = false; m_pSource_TypeLSUser_UserGet.Click += new EventHandler(m_pSource_TypeLSUser_UserGet_Click); mt_Source_TypeIMAP_Host = new Label(); mt_Source_TypeIMAP_Host.Size = new Size(100,20); mt_Source_TypeIMAP_Host.Location = new Point(0,25); mt_Source_TypeIMAP_Host.TextAlign = ContentAlignment.MiddleRight; mt_Source_TypeIMAP_Host.Text = "Host:"; mt_Source_TypeIMAP_Host.Visible = false; m_pSource_TypeIMAP_Host = new TextBox(); m_pSource_TypeIMAP_Host.Size = new Size(150,20); m_pSource_TypeIMAP_Host.Location = new Point(105,25); m_pSource_TypeIMAP_Host.Visible = false; m_pSource_TypeIMAP_Port = new NumericUpDown(); m_pSource_TypeIMAP_Port.Size = new Size(45,20); m_pSource_TypeIMAP_Port.Location = new Point(260,25); m_pSource_TypeIMAP_Port.Minimum = 1; m_pSource_TypeIMAP_Port.Maximum = 99999; m_pSource_TypeIMAP_Port.Value = 143; m_pSource_TypeIMAP_Port.Visible = false; m_pSource_TypeIMAP_UseSSL = new CheckBox(); m_pSource_TypeIMAP_UseSSL.Size = new Size(200,20); m_pSource_TypeIMAP_UseSSL.Location = new Point(315,25); m_pSource_TypeIMAP_UseSSL.Text = "Use SSL"; m_pSource_TypeIMAP_UseSSL.Visible = false; mt_Source_TypeIMAP_User = new Label(); mt_Source_TypeIMAP_User.Size = new Size(100,20); mt_Source_TypeIMAP_User.Location = new Point(0,50); mt_Source_TypeIMAP_User.TextAlign = ContentAlignment.MiddleRight; mt_Source_TypeIMAP_User.Text = "User:"******"Password:"******"Zip File:"; mt_Source_TypeZIP_File.Visible = false; m_pSource_TypeZIP_File = new TextBox(); m_pSource_TypeZIP_File.Size = new Size(270,20); m_pSource_TypeZIP_File.Location = new Point(105,25); m_pSource_TypeZIP_File.ReadOnly = true; m_pSource_TypeZIP_File.Visible = false; m_pSource_TypeZIP_FileGet = new Button(); m_pSource_TypeZIP_FileGet.Size = new Size(25,20); m_pSource_TypeZIP_FileGet.Location = new Point(380,25); m_pSource_TypeZIP_FileGet.Text = "..."; m_pSource_TypeZIP_FileGet.Visible = false; m_pSource_TypeZIP_FileGet.Click += new EventHandler(m_pSource_TypeZIP_FileGet_Click); m_pSource.Controls.Add(mt_Source_Type); m_pSource.Controls.Add(m_pSource_Type); m_pSource.Controls.Add(mt_Source_TypeLSUser_User); m_pSource.Controls.Add(m_pSource_TypeLSUser_User); m_pSource.Controls.Add(m_pSource_TypeLSUser_UserGet); m_pSource.Controls.Add(mt_Source_TypeIMAP_Host); m_pSource.Controls.Add(m_pSource_TypeIMAP_Host); m_pSource.Controls.Add(m_pSource_TypeIMAP_Port); m_pSource.Controls.Add(m_pSource_TypeIMAP_UseSSL); m_pSource.Controls.Add(mt_Source_TypeIMAP_User); m_pSource.Controls.Add(m_pSource_TypeIMAP_User); m_pSource.Controls.Add(mt_Source_TypeIMAP_Password); m_pSource.Controls.Add(m_pSource_TypeIMAP_Password); m_pSource.Controls.Add(mt_Source_TypeZIP_File); m_pSource.Controls.Add(m_pSource_TypeZIP_File); m_pSource.Controls.Add(m_pSource_TypeZIP_FileGet); this.Controls.Add(m_pSource); #endregion #region Folders UI m_pFolders = new Panel(); m_pFolders.Size = new Size(500,300); m_pFolders.Location = new Point(0,50); m_pFolders.Visible = false; m_pFolders_SelectAll = new Button(); m_pFolders_SelectAll.Size = new Size(70,20); m_pFolders_SelectAll.Location = new Point(10,0); m_pFolders_SelectAll.Text = "Select All"; m_pFolders_SelectAll.Click += new EventHandler(m_pFolders_SelectAll_Click); ImageList imageList_m_pFolders_Folders = new ImageList(); imageList_m_pFolders_Folders.Images.Add(ResManager.GetIcon("folder.ico")); m_pFolders_Folders = new WTreeView(); m_pFolders_Folders.Size = new Size(480,265); m_pFolders_Folders.Location = new Point(10,25); m_pFolders_Folders.CheckBoxes = true; m_pFolders_Folders.ImageList = imageList_m_pFolders_Folders; m_pFolders.Controls.Add(m_pFolders_SelectAll); m_pFolders.Controls.Add(m_pFolders_Folders); this.Controls.Add(m_pFolders); #endregion #region Destination UI m_pDestination = new Panel(); m_pDestination.Size = new Size(500,300); m_pDestination.Location = new Point(0,50); m_pDestination.Visible = false; mt_Destination_Type = new Label(); mt_Destination_Type.Size = new Size(100,20); mt_Destination_Type.Location = new Point(0,25); mt_Destination_Type.TextAlign = ContentAlignment.MiddleRight; mt_Destination_Type.Text = "Destination:"; m_pDestination_Type = new ComboBox(); m_pDestination_Type.Size = new Size(300,20); m_pDestination_Type.Location = new Point(105,25); m_pDestination_Type.DropDownStyle = ComboBoxStyle.DropDownList; m_pDestination_Type.Items.Add("LumiSoft Mail Server User"); m_pDestination_Type.Items.Add("IMAP"); m_pDestination_Type.Items.Add("ZIP Messages Archive"); m_pDestination_Type.SelectedIndexChanged += new EventHandler(m_pDestination_Type_SelectedIndexChanged); mt_Destination_TypeLSUser_User = new Label(); mt_Destination_TypeLSUser_User.Size = new Size(100,20); mt_Destination_TypeLSUser_User.Location = new Point(0,50); mt_Destination_TypeLSUser_User.TextAlign = ContentAlignment.MiddleRight; mt_Destination_TypeLSUser_User.Text = "User:"******"..."; m_pDestination_TypeLSUser_UserGet.Visible = false; m_pDestination_TypeLSUser_UserGet.Click += new EventHandler(m_pDestination_TypeLSUser_UserGet_Click); mt_Destination_TypeIMAP_Host = new Label(); mt_Destination_TypeIMAP_Host.Size = new Size(100,20); mt_Destination_TypeIMAP_Host.Location = new Point(0,50); mt_Destination_TypeIMAP_Host.TextAlign = ContentAlignment.MiddleRight; mt_Destination_TypeIMAP_Host.Text = "Host:"; mt_Destination_TypeIMAP_Host.Visible = false; m_pDestination_TypeIMAP_Host = new TextBox(); m_pDestination_TypeIMAP_Host.Size = new Size(150,20); m_pDestination_TypeIMAP_Host.Location = new Point(105,50); m_pDestination_TypeIMAP_Host.Visible = false; m_pDestination_TypeIMAP_Port = new NumericUpDown(); m_pDestination_TypeIMAP_Port.Size = new Size(45,20); m_pDestination_TypeIMAP_Port.Location = new Point(260,50); m_pDestination_TypeIMAP_Port.Minimum = 1; m_pDestination_TypeIMAP_Port.Maximum = 99999; m_pDestination_TypeIMAP_Port.Value = 143; m_pDestination_TypeIMAP_Port.Visible = false; m_pDestination_TypeIMAP_UseSSL = new CheckBox(); m_pDestination_TypeIMAP_UseSSL.Size = new Size(200,20); m_pDestination_TypeIMAP_UseSSL.Location = new Point(315,50); m_pDestination_TypeIMAP_UseSSL.Text = "Use SSL"; m_pDestination_TypeIMAP_UseSSL.Visible = false; mt_Destination_TypeIMAP_User = new Label(); mt_Destination_TypeIMAP_User.Size = new Size(100,20); mt_Destination_TypeIMAP_User.Location = new Point(0,75); mt_Destination_TypeIMAP_User.TextAlign = ContentAlignment.MiddleRight; mt_Destination_TypeIMAP_User.Text = "User:"******"Password:"******"Zip File:"; mt_Destination_TypeZIP_File.Visible = false; m_pDestination_TypeZIP_File = new TextBox(); m_pDestination_TypeZIP_File.Size = new Size(270,20); m_pDestination_TypeZIP_File.Location = new Point(105,50); m_pDestination_TypeZIP_File.ReadOnly = true; m_pDestination_TypeZIP_File.Visible = false; m_pDestination_TypeZIP_FileGet = new Button(); m_pDestination_TypeZIP_FileGet.Size = new Size(25,20); m_pDestination_TypeZIP_FileGet.Location = new Point(380,50); m_pDestination_TypeZIP_FileGet.Text = "..."; m_pDestination_TypeZIP_FileGet.Visible = false; m_pDestination_TypeZIP_FileGet.Click += new EventHandler(m_pDestination_TypeZIP_FileGet_Click); m_pDestination.Controls.Add(mt_Destination_Type); m_pDestination.Controls.Add(m_pDestination_Type); m_pDestination.Controls.Add(mt_Destination_TypeLSUser_User); m_pDestination.Controls.Add(m_pDestination_TypeLSUser_User); m_pDestination.Controls.Add(m_pDestination_TypeLSUser_UserGet); m_pDestination.Controls.Add(mt_Destination_TypeIMAP_Host); m_pDestination.Controls.Add(m_pDestination_TypeIMAP_Host); m_pDestination.Controls.Add(m_pDestination_TypeIMAP_Port); m_pDestination.Controls.Add(m_pDestination_TypeIMAP_UseSSL); m_pDestination.Controls.Add(mt_Destination_TypeIMAP_User); m_pDestination.Controls.Add(m_pDestination_TypeIMAP_User); m_pDestination.Controls.Add(mt_Destination_TypeIMAP_Password); m_pDestination.Controls.Add(m_pDestination_TypeIMAP_Password); m_pDestination.Controls.Add(mt_Destination_TypeZIP_File); m_pDestination.Controls.Add(m_pDestination_TypeZIP_File); m_pDestination.Controls.Add(m_pDestination_TypeZIP_FileGet); this.Controls.Add(m_pDestination); #endregion #region Finish UI m_pFinish = new Panel(); m_pFinish.Size = new Size(500,300); m_pFinish.Location = new Point(0,50); m_pFinish.Visible = false; m_pFinish_Progress = new ProgressBar(); m_pFinish_Progress.Size = new Size(480,20); m_pFinish_Progress.Location = new Point(10,0); ImageList imgList_m_pFinish_Completed = new ImageList(); imgList_m_pFinish_Completed.Images.Add(ResManager.GetIcon("folder.ico")); m_pFinish_Completed = new ListView(); m_pFinish_Completed.Size = new Size(480,275); m_pFinish_Completed.Location = new Point(10,25); m_pFinish_Completed.View = View.Details; m_pFinish_Completed.FullRowSelect = true; m_pFinish_Completed.HideSelection = false; m_pFinish_Completed.SmallImageList = imgList_m_pFinish_Completed; m_pFinish_Completed.Columns.Add("Folder",340); m_pFinish_Completed.Columns.Add("Count",70); m_pFinish_Completed.Columns.Add("Errors",50); m_pFinish_Completed.DoubleClick += new EventHandler(m_pFinish_Completed_DoubleClick); m_pFinish.Controls.Add(m_pFinish_Progress); m_pFinish.Controls.Add(m_pFinish_Completed); this.Controls.Add(m_pFinish); #endregion }