Ejemplo n.º 1
0
        /// <summary>
        /// 获取自定义的功能项
        /// </summary>
        /// <returns></returns>
        public List <CustomedFunc> GetCustomedFunc()
        {
            List <CustomedFunc> funcs = new List <CustomedFunc>();
            DataSet             ds    = ExecuteQuery("select * from [CustomedFunc]");

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                CustomedFunc func = new CustomedFunc {
                    Command = int.Parse(row["Command"].ToString()), Desc = row["Desc"].ToString(), Keys = row["Keys"].ToString()
                };
                funcs.Add(func);
            }
            return(funcs);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取自定义的功能项
 /// </summary>
 /// <returns></returns>
 public List<CustomedFunc> GetCustomedFunc()
 {
     List<CustomedFunc> funcs = new List<CustomedFunc>();
     DataSet ds = ExecuteQuery("select * from [CustomedFunc]");
     foreach (DataRow row in ds.Tables[0].Rows)
     {
         CustomedFunc func = new CustomedFunc { Command = int.Parse(row["Command"].ToString()), Desc = row["Desc"].ToString(), Keys = row["Keys"].ToString() };
         funcs.Add(func);
     }
     return funcs;
 }