示例#1
0
 //_________________________________________________________________________
 public void CreateTemplateIndic()
 {
     ВсегоПараметров = Params.GV.RowCount - 1;
     //baIsSingle = new bool[ВсегоПараметров];
     for (int i = 1; i <= ВсегоПараметров; i++)
     {
         string    sParams  = Params.InitStr(i - 1);
         TFindPair FindPair = new TFindPair(sParams);
         if (FindPair.Value(CONST.ПАРАМЕТРЫ.RequestType.ToString()) == CONST.RequestType.Single.ToString())
         {
             CreateLabel((string)Params.GV.Rows[i - 1].Cells[1].Value, PParameters);
         }
         else
         {
             CreateComboBox((string)Params.GV.Rows[i - 1].Cells[1].Value, PParameters);
         }
     }
 }
示例#2
0
        private void BTest1_Click(object sender, EventArgs e)
        {
            //DRV.Close();
            //DRV.GetValue(1, ref ip);
            //unsafe {	int* f = (int*)ip.ToPointer();}
            CBErrors.Items.Clear();

            DRV.Init(null, Devices.InitStr());
            for (int i = 1; i <= ВсегоПараметров; i++)
            {
                string sParams = Params.InitStr(i - 1);
                DRV.Subscribe(i, sParams);
                CBErrors.Items.Add(sParams);
            }
            Text = sCaption + " РАБОТАЕТ";
        }