From 2248c86af2b2c559b0cb80f63f9c09e9518709e0 Mon Sep 17 00:00:00 2001 From: tuan-te Date: Sun, 1 Dec 2024 23:44:43 +0700 Subject: [PATCH] Fix: Delete feature forgot password success and add feature change password --- ChangePassword.Designer.cs | 223 ++++++++++++++++++ ForgotPasswordSuccess.cs => ChangePassword.cs | 4 +- ...asswordSuccess.resx => ChangePassword.resx | 0 ForgotPasswordSuccess.Designer.cs | 90 ------- main_menu.Designer.cs | 76 +++--- main_menu.resx | 7 +- 6 files changed, 268 insertions(+), 132 deletions(-) create mode 100644 ChangePassword.Designer.cs rename ForgotPasswordSuccess.cs => ChangePassword.cs (76%) rename ForgotPasswordSuccess.resx => ChangePassword.resx (100%) delete mode 100644 ForgotPasswordSuccess.Designer.cs diff --git a/ChangePassword.Designer.cs b/ChangePassword.Designer.cs new file mode 100644 index 0000000..385ae8a --- /dev/null +++ b/ChangePassword.Designer.cs @@ -0,0 +1,223 @@ +namespace FunDraw +{ + partial class ChangePassword + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges1 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges2 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges3 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges4 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges5 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges6 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges7 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges8 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); + label2 = new Label(); + label1 = new Label(); + label3 = new Label(); + tbEmail = new Guna.UI2.WinForms.Guna2TextBox(); + guna2TextBox1 = new Guna.UI2.WinForms.Guna2TextBox(); + guna2TextBox2 = new Guna.UI2.WinForms.Guna2TextBox(); + guna2HtmlLabel2 = new Guna.UI2.WinForms.Guna2HtmlLabel(); + btSend = new Guna.UI2.WinForms.Guna2Button(); + SuspendLayout(); + // + // label2 + // + label2.AutoSize = true; + label2.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label2.Location = new Point(181, 195); + label2.Name = "label2"; + label2.Size = new Size(163, 28); + label2.TabIndex = 3; + label2.Text = "Mật khẩu hiện tại"; + // + // label1 + // + label1.AutoSize = true; + label1.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label1.Location = new Point(181, 254); + label1.Name = "label1"; + label1.Size = new Size(133, 28); + label1.TabIndex = 4; + label1.Text = "Mật khẩu mới"; + // + // label3 + // + label3.AutoSize = true; + label3.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label3.Location = new Point(181, 316); + label3.Name = "label3"; + label3.Size = new Size(177, 28); + label3.TabIndex = 5; + label3.Text = "Xác nhận mật khẩu"; + // + // tbEmail + // + tbEmail.Anchor = AnchorStyles.None; + tbEmail.BorderRadius = 12; + tbEmail.Cursor = Cursors.IBeam; + tbEmail.CustomizableEdges = customizableEdges1; + tbEmail.DefaultText = ""; + tbEmail.DisabledState.BorderColor = Color.FromArgb(208, 208, 208); + tbEmail.DisabledState.FillColor = Color.FromArgb(226, 226, 226); + tbEmail.DisabledState.ForeColor = Color.FromArgb(138, 138, 138); + tbEmail.DisabledState.PlaceholderForeColor = Color.FromArgb(138, 138, 138); + tbEmail.FillColor = Color.FromArgb(224, 224, 224); + tbEmail.FocusedState.BorderColor = Color.FromArgb(94, 148, 255); + tbEmail.Font = new Font("Segoe UI", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); + tbEmail.HoverState.BorderColor = Color.FromArgb(94, 148, 255); + tbEmail.Location = new Point(422, 195); + tbEmail.Margin = new Padding(5, 7, 5, 7); + tbEmail.Name = "tbEmail"; + tbEmail.PasswordChar = '\0'; + tbEmail.PlaceholderForeColor = Color.Gainsboro; + tbEmail.PlaceholderText = ""; + tbEmail.SelectedText = ""; + tbEmail.ShadowDecoration.CustomizableEdges = customizableEdges2; + tbEmail.Size = new Size(292, 28); + tbEmail.TabIndex = 20; + // + // guna2TextBox1 + // + guna2TextBox1.Anchor = AnchorStyles.None; + guna2TextBox1.BorderRadius = 12; + guna2TextBox1.Cursor = Cursors.IBeam; + guna2TextBox1.CustomizableEdges = customizableEdges3; + guna2TextBox1.DefaultText = ""; + guna2TextBox1.DisabledState.BorderColor = Color.FromArgb(208, 208, 208); + guna2TextBox1.DisabledState.FillColor = Color.FromArgb(226, 226, 226); + guna2TextBox1.DisabledState.ForeColor = Color.FromArgb(138, 138, 138); + guna2TextBox1.DisabledState.PlaceholderForeColor = Color.FromArgb(138, 138, 138); + guna2TextBox1.FillColor = Color.FromArgb(224, 224, 224); + guna2TextBox1.FocusedState.BorderColor = Color.FromArgb(94, 148, 255); + guna2TextBox1.Font = new Font("Segoe UI", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); + guna2TextBox1.HoverState.BorderColor = Color.FromArgb(94, 148, 255); + guna2TextBox1.Location = new Point(422, 254); + guna2TextBox1.Margin = new Padding(5, 7, 5, 7); + guna2TextBox1.Name = "guna2TextBox1"; + guna2TextBox1.PasswordChar = '\0'; + guna2TextBox1.PlaceholderForeColor = Color.Gainsboro; + guna2TextBox1.PlaceholderText = ""; + guna2TextBox1.SelectedText = ""; + guna2TextBox1.ShadowDecoration.CustomizableEdges = customizableEdges4; + guna2TextBox1.Size = new Size(292, 28); + guna2TextBox1.TabIndex = 21; + // + // guna2TextBox2 + // + guna2TextBox2.Anchor = AnchorStyles.None; + guna2TextBox2.BorderRadius = 12; + guna2TextBox2.Cursor = Cursors.IBeam; + guna2TextBox2.CustomizableEdges = customizableEdges5; + guna2TextBox2.DefaultText = ""; + guna2TextBox2.DisabledState.BorderColor = Color.FromArgb(208, 208, 208); + guna2TextBox2.DisabledState.FillColor = Color.FromArgb(226, 226, 226); + guna2TextBox2.DisabledState.ForeColor = Color.FromArgb(138, 138, 138); + guna2TextBox2.DisabledState.PlaceholderForeColor = Color.FromArgb(138, 138, 138); + guna2TextBox2.FillColor = Color.FromArgb(224, 224, 224); + guna2TextBox2.FocusedState.BorderColor = Color.FromArgb(94, 148, 255); + guna2TextBox2.Font = new Font("Segoe UI", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); + guna2TextBox2.HoverState.BorderColor = Color.FromArgb(94, 148, 255); + guna2TextBox2.Location = new Point(422, 316); + guna2TextBox2.Margin = new Padding(5, 7, 5, 7); + guna2TextBox2.Name = "guna2TextBox2"; + guna2TextBox2.PasswordChar = '\0'; + guna2TextBox2.PlaceholderForeColor = Color.Gainsboro; + guna2TextBox2.PlaceholderText = ""; + guna2TextBox2.SelectedText = ""; + guna2TextBox2.ShadowDecoration.CustomizableEdges = customizableEdges6; + guna2TextBox2.Size = new Size(292, 28); + guna2TextBox2.TabIndex = 22; + // + // guna2HtmlLabel2 + // + guna2HtmlLabel2.Anchor = AnchorStyles.None; + guna2HtmlLabel2.AutoSize = false; + guna2HtmlLabel2.BackColor = Color.Transparent; + guna2HtmlLabel2.Font = new Font("Microsoft Sans Serif", 28.2F, FontStyle.Bold, GraphicsUnit.Point, 0); + guna2HtmlLabel2.ForeColor = SystemColors.WindowText; + guna2HtmlLabel2.Location = new Point(295, 89); + guna2HtmlLabel2.Margin = new Padding(5, 4, 5, 4); + guna2HtmlLabel2.Name = "guna2HtmlLabel2"; + guna2HtmlLabel2.Size = new Size(289, 59); + guna2HtmlLabel2.TabIndex = 23; + guna2HtmlLabel2.Text = "Đổi mật khẩu"; + guna2HtmlLabel2.TextAlignment = ContentAlignment.TopCenter; + // + // btSend + // + btSend.Anchor = AnchorStyles.None; + btSend.Animated = true; + btSend.BorderRadius = 12; + btSend.CustomizableEdges = customizableEdges7; + btSend.DisabledState.BorderColor = Color.DarkGray; + btSend.DisabledState.CustomBorderColor = Color.DarkGray; + btSend.DisabledState.FillColor = Color.FromArgb(169, 169, 169); + btSend.DisabledState.ForeColor = Color.FromArgb(141, 141, 141); + btSend.FillColor = Color.FromArgb(160, 210, 235); + btSend.Font = new Font("Segoe UI", 11.25F, FontStyle.Bold, GraphicsUnit.Point, 0); + btSend.ForeColor = Color.Black; + btSend.Location = new Point(329, 415); + btSend.Margin = new Padding(5, 4, 5, 4); + btSend.Name = "btSend"; + btSend.ShadowDecoration.CustomizableEdges = customizableEdges8; + btSend.Size = new Size(190, 53); + btSend.TabIndex = 24; + btSend.Text = "OK"; + // + // ChangePassword + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(875, 547); + Controls.Add(btSend); + Controls.Add(guna2HtmlLabel2); + Controls.Add(guna2TextBox2); + Controls.Add(guna2TextBox1); + Controls.Add(tbEmail); + Controls.Add(label3); + Controls.Add(label1); + Controls.Add(label2); + Name = "ChangePassword"; + Text = "ChangePassword"; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private Label label2; + private Label label1; + private Label label3; + private Guna.UI2.WinForms.Guna2TextBox tbEmail; + private Guna.UI2.WinForms.Guna2TextBox guna2TextBox1; + private Guna.UI2.WinForms.Guna2TextBox guna2TextBox2; + private Guna.UI2.WinForms.Guna2HtmlLabel guna2HtmlLabel2; + private Guna.UI2.WinForms.Guna2Button btSend; + } +} \ No newline at end of file diff --git a/ForgotPasswordSuccess.cs b/ChangePassword.cs similarity index 76% rename from ForgotPasswordSuccess.cs rename to ChangePassword.cs index 9a01b98..a8c7902 100644 --- a/ForgotPasswordSuccess.cs +++ b/ChangePassword.cs @@ -10,9 +10,9 @@ namespace FunDraw { - public partial class ForgotPasswordSuccess : Form + public partial class ChangePassword : Form { - public ForgotPasswordSuccess() + public ChangePassword() { InitializeComponent(); } diff --git a/ForgotPasswordSuccess.resx b/ChangePassword.resx similarity index 100% rename from ForgotPasswordSuccess.resx rename to ChangePassword.resx diff --git a/ForgotPasswordSuccess.Designer.cs b/ForgotPasswordSuccess.Designer.cs deleted file mode 100644 index 87e9a0d..0000000 --- a/ForgotPasswordSuccess.Designer.cs +++ /dev/null @@ -1,90 +0,0 @@ -namespace FunDraw -{ - partial class ForgotPasswordSuccess - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges1 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); - Guna.UI2.WinForms.Suite.CustomizableEdges customizableEdges2 = new Guna.UI2.WinForms.Suite.CustomizableEdges(); - guna2HtmlLabel1 = new Guna.UI2.WinForms.Guna2HtmlLabel(); - btClose = new Guna.UI2.WinForms.Guna2Button(); - SuspendLayout(); - // - // guna2HtmlLabel1 - // - guna2HtmlLabel1.Anchor = AnchorStyles.None; - guna2HtmlLabel1.AutoSize = false; - guna2HtmlLabel1.BackColor = Color.Transparent; - guna2HtmlLabel1.Font = new Font("Microsoft Sans Serif", 13.8F, FontStyle.Regular, GraphicsUnit.Point, 0); - guna2HtmlLabel1.ForeColor = SystemColors.WindowText; - guna2HtmlLabel1.Location = new Point(184, 172); - guna2HtmlLabel1.Margin = new Padding(5, 4, 5, 4); - guna2HtmlLabel1.Name = "guna2HtmlLabel1"; - guna2HtmlLabel1.Size = new Size(513, 64); - guna2HtmlLabel1.TabIndex = 19; - guna2HtmlLabel1.Text = "Một email sẽ được gửi về email@example.tld nếu tài khoản có trong hệ thống "; - guna2HtmlLabel1.TextAlignment = ContentAlignment.MiddleCenter; - // - // btClose - // - btClose.Anchor = AnchorStyles.None; - btClose.Animated = true; - btClose.BorderRadius = 12; - btClose.CustomizableEdges = customizableEdges1; - btClose.DisabledState.BorderColor = Color.DarkGray; - btClose.DisabledState.CustomBorderColor = Color.DarkGray; - btClose.DisabledState.FillColor = Color.FromArgb(169, 169, 169); - btClose.DisabledState.ForeColor = Color.FromArgb(141, 141, 141); - btClose.FillColor = Color.FromArgb(160, 210, 235); - btClose.Font = new Font("Segoe UI", 11.25F, FontStyle.Bold, GraphicsUnit.Point, 0); - btClose.ForeColor = Color.Black; - btClose.Location = new Point(344, 271); - btClose.Margin = new Padding(5, 4, 5, 4); - btClose.Name = "btClose"; - btClose.ShadowDecoration.CustomizableEdges = customizableEdges2; - btClose.Size = new Size(190, 53); - btClose.TabIndex = 21; - btClose.Text = "Đóng"; - // - // ForgotPasswordSuccess - // - AutoScaleDimensions = new SizeF(8F, 20F); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(897, 548); - Controls.Add(btClose); - Controls.Add(guna2HtmlLabel1); - Name = "ForgotPasswordSuccess"; - Text = "ForgotPasswordSuccess"; - ResumeLayout(false); - } - - #endregion - - private Guna.UI2.WinForms.Guna2HtmlLabel guna2HtmlLabel1; - private Guna.UI2.WinForms.Guna2Button btClose; - } -} \ No newline at end of file diff --git a/main_menu.Designer.cs b/main_menu.Designer.cs index 214ad28..7bf911a 100644 --- a/main_menu.Designer.cs +++ b/main_menu.Designer.cs @@ -65,14 +65,14 @@ private void InitializeComponent() shPlayer.BorderColor = Color.Transparent; shPlayer.BorderThickness = 0; shPlayer.FillColor = Color.FromArgb(224, 224, 224); - shPlayer.Location = new Point(5, 129); - shPlayer.Margin = new Padding(4, 3, 4, 3); + shPlayer.Location = new Point(-1, 128); + shPlayer.Margin = new Padding(5, 4, 5, 4); shPlayer.Name = "shPlayer"; shPlayer.PolygonSkip = 1; shPlayer.Rotate = 0F; shPlayer.RoundedEdges = customizableEdges1; shPlayer.Shape = Guna.UI2.WinForms.Enums.ShapeType.Rounded; - shPlayer.Size = new Size(233, 378); + shPlayer.Size = new Size(266, 504); shPlayer.TabIndex = 10; shPlayer.Text = "guna2Shapes1"; shPlayer.UseTransparentBackground = true; @@ -91,11 +91,11 @@ private void InitializeComponent() btThamGia.FillColor = Color.FromArgb(160, 210, 235); btThamGia.Font = new Font("Segoe UI", 12F); btThamGia.ForeColor = Color.Black; - btThamGia.Location = new Point(378, 411); - btThamGia.Margin = new Padding(4, 3, 4, 3); + btThamGia.Location = new Point(425, 504); + btThamGia.Margin = new Padding(5, 4, 5, 4); btThamGia.Name = "btThamGia"; btThamGia.ShadowDecoration.CustomizableEdges = customizableEdges3; - btThamGia.Size = new Size(174, 42); + btThamGia.Size = new Size(199, 56); btThamGia.TabIndex = 1; btThamGia.Text = "Tham gia"; // @@ -113,11 +113,11 @@ private void InitializeComponent() btHoSo.FillColor = Color.FromArgb(160, 210, 235); btHoSo.Font = new Font("Segoe UI", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); btHoSo.ForeColor = Color.Black; - btHoSo.Location = new Point(50, 362); - btHoSo.Margin = new Padding(4, 3, 4, 3); + btHoSo.Location = new Point(50, 439); + btHoSo.Margin = new Padding(5, 4, 5, 4); btHoSo.Name = "btHoSo"; btHoSo.ShadowDecoration.CustomizableEdges = customizableEdges5; - btHoSo.Size = new Size(144, 39); + btHoSo.Size = new Size(165, 52); btHoSo.TabIndex = 2; btHoSo.Text = "Hồ sơ"; // @@ -136,15 +136,15 @@ private void InitializeComponent() tbMaPhong.FocusedState.BorderColor = Color.FromArgb(94, 148, 255); tbMaPhong.Font = new Font("Segoe UI", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); tbMaPhong.HoverState.BorderColor = Color.FromArgb(94, 148, 255); - tbMaPhong.Location = new Point(378, 362); - tbMaPhong.Margin = new Padding(4, 5, 4, 5); + tbMaPhong.Location = new Point(425, 439); + tbMaPhong.Margin = new Padding(5, 7, 5, 7); tbMaPhong.Name = "tbMaPhong"; tbMaPhong.PasswordChar = '\0'; tbMaPhong.PlaceholderForeColor = Color.Gainsboro; tbMaPhong.PlaceholderText = ""; tbMaPhong.SelectedText = ""; tbMaPhong.ShadowDecoration.CustomizableEdges = customizableEdges7; - tbMaPhong.Size = new Size(174, 39); + tbMaPhong.Size = new Size(199, 52); tbMaPhong.TabIndex = 8; tbMaPhong.Enter += tbMaPhong_Enter; tbMaPhong.Leave += tbMaPhong_Leave; @@ -163,11 +163,11 @@ private void InitializeComponent() btDangXuat.FillColor = Color.FromArgb(255, 107, 107); btDangXuat.Font = new Font("Segoe UI", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); btDangXuat.ForeColor = Color.Black; - btDangXuat.Location = new Point(50, 408); - btDangXuat.Margin = new Padding(4, 3, 4, 3); + btDangXuat.Location = new Point(50, 500); + btDangXuat.Margin = new Padding(5, 4, 5, 4); btDangXuat.Name = "btDangXuat"; btDangXuat.ShadowDecoration.CustomizableEdges = customizableEdges9; - btDangXuat.Size = new Size(144, 39); + btDangXuat.Size = new Size(165, 52); btDangXuat.TabIndex = 3; btDangXuat.Text = "Đăng xuất"; // @@ -184,11 +184,11 @@ private void InitializeComponent() btTaoPhong.FillColor = Color.FromArgb(160, 210, 235); btTaoPhong.Font = new Font("Segoe UI", 11.25F, FontStyle.Bold, GraphicsUnit.Point, 0); btTaoPhong.ForeColor = Color.Black; - btTaoPhong.Location = new Point(378, 259); - btTaoPhong.Margin = new Padding(4, 3, 4, 3); + btTaoPhong.Location = new Point(425, 301); + btTaoPhong.Margin = new Padding(5, 4, 5, 4); btTaoPhong.Name = "btTaoPhong"; btTaoPhong.ShadowDecoration.CustomizableEdges = customizableEdges11; - btTaoPhong.Size = new Size(174, 49); + btTaoPhong.Size = new Size(199, 65); btTaoPhong.TabIndex = 0; btTaoPhong.Text = "Tạo phòng"; // @@ -198,12 +198,12 @@ private void InitializeComponent() cpbLogo.BackColor = Color.FromArgb(250, 250, 250); cpbLogo.FillColor = Color.Gainsboro; cpbLogo.ImageRotate = 0F; - cpbLogo.Location = new Point(378, 59); - cpbLogo.Margin = new Padding(4, 3, 4, 3); + cpbLogo.Location = new Point(425, 35); + cpbLogo.Margin = new Padding(5, 4, 5, 4); cpbLogo.Name = "cpbLogo"; cpbLogo.ShadowDecoration.CustomizableEdges = customizableEdges12; cpbLogo.ShadowDecoration.Mode = Guna.UI2.WinForms.Enums.ShadowMode.Circle; - cpbLogo.Size = new Size(174, 168); + cpbLogo.Size = new Size(199, 218); cpbLogo.TabIndex = 9; cpbLogo.TabStop = false; // @@ -213,12 +213,12 @@ private void InitializeComponent() cpbAvatar.BackColor = Color.FromArgb(224, 224, 224); cpbAvatar.FillColor = Color.LightGray; cpbAvatar.ImageRotate = 0F; - cpbAvatar.Location = new Point(71, 189); - cpbAvatar.Margin = new Padding(4, 3, 4, 3); + cpbAvatar.Location = new Point(74, 208); + cpbAvatar.Margin = new Padding(5, 4, 5, 4); cpbAvatar.Name = "cpbAvatar"; cpbAvatar.ShadowDecoration.CustomizableEdges = customizableEdges13; cpbAvatar.ShadowDecoration.Mode = Guna.UI2.WinForms.Enums.ShadowMode.Circle; - cpbAvatar.Size = new Size(102, 97); + cpbAvatar.Size = new Size(117, 129); cpbAvatar.TabIndex = 11; cpbAvatar.TabStop = false; // @@ -237,9 +237,9 @@ private void InitializeComponent() panel_main.Controls.Add(shPlayer); panel_main.Dock = DockStyle.Fill; panel_main.Location = new Point(0, 0); - panel_main.Margin = new Padding(4, 3, 4, 3); + panel_main.Margin = new Padding(5, 4, 5, 4); panel_main.Name = "panel_main"; - panel_main.Size = new Size(921, 621); + panel_main.Size = new Size(1038, 740); panel_main.TabIndex = 12; // // lbPlayer @@ -247,10 +247,10 @@ private void InitializeComponent() lbPlayer.Anchor = AnchorStyles.None; lbPlayer.BackColor = Color.FromArgb(224, 224, 224); lbPlayer.Font = new Font("Microsoft Sans Serif", 12.75F, FontStyle.Regular, GraphicsUnit.Point, 0); - lbPlayer.Location = new Point(96, 292); - lbPlayer.Margin = new Padding(4, 3, 4, 3); + lbPlayer.Location = new Point(103, 345); + lbPlayer.Margin = new Padding(5, 4, 5, 4); lbPlayer.Name = "lbPlayer"; - lbPlayer.Size = new Size(50, 22); + lbPlayer.Size = new Size(64, 27); lbPlayer.TabIndex = 14; lbPlayer.Text = "Player"; lbPlayer.TextAlignment = ContentAlignment.MiddleCenter; @@ -260,10 +260,10 @@ private void InitializeComponent() lbDangChoi.Anchor = AnchorStyles.None; lbDangChoi.BackColor = Color.Transparent; lbDangChoi.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); - lbDangChoi.Location = new Point(363, 473); - lbDangChoi.Margin = new Padding(4, 3, 4, 3); + lbDangChoi.Location = new Point(408, 587); + lbDangChoi.Margin = new Padding(5, 4, 5, 4); lbDangChoi.Name = "lbDangChoi"; - lbDangChoi.Size = new Size(210, 20); + lbDangChoi.Size = new Size(276, 26); lbDangChoi.TabIndex = 13; lbDangChoi.Text = "Hiện đang có 0 người đang chơi"; lbDangChoi.TextAlignment = ContentAlignment.MiddleCenter; @@ -273,22 +273,22 @@ private void InitializeComponent() lbThamGia.Anchor = AnchorStyles.None; lbThamGia.BackColor = Color.Transparent; lbThamGia.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); - lbThamGia.Location = new Point(413, 334); - lbThamGia.Margin = new Padding(4, 3, 4, 3); + lbThamGia.Location = new Point(465, 401); + lbThamGia.Margin = new Padding(5, 4, 5, 4); lbThamGia.Name = "lbThamGia"; - lbThamGia.Size = new Size(99, 20); + lbThamGia.Size = new Size(124, 26); lbThamGia.TabIndex = 12; lbThamGia.Text = "Hoặc tham gia"; lbThamGia.TextAlignment = ContentAlignment.MiddleCenter; // // main_menu // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.FromArgb(250, 250, 250); - ClientSize = new Size(921, 621); + ClientSize = new Size(1038, 740); Controls.Add(panel_main); - Margin = new Padding(4, 3, 4, 3); + Margin = new Padding(5, 4, 5, 4); Name = "main_menu"; Text = "Main Menu"; ((System.ComponentModel.ISupportInitialize)cpbLogo).EndInit(); diff --git a/main_menu.resx b/main_menu.resx index 8b2ff64..bab6a40 100644 --- a/main_menu.resx +++ b/main_menu.resx @@ -1,7 +1,7 @@