From cefcc903f51610846fa313a3a35bca34e129c1fe Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期五, 25 十月 2024 08:57:01 +0800
Subject: [PATCH] 代码清理以及格式化

---
 DevApp/Gs.DevApp/UserControl/UcComBox.cs |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcComBox.cs b/DevApp/Gs.DevApp/UserControl/UcComBox.cs
index 228875c..f428461 100644
--- a/DevApp/Gs.DevApp/UserControl/UcComBox.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcComBox.cs
@@ -3,8 +3,12 @@
 
 namespace Gs.DevApp.UserControl
 {
-    public partial class UcComBox : DevExpress.XtraEditors.XtraUserControl
+    public partial class UcComBox : XtraUserControl
     {
+        private string _Text = "-璇烽�夋嫨-";
+
+        private string _Value = "0";
+
         public UcComBox()
         {
             InitializeComponent();
@@ -13,25 +17,23 @@
             txt_isStatus.Properties.Items.Add(new CboItemEntity("-1", "涓嶆甯�"));
         }
 
-        private string _Value = "0";
-        private string _Text = "-璇烽�夋嫨-";
-
         /// <summary>
-        /// 鏄剧ず鍊�
+        ///     鏄剧ず鍊�
         /// </summary>
         public string Txt
         {
-            get { return this.txt_isStatus.Text.ToString(); }
-            set { this._Text = value; }
+            get => txt_isStatus.Text;
+            set => _Text = value;
         }
+
         /// <summary>
-        /// 瀵硅薄鍊�
+        ///     瀵硅薄鍊�
         /// </summary>
         public string Val
         {
             get
             {
-                switch (this.txt_isStatus.SelectedIndex)
+                switch (txt_isStatus.SelectedIndex)
                 {
                     case 0:
                         return "0";
@@ -45,25 +47,23 @@
             }
             set
             {
-                this._Value = value;
+                _Value = value;
                 if (!string.IsNullOrEmpty(value))
-                {
                     switch (int.Parse(value))
                     {
                         case 0:
-                            this.txt_isStatus.SelectedIndex=0;
+                            txt_isStatus.SelectedIndex = 0;
                             break;
                         case 1:
-                            this.txt_isStatus.SelectedIndex = 1;
+                            txt_isStatus.SelectedIndex = 1;
                             break;
                         case -1:
-                            this.txt_isStatus.SelectedIndex = 2;
+                            txt_isStatus.SelectedIndex = 2;
                             break;
                         default:
-                            this.txt_isStatus.SelectedIndex = 0;
+                            txt_isStatus.SelectedIndex = 0;
                             break;
                     }
-                }
             }
         }
 
@@ -72,4 +72,4 @@
         //    return this.Text.ToString();
         //}
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3