ForTheCommonGood.frmSettings.frmLogin_Load C# (CSharp) Метод

frmLogin_Load() приватный Метод

private frmLogin_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void frmLogin_Load(object sender, EventArgs e)
        {
            if (Settings.LocalDomain != null)
                txtLocalDomain.Text = Settings.LocalDomain;
            if (Settings.LocalUserName == Settings.CommonsUserName &&
                Settings.LocalPassword == Settings.CommonsPassword)// && Settings.LocalUserName != "")
            {
                chkLocalSameAsCommons.Checked = true;
                chkLocalSameAsCommons_CheckedChanged(null, null);
            }
            else
            {
                if (Settings.LocalUserName != null)
                    txtLocalUserName.Text = Settings.LocalUserName;
                if (Settings.LocalPassword != null)
                    txtLocalPassword.Text = Settings.LocalPassword;
            }
            chkLocalSysop.Checked = Settings.LocalSysop;
            if (Settings.CommonsUserName != null)
                txtCommonsUserName.Text = Settings.CommonsUserName;
            if (Settings.CommonsPassword != null)
                txtCommonsPassword.Text = Settings.CommonsPassword;
            chkSaveCreds.Checked = Settings.SaveCreds;

            if (!loginOnly)
            {
                chkUseHttps.Checked = Settings.UseHttps;
                chkLogTransfers.Checked = Settings.LogTransfers;
                chkOpenBrowserAutomatically.Checked = Settings.OpenBrowserAutomatically;
                chkOpenBrowserLocal.Checked = Settings.OpenBrowserLocal;
                chkAutoUpdate.Checked = Settings.AutoUpdate;

                if (Settings.LocalWikiData != "")
                {
                    optLocalDataFile.Checked = true;
                    localWikiDataFile = Settings.LocalWikiData;
                    localWikiDataDomain = LocalWikiData.LocalDomain;
                    optLocalDataFile.Text = (string) optLocalDataFile.Tag + localWikiDataDomain;
                }
                else if (Settings.LocalWikiDataHosted != "")
                {
                    optLocalDataHosted.Checked = true;
                    localWikiDataDomain = Settings.LocalWikiDataHosted.Substring(0, Settings.LocalWikiDataHosted.IndexOf("|"));
                }
                else
                {
                    optLocalDataDefault.Checked = true;
                }

                optLocalDataXyz_CheckChange(null, null);
            }
        }