Beispiel #1
0
        private void DoQuery()
        {
            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);

            object[] equipmentList = watchPanelFacade.GetAllEquipment();

            if (equipmentList != null)
            {
                DataRow rowNew;
                foreach (Equipment equipment in equipmentList)
                {
                    rowNew            = this.m_EQPID.NewRow();
                    rowNew["Checked"] = false;
                    rowNew["EQPID"]   = equipment.EqpId;
                    rowNew["EQPDesc"] = equipment.EqpDesc;
                    this.m_EQPID.Rows.Add(rowNew);
                }
                this.m_EQPID.AcceptChanges();
            }
        }