Пример #1
0
 public override void InitializeLayout()
 {
     base.InitializeLayout();
     pass = new TextBoxPassword(input_pass);
     pass.SetSize(260, 20);
     this.btn_login.Clicked        += this.LoginButtonClickedHandler;
     this.input_user.SubmitPressed += this.OnFieldSubmit;
     this.pass.SubmitPressed       += this.OnFieldSubmit;
     this.Position = new Point(Game.Resolution.Width / 2 - this.Window.Width / 2, Game.Resolution.Height / 2 - this.Window.Height / 2);
     this.Window.DisableResizing();
     this.label_invalid.Hide();
     this.input_user.Text = Configs.Username;
     this.pass.Text       = Configs.Password;
 }