Пример #1
0
 public void AddRow(object CellsObj)
 {
     if (this.InvokeRequired)
     {
         AddRow_d ARD = new AddRow_d(AddRow);
         this.Invoke(ARD, new object[] { CellsObj });
     }
     else
     {
         object[] CellsArray = Tools.ToDotNetArray(CellsObj);
         if (CellsArray.Length > 0)
         {
             int GridId = this.Rows.Add(CellsArray);
             if (CellsArray.Length > 0)
             {
                 try
                 {
                     int ID = Int32.Parse(CellsArray[0].ToString());
                     GridMap[ID] = GridId;
                 }
                 catch { }
             }
         }
     }
 }
Пример #2
0
 public void AddRow(object CellsObj)
 {
     if (this.InvokeRequired)
     {
         AddRow_d ARD = new AddRow_d(AddRow);
         this.Invoke(ARD, new object[] { CellsObj });
     }
     else
     {
         object[] CellsArray = Tools.ToDotNetArray(CellsObj);
         if (CellsArray.Length > 0)
         {
             int GridId = this.Rows.Add(CellsArray);
             if (CellsArray.Length > 0)
             {
                 try
                 {
                     int ID = Int32.Parse(CellsArray[0].ToString());
                     GridMap[ID] = GridId;
                 }
                 catch { }
             }
         }
     }
 }