Beispiel #1
0
        public Form1()
        {
            LoginControl l = new LoginControl();

            l.Show();
            InitializeComponent();
        }
Beispiel #2
0
        private void LoginButtonFuction(object sender, RoutedEventArgs e)
        {
            LoginControl tempControl = null;

            foreach (object child in ControlGrid.Children)
            {
                if (child.GetType().Equals(typeof(LoginControl)))
                {
                    tempControl = child as LoginControl;
                }
            }
            if (string.IsNullOrEmpty(userData.userName) || string.IsNullOrEmpty(userData.password))
            {
                tempControl.InvalidUser();
            }
            else if (contactService.ValidateUserInformation(userData))
            {
                userData.userId = contactService.RetrieveUserId(userData);

                Shell newWindow = new Shell(userData);
                Application.Current.MainWindow = newWindow;
                Close();
                newWindow.Show();
            }
            else
            {
                tempControl.InvalidUser();
            }
        }
Beispiel #3
0
        /// <summary>
        /// Show success or error messages depends on password reminding.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        protected void ForgotCallbackPanel_Callback(object source, CallbackEventArgsBase e)
        {
            try
            {
                //FIXME: this is testing code for feed import, you could remove it when app in live
                //CommonParser<CanonChannelMonitor> export = ImportFactory.GetParser(
                //                   Canon.Data.Enums.ChannelTypeEnum.XML,
                //                   23,
                //                   @"d:\Memos\Projects\Canon\CanonMonitor\CanonWebApp\Uploaded\21_2009-08-19.xml",
                //                   Server.MapPath("Uploaded"), string.Empty);
                //export.Logger = WebVariables.Logger;
                //if (!export.ExportToDb()) return;

                //SimpleXmlParser parser = new SimpleXmlParser(new System.IO.FileInfo(@"d:\Memos\Projects\Canon\CanonMonitor\CanonWebApp\Uploaded\21_2009-08-19.xml"));
                //List<Dictionary<string, string>> parsed = parser.Parse();
                //return;

                if (String.Equals(e.Parameter, "Remind", StringComparison.CurrentCultureIgnoreCase))
                {
                    ASPxTextBox  EmailTextBox      = (ASPxTextBox)LoginControl.FindControl("ForgotPopupControl").FindControl("ForgotCallbackPanel").FindControl("EmailTextBox");
                    HtmlTableRow SuccessMessageDiv = (HtmlTableRow)LoginControl.FindControl("ForgotPopupControl").FindControl("ForgotCallbackPanel").FindControl("SuccessMessageDiv");
                    HtmlTableRow ErrorMessageDiv   = (HtmlTableRow)LoginControl.FindControl("ForgotPopupControl").FindControl("ForgotCallbackPanel").FindControl("ErrorMessageDiv");

                    bool isSent = Business.User.SendRemindPasswordEmail(EmailTextBox.Text);

                    SuccessMessageDiv.Visible = isSent;
                    ErrorMessageDiv.Visible   = !isSent;
                }
            }
            catch (Exception ex)
            {
                Logger.Log(ex.ToString(), LogLevel.Fatal);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Localizes the page and set user's login from cookies.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Logger.Log("Session started", LogLevel.Info);
            Localize();

            if (IsPostBack || IsCallback)
            {
                return;
            }

            ASPxTextBox  UserName           = (ASPxTextBox)LoginControl.FindControl("UserName");
            ASPxTextBox  Password           = (ASPxTextBox)LoginControl.FindControl("Password");
            ASPxCheckBox RememberMeCheckBox = (ASPxCheckBox)LoginControl.FindControl("RememberMeCheckBox");

            if (Request.Cookies["username"] != null)
            {
                UserName.Text = Request.Cookies["username"].Value;
                RememberMeCheckBox.Checked = true;
                Password.Focus();
            }
            else
            {
                RememberMeCheckBox.Checked = false;
                UserName.Focus();
            }
        }
Beispiel #5
0
        private void btnLogOff_Click(object sender, EventArgs e)
        {
            LoginControl frm = new LoginControl();

            frm.Show();
            this.Close();
        }
Beispiel #6
0
        protected void SetFields()
        {
            Button showLoginSectionBtn    = (Button)LoginControl.FindControl("ShowLoginSection");
            var    loggedInSection        = LoginControl.FindControl("LoggedInDiv");
            var    logInSection           = LoginControl.FindControl("LoginSection");
            var    showLoginSectionHolder = (Label)LoginControl.FindControl("ShowLoginSectionHolder");
            Label  loggedInAsLabel        = (Label)LoginControl.FindControl("LoggedInAs");
            Label  UserNameLabel          = (Label)LoginControl.FindControl("lblUserName");
            Label  PasswordLabel          = (Label)LoginControl.FindControl("lblPassword");

            UserNameLabel.Text = Server.HtmlEncode(GetLocalizedString("PxWebUsername"));
            PasswordLabel.Text = Server.HtmlEncode(GetLocalizedString("PxWebPassword"));
            if (!HttpContext.Current.User.Identity.IsAuthenticated)
            {
                showLoginSectionBtn.Text = Server.HtmlEncode(GetLocalizedString("PxWebLogin"));
                loggedInSection.Visible  = false;
                if (showLoginSectionHolder.Text == "show")
                {
                    logInSection.Visible = false;
                }
                else
                {
                    logInSection.Visible = true;
                    Button loginBtn = (Button)LoginControl.FindControl("Login");
                    loginBtn.Text = Server.HtmlEncode(GetLocalizedString("PxWebLogin"));
                }
            }
            else
            {
                showLoginSectionBtn.Text = Server.HtmlEncode(GetLocalizedString("PxWebLogout"));
                loggedInSection.Visible  = true;
                logInSection.Visible     = false;
                loggedInAsLabel.Text     = Server.HtmlEncode(GetLocalizedString("PxWebLoggedIn")) + " " + HttpContext.Current.User.Identity.Name;
            }
        }
Beispiel #7
0
        private void InitializeLogin()
        {
            //
            //  Login window
            //

            LoginControl login = new LoginControl();

            login.Check = false;
            login.Font  = new System.Drawing.Font(
                "Tahoma", 11F, System.Drawing.FontStyle.Regular,
                System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            login.Dock          = System.Windows.Forms.DockStyle.Fill;
            login.Hash          = false;
            login.labelButton   = "Login";
            login.labelHeadline = "Execution Platform Client Login";
            login.Name          = "login";
            login.Password      = null;
            login.Size          = new System.Drawing.Size(460, 300);
            login.TabIndex      = 0;
            login.Username      = null;
            login.Ready        += new System.EventHandler(FireLoginReady);

            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.ClientSize      = login.ClientSize;

            //
            //  Controls
            //

            this.Controls.AddRange(new Control [] { login });
        }
Beispiel #8
0
        private void Main_Load(object sender, EventArgs e)
        {
            LoginControl login = new LoginControl();

            login.Dock = DockStyle.Fill;
            this.Container.Panel2.Controls.Add(login);
        }
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (foundLoginInfo == null)
            {
                return;
            }

            string sConfigFile = Application.UserAppDataPath.Remove(Application.UserAppDataPath.LastIndexOf("\\")) + "\\LoginInfo.xml";
            Logins logins      = null;

            try
            {
                logins = disc1.XML.ObjectXMLSerializer <Logins> .Load(sConfigFile);
            }
            catch
            {
                logins = new Logins();
            }

            for (int t = 0; t < logins.LoginInfos.Count; t++)
            {
                LoginInfo tmp = (LoginInfo)logins.LoginInfos[t];
                if (tmp.SiteUrl == lbConnections.SelectedItem.ToString())
                {
                    logins.LoginInfos.RemoveAt(t);
                    lbConnections.Items.Remove(lbConnections.SelectedItem);
                    break;
                }
            }

//            logins.LoginInfos.Remove(foundLoginInfo);

            LoginControl.SaveLogins(logins);
        }
Beispiel #10
0
        static void LoginMenu()
        {
            LogOperation.LogProgram.Info("Program Started.");
            string choice = "-1";

            while (choice != "9")
            {
                Console.WriteLine("\n<<<<< Please Choose One The Operation (1-LOGIN | 2-SIGNUP | 9-EXIT) >>>>>");
                Console.Write("\nOperation>> ");
                choice = Console.ReadLine();
                switch (choice)
                {
                case "1":

                    LoginControl.LoginAccessControl();
                    break;

                case "2":
                    SignUp.SignUpUser();
                    break;

                case "9":
                    LogOperation.LogProgram.Info("Program Finished.");
                    Console.WriteLine("...Exit...");
                    break;

                default:
                    Console.WriteLine("Please Enter Valid Operation Number\n");
                    break;
                }
            }
        }
Beispiel #11
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Thread tr = new Thread(threadDisconnect);

            tr.Start();
            _login              = new LoginControl();
            _login.TryLogin    += _login_TryLogin;
            _login.CancelLogin += _login_CancelLogin;
            CarsHandler.Instance.Init();
            CarBaseHandler.Instance.Init();
            //CarsHandler.Instance.CarsRefreshed += Instance_CarsRefreshed;
            ZonesHandler.Instance.Init();
            DTCDev.Client.Cars.Engine.Handlers.UpdateDriver.Instance.Start();
            LoginHandler.Instance.LoginError    += Instance_LoginError;
            LoginHandler.Instance.LoginComplete += Instance_LoginComplete;
            CarSelector.OnCarChanged            += CarSelector_OnCarChanged;
            CarSelector.ViewCarDetails          += CarSelector_ViewCarDetails;
            DTCDev.Client.Cars.Manager.Data.CarDataStorage.Instance.Update();
            FolderPrecreate();

            if (DTCDev.Client.Cars.Engine.Handlers.LoginHandler.Instance.IsParamsAdded == false)
            {
                DisplayLogin();
            }
        }
Beispiel #12
0
        private void RefreshClick(object sender, EventArgs e)
        {
            if (!CoreServices.Instance.LoginVerified && _login == null)
            {
                _login = new LoginControl(LoginCallback);
                LayoutRoot.Children.Add(_login);
                return;
            }

            MessageList messages;

            switch (Pivot.SelectedIndex)
            {
            case 0:
                messages = CoreServices.Instance.Inbox;
                break;

            case 1:
                messages = CoreServices.Instance.Outbox;
                break;

            case 2:
                messages = CoreServices.Instance.Archive;
                break;

            default:
                messages = CoreServices.Instance.Inbox;
                break;
            }

            messages.PropertyChanged += BoxLoaded;
            messages.Refresh();
            ProgressBar.Visibility = Visibility.Visible;
        }
Beispiel #13
0
        protected void LogIn(object sender, AuthenticateEventArgs e)
        {
            try
            {
                //Session.Clear();
                if (string.IsNullOrEmpty(LoginControl.UserName) || string.IsNullOrEmpty(LoginControl.Password))
                {
                    LoginControl.FailureText = Server.HtmlEncode(GetLocalizedString("PxWebLoginMissingUserOrPassw"));
                    return;
                }
                if (Membership.ValidateUser(LoginControl.UserName, LoginControl.Password))
                {
                    FormsAuthentication.RedirectFromLoginPage(LoginControl.UserName, false);
                    Button showLoginSectionBtn    = (Button)LoginControl.FindControl("ShowLoginSection");
                    var    showLoginSectionHolder = (Label)LoginControl.FindControl("ShowLoginSectionHolder");
                    Label  loggedInAsLabel        = (Label)LoginControl.FindControl("LoggedInAs");
                    loggedInAsLabel.Text        = "Logget inn som " + LoginControl.UserName;
                    showLoginSectionHolder.Text = "show";

                    string currentUrl = Request.RawUrl;
                    Response.Redirect(currentUrl);
                }
                else
                {
                    LoginControl.FailureText = Server.HtmlEncode(GetLocalizedString("PxWebWrongLogin"));
                }
            }

            catch (Exception ex)
            {
                _logger.Error("Failed to Login. Username " + LoginControl.UserName + "Error:" + ex.Message);
                throw;
            }
        }
Beispiel #14
0
 void DoLogin()
 {
     loginControl                = new LoginControl();
     loginControl.Name           = "loginControl";
     loginControl.Location       = new Point(10, 50);
     loginControl.LoginFinished += LoginControl_LoginFinished;
     this.Controls.Add(loginControl);
 }
Beispiel #15
0
        private void btnLogOut_Click(object sender, RoutedEventArgs e)
        {
            HideLoginMenu();
            StaffBUS.Logout();
            UserControl userControl = new LoginControl();

            ReplaceMainControl(userControl);
        }
Beispiel #16
0
 void Awake()
 {
     instance             = this;
     net                  = GameObject.FindObjectOfType <NetworkUtil>();
     input_username.text  = PlayerPrefs.GetString("username");
     input_passsword.text = PlayerPrefs.GetString("password");
     OnSubmit();
 }
 private LoginControl GetControl()
 {
     if (lgCtrl == null)
     {
         lgCtrl = new LoginControl();
     }
     return(lgCtrl);
 }
        private async void CodeBehind_Click(object sender, RoutedEventArgs e)
        {
            var loginControl = new LoginControl(RootDialogHost, "");

            object result = await MaterialDesignThemes.Wpf.DialogHost.Show(loginControl, RootDialogHost.Identifier);

            Debug.WriteLine($"Dialog Result {result}");
        }
        public LoginWindow()
        {
            _loginControl = new LoginControl(this);

            InitializeComponent();
            cprTB.Focus();
            pwTB.Visibility = Visibility.Collapsed;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            LoginControl loginControl = new LoginControl(this);

            this.gridControl.Children.Add(loginControl);

            thread.Start();
        }
Beispiel #21
0
        // methods for changing the main content control
        private void dispayLogin()
        {
            LoginControl control = new LoginControl();

            control.OnLogin         += login;
            control.OnCreateNewUser += displayCreateUser;

            mainContent.Content = control;
        }
Beispiel #22
0
 public void LoginCallback(bool verified)
 {
     if (verified)
     {
         LoadPage();
     }
     LayoutRoot.Children.Remove(_login);
     _login = null;
 }
 /// <summary>
 /// constructor for loginwindow
 /// </summary>
 public LoginWindow()
 {
     _loginControl = new LoginControl();
     InitializeComponent();
     cprTB.Focus();
     SetupShowHideImgPbTbHidden();
     _passwordIsVisible     = false;
     ShowHideImg.Visibility = Visibility.Hidden;
 }
Beispiel #24
0
        public void GetLoginPanelInfo(LoginControl control)
        {
            HttpCookie cookie = this.Request.Cookies["opac-login"];

            if (cookie != null)
            {
                Hashtable table = StringUtil.ParseParameters(cookie.Value, ',', '=', "url");
#if NO
                string strID = (string)table["id"];
                if (string.IsNullOrEmpty(strID) == false)
                {
                    string strKeepLogin = (string)table["keeplogin"];
                    bool   bKeepLogin   = DomUtil.IsBooleanTrue(strKeepLogin, false);

                    string strPassword = "******" + (string)table["token"];
                    if (bKeepLogin == false)
                    {
                        strPassword = "";
                    }

                    if (bKeepLogin == true)
                    {
                        control.SetValue(strID, strPassword, bKeepLogin);
                    }
                    return;
                }
#endif
                string strLoginName = (string)table["loginname"];
                if (string.IsNullOrEmpty(strLoginName) == false)
                {
                    string strKeepLogin = (string)table["keeplogin"];
                    bool   bKeepLogin   = DomUtil.IsBooleanTrue(strKeepLogin, false);

                    string strToken = (string)table["token"];

                    string strPassword = "";

#if NO
                    if (string.IsNullOrEmpty(strToken) == false)
                    {
                        strPassword = "******" + (string)table["token"];
                    }
                    if (bKeepLogin == false)
                    {
                        strPassword = "";
                    }
#endif

                    if (bKeepLogin == true)
                    {
                        control.SetValue(strLoginName, strPassword, bKeepLogin);
                    }
                    return;
                }
            }
        }
        /// <summary>
        /// Constructeur
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            loginControl    = new LoginControl();
            registerControl = new RegisterControl();
            gameControl     = new GameControl();

            SetControl(Controls.Login);
        }
        private void BtnLogin_Click(object sender, RoutedEventArgs e)
        {
            var loginWindow = new LoginControl();

            loginWindow.Owner  = this;
            loginWindow.Width  = 500;
            loginWindow.Height = 500;

            var loginClosed = loginWindow.ShowDialog();
        }
Beispiel #27
0
        public void ShowLoginView()
        {
            logout();
            var view      = new LoginControl(this);
            var model     = new LoginModel(session, encrypter);
            var presenter = new LoginPresenter(model, view);

            showView(view);
            centerActualView();
        }
Beispiel #28
0
        void ShowLogin()
        {
            ShowMessage("Login to access application settings");

            LoginControl control = new LoginControl();

            control.StateNotifyer   = _ApplicationStateChangeNotifyer;
            control.MessageNotifyer = _ApplicationMessageNotifyer;

            AddControl(control, ApplicationController.State.Login);
        }
Beispiel #29
0
        private void SetLoginState()
        {
            _currentState = States.Login;

            _loginControl = new LoginControl {
                Location = new Point(10, 20)
            };
            Controls.Add(_loginControl);

            _prevState = States.Login;
        }
        public Administrator(LoginControl LoginCC, string ConnectionString)
        {
            this.LoginCC          = LoginCC;
            this.ConnectionString = ConnectionString;

            InitializeComponent();

            ConnectionName  = XmlClass.GetCurrentUserName();
            ConnectionName += " - ";
            ConnectionName += XmlClass.GetSelectedConnectionName();
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.loginControl = new WarehouseApp.LoginControl();
            this.AcceptButton = this.loginControl.BtnLogin;
            this.chbEdit = new System.Windows.Forms.CheckBox();
            this.SuspendLayout();
            // 
            // loginControl
            // 
            this.loginControl.Location = new System.Drawing.Point(0, 0);
            this.loginControl.Name = "loginControl";
            this.loginControl.Size = new System.Drawing.Size(380, 262);
            this.loginControl.TabIndex = 0;
            this.loginControl.ActivateEdit += new System.EventHandler(this.ActivateEdit);
            this.loginControl.CheckCredentials += new System.EventHandler(this.loginControl_CheckCredentials);
            this.loginControl.Successful += new System.EventHandler(this.Successful);
            this.loginControl.Failed += new System.EventHandler(this.Failed);
            // 
            // chbEdit
            // 
            this.chbEdit.AutoSize = true;
            this.chbEdit.Enabled = false;
            this.chbEdit.Location = new System.Drawing.Point(124, 188);
            this.chbEdit.Name = "chbEdit";
            this.chbEdit.Size = new System.Drawing.Size(72, 17);
            this.chbEdit.TabIndex = 1;
            this.chbEdit.Text = "Edit users";
            this.chbEdit.UseVisualStyleBackColor = true;
            // 
            // LoginForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(372, 253);
            this.Controls.Add(this.chbEdit);
            this.Controls.Add(this.loginControl);
            this.MaximizeBox = false;
            this.MaximumSize = new System.Drawing.Size(380, 280);
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(380, 280);
            this.Name = "LoginForm";
            this.Text = "Login";
            this.ResumeLayout(false);
            this.PerformLayout();

        }
 public void Login(LoginControl loginControl)
 {
     try {
         IsAuthenticated = userService.CheckCredentials(username, Password);
         if (IsAuthenticated) {
             loginControl.Close();
         } else {
             LoginInfo = "Error: Wrong username or password";
         }
     } catch (Exception ex) {
         LoginInfo = "Error: " +ex.Message;
     }
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoginForm));
     this.panelLogin = new DevComponents.DotNetBar.PanelEx();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.loginControl = new Control_Aulas_UAM.LoginControl();
     this.panelLogin.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // panelLogin
     //
     this.panelLogin.CanvasColor = System.Drawing.Color.DarkGreen;
     this.panelLogin.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.panelLogin.Controls.Add(this.pictureBox1);
     this.panelLogin.Controls.Add(this.loginControl);
     this.panelLogin.Location = new System.Drawing.Point(12, 13);
     this.panelLogin.Name = "panelLogin";
     this.panelLogin.Size = new System.Drawing.Size(500, 420);
     this.panelLogin.Style.Alignment = System.Drawing.StringAlignment.Center;
     this.panelLogin.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
     this.panelLogin.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panelLogin.Style.BorderColor.Color = System.Drawing.Color.LightSteelBlue;
     this.panelLogin.Style.CornerDiameter = 15;
     this.panelLogin.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
     this.panelLogin.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelLogin.Style.GradientAngle = 90;
     this.panelLogin.TabIndex = 1;
     //
     // pictureBox1
     //
     this.pictureBox1.Image = global::Control_Aulas_UAM.Properties.Resources.UAM_logo;
     this.pictureBox1.Location = new System.Drawing.Point(189, 25);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(126, 126);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop = false;
     //
     // loginControl
     //
     this.loginControl.BackColor = System.Drawing.Color.Transparent;
     this.loginControl.Location = new System.Drawing.Point(135, 157);
     this.loginControl.MinimumSize = new System.Drawing.Size(245, 230);
     this.loginControl.Name = "loginControl";
     this.loginControl.Padding = new System.Windows.Forms.Padding(5);
     this.loginControl.Size = new System.Drawing.Size(245, 230);
     this.loginControl.TabIndex = 0;
     //
     // LoginForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSize = true;
     this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.BackColor = System.Drawing.Color.DarkGreen;
     this.ClientSize = new System.Drawing.Size(525, 447);
     this.ControlBox = false;
     this.Controls.Add(this.panelLogin);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "LoginForm";
     this.Padding = new System.Windows.Forms.Padding(10);
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "LoginForm";
     this.TransparencyKey = System.Drawing.Color.DarkGreen;
     this.panelLogin.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.btnSetup = new System.Windows.Forms.Button();
     this.btnLogin = new System.Windows.Forms.Button();
     this.dataPictureBox1 = new System.Windows.Forms.PictureBox();
     this.grpDl = new System.Windows.Forms.GroupBox();
     this.ckbAutoLogin = new System.Windows.Forms.CheckBox();
     this.aspNetLoginControl1 = new Feng.Windows.Forms.LoginControl();
     this.ckbPwdRemember = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.dataPictureBox1)).BeginInit();
     this.grpDl.SuspendLayout();
     this.SuspendLayout();
     //
     // btnSetup
     //
     this.btnSetup.Location = new System.Drawing.Point(22, 118);
     this.btnSetup.Name = "btnSetup";
     this.btnSetup.Size = new System.Drawing.Size(72, 21);
     this.btnSetup.TabIndex = 2;
     this.btnSetup.Text = "设置(&S)";
     this.btnSetup.UseVisualStyleBackColor = true;
     this.btnSetup.Click += new System.EventHandler(this.btnSetup_Click);
     //
     // btnLogin
     //
     this.btnLogin.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnLogin.Location = new System.Drawing.Point(178, 118);
     this.btnLogin.Name = "btnLogin";
     this.btnLogin.Size = new System.Drawing.Size(72, 21);
     this.btnLogin.TabIndex = 1;
     this.btnLogin.Text = "登录(&L)";
     this.btnLogin.UseVisualStyleBackColor = true;
     this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
     //
     // dataPictureBox1
     //
     this.dataPictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.dataPictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.dataPictureBox1.Location = new System.Drawing.Point(4, 11);
     this.dataPictureBox1.Name = "dataPictureBox1";
     this.dataPictureBox1.Size = new System.Drawing.Size(279, 66);
     this.dataPictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.dataPictureBox1.TabIndex = 7;
     this.dataPictureBox1.TabStop = false;
     //
     // grpDl
     //
     this.grpDl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.grpDl.Controls.Add(this.ckbAutoLogin);
     this.grpDl.Controls.Add(this.aspNetLoginControl1);
     this.grpDl.Controls.Add(this.btnSetup);
     this.grpDl.Controls.Add(this.ckbPwdRemember);
     this.grpDl.Controls.Add(this.btnLogin);
     this.grpDl.Location = new System.Drawing.Point(4, 83);
     this.grpDl.Name = "grpDl";
     this.grpDl.Size = new System.Drawing.Size(278, 151);
     this.grpDl.TabIndex = 8;
     this.grpDl.TabStop = false;
     //
     // ckbAutoLogin
     //
     this.ckbAutoLogin.AutoSize = true;
     this.ckbAutoLogin.Location = new System.Drawing.Point(178, 96);
     this.ckbAutoLogin.Name = "ckbAutoLogin";
     this.ckbAutoLogin.Size = new System.Drawing.Size(90, 16);
     this.ckbAutoLogin.TabIndex = 4;
     this.ckbAutoLogin.Text = "自动登录(&O)";
     this.ckbAutoLogin.UseVisualStyleBackColor = true;
     //
     // aspNetLoginControl1
     //
     this.aspNetLoginControl1.Location = new System.Drawing.Point(22, 10);
     this.aspNetLoginControl1.Name = "aspNetLoginControl1";
     this.aspNetLoginControl1.Password = "";
     this.aspNetLoginControl1.Size = new System.Drawing.Size(220, 86);
     this.aspNetLoginControl1.TabIndex = 0;
     this.aspNetLoginControl1.UserName = "";
     this.aspNetLoginControl1.LoginEvent += new System.EventHandler<Feng.LoginEventArgs>(this.LoginControl_LoginEvent);
     //
     // ckbPwdRemember
     //
     this.ckbPwdRemember.AutoSize = true;
     this.ckbPwdRemember.Location = new System.Drawing.Point(22, 96);
     this.ckbPwdRemember.Name = "ckbPwdRemember";
     this.ckbPwdRemember.Size = new System.Drawing.Size(90, 16);
     this.ckbPwdRemember.TabIndex = 3;
     this.ckbPwdRemember.Text = "记住密码(&R)";
     this.ckbPwdRemember.UseVisualStyleBackColor = true;
     //
     // LoginForm
     //
     this.AcceptButton = this.btnLogin;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(289, 244);
     this.Controls.Add(this.dataPictureBox1);
     this.Controls.Add(this.grpDl);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.Name = "LoginForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "用户登录";
     this.Load += new System.EventHandler(this.LoginForm_Load);
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frm_Login_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.dataPictureBox1)).EndInit();
     this.grpDl.ResumeLayout(false);
     this.grpDl.PerformLayout();
     this.ResumeLayout(false);
 }