public void SetService(ServiceDetails serviceDetails)
        {
            Service   = serviceDetails;
            _settings = Service.GetSettings();

            /*
             *  <add key="ImapPort" value="140" />
             *  <add key="ImapSslPort" value="1993" />
             *  <add key="SmtpPort" value="20" />
             *  <add key="SmtpSslPort" value="1465" />
             *  <add key="UseSslOnly" value="1" />
             *  <add key="SslCertificateName" value="[email protected], CN=172.16.3.24, OU=test, O=test, L=Berlin, S=Berlin, C=DE" />
             */

            TbImapSsl.Text = (string)_settings["ImapSslPort"];
            TbSmtpSsl.Text = (string)_settings["SmtpSslPort"];

            CheckBoxSslOnly.IsChecked = (string)_settings["UseSslOnly"] == "1";
            TbImap.Text = (string)_settings["ImapPort"];
            TbSmtp.Text = (string)_settings["SmtpPort"];
        }
        public EcsSettingsControl(ServiceDetails serviceDetails)
        {
            InitializeComponent();

            SetService(serviceDetails);
        }