From 66315d3ad5ab7fcc673cdf479742c6eff73df8ea Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期日, 27 十月 2024 07:57:50 +0800
Subject: [PATCH] 修改了检查guid
---
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