TPConfAddin.TPConfSettingsForm.TPConfSettingsForm C# (CSharp) Method

TPConfSettingsForm() public method

public TPConfSettingsForm ( ) : System
return System
        public TPConfSettingsForm()
        {
            InitializeComponent();

            //init account page with global value
            this.tbUserName.Text = ThisAddIn.g_AccountInfo.strUserName;
            this.tbPassword.Text = ThisAddIn.g_AccountInfo.strPWD;

            string strCurrentLanguage = string.Empty;
            try
            {
                string[] strLanguages = ThisAddIn.g_AccountInfo.strLanguage.Split(';');
                foreach (string word in strLanguages)
                {
                    if (!string.IsNullOrEmpty(word))
                    {
                        this.cbLanguage.Items.Add(GetDisplayLanguage(word));
                    }
                }
            }
            catch (System.Exception ex)
            {
                ThisAddIn.g_log.Error(string.Format("TPConfSettingsForm error {0}", ex.Message));
            }

            this.cbLanguage.SelectedIndex = 0;

            //initial check pages
            this.checkBoxAutoUpdate.Checked = ThisAddIn.g_SystemSettings.bAutoUpdate;
            this.checkBoxLyncCTC.Checked = ThisAddIn.g_SystemSettings.bLyncCTC;

            this.cbShowTips.Checked = ThisAddIn.g_SystemSettings.bShowTipsForSelectRooms;
            this.cbShowCPReource.Checked = ThisAddIn.g_SystemSettings.bShowCPResource;
        }