zoukankan      html  css  js  c++  java
  • [综合|基础|语法] 最新的皮肤帮助类 UI_Misc_Helper (转载)

    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
     
    namespace BaseFunction
    {
        /// <summary>
        /// 处理一些控件的方法
        /// </summary>
        public class UI_Misc_Helper
        {
            /// <summary>
            /// 返回选中的Comobox中Text对应的value值或者是value对应的Text值
            /// </summary>
            /// <param name="combobox">combobox对象</param>
            /// <param name="dt_tables">要查询的表</param>
            /// <param name="Text">要查询的字段</param>
            /// <param name="Value">要返回的字段</param>
            /// <returns>int</returns>
            public static string GetComboBoxValueOrText(CRD.WinUI.Misc.ComboBox combobox, DataTable dt_tables, string Text, string Value)
            {
                var result = dt_tables.AsEnumerable().Where(fi => fi[Text.ToString().Trim()].ToString().Trim() == combobox.Text.ToString().Trim()).FirstOrDefault();
                return result[Value.ToString().Trim()].ToString().Trim();
            }
     
        }
    }
  • 相关阅读:
    join
    PS1-4
    tftp + bras
    awk调用shell
    curl
    ssh
    查看cp进度,使用watch
    tftp
    scp 链接文件的问题 + tar
    mysql必知必会(三、使用mysql)
  • 原文地址:https://www.cnblogs.com/lizeyan/p/3628189.html
Copyright © 2011-2022 走看看