schangxiang@126.com
2024-12-19 4422008672f79f74841e11f20430c5e76686e293
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
using iWare_SCADA_Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWare_SCADA_BusinessLogical.Utils
{
    /// <summary>
    /// ComboBox帮助类
    /// </summary>
    public class ComboBoxHelper
    {
        /// <summary>
        /// 获取下拉框的选择的数据
        /// </summary>
        /// <param name="cmb"></param>
        /// <returns></returns>
        public static string GetComboxSelectValue(System.Windows.Forms.ComboBox cmb, ref ListItem selProFlag)
        {
            selProFlag = (ListItem)cmb.SelectedItem;
            var sselProFlagValue = selProFlag.Value;
            return sselProFlagValue;
        }
 
    }
}