public Login() { m_aeroEnabled = false; Refresh(); InitializeComponent(); Size = new Size(Size.Width, 190); OriginSize = this.Size.Height; LoginToolStrip.Renderer = new MySR(); ServerText.Text = Properties.Settings.Default.ServerName; LoginText.Text = gtiCore.Retorna_Last_User(); PwdText.Focus(); }
public Login() { m_aeroEnabled = false; this.Refresh(); InitializeComponent(); gtiProperty.ConnectionString = gtiCore.Connection_Name(); Size = new Size(Size.Width, 190); OriginSize = this.Size.Height; LoginToolStrip.Renderer = new MySR(); ServerText.Text = gtiProperty.ServerName; LoginText.Text = gtiProperty.LastUser; PwdText.Focus(); }
/// <summary> /// Page load for debug /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event</param> protected void Page_Load(object sender, EventArgs e) { // Only load controls on initial load if (string.IsNullOrEmpty(UserText.Text)) { // Get and assign cookies UserText.Text = GetCookie(Constants.USER_KEY, Constants.USER_DEFAULT); CompanyText.Text = GetCookie(Constants.COMPANY_KEY, Constants.COMPANY_DEFAULT); SystemText.Text = GetCookie(Constants.SYSTEM_KEY, Constants.SYSTEM_DEFAULT); VersionText.Text = GetCookie(Constants.VERSION_KEY, Constants.VERSION_DEFAULT); ErrorLabel.Text = ""; // Set focus to password control PwdText.Focus(); } }
private void Login_Activated(object sender, EventArgs e) { PwdText.Focus(); }