From 924bdf1c9fb74babf2438d5545db3594756625d1 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 22 六月 2020 20:06:39 +0800
Subject: [PATCH] '完善信息'

---
 WindowsFormsApp1/utils/ui/ButtonFactory.cs |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/WindowsFormsApp1/utils/ui/ButtonFactory.cs b/WindowsFormsApp1/utils/ui/ButtonFactory.cs
index 110d720..ee6522d 100644
--- a/WindowsFormsApp1/utils/ui/ButtonFactory.cs
+++ b/WindowsFormsApp1/utils/ui/ButtonFactory.cs
@@ -17,16 +17,22 @@
             return button;
         }
 
-        public static Button CreateDefault() {
-            Button button = createBase();
-            return button;
+        public static Button CreateDefault(Button btn) {
+
+            btn.BackColor = System.Drawing.SystemColors.Control;
+            btn.ForeColor = System.Drawing.SystemColors.WindowText;
+
+            return btn;
         }
 
-        public static Button CreateDefault(String text)
+
+        public static Button CreatePrimary(Button btn)
         {
-            Button button = CreateDefault();
-            button.Text = text;
-            return button;
+            btn.FlatAppearance.BorderSize = 0;
+            btn.FlatStyle = FlatStyle.Flat;
+            btn.BackColor = Color.FromArgb(12, 130, 240);
+            btn.ForeColor = Color.White;
+            return btn;
         }
     }
 }

--
Gitblit v1.8.0