示例#1
0
 //view choose cell
 private void cmbADCellChoose_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!IsNull(cmbADCellChoose))
     {
         string txt = cmbADCellChoose.SelectedItem.ToString();
         Cell   c   = sqlWorker.GetCells().FindLast(x => x.Name.Equals(txt));
         txtADCellInfo.Text = c.ToString();
     }
 }
示例#2
0
        public void loadCells()
        {
            if (sqlWorker == null)
            {
                throw new SQLWorkerException("SQLWorker is equal to null.");
            }

            cells.Clear();
            cells = sqlWorker.GetCells();
        }
示例#3
0
 public void loadCells(ISQLWorker sqlWorker)
 {
     cells.Clear();
     cells = sqlWorker.GetCells();
 }