public ucTCPIPPort(int portID) { InitializeComponent(); DirtyChecker.SubscribeToChange(this, OnContentChanged); if (portID > 0) { hMailServer.TCPIPPorts ports = APICreator.TCPIPPortsSettings; _representedObject = ports.get_ItemByDBID(portID); Marshal.ReleaseComObject(ports); } comboProtocol.AddItem("SMTP", eSessionType.eSTSMTP); comboProtocol.AddItem("POP3", eSessionType.eSTPOP3); comboProtocol.AddItem("IMAP", eSessionType.eSTIMAP); comboConnectionSecurity.AddItems(ConnectionSecurityTypes.Get(true)); ListSSLCertificates(); new TabOrderManager(this).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst); EnableDisable(); }
public ucProtocolSMTP() { InitializeComponent(); DirtyChecker.SubscribeToChange(this, OnContentChanged); new TabOrderManager(this).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst); comboConnectionSecurity.AddItems(ConnectionSecurityTypes.Get(true)); }
public ucRoute(int routeID) { InitializeComponent(); if (routeID > 0) { hMailServer.Routes routes = APICreator.Routes; _representedObject = routes.get_ItemByDBID(routeID); Marshal.ReleaseComObject(routes); } DirtyChecker.SubscribeToChange(this, OnContentChanged); new TabOrderManager(this).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst); comboConnectionSecurity.AddItems(ConnectionSecurityTypes.Get(true)); comboConnectionSecurity.SelectedIndex = 0; EnableDisable(); }
public formExternalAccount() { InitializeComponent(); comboServerType.AddItem("POP3", 1); comboServerType.SelectedIndex = 0; new TabOrderManager(this).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst); Strings.Localize(this); textPort.Number = 110; DirtyChecker.SubscribeToChange(this, OnContentChanged); buttonDownloadNow.Enabled = false; comboConnectionSecurity.AddItems(ConnectionSecurityTypes.Get(false)); comboConnectionSecurity.SelectedIndex = 0; EnableDisable(); }