Beispiel #1
0
        private List <string> AutoBindGrid(string gridSourceKey, JArray gridFields)
        {
            var grid1 = UIHelper.Grid("LogGrid");

            CMDMSG        resultMsg = ToolPackage.BatTool(GlobalConstant.BAT_PATH_DIC["copy"]);
            List <string> allMsgs   = new List <string>(resultMsg.Msg.Split('_'));

            DataTable table = new DataTable();

            table.Columns.Add(new DataColumn("Id", typeof(int)));
            table.Columns.Add(new DataColumn("Value", typeof(string)));

            DataRow row = null;

            for (int i = 0; i < allMsgs.Count; i++)
            {
                row    = table.NewRow();
                row[0] = i;
                row[1] = allMsgs[i];
                table.Rows.Add(row);
            }

            ShowNotify(Environment.CurrentDirectory);
            grid1.DataSource(table, gridFields);
            grid1.Attribute("data-source-key", gridSourceKey);

            return(allMsgs);
        }
            // constructor
            public MSG(CMDMSG cmd, byte[] rgb)
            {
                cmdmsg = cmd;

                if (rgb == null)
                {
                    rgbData = new byte[0];
                }
                else
                {
                    rgbData = rgb;
                }
            }
 // constructor
 public MSG(CMDMSG cmd)
 {
     cmdmsg  = cmd;
     rgbData = new byte[0];
 }
 // constructor
 public MSG()
 {
     cmdmsg  = CMDMSG.None;
     rgbData = new byte[0];
 }
Beispiel #5
0
            // constructor
            public MSG(CMDMSG cmd, byte[] rgb)
            {
                cmdmsg = cmd;

                if (rgb == null)
                {
                    rgbData = new byte[0];
                }
                else
                {
                    rgbData = rgb;
                }
            }
Beispiel #6
0
 // constructor
 public MSG(CMDMSG cmd)
 {
     cmdmsg = cmd;
     rgbData = new byte[0];
 }
Beispiel #7
0
 // constructor
 public MSG()
 {
     cmdmsg = CMDMSG.None;
     rgbData = new byte[0];
 }