Пример #1
0
 private void DataConverObject(initListinfo info)
 {
     g_tempInitlist.name = info.name;
     System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding();
     for (int i = 0; i < info.hex.Count; i++)
     {
         g_tempInitlist.hex[i].Checked    = info.hex[i];
         g_tempInitlist.index[i]          = info.index[i];
         g_tempInitlist.select[i].Checked = info.select[i];
         g_tempInitlist.address[i].Text   = info.address[i];
         g_tempInitlist.data[i].Text      = info.data[i];
         g_tempInitlist.info[i].Text      = info.info[i];
         //g_tempInitlist.info[i].Text = info.info[i];
     }
 }
Пример #2
0
        private initListinfo dataConver(initList init)
        {
            initListinfo info = new initListinfo();

            info.name = init.name;
            for (int i = 0; i < init.hex.Count; i++)
            {
                info.hex.Add(init.hex[i].Checked);
                info.index.Add(init.index[i]);
                info.select.Add(init.select[i].Checked);
                info.address.Add(init.address[i].Text);
                info.data.Add(init.data[i].Text);
                info.info.Add(init.info[i].Text);
            }
            return(info);
        }