wfrm_Setup.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:56k
源码类别:

Email服务器

开发平台:

C#

  1. using System;
  2. using System.IO;
  3. using System.Drawing;
  4. using System.Collections;
  5. using System.ComponentModel;
  6. using System.Windows.Forms;
  7. using System.Data;
  8. using System.Net;
  9. namespace LumiSoft.MailServer
  10. {
  11. /// <summary>
  12. /// Summary description for Setup.
  13. /// </summary>
  14. public class wfrm_Setup : System.Windows.Forms.Form
  15. {
  16. private System.Windows.Forms.GroupBox groupBox1;
  17. private System.Windows.Forms.GroupBox groupBox2;
  18. private LumiSoft.UI.Controls.WEditBox m_pConStr;
  19. private LumiSoft.UI.Controls.WButton m_pConStrBrowse;
  20. private LumiSoft.UI.Controls.WButton m_pTest;
  21. private LumiSoft.UI.Controls.WButton m_pSave;
  22. private LumiSoft.UI.Controls.WLabel mt_ipaddress;
  23. private LumiSoft.UI.Controls.WLabel mt_smtp;
  24. private LumiSoft.UI.Controls.WLabel mt_pop3;
  25. private LumiSoft.UI.Controls.WLabel mt_smtpmax;
  26. private LumiSoft.UI.Controls.WLabel mt_pop3max;
  27. private LumiSoft.UI.Controls.WComboBox m_pSMTPIPAddresses;
  28. private LumiSoft.UI.Controls.WSpinEdit m_pSMTP;
  29. private LumiSoft.UI.Controls.WSpinEdit m_pPOP3;
  30. private LumiSoft.UI.Controls.WSpinEdit m_pSMTP_Threads;
  31. private LumiSoft.UI.Controls.WSpinEdit m_pPOP3_Threads;
  32. private System.Windows.Forms.GroupBox groupBox3;
  33. private LumiSoft.UI.Controls.WLabel mt_sessionidle;
  34. private LumiSoft.UI.Controls.WLabel mt_commandidle;
  35. private LumiSoft.UI.Controls.WLabel mt_msgsize;
  36. private LumiSoft.UI.Controls.WSpinEdit m_pSessionIdle;
  37. private LumiSoft.UI.Controls.WSpinEdit m_pCommandIdle;
  38. private LumiSoft.UI.Controls.WSpinEdit m_pMessageSize;
  39. private LumiSoft.UI.Controls.WLabel wLabel4;
  40. private LumiSoft.UI.Controls.WLabel wLabel5;
  41. private LumiSoft.UI.Controls.WLabel wLabel6;
  42. private LumiSoft.UI.Controls.WSpinEdit m_pMaxRecipients;
  43. private LumiSoft.UI.Controls.WLabel mt_maxrecipients;
  44. private LumiSoft.UI.Controls.WEditBox m_pPostmasterUName;
  45. private LumiSoft.UI.Controls.WEditBox m_pPostmasterPwd;
  46. private LumiSoft.UI.Controls.WSpinEdit m_pMaxSMTPbadCmds;
  47. private LumiSoft.UI.Controls.WLabel wLabel1;
  48. private LumiSoft.UI.Controls.WLabel wLabel2;
  49. private LumiSoft.UI.Controls.WLabel wLabel3;
  50. private LumiSoft.UI.Controls.WLabel wLabel7;
  51. private System.Windows.Forms.GroupBox groupBox4;
  52. private LumiSoft.UI.Controls.WLabel wLabel8;
  53. private LumiSoft.UI.Controls.WLabel wLabel9;
  54. private LumiSoft.UI.Controls.WLabel wLabel10;
  55. private LumiSoft.UI.Controls.WLabel wLabel11;
  56. private LumiSoft.UI.Controls.WComboBox m_pPOP3IPAddresses;
  57. private LumiSoft.UI.Controls.WSpinEdit m_pPOP3CommandIdle;
  58. private LumiSoft.UI.Controls.WSpinEdit m_pPOP3SessionIdle;
  59. private LumiSoft.UI.Controls.WComboBox m_pDbType;
  60. private LumiSoft.UI.Controls.WEditBox m_pMailStorePath;
  61. private LumiSoft.UI.Controls.WLabel wLabel12;
  62. private LumiSoft.UI.Controls.WLabel wLabel13;
  63. private LumiSoft.UI.Controls.WSpinEdit m_pMaxPOP3badCmds;
  64. /// <summary>
  65. /// Required designer variable.
  66. /// </summary>
  67. private System.ComponentModel.Container components = null;
  68. private DataSet   dsSettings = null;
  69. private wfrm_Main m_pConStrManager = null;
  70. /// <summary>
  71. /// Default constructor.
  72. /// </summary>
  73. /// <param name="ds"></param>
  74. /// <param name="frm"></param>
  75. public wfrm_Setup(DataSet ds,wfrm_Main frmM)
  76. {
  77. //
  78. // Required for Windows Form Designer support
  79. //
  80. InitializeComponent();
  81. //
  82. // TODO: Add any constructor code after InitializeComponent call
  83. //
  84. try
  85. {
  86. dsSettings = ds;
  87. m_pConStrManager = frmM;
  88. m_pSMTPIPAddresses.Items.Add("(All Unassigned)");
  89. m_pPOP3IPAddresses.Items.Add("(All Unassigned)");
  90. m_pDbType.Items.Add("XML","XML");
  91. m_pDbType.Items.Add("MSSQL","MSSQL");
  92. m_pDbType.SelectedIndex = 0;
  93. IPHostEntry hostInfo = Dns.GetHostByName(Dns.GetHostName());
  94. foreach(IPAddress ip in hostInfo.AddressList){
  95. string ipStr = ip.ToString();
  96. m_pSMTPIPAddresses.Items.Add(ipStr);
  97. m_pPOP3IPAddresses.Items.Add(ipStr);
  98. }
  99. RefreshForm();
  100. }
  101. catch(Exception x)
  102. {
  103. wfrm_Error frm = new wfrm_Error(x,new System.Diagnostics.StackTrace());
  104. frm.ShowDialog(this);
  105. }
  106. }
  107. #region function Dispose
  108. /// <summary>
  109. /// Clean up any resources being used.
  110. /// </summary>
  111. protected override void Dispose( bool disposing )
  112. {
  113. if( disposing )
  114. {
  115. if(components != null)
  116. {
  117. components.Dispose();
  118. }
  119. }
  120. base.Dispose( disposing );
  121. }
  122. #endregion
  123. #region Windows Form Designer generated code
  124. /// <summary>
  125. /// Required method for Designer support - do not modify
  126. /// the contents of this method with the code editor.
  127. /// </summary>
  128. private void InitializeComponent()
  129. {
  130. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(wfrm_Setup));
  131. this.groupBox1 = new System.Windows.Forms.GroupBox();
  132. this.wLabel12 = new LumiSoft.UI.Controls.WLabel();
  133. this.m_pMailStorePath = new LumiSoft.UI.Controls.WEditBox();
  134. this.m_pTest = new LumiSoft.UI.Controls.WButton();
  135. this.m_pConStrBrowse = new LumiSoft.UI.Controls.WButton();
  136. this.m_pConStr = new LumiSoft.UI.Controls.WEditBox();
  137. this.m_pDbType = new LumiSoft.UI.Controls.WComboBox();
  138. this.groupBox2 = new System.Windows.Forms.GroupBox();
  139. this.m_pPOP3IPAddresses = new LumiSoft.UI.Controls.WComboBox();
  140. this.wLabel7 = new LumiSoft.UI.Controls.WLabel();
  141. this.m_pPOP3_Threads = new LumiSoft.UI.Controls.WSpinEdit();
  142. this.m_pSMTP_Threads = new LumiSoft.UI.Controls.WSpinEdit();
  143. this.m_pPOP3 = new LumiSoft.UI.Controls.WSpinEdit();
  144. this.m_pSMTP = new LumiSoft.UI.Controls.WSpinEdit();
  145. this.m_pSMTPIPAddresses = new LumiSoft.UI.Controls.WComboBox();
  146. this.mt_pop3max = new LumiSoft.UI.Controls.WLabel();
  147. this.mt_smtpmax = new LumiSoft.UI.Controls.WLabel();
  148. this.mt_pop3 = new LumiSoft.UI.Controls.WLabel();
  149. this.mt_smtp = new LumiSoft.UI.Controls.WLabel();
  150. this.mt_ipaddress = new LumiSoft.UI.Controls.WLabel();
  151. this.m_pSave = new LumiSoft.UI.Controls.WButton();
  152. this.groupBox3 = new System.Windows.Forms.GroupBox();
  153. this.wLabel3 = new LumiSoft.UI.Controls.WLabel();
  154. this.wLabel2 = new LumiSoft.UI.Controls.WLabel();
  155. this.wLabel1 = new LumiSoft.UI.Controls.WLabel();
  156. this.m_pMaxSMTPbadCmds = new LumiSoft.UI.Controls.WSpinEdit();
  157. this.m_pPostmasterPwd = new LumiSoft.UI.Controls.WEditBox();
  158. this.m_pPostmasterUName = new LumiSoft.UI.Controls.WEditBox();
  159. this.m_pMaxRecipients = new LumiSoft.UI.Controls.WSpinEdit();
  160. this.mt_maxrecipients = new LumiSoft.UI.Controls.WLabel();
  161. this.wLabel6 = new LumiSoft.UI.Controls.WLabel();
  162. this.wLabel4 = new LumiSoft.UI.Controls.WLabel();
  163. this.m_pMessageSize = new LumiSoft.UI.Controls.WSpinEdit();
  164. this.m_pCommandIdle = new LumiSoft.UI.Controls.WSpinEdit();
  165. this.m_pSessionIdle = new LumiSoft.UI.Controls.WSpinEdit();
  166. this.mt_msgsize = new LumiSoft.UI.Controls.WLabel();
  167. this.mt_commandidle = new LumiSoft.UI.Controls.WLabel();
  168. this.mt_sessionidle = new LumiSoft.UI.Controls.WLabel();
  169. this.wLabel5 = new LumiSoft.UI.Controls.WLabel();
  170. this.groupBox4 = new System.Windows.Forms.GroupBox();
  171. this.wLabel10 = new LumiSoft.UI.Controls.WLabel();
  172. this.wLabel9 = new LumiSoft.UI.Controls.WLabel();
  173. this.wLabel11 = new LumiSoft.UI.Controls.WLabel();
  174. this.wLabel8 = new LumiSoft.UI.Controls.WLabel();
  175. this.m_pPOP3SessionIdle = new LumiSoft.UI.Controls.WSpinEdit();
  176. this.m_pPOP3CommandIdle = new LumiSoft.UI.Controls.WSpinEdit();
  177. this.wLabel13 = new LumiSoft.UI.Controls.WLabel();
  178. this.m_pMaxPOP3badCmds = new LumiSoft.UI.Controls.WSpinEdit();
  179. this.groupBox1.SuspendLayout();
  180. ((System.ComponentModel.ISupportInitialize)(this.m_pMailStorePath)).BeginInit();
  181. ((System.ComponentModel.ISupportInitialize)(this.m_pTest)).BeginInit();
  182. ((System.ComponentModel.ISupportInitialize)(this.m_pConStrBrowse)).BeginInit();
  183. ((System.ComponentModel.ISupportInitialize)(this.m_pConStr)).BeginInit();
  184. ((System.ComponentModel.ISupportInitialize)(this.m_pDbType)).BeginInit();
  185. this.groupBox2.SuspendLayout();
  186. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3IPAddresses)).BeginInit();
  187. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3_Threads)).BeginInit();
  188. ((System.ComponentModel.ISupportInitialize)(this.m_pSMTP_Threads)).BeginInit();
  189. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3)).BeginInit();
  190. ((System.ComponentModel.ISupportInitialize)(this.m_pSMTP)).BeginInit();
  191. ((System.ComponentModel.ISupportInitialize)(this.m_pSMTPIPAddresses)).BeginInit();
  192. ((System.ComponentModel.ISupportInitialize)(this.m_pSave)).BeginInit();
  193. this.groupBox3.SuspendLayout();
  194. ((System.ComponentModel.ISupportInitialize)(this.m_pMaxSMTPbadCmds)).BeginInit();
  195. ((System.ComponentModel.ISupportInitialize)(this.m_pPostmasterPwd)).BeginInit();
  196. ((System.ComponentModel.ISupportInitialize)(this.m_pPostmasterUName)).BeginInit();
  197. ((System.ComponentModel.ISupportInitialize)(this.m_pMaxRecipients)).BeginInit();
  198. ((System.ComponentModel.ISupportInitialize)(this.m_pMessageSize)).BeginInit();
  199. ((System.ComponentModel.ISupportInitialize)(this.m_pCommandIdle)).BeginInit();
  200. ((System.ComponentModel.ISupportInitialize)(this.m_pSessionIdle)).BeginInit();
  201. this.groupBox4.SuspendLayout();
  202. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3SessionIdle)).BeginInit();
  203. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3CommandIdle)).BeginInit();
  204. ((System.ComponentModel.ISupportInitialize)(this.m_pMaxPOP3badCmds)).BeginInit();
  205. this.SuspendLayout();
  206. // 
  207. // groupBox1
  208. // 
  209. this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
  210. this.wLabel12,
  211. this.m_pMailStorePath,
  212. this.m_pTest,
  213. this.m_pConStrBrowse,
  214. this.m_pConStr,
  215. this.m_pDbType});
  216. this.groupBox1.Location = new System.Drawing.Point(16, 8);
  217. this.groupBox1.Name = "groupBox1";
  218. this.groupBox1.Size = new System.Drawing.Size(496, 72);
  219. this.groupBox1.TabIndex = 11;
  220. this.groupBox1.TabStop = false;
  221. this.groupBox1.Text = "Storage";
  222. // 
  223. // wLabel12
  224. // 
  225. this.wLabel12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  226. this.wLabel12.Location = new System.Drawing.Point(8, 40);
  227. this.wLabel12.Name = "wLabel12";
  228. this.wLabel12.Size = new System.Drawing.Size(88, 24);
  229. this.wLabel12.TabIndex = 22;
  230. this.wLabel12.Text = "MailStore Path";
  231. this.wLabel12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  232. this.wLabel12.UseStaticViewStyle = false;
  233. // 
  234. // m_pMailStorePath
  235. // 
  236. this.m_pMailStorePath.DecimalPlaces = 2;
  237. this.m_pMailStorePath.DecMaxValue = new System.Decimal(new int[] {
  238.  999999999,
  239.  0,
  240.  0,
  241.  0});
  242. this.m_pMailStorePath.DecMinValue = new System.Decimal(new int[] {
  243.  999999999,
  244.  0,
  245.  0,
  246.  -2147483648});
  247. this.m_pMailStorePath.Lines = new string[0];
  248. this.m_pMailStorePath.Location = new System.Drawing.Point(104, 40);
  249. this.m_pMailStorePath.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  250. this.m_pMailStorePath.MaxLength = 32767;
  251. this.m_pMailStorePath.Multiline = false;
  252. this.m_pMailStorePath.Name = "m_pMailStorePath";
  253. this.m_pMailStorePath.PasswordChar = '';
  254. this.m_pMailStorePath.ReadOnly = false;
  255. this.m_pMailStorePath.ScrollBars = System.Windows.Forms.ScrollBars.None;
  256. this.m_pMailStorePath.Size = new System.Drawing.Size(328, 20);
  257. this.m_pMailStorePath.TabIndex = 21;
  258. this.m_pMailStorePath.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  259. this.m_pMailStorePath.UseStaticViewStyle = false;
  260. this.m_pMailStorePath.ViewStyle.EditReadOnlyColor = System.Drawing.Color.White;
  261. // 
  262. // m_pTest
  263. // 
  264. this.m_pTest.Enabled = false;
  265. this.m_pTest.Location = new System.Drawing.Point(440, 16);
  266. this.m_pTest.Name = "m_pTest";
  267. this.m_pTest.Size = new System.Drawing.Size(40, 20);
  268. this.m_pTest.TabIndex = 20;
  269. this.m_pTest.Text = "Test";
  270. this.m_pTest.UseStaticViewStyle = true;
  271. this.m_pTest.ButtonPressed += new LumiSoft.UI.Controls.ButtonPressedEventHandler(this.m_pTest_ButtonPressed);
  272. // 
  273. // m_pConStrBrowse
  274. // 
  275. this.m_pConStrBrowse.Enabled = false;
  276. this.m_pConStrBrowse.Location = new System.Drawing.Point(448, 40);
  277. this.m_pConStrBrowse.Name = "m_pConStrBrowse";
  278. this.m_pConStrBrowse.Size = new System.Drawing.Size(24, 20);
  279. this.m_pConStrBrowse.TabIndex = 19;
  280. this.m_pConStrBrowse.Text = "...";
  281. this.m_pConStrBrowse.UseStaticViewStyle = true;
  282. this.m_pConStrBrowse.ButtonPressed += new LumiSoft.UI.Controls.ButtonPressedEventHandler(this.m_pConStrBrowse_Click);
  283. // 
  284. // m_pConStr
  285. // 
  286. this.m_pConStr.DecimalPlaces = 2;
  287. this.m_pConStr.DecMaxValue = new System.Decimal(new int[] {
  288.   999999999,
  289.   0,
  290.   0,
  291.   0});
  292. this.m_pConStr.DecMinValue = new System.Decimal(new int[] {
  293.   999999999,
  294.   0,
  295.   0,
  296.   -2147483648});
  297. this.m_pConStr.Lines = new string[0];
  298. this.m_pConStr.Location = new System.Drawing.Point(104, 16);
  299. this.m_pConStr.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  300. this.m_pConStr.MaxLength = 32767;
  301. this.m_pConStr.Multiline = false;
  302. this.m_pConStr.Name = "m_pConStr";
  303. this.m_pConStr.PasswordChar = '';
  304. this.m_pConStr.ReadOnly = false;
  305. this.m_pConStr.ScrollBars = System.Windows.Forms.ScrollBars.None;
  306. this.m_pConStr.Size = new System.Drawing.Size(328, 20);
  307. this.m_pConStr.TabIndex = 17;
  308. this.m_pConStr.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  309. this.m_pConStr.UseStaticViewStyle = true;
  310. // 
  311. // m_pDbType
  312. // 
  313. this.m_pDbType.AcceptsPlussKey = true;
  314. this.m_pDbType.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(224)), ((System.Byte)(220)));
  315. this.m_pDbType.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("m_pDbType.ButtonIcon")));
  316. this.m_pDbType.ButtonWidth = 18;
  317. this.m_pDbType.DropDownWidth = 88;
  318. this.m_pDbType.Location = new System.Drawing.Point(8, 16);
  319. this.m_pDbType.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  320. this.m_pDbType.MaxLength = 32767;
  321. this.m_pDbType.Name = "m_pDbType";
  322. this.m_pDbType.ReadOnly = true;
  323. this.m_pDbType.SelectedIndex = -1;
  324. this.m_pDbType.Size = new System.Drawing.Size(88, 20);
  325. this.m_pDbType.TabIndex = 17;
  326. this.m_pDbType.UseStaticViewStyle = true;
  327. this.m_pDbType.VisibleItems = 10;
  328. this.m_pDbType.SelectedIndexChanged += new System.EventHandler(this.m_pDbType_SelectedIndexChanged);
  329. // 
  330. // groupBox2
  331. // 
  332. this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
  333. this.m_pPOP3IPAddresses,
  334. this.wLabel7,
  335. this.m_pPOP3_Threads,
  336. this.m_pSMTP_Threads,
  337. this.m_pPOP3,
  338. this.m_pSMTP,
  339. this.m_pSMTPIPAddresses,
  340. this.mt_pop3max,
  341. this.mt_smtpmax,
  342. this.mt_pop3,
  343. this.mt_smtp,
  344. this.mt_ipaddress});
  345. this.groupBox2.Location = new System.Drawing.Point(16, 88);
  346. this.groupBox2.Name = "groupBox2";
  347. this.groupBox2.Size = new System.Drawing.Size(600, 96);
  348. this.groupBox2.TabIndex = 12;
  349. this.groupBox2.TabStop = false;
  350. this.groupBox2.Text = "TCP/IP";
  351. // 
  352. // m_pPOP3IPAddresses
  353. // 
  354. this.m_pPOP3IPAddresses.AcceptsPlussKey = true;
  355. this.m_pPOP3IPAddresses.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(224)), ((System.Byte)(220)));
  356. this.m_pPOP3IPAddresses.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("m_pPOP3IPAddresses.ButtonIcon")));
  357. this.m_pPOP3IPAddresses.ButtonWidth = 18;
  358. this.m_pPOP3IPAddresses.DropDownWidth = 128;
  359. this.m_pPOP3IPAddresses.Location = new System.Drawing.Point(456, 16);
  360. this.m_pPOP3IPAddresses.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  361. this.m_pPOP3IPAddresses.MaxLength = 32767;
  362. this.m_pPOP3IPAddresses.Name = "m_pPOP3IPAddresses";
  363. this.m_pPOP3IPAddresses.ReadOnly = true;
  364. this.m_pPOP3IPAddresses.SelectedIndex = -1;
  365. this.m_pPOP3IPAddresses.Size = new System.Drawing.Size(128, 20);
  366. this.m_pPOP3IPAddresses.TabIndex = 21;
  367. this.m_pPOP3IPAddresses.UseStaticViewStyle = true;
  368. this.m_pPOP3IPAddresses.VisibleItems = 5;
  369. // 
  370. // wLabel7
  371. // 
  372. this.wLabel7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  373. this.wLabel7.Location = new System.Drawing.Point(328, 16);
  374. this.wLabel7.Name = "wLabel7";
  375. this.wLabel7.Size = new System.Drawing.Size(126, 24);
  376. this.wLabel7.TabIndex = 20;
  377. this.wLabel7.Text = "POP3 IP Address";
  378. this.wLabel7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  379. this.wLabel7.UseStaticViewStyle = true;
  380. // 
  381. // m_pPOP3_Threads
  382. // 
  383. this.m_pPOP3_Threads.BackColor = System.Drawing.Color.White;
  384. this.m_pPOP3_Threads.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  385. this.m_pPOP3_Threads.DecimalPlaces = 0;
  386. this.m_pPOP3_Threads.DecMaxValue = new System.Decimal(new int[] {
  387. 999,
  388. 0,
  389. 0,
  390. 0});
  391. this.m_pPOP3_Threads.DecMinValue = new System.Decimal(new int[] {
  392. 1,
  393. 0,
  394. 0,
  395. 0});
  396. this.m_pPOP3_Threads.DecValue = new System.Decimal(new int[] {
  397.  10,
  398.  0,
  399.  0,
  400.  0});
  401. this.m_pPOP3_Threads.Location = new System.Drawing.Point(520, 64);
  402. this.m_pPOP3_Threads.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  403. this.m_pPOP3_Threads.MaxLength = 32767;
  404. this.m_pPOP3_Threads.Name = "m_pPOP3_Threads";
  405. this.m_pPOP3_Threads.ReadOnly = false;
  406. this.m_pPOP3_Threads.Size = new System.Drawing.Size(64, 20);
  407. this.m_pPOP3_Threads.TabIndex = 19;
  408. this.m_pPOP3_Threads.Text = "10";
  409. this.m_pPOP3_Threads.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  410. this.m_pPOP3_Threads.UseStaticViewStyle = true;
  411. // 
  412. // m_pSMTP_Threads
  413. // 
  414. this.m_pSMTP_Threads.BackColor = System.Drawing.Color.White;
  415. this.m_pSMTP_Threads.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  416. this.m_pSMTP_Threads.DecimalPlaces = 0;
  417. this.m_pSMTP_Threads.DecMaxValue = new System.Decimal(new int[] {
  418. 999,
  419. 0,
  420. 0,
  421. 0});
  422. this.m_pSMTP_Threads.DecMinValue = new System.Decimal(new int[] {
  423. 1,
  424. 0,
  425. 0,
  426. 0});
  427. this.m_pSMTP_Threads.DecValue = new System.Decimal(new int[] {
  428.  10,
  429.  0,
  430.  0,
  431.  0});
  432. this.m_pSMTP_Threads.Location = new System.Drawing.Point(208, 64);
  433. this.m_pSMTP_Threads.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  434. this.m_pSMTP_Threads.MaxLength = 32767;
  435. this.m_pSMTP_Threads.Name = "m_pSMTP_Threads";
  436. this.m_pSMTP_Threads.ReadOnly = false;
  437. this.m_pSMTP_Threads.Size = new System.Drawing.Size(64, 20);
  438. this.m_pSMTP_Threads.TabIndex = 18;
  439. this.m_pSMTP_Threads.Text = "10";
  440. this.m_pSMTP_Threads.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  441. this.m_pSMTP_Threads.UseStaticViewStyle = true;
  442. // 
  443. // m_pPOP3
  444. // 
  445. this.m_pPOP3.BackColor = System.Drawing.Color.White;
  446. this.m_pPOP3.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  447. this.m_pPOP3.DecimalPlaces = 0;
  448. this.m_pPOP3.DecMaxValue = new System.Decimal(new int[] {
  449. 999999999,
  450. 0,
  451. 0,
  452. 0});
  453. this.m_pPOP3.DecMinValue = new System.Decimal(new int[] {
  454. 0,
  455. 0,
  456. 0,
  457. 0});
  458. this.m_pPOP3.DecValue = new System.Decimal(new int[] {
  459.  110,
  460.  0,
  461.  0,
  462.  0});
  463. this.m_pPOP3.Location = new System.Drawing.Point(520, 40);
  464. this.m_pPOP3.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  465. this.m_pPOP3.MaxLength = 32767;
  466. this.m_pPOP3.Name = "m_pPOP3";
  467. this.m_pPOP3.ReadOnly = false;
  468. this.m_pPOP3.Size = new System.Drawing.Size(64, 20);
  469. this.m_pPOP3.TabIndex = 17;
  470. this.m_pPOP3.Text = "110";
  471. this.m_pPOP3.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  472. this.m_pPOP3.UseStaticViewStyle = true;
  473. // 
  474. // m_pSMTP
  475. // 
  476. this.m_pSMTP.BackColor = System.Drawing.Color.White;
  477. this.m_pSMTP.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  478. this.m_pSMTP.DecimalPlaces = 0;
  479. this.m_pSMTP.DecMaxValue = new System.Decimal(new int[] {
  480. 999999999,
  481. 0,
  482. 0,
  483. 0});
  484. this.m_pSMTP.DecMinValue = new System.Decimal(new int[] {
  485. 0,
  486. 0,
  487. 0,
  488. 0});
  489. this.m_pSMTP.DecValue = new System.Decimal(new int[] {
  490.  25,
  491.  0,
  492.  0,
  493.  0});
  494. this.m_pSMTP.Location = new System.Drawing.Point(208, 40);
  495. this.m_pSMTP.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  496. this.m_pSMTP.MaxLength = 32767;
  497. this.m_pSMTP.Name = "m_pSMTP";
  498. this.m_pSMTP.ReadOnly = false;
  499. this.m_pSMTP.Size = new System.Drawing.Size(64, 20);
  500. this.m_pSMTP.TabIndex = 16;
  501. this.m_pSMTP.Text = "25";
  502. this.m_pSMTP.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  503. this.m_pSMTP.UseStaticViewStyle = true;
  504. // 
  505. // m_pSMTPIPAddresses
  506. // 
  507. this.m_pSMTPIPAddresses.AcceptsPlussKey = true;
  508. this.m_pSMTPIPAddresses.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(224)), ((System.Byte)(220)));
  509. this.m_pSMTPIPAddresses.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("m_pSMTPIPAddresses.ButtonIcon")));
  510. this.m_pSMTPIPAddresses.ButtonWidth = 18;
  511. this.m_pSMTPIPAddresses.DropDownWidth = 128;
  512. this.m_pSMTPIPAddresses.Location = new System.Drawing.Point(144, 16);
  513. this.m_pSMTPIPAddresses.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  514. this.m_pSMTPIPAddresses.MaxLength = 32767;
  515. this.m_pSMTPIPAddresses.Name = "m_pSMTPIPAddresses";
  516. this.m_pSMTPIPAddresses.ReadOnly = true;
  517. this.m_pSMTPIPAddresses.SelectedIndex = -1;
  518. this.m_pSMTPIPAddresses.Size = new System.Drawing.Size(128, 20);
  519. this.m_pSMTPIPAddresses.TabIndex = 15;
  520. this.m_pSMTPIPAddresses.UseStaticViewStyle = true;
  521. this.m_pSMTPIPAddresses.VisibleItems = 5;
  522. // 
  523. // mt_pop3max
  524. // 
  525. this.mt_pop3max.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  526. this.mt_pop3max.Location = new System.Drawing.Point(328, 64);
  527. this.mt_pop3max.Name = "mt_pop3max";
  528. this.mt_pop3max.Size = new System.Drawing.Size(190, 24);
  529. this.mt_pop3max.TabIndex = 14;
  530. this.mt_pop3max.Text = "Maximum POP3 Threads";
  531. this.mt_pop3max.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  532. this.mt_pop3max.UseStaticViewStyle = true;
  533. // 
  534. // mt_smtpmax
  535. // 
  536. this.mt_smtpmax.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  537. this.mt_smtpmax.Location = new System.Drawing.Point(16, 64);
  538. this.mt_smtpmax.Name = "mt_smtpmax";
  539. this.mt_smtpmax.Size = new System.Drawing.Size(190, 24);
  540. this.mt_smtpmax.TabIndex = 13;
  541. this.mt_smtpmax.Text = "Maximum SMTP Threads";
  542. this.mt_smtpmax.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  543. this.mt_smtpmax.UseStaticViewStyle = true;
  544. // 
  545. // mt_pop3
  546. // 
  547. this.mt_pop3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  548. this.mt_pop3.Location = new System.Drawing.Point(328, 40);
  549. this.mt_pop3.Name = "mt_pop3";
  550. this.mt_pop3.Size = new System.Drawing.Size(190, 24);
  551. this.mt_pop3.TabIndex = 12;
  552. this.mt_pop3.Text = "POP3 Port on IP Address Above";
  553. this.mt_pop3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  554. this.mt_pop3.UseStaticViewStyle = true;
  555. // 
  556. // mt_smtp
  557. // 
  558. this.mt_smtp.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  559. this.mt_smtp.Location = new System.Drawing.Point(16, 40);
  560. this.mt_smtp.Name = "mt_smtp";
  561. this.mt_smtp.Size = new System.Drawing.Size(190, 24);
  562. this.mt_smtp.TabIndex = 11;
  563. this.mt_smtp.Text = "SMTP Port on IP Address Above";
  564. this.mt_smtp.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  565. this.mt_smtp.UseStaticViewStyle = true;
  566. // 
  567. // mt_ipaddress
  568. // 
  569. this.mt_ipaddress.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  570. this.mt_ipaddress.Location = new System.Drawing.Point(16, 16);
  571. this.mt_ipaddress.Name = "mt_ipaddress";
  572. this.mt_ipaddress.Size = new System.Drawing.Size(126, 24);
  573. this.mt_ipaddress.TabIndex = 10;
  574. this.mt_ipaddress.Text = "SMTP IP Address";
  575. this.mt_ipaddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  576. this.mt_ipaddress.UseStaticViewStyle = true;
  577. // 
  578. // m_pSave
  579. // 
  580. this.m_pSave.Location = new System.Drawing.Point(536, 16);
  581. this.m_pSave.Name = "m_pSave";
  582. this.m_pSave.Size = new System.Drawing.Size(64, 24);
  583. this.m_pSave.TabIndex = 14;
  584. this.m_pSave.Text = "Save";
  585. this.m_pSave.UseStaticViewStyle = true;
  586. this.m_pSave.ButtonPressed += new LumiSoft.UI.Controls.ButtonPressedEventHandler(this.m_pSave_Click);
  587. // 
  588. // groupBox3
  589. // 
  590. this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
  591. this.wLabel3,
  592. this.wLabel2,
  593. this.wLabel1,
  594. this.m_pMaxSMTPbadCmds,
  595. this.m_pPostmasterPwd,
  596. this.m_pPostmasterUName,
  597. this.m_pMaxRecipients,
  598. this.mt_maxrecipients,
  599. this.wLabel6,
  600. this.wLabel4,
  601. this.m_pMessageSize,
  602. this.m_pCommandIdle,
  603. this.m_pSessionIdle,
  604. this.mt_msgsize,
  605. this.mt_commandidle,
  606. this.mt_sessionidle,
  607. this.wLabel5});
  608. this.groupBox3.Location = new System.Drawing.Point(16, 192);
  609. this.groupBox3.Name = "groupBox3";
  610. this.groupBox3.Size = new System.Drawing.Size(600, 120);
  611. this.groupBox3.TabIndex = 15;
  612. this.groupBox3.TabStop = false;
  613. this.groupBox3.Text = "SMTP";
  614. // 
  615. // wLabel3
  616. // 
  617. this.wLabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  618. this.wLabel3.Location = new System.Drawing.Point(16, 88);
  619. this.wLabel3.Name = "wLabel3";
  620. this.wLabel3.Size = new System.Drawing.Size(150, 24);
  621. this.wLabel3.TabIndex = 25;
  622. this.wLabel3.Text = "Postmaster Password";
  623. this.wLabel3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  624. this.wLabel3.UseStaticViewStyle = true;
  625. // 
  626. // wLabel2
  627. // 
  628. this.wLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  629. this.wLabel2.Location = new System.Drawing.Point(16, 64);
  630. this.wLabel2.Name = "wLabel2";
  631. this.wLabel2.Size = new System.Drawing.Size(150, 24);
  632. this.wLabel2.TabIndex = 24;
  633. this.wLabel2.Text = "Postmaster UserName";
  634. this.wLabel2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  635. this.wLabel2.UseStaticViewStyle = true;
  636. // 
  637. // wLabel1
  638. // 
  639. this.wLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  640. this.wLabel1.Location = new System.Drawing.Point(296, 64);
  641. this.wLabel1.Name = "wLabel1";
  642. this.wLabel1.Size = new System.Drawing.Size(158, 24);
  643. this.wLabel1.TabIndex = 23;
  644. this.wLabel1.Text = "Max. bad commands";
  645. this.wLabel1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  646. this.wLabel1.UseStaticViewStyle = true;
  647. // 
  648. // m_pMaxSMTPbadCmds
  649. // 
  650. this.m_pMaxSMTPbadCmds.BackColor = System.Drawing.Color.White;
  651. this.m_pMaxSMTPbadCmds.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  652. this.m_pMaxSMTPbadCmds.DecimalPlaces = 0;
  653. this.m_pMaxSMTPbadCmds.DecMaxValue = new System.Decimal(new int[] {
  654.   999999999,
  655.   0,
  656.   0,
  657.   0});
  658. this.m_pMaxSMTPbadCmds.DecMinValue = new System.Decimal(new int[] {
  659.   1,
  660.   0,
  661.   0,
  662.   0});
  663. this.m_pMaxSMTPbadCmds.DecValue = new System.Decimal(new int[] {
  664.    8,
  665.    0,
  666.    0,
  667.    0});
  668. this.m_pMaxSMTPbadCmds.Location = new System.Drawing.Point(456, 64);
  669. this.m_pMaxSMTPbadCmds.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  670. this.m_pMaxSMTPbadCmds.MaxLength = 32767;
  671. this.m_pMaxSMTPbadCmds.Name = "m_pMaxSMTPbadCmds";
  672. this.m_pMaxSMTPbadCmds.ReadOnly = false;
  673. this.m_pMaxSMTPbadCmds.Size = new System.Drawing.Size(64, 20);
  674. this.m_pMaxSMTPbadCmds.TabIndex = 22;
  675. this.m_pMaxSMTPbadCmds.Text = "8";
  676. this.m_pMaxSMTPbadCmds.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  677. this.m_pMaxSMTPbadCmds.UseStaticViewStyle = true;
  678. // 
  679. // m_pPostmasterPwd
  680. // 
  681. this.m_pPostmasterPwd.DecimalPlaces = 2;
  682. this.m_pPostmasterPwd.DecMaxValue = new System.Decimal(new int[] {
  683.  999999999,
  684.  0,
  685.  0,
  686.  0});
  687. this.m_pPostmasterPwd.DecMinValue = new System.Decimal(new int[] {
  688.  999999999,
  689.  0,
  690.  0,
  691.  -2147483648});
  692. this.m_pPostmasterPwd.Lines = new string[0];
  693. this.m_pPostmasterPwd.Location = new System.Drawing.Point(168, 88);
  694. this.m_pPostmasterPwd.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  695. this.m_pPostmasterPwd.MaxLength = 32767;
  696. this.m_pPostmasterPwd.Multiline = false;
  697. this.m_pPostmasterPwd.Name = "m_pPostmasterPwd";
  698. this.m_pPostmasterPwd.PasswordChar = '';
  699. this.m_pPostmasterPwd.ReadOnly = false;
  700. this.m_pPostmasterPwd.ScrollBars = System.Windows.Forms.ScrollBars.None;
  701. this.m_pPostmasterPwd.Size = new System.Drawing.Size(104, 20);
  702. this.m_pPostmasterPwd.TabIndex = 21;
  703. this.m_pPostmasterPwd.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  704. this.m_pPostmasterPwd.UseStaticViewStyle = false;
  705. this.m_pPostmasterPwd.ViewStyle.EditReadOnlyColor = System.Drawing.Color.White;
  706. // 
  707. // m_pPostmasterUName
  708. // 
  709. this.m_pPostmasterUName.DecimalPlaces = 2;
  710. this.m_pPostmasterUName.DecMaxValue = new System.Decimal(new int[] {
  711.    999999999,
  712.    0,
  713.    0,
  714.    0});
  715. this.m_pPostmasterUName.DecMinValue = new System.Decimal(new int[] {
  716.    999999999,
  717.    0,
  718.    0,
  719.    -2147483648});
  720. this.m_pPostmasterUName.Lines = new string[0];
  721. this.m_pPostmasterUName.Location = new System.Drawing.Point(168, 64);
  722. this.m_pPostmasterUName.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text;
  723. this.m_pPostmasterUName.MaxLength = 32767;
  724. this.m_pPostmasterUName.Multiline = false;
  725. this.m_pPostmasterUName.Name = "m_pPostmasterUName";
  726. this.m_pPostmasterUName.PasswordChar = '';
  727. this.m_pPostmasterUName.ReadOnly = false;
  728. this.m_pPostmasterUName.ScrollBars = System.Windows.Forms.ScrollBars.None;
  729. this.m_pPostmasterUName.Size = new System.Drawing.Size(104, 20);
  730. this.m_pPostmasterUName.TabIndex = 20;
  731. this.m_pPostmasterUName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  732. this.m_pPostmasterUName.UseStaticViewStyle = false;
  733. this.m_pPostmasterUName.ViewStyle.EditReadOnlyColor = System.Drawing.Color.White;
  734. // 
  735. // m_pMaxRecipients
  736. // 
  737. this.m_pMaxRecipients.BackColor = System.Drawing.Color.White;
  738. this.m_pMaxRecipients.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  739. this.m_pMaxRecipients.DecimalPlaces = 0;
  740. this.m_pMaxRecipients.DecMaxValue = new System.Decimal(new int[] {
  741.  999999999,
  742.  0,
  743.  0,
  744.  0});
  745. this.m_pMaxRecipients.DecMinValue = new System.Decimal(new int[] {
  746.  1,
  747.  0,
  748.  0,
  749.  0});
  750. this.m_pMaxRecipients.DecValue = new System.Decimal(new int[] {
  751.   100,
  752.   0,
  753.   0,
  754.   0});
  755. this.m_pMaxRecipients.Location = new System.Drawing.Point(456, 40);
  756. this.m_pMaxRecipients.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  757. this.m_pMaxRecipients.MaxLength = 32767;
  758. this.m_pMaxRecipients.Name = "m_pMaxRecipients";
  759. this.m_pMaxRecipients.ReadOnly = false;
  760. this.m_pMaxRecipients.Size = new System.Drawing.Size(64, 20);
  761. this.m_pMaxRecipients.TabIndex = 19;
  762. this.m_pMaxRecipients.Text = "100";
  763. this.m_pMaxRecipients.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  764. this.m_pMaxRecipients.UseStaticViewStyle = true;
  765. // 
  766. // mt_maxrecipients
  767. // 
  768. this.mt_maxrecipients.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  769. this.mt_maxrecipients.Location = new System.Drawing.Point(296, 40);
  770. this.mt_maxrecipients.Name = "mt_maxrecipients";
  771. this.mt_maxrecipients.Size = new System.Drawing.Size(158, 24);
  772. this.mt_maxrecipients.TabIndex = 18;
  773. this.mt_maxrecipients.Text = "Max. Recipients per Message";
  774. this.mt_maxrecipients.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  775. this.mt_maxrecipients.UseStaticViewStyle = true;
  776. // 
  777. // wLabel6
  778. // 
  779. this.wLabel6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  780. this.wLabel6.Location = new System.Drawing.Point(520, 16);
  781. this.wLabel6.Name = "wLabel6";
  782. this.wLabel6.Size = new System.Drawing.Size(48, 24);
  783. this.wLabel6.TabIndex = 17;
  784. this.wLabel6.Text = "MB";
  785. this.wLabel6.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  786. this.wLabel6.UseStaticViewStyle = true;
  787. // 
  788. // wLabel4
  789. // 
  790. this.wLabel4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  791. this.wLabel4.Location = new System.Drawing.Point(232, 16);
  792. this.wLabel4.Name = "wLabel4";
  793. this.wLabel4.Size = new System.Drawing.Size(48, 24);
  794. this.wLabel4.TabIndex = 6;
  795. this.wLabel4.Text = "sec.";
  796. this.wLabel4.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  797. this.wLabel4.UseStaticViewStyle = true;
  798. // 
  799. // m_pMessageSize
  800. // 
  801. this.m_pMessageSize.BackColor = System.Drawing.Color.White;
  802. this.m_pMessageSize.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  803. this.m_pMessageSize.DecimalPlaces = 0;
  804. this.m_pMessageSize.DecMaxValue = new System.Decimal(new int[] {
  805.    999999999,
  806.    0,
  807.    0,
  808.    0});
  809. this.m_pMessageSize.DecMinValue = new System.Decimal(new int[] {
  810.    1,
  811.    0,
  812.    0,
  813.    0});
  814. this.m_pMessageSize.DecValue = new System.Decimal(new int[] {
  815. 10,
  816. 0,
  817. 0,
  818. 0});
  819. this.m_pMessageSize.Location = new System.Drawing.Point(456, 16);
  820. this.m_pMessageSize.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  821. this.m_pMessageSize.MaxLength = 32767;
  822. this.m_pMessageSize.Name = "m_pMessageSize";
  823. this.m_pMessageSize.ReadOnly = false;
  824. this.m_pMessageSize.Size = new System.Drawing.Size(64, 20);
  825. this.m_pMessageSize.TabIndex = 5;
  826. this.m_pMessageSize.Text = "10";
  827. this.m_pMessageSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  828. this.m_pMessageSize.UseStaticViewStyle = true;
  829. // 
  830. // m_pCommandIdle
  831. // 
  832. this.m_pCommandIdle.BackColor = System.Drawing.Color.White;
  833. this.m_pCommandIdle.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  834. this.m_pCommandIdle.DecimalPlaces = 0;
  835. this.m_pCommandIdle.DecMaxValue = new System.Decimal(new int[] {
  836.    999999999,
  837.    0,
  838.    0,
  839.    0});
  840. this.m_pCommandIdle.DecMinValue = new System.Decimal(new int[] {
  841.    10,
  842.    0,
  843.    0,
  844.    0});
  845. this.m_pCommandIdle.DecValue = new System.Decimal(new int[] {
  846. 60,
  847. 0,
  848. 0,
  849. 0});
  850. this.m_pCommandIdle.Location = new System.Drawing.Point(168, 40);
  851. this.m_pCommandIdle.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  852. this.m_pCommandIdle.MaxLength = 32767;
  853. this.m_pCommandIdle.Name = "m_pCommandIdle";
  854. this.m_pCommandIdle.ReadOnly = false;
  855. this.m_pCommandIdle.Size = new System.Drawing.Size(64, 20);
  856. this.m_pCommandIdle.TabIndex = 4;
  857. this.m_pCommandIdle.Text = "60";
  858. this.m_pCommandIdle.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  859. this.m_pCommandIdle.UseStaticViewStyle = true;
  860. // 
  861. // m_pSessionIdle
  862. // 
  863. this.m_pSessionIdle.BackColor = System.Drawing.Color.White;
  864. this.m_pSessionIdle.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  865. this.m_pSessionIdle.DecimalPlaces = 0;
  866. this.m_pSessionIdle.DecMaxValue = new System.Decimal(new int[] {
  867.    999999999,
  868.    0,
  869.    0,
  870.    0});
  871. this.m_pSessionIdle.DecMinValue = new System.Decimal(new int[] {
  872.    20,
  873.    0,
  874.    0,
  875.    0});
  876. this.m_pSessionIdle.DecValue = new System.Decimal(new int[] {
  877. 60,
  878. 0,
  879. 0,
  880. 0});
  881. this.m_pSessionIdle.Location = new System.Drawing.Point(168, 16);
  882. this.m_pSessionIdle.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  883. this.m_pSessionIdle.MaxLength = 32767;
  884. this.m_pSessionIdle.Name = "m_pSessionIdle";
  885. this.m_pSessionIdle.ReadOnly = false;
  886. this.m_pSessionIdle.Size = new System.Drawing.Size(64, 20);
  887. this.m_pSessionIdle.TabIndex = 3;
  888. this.m_pSessionIdle.Text = "60";
  889. this.m_pSessionIdle.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  890. this.m_pSessionIdle.UseStaticViewStyle = true;
  891. // 
  892. // mt_msgsize
  893. // 
  894. this.mt_msgsize.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  895. this.mt_msgsize.Location = new System.Drawing.Point(296, 16);
  896. this.mt_msgsize.Name = "mt_msgsize";
  897. this.mt_msgsize.Size = new System.Drawing.Size(158, 24);
  898. this.mt_msgsize.TabIndex = 2;
  899. this.mt_msgsize.Text = "Max. Message Size";
  900. this.mt_msgsize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  901. this.mt_msgsize.UseStaticViewStyle = true;
  902. // 
  903. // mt_commandidle
  904. // 
  905. this.mt_commandidle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  906. this.mt_commandidle.Location = new System.Drawing.Point(16, 40);
  907. this.mt_commandidle.Name = "mt_commandidle";
  908. this.mt_commandidle.Size = new System.Drawing.Size(150, 24);
  909. this.mt_commandidle.TabIndex = 1;
  910. this.mt_commandidle.Text = "Command Idle Timeout";
  911. this.mt_commandidle.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  912. this.mt_commandidle.UseStaticViewStyle = true;
  913. // 
  914. // mt_sessionidle
  915. // 
  916. this.mt_sessionidle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  917. this.mt_sessionidle.Location = new System.Drawing.Point(16, 16);
  918. this.mt_sessionidle.Name = "mt_sessionidle";
  919. this.mt_sessionidle.Size = new System.Drawing.Size(150, 24);
  920. this.mt_sessionidle.TabIndex = 0;
  921. this.mt_sessionidle.Text = "Session Idle Timeout";
  922. this.mt_sessionidle.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  923. this.mt_sessionidle.UseStaticViewStyle = true;
  924. // 
  925. // wLabel5
  926. // 
  927. this.wLabel5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  928. this.wLabel5.Location = new System.Drawing.Point(232, 40);
  929. this.wLabel5.Name = "wLabel5";
  930. this.wLabel5.Size = new System.Drawing.Size(48, 24);
  931. this.wLabel5.TabIndex = 16;
  932. this.wLabel5.Text = "sec.";
  933. this.wLabel5.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  934. this.wLabel5.UseStaticViewStyle = true;
  935. // 
  936. // groupBox4
  937. // 
  938. this.groupBox4.Controls.AddRange(new System.Windows.Forms.Control[] {
  939. this.wLabel10,
  940. this.wLabel9,
  941. this.wLabel11,
  942. this.wLabel8,
  943. this.m_pPOP3SessionIdle,
  944. this.m_pPOP3CommandIdle,
  945. this.wLabel13,
  946. this.m_pMaxPOP3badCmds});
  947. this.groupBox4.Location = new System.Drawing.Point(16, 320);
  948. this.groupBox4.Name = "groupBox4";
  949. this.groupBox4.Size = new System.Drawing.Size(600, 72);
  950. this.groupBox4.TabIndex = 16;
  951. this.groupBox4.TabStop = false;
  952. this.groupBox4.Text = "POP3";
  953. // 
  954. // wLabel10
  955. // 
  956. this.wLabel10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  957. this.wLabel10.Location = new System.Drawing.Point(16, 16);
  958. this.wLabel10.Name = "wLabel10";
  959. this.wLabel10.Size = new System.Drawing.Size(150, 24);
  960. this.wLabel10.TabIndex = 17;
  961. this.wLabel10.Text = "Session Idle Timeout";
  962. this.wLabel10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  963. this.wLabel10.UseStaticViewStyle = true;
  964. // 
  965. // wLabel9
  966. // 
  967. this.wLabel9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  968. this.wLabel9.Location = new System.Drawing.Point(304, 16);
  969. this.wLabel9.Name = "wLabel9";
  970. this.wLabel9.Size = new System.Drawing.Size(150, 24);
  971. this.wLabel9.TabIndex = 18;
  972. this.wLabel9.Text = "Command Idle Timeout";
  973. this.wLabel9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  974. this.wLabel9.UseStaticViewStyle = true;
  975. // 
  976. // wLabel11
  977. // 
  978. this.wLabel11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  979. this.wLabel11.Location = new System.Drawing.Point(520, 16);
  980. this.wLabel11.Name = "wLabel11";
  981. this.wLabel11.Size = new System.Drawing.Size(48, 24);
  982. this.wLabel11.TabIndex = 22;
  983. this.wLabel11.Text = "sec.";
  984. this.wLabel11.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  985. this.wLabel11.UseStaticViewStyle = true;
  986. // 
  987. // wLabel8
  988. // 
  989. this.wLabel8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  990. this.wLabel8.Location = new System.Drawing.Point(232, 16);
  991. this.wLabel8.Name = "wLabel8";
  992. this.wLabel8.Size = new System.Drawing.Size(48, 24);
  993. this.wLabel8.TabIndex = 21;
  994. this.wLabel8.Text = "sec.";
  995. this.wLabel8.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  996. this.wLabel8.UseStaticViewStyle = true;
  997. // 
  998. // m_pPOP3SessionIdle
  999. // 
  1000. this.m_pPOP3SessionIdle.BackColor = System.Drawing.Color.White;
  1001. this.m_pPOP3SessionIdle.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  1002. this.m_pPOP3SessionIdle.DecimalPlaces = 0;
  1003. this.m_pPOP3SessionIdle.DecMaxValue = new System.Decimal(new int[] {
  1004.    999999999,
  1005.    0,
  1006.    0,
  1007.    0});
  1008. this.m_pPOP3SessionIdle.DecMinValue = new System.Decimal(new int[] {
  1009.    20,
  1010.    0,
  1011.    0,
  1012.    0});
  1013. this.m_pPOP3SessionIdle.DecValue = new System.Decimal(new int[] {
  1014. 60,
  1015. 0,
  1016. 0,
  1017. 0});
  1018. this.m_pPOP3SessionIdle.Location = new System.Drawing.Point(168, 16);
  1019. this.m_pPOP3SessionIdle.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  1020. this.m_pPOP3SessionIdle.MaxLength = 32767;
  1021. this.m_pPOP3SessionIdle.Name = "m_pPOP3SessionIdle";
  1022. this.m_pPOP3SessionIdle.ReadOnly = false;
  1023. this.m_pPOP3SessionIdle.Size = new System.Drawing.Size(64, 20);
  1024. this.m_pPOP3SessionIdle.TabIndex = 19;
  1025. this.m_pPOP3SessionIdle.Text = "60";
  1026. this.m_pPOP3SessionIdle.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  1027. this.m_pPOP3SessionIdle.UseStaticViewStyle = true;
  1028. // 
  1029. // m_pPOP3CommandIdle
  1030. // 
  1031. this.m_pPOP3CommandIdle.BackColor = System.Drawing.Color.White;
  1032. this.m_pPOP3CommandIdle.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  1033. this.m_pPOP3CommandIdle.DecimalPlaces = 0;
  1034. this.m_pPOP3CommandIdle.DecMaxValue = new System.Decimal(new int[] {
  1035.    999999999,
  1036.    0,
  1037.    0,
  1038.    0});
  1039. this.m_pPOP3CommandIdle.DecMinValue = new System.Decimal(new int[] {
  1040.    10,
  1041.    0,
  1042.    0,
  1043.    0});
  1044. this.m_pPOP3CommandIdle.DecValue = new System.Decimal(new int[] {
  1045. 60,
  1046. 0,
  1047. 0,
  1048. 0});
  1049. this.m_pPOP3CommandIdle.Location = new System.Drawing.Point(456, 16);
  1050. this.m_pPOP3CommandIdle.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  1051. this.m_pPOP3CommandIdle.MaxLength = 32767;
  1052. this.m_pPOP3CommandIdle.Name = "m_pPOP3CommandIdle";
  1053. this.m_pPOP3CommandIdle.ReadOnly = false;
  1054. this.m_pPOP3CommandIdle.Size = new System.Drawing.Size(64, 20);
  1055. this.m_pPOP3CommandIdle.TabIndex = 20;
  1056. this.m_pPOP3CommandIdle.Text = "60";
  1057. this.m_pPOP3CommandIdle.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  1058. this.m_pPOP3CommandIdle.UseStaticViewStyle = true;
  1059. // 
  1060. // wLabel13
  1061. // 
  1062. this.wLabel13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  1063. this.wLabel13.Location = new System.Drawing.Point(296, 40);
  1064. this.wLabel13.Name = "wLabel13";
  1065. this.wLabel13.Size = new System.Drawing.Size(158, 24);
  1066. this.wLabel13.TabIndex = 27;
  1067. this.wLabel13.Text = "Max. bad commands";
  1068. this.wLabel13.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  1069. this.wLabel13.UseStaticViewStyle = true;
  1070. // 
  1071. // m_pMaxPOP3badCmds
  1072. // 
  1073. this.m_pMaxPOP3badCmds.BackColor = System.Drawing.Color.White;
  1074. this.m_pMaxPOP3badCmds.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right;
  1075. this.m_pMaxPOP3badCmds.DecimalPlaces = 0;
  1076. this.m_pMaxPOP3badCmds.DecMaxValue = new System.Decimal(new int[] {
  1077.   999999999,
  1078.   0,
  1079.   0,
  1080.   0});
  1081. this.m_pMaxPOP3badCmds.DecMinValue = new System.Decimal(new int[] {
  1082.   1,
  1083.   0,
  1084.   0,
  1085.   0});
  1086. this.m_pMaxPOP3badCmds.DecValue = new System.Decimal(new int[] {
  1087.    8,
  1088.    0,
  1089.    0,
  1090.    0});
  1091. this.m_pMaxPOP3badCmds.Location = new System.Drawing.Point(456, 40);
  1092. this.m_pMaxPOP3badCmds.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric;
  1093. this.m_pMaxPOP3badCmds.MaxLength = 32767;
  1094. this.m_pMaxPOP3badCmds.Name = "m_pMaxPOP3badCmds";
  1095. this.m_pMaxPOP3badCmds.ReadOnly = false;
  1096. this.m_pMaxPOP3badCmds.Size = new System.Drawing.Size(64, 20);
  1097. this.m_pMaxPOP3badCmds.TabIndex = 26;
  1098. this.m_pMaxPOP3badCmds.Text = "8";
  1099. this.m_pMaxPOP3badCmds.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
  1100. this.m_pMaxPOP3badCmds.UseStaticViewStyle = true;
  1101. // 
  1102. // wfrm_Setup
  1103. // 
  1104. this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  1105. this.ClientSize = new System.Drawing.Size(628, 397);
  1106. this.Controls.AddRange(new System.Windows.Forms.Control[] {
  1107.   this.groupBox4,
  1108.   this.groupBox3,
  1109.   this.m_pSave,
  1110.   this.groupBox2,
  1111.   this.groupBox1});
  1112. this.Name = "wfrm_Setup";
  1113. this.Text = "Setup";
  1114. this.groupBox1.ResumeLayout(false);
  1115. ((System.ComponentModel.ISupportInitialize)(this.m_pMailStorePath)).EndInit();
  1116. ((System.ComponentModel.ISupportInitialize)(this.m_pTest)).EndInit();
  1117. ((System.ComponentModel.ISupportInitialize)(this.m_pConStrBrowse)).EndInit();
  1118. ((System.ComponentModel.ISupportInitialize)(this.m_pConStr)).EndInit();
  1119. ((System.ComponentModel.ISupportInitialize)(this.m_pDbType)).EndInit();
  1120. this.groupBox2.ResumeLayout(false);
  1121. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3IPAddresses)).EndInit();
  1122. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3_Threads)).EndInit();
  1123. ((System.ComponentModel.ISupportInitialize)(this.m_pSMTP_Threads)).EndInit();
  1124. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3)).EndInit();
  1125. ((System.ComponentModel.ISupportInitialize)(this.m_pSMTP)).EndInit();
  1126. ((System.ComponentModel.ISupportInitialize)(this.m_pSMTPIPAddresses)).EndInit();
  1127. ((System.ComponentModel.ISupportInitialize)(this.m_pSave)).EndInit();
  1128. this.groupBox3.ResumeLayout(false);
  1129. ((System.ComponentModel.ISupportInitialize)(this.m_pMaxSMTPbadCmds)).EndInit();
  1130. ((System.ComponentModel.ISupportInitialize)(this.m_pPostmasterPwd)).EndInit();
  1131. ((System.ComponentModel.ISupportInitialize)(this.m_pPostmasterUName)).EndInit();
  1132. ((System.ComponentModel.ISupportInitialize)(this.m_pMaxRecipients)).EndInit();
  1133. ((System.ComponentModel.ISupportInitialize)(this.m_pMessageSize)).EndInit();
  1134. ((System.ComponentModel.ISupportInitialize)(this.m_pCommandIdle)).EndInit();
  1135. ((System.ComponentModel.ISupportInitialize)(this.m_pSessionIdle)).EndInit();
  1136. this.groupBox4.ResumeLayout(false);
  1137. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3SessionIdle)).EndInit();
  1138. ((System.ComponentModel.ISupportInitialize)(this.m_pPOP3CommandIdle)).EndInit();
  1139. ((System.ComponentModel.ISupportInitialize)(this.m_pMaxPOP3badCmds)).EndInit();
  1140. this.ResumeLayout(false);
  1141. }
  1142. #endregion
  1143. #region Events handling
  1144. #region function m_pConStrBrowse_Click
  1145. private void m_pConStrBrowse_Click(object sender, System.EventArgs e)
  1146. {
  1147. System.Windows.Forms.SaveFileDialog filedlg = new System.Windows.Forms.SaveFileDialog();
  1148. // filedlg.Filter = ;
  1149. filedlg.InitialDirectory = Application.StartupPath;
  1150. filedlg.RestoreDirectory = true;
  1151. filedlg.ShowDialog();
  1152. }
  1153. #endregion
  1154. #region function m_pSave_Click
  1155. private void m_pSave_Click(object sender, System.EventArgs e)
  1156. {
  1157. try
  1158. {
  1159. DataRow dr = dsSettings.Tables["Settings"].Rows[0];
  1160. dr["MailRoot"]                = m_pMailStorePath.Text;
  1161. dr["SMTP_IPAddress"]          = m_pSMTPIPAddresses.Text;
  1162. dr["POP3_IPAddress"]          = m_pPOP3IPAddresses.Text;
  1163. dr["SMTP_Port"]               = m_pSMTP.Text;
  1164. dr["POP3_Port"]               = m_pPOP3.Text;
  1165. dr["SMTP_Threads"]            = m_pSMTP_Threads.Text;
  1166. dr["POP3_Threads"]            = m_pPOP3_Threads.Text;
  1167. dr["SMTP_SessionIdleTimeOut"] = m_pSessionIdle.Text;
  1168. dr["SMTP_CommandIdleTimeOut"] = m_pCommandIdle.Text;
  1169. dr["POP3_SessionIdleTimeOut"] = m_pPOP3SessionIdle.Text;
  1170. dr["POP3_CommandIdleTimeOut"] = m_pPOP3CommandIdle.Text;
  1171. dr["POP3_MaxBadCommands"]     = m_pMaxPOP3badCmds.Text;
  1172. dr["SMTP_MaxBadCommands"]     = m_pMaxSMTPbadCmds.Text;
  1173. dr["MaxMessageSize"]          = m_pMessageSize.Text;
  1174. dr["MaxRecipients"]           = m_pMaxRecipients.Text;
  1175. dr["PostMasterUserName"]      = m_pPostmasterUName.Text;
  1176. dr["PostMasterPassword"]      = m_pPostmasterPwd.Text;
  1177. dr["DataBaseType"]            = m_pDbType.Text;
  1178. if(m_pConStr.Text.Length > 0){
  1179. dr["ConnectionString"] = m_pConStr.Text;
  1180. }
  1181. dsSettings.WriteXml(Application.StartupPath + "\Settings\Settings.xml",XmlWriteMode.IgnoreSchema);
  1182. }
  1183. catch(Exception x)
  1184. {
  1185. wfrm_Error frm = new wfrm_Error(x,new System.Diagnostics.StackTrace());
  1186. frm.ShowDialog(this);
  1187. }
  1188. }
  1189. #endregion
  1190. #region function m_pDbType_SelectedIndexChanged
  1191. private void m_pDbType_SelectedIndexChanged(object sender, System.EventArgs e)
  1192. {
  1193. DataRow dr = dsSettings.Tables["Settings"].Rows[0];
  1194. switch(m_pDbType.Text)
  1195. {
  1196. case "XML":
  1197. m_pConStr.Text = "";
  1198. m_pConStr.Enabled = false;
  1199. m_pTest.Enabled = false;
  1200. break;
  1201. case "MSSQL":
  1202. m_pConStr.Text = dr["ConnectionString"].ToString();
  1203. m_pConStr.Enabled = true;
  1204. m_pTest.Enabled = true;
  1205. break;
  1206. }
  1207. if(m_pDbType.IsModified){
  1208. MessageBox.Show(this,"Please press 'Save' button, close managernand re-open program again!","Note",MessageBoxButtons.OK,MessageBoxIcon.Information);
  1209. m_pConStrManager.DisableTabs();
  1210. }
  1211. else{
  1212. m_pConStrManager.EnableTabs();
  1213. }
  1214. }
  1215. #endregion
  1216. #region function m_pTest_ButtonPressed
  1217. private void m_pTest_ButtonPressed(object sender, System.EventArgs e)
  1218. {
  1219. if(ServerAPI.IsConnection(Application.StartupPath + "\Settings\",m_pConStr.Text,(DB_Type)Enum.Parse(typeof(DB_Type),m_pDbType.Text))){
  1220. MessageBox.Show("Connection OK.");
  1221. }
  1222. else{
  1223. MessageBox.Show(this,"Database connection is invalid","Error:",MessageBoxButtons.OK,MessageBoxIcon.Error);
  1224. }
  1225. }
  1226. #endregion
  1227. #endregion
  1228. #region function RefreshForm
  1229. public void RefreshForm()
  1230. {
  1231. try
  1232. {
  1233. DataRow dr = dsSettings.Tables["Settings"].Rows[0];
  1234. m_pMailStorePath.Text   = dr["MailRoot"].ToString();
  1235. m_pSMTPIPAddresses.Text = dr["SMTP_IPAddress"].ToString();
  1236. m_pPOP3IPAddresses.Text = dr["POP3_IPAddress"].ToString();
  1237. m_pSMTP.Text            = dr["SMTP_Port"].ToString();
  1238. m_pPOP3.Text            = dr["POP3_Port"].ToString();
  1239. m_pSMTP_Threads.Text    = dr["SMTP_Threads"].ToString();
  1240. m_pPOP3_Threads.Text    = dr["POP3_Threads"].ToString();
  1241. m_pSessionIdle.Text     = dr["SMTP_SessionIdleTimeOut"].ToString();
  1242. m_pCommandIdle.Text     = dr["SMTP_CommandIdleTimeOut"].ToString();
  1243. m_pPOP3SessionIdle.Text = dr["POP3_SessionIdleTimeOut"].ToString();
  1244. m_pPOP3CommandIdle.Text = dr["POP3_CommandIdleTimeOut"].ToString();
  1245. m_pMaxPOP3badCmds.Text  = dr["POP3_MaxBadCommands"].ToString();
  1246. m_pMaxSMTPbadCmds.Text  = dr["SMTP_MaxBadCommands"].ToString();
  1247. m_pMessageSize.Text     = dr["MaxMessageSize"].ToString();
  1248. m_pMaxRecipients.Text   = dr["MaxRecipients"].ToString();
  1249. m_pPostmasterUName.Text = dr["PostMasterUserName"].ToString();
  1250. m_pPostmasterPwd.Text   = dr["PostMasterPassword"].ToString();
  1251. m_pDbType.SelectItemByTag(dr["DataBaseType"].ToString());
  1252. if(m_pDbType.Text == "MSSQL"){
  1253. m_pConStr.Text = dr["ConnectionString"].ToString();
  1254. m_pConStr.Enabled = true;
  1255. m_pTest.Enabled = true;
  1256. }
  1257. }
  1258. catch(Exception x)
  1259. {
  1260. wfrm_Error frm = new wfrm_Error(x,new System.Diagnostics.StackTrace());
  1261. frm.ShowDialog(this);
  1262. }
  1263. }
  1264. #endregion
  1265. }
  1266. }