Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
        /// <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();
            }
        }
Ejemplo n.º 4
0
 private void Login_Activated(object sender, EventArgs e)
 {
     PwdText.Focus();
 }