TPConfAddin.TPConfSettingsForm.TPConfSettingsForm_Load C# (CSharp) Method

TPConfSettingsForm_Load() private method

private TPConfSettingsForm_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void TPConfSettingsForm_Load(object sender, EventArgs e)
        {
            Outlook.Accounts accounts = Globals.ThisAddIn.Application.Session.Accounts;

            //2015-4-30 w00322557 用户名修改为eSDK提供,不适用Outlook账号Globals.ThisAddIn.Application.Session.CurrentUser.AddressEntry.GetExchangeUser().PrimarySmtpAddress;
            this.tbUserName.Text = ThisAddIn.g_AccountInfo.strUserName;

            // Set up the delays for the ToolTip.
            toolTip1.AutoPopDelay = 5000;
            toolTip1.InitialDelay = 1000;
            toolTip1.ReshowDelay = 500;
            // Force the ToolTip text to be displayed whether or not the form is active.
            toolTip1.ShowAlways = true;
            toolTip1.IsBalloon = true;

            // Set up the ToolTip text for the Button and Checkbox.
            toolTip1.SetToolTip(this.pbPWD, GlobalResourceClass.getMsg("ACCOUNT_PASSWORD"));
            toolTip1.SetToolTip(this.pbAccount, GlobalResourceClass.getMsg("ACCOUNT_TIP"));

            this.Icon = Properties.Resources.favicon;//动态加载图片

            this.pbPWD.Location = new Point(this.pbPWD.Location.X, this.tbPassword.Location.Y);
        }