コード例 #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();
 }
コード例 #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();
 }
コード例 #3
0
ファイル: Login.aspx.cs プロジェクト: echan-sage/Sage300-SDK
        /// <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();
            }
        }
コード例 #4
0
 private void Login_Activated(object sender, EventArgs e)
 {
     PwdText.Focus();
 }