Exemple #1
0
        private int SortDataLineByID(DataLineInfo dli1, DataLineInfo dli2)
        {
            DataCellInfo dci1 = dli1.GetCellData(0);
            DataCellInfo dci2 = dli2.GetCellData(0);

            int id1 = int.Parse(dci1.GetValue <string>());
            int id2 = int.Parse(dci2.GetValue <string>());

            if (id1 == id2)
            {
                return(0);
            }
            else if (id1 > id2)
            {
                return(1);
            }
            else
            {
                return(-1);
            }
        }
Exemple #2
0
 public DataLineInfo(int count)
 {
     datas = new DataCellInfo[count];
 }
Exemple #3
0
 public void AddCellData(int index, int r, int c, object v)
 {
     datas[index] = new DataCellInfo(r, c, v);
 }