Exemple #1
0
        private void SetupVars()
        {
            //checkTrustedHosts();
            this.StartupSplash.Status          = "Получаем список доменов";
            this.comboBoxAdDomain.DataSource   = Enum.GetValues(typeof(Domain.AdDomain));
            this.StartupSplash.Status          = "Получаем список почтовых доменов";
            this.comboBoxMailDomain.DataSource = Enum.GetValues(typeof(Domain.MailDomain));
            this.StartupSplash.Status          = "Получаем список инстансов в сети";
#if DEBUG
            this.SqlInstances = SqlInstance.GetSqlServersFromNetwork(debug: true);
#else
            this.SqlInstances = SqlInstance.GetSqlServersFromNetwork(debug: false);
#endif
            this.comboBoxInstances.DataSource    = this.SqlInstances;
            this.comboBoxInstances.DisplayMember = "InstanceFullName";
            this.comboBoxInstances.SelectedIndex = -1;
            this.checkBoxAddMail.Checked         = true;
            this.checkBoxPassword.Checked        = true;
            checkBox1_CheckedChanged(null, null);
            checkBoxAddMail_CheckedChanged(null, null);
            this.TransType = Helpers.TransliterationType.Gost;
        }
Exemple #2
0
 private void ChangeTransitType(Helpers.TransliterationType tType)
 {
     this.TransType = tType;
     SetLogin();
 }