Example #1
0
 public frmListGateway(SetGatewayManager set_gm, GateWayManager gw)
 {
     InitializeComponent();
     this.gm                  = gw;
     this.delgGWManager       = set_gm;
     this.gm.eventAddGateway += new EventHandler(this.btnAddGateway_Click);
 }
Example #2
0
 public frmListOTA(IEW.ObjectManager.ObjectManager obj_mgr, GateWayManager gw_mgr, OTAManager ota_mgr)
 {
     InitializeComponent();
     this.obj_manager = obj_mgr;
     this.gw_manager  = gw_mgr;
     this.ota_manager = ota_mgr;
     this.obj_manager.OTAAckEventHandler += new EventHandler(this.RefreshOTAAck);
 }
Example #3
0
 //Constructor to Add New EDC Xml Information
 public frmEditEDCXml(SetEDCXmlInfo set_xml, SetSerial set_serial, GateWayManager gwm, int index)
 {
     InitializeComponent();
     this.isEdit            = false;
     this.gateway_mgr       = gwm;;
     this.serial_index      = index;
     this.delgSetEDCXmlInfo = set_xml;
     this.delgSetSerial     = set_serial;
 }
Example #4
0
 public frmListEDCXml(SetEDCManager set_edc_mgrr, EDCManager edc_mgr, GateWayManager gwm)
 {
     InitializeComponent();
     this.delgEDCManager = set_edc_mgrr;
     //this.edcm = (EDCManager)edc_mgr.Clone();
     this.edcm                 = edc_mgr;
     this.gateway_mgr          = (GateWayManager)gwm.Clone();
     this.edcm.eventAddEDCXml += new EventHandler(this.btnAddXml_Click);
 }
 public frmListDBConfig(SetDBManager set_db_mgrr, DBManager db_mgr, GateWayManager gw_mgr)
 {
     InitializeComponent();
     //this.dbm = (DBManager)db_mgr.Clone();
     this.dbm                   = db_mgr;
     this.gateway_mgr           = (GateWayManager)gw_mgr.Clone();
     this.delgDBManager         = set_db_mgrr;
     this.dbm.eventAddDBConfig += new EventHandler(this.btnAddDBConfig_Click);
 }
 //Constructor to Add New DB Config Information
 public frmEditDBConfig(CheckDuplicate check, SetDBInfo set_db_info, SetDBSerial set_serial, GateWayManager gwm, int index)
 {
     InitializeComponent();
     this.isEdit             = false;
     this.gateway_mgr        = gwm;;
     this.serial_index       = index;
     this.delgCheckDuplicate = check;
     this.delgSetDBInfo      = set_db_info;
     this.delgSetDBSerial    = set_serial;
 }
 public frmOnlineMonitor(IEW.ObjectManager.ObjectManager obj_mgr)
 {
     InitializeComponent();
     this.gateway_mgr = obj_mgr.GatewayManager;
     this.object_mgr  = obj_mgr;
     this.object_mgr.HeartBeatEventHandler += new EventHandler(this.StatusUpdate);
     this.object_mgr.AlarmEventHandler     += new EventHandler(this.StatusUpdate);
     this.object_mgr.EDCReportEventHandler += new EventHandler(this.StatusUpdate);
     this.object_mgr.StartAckEventHandler  += new EventHandler(this.StatusUpdate);
     this.object_mgr.ConfigAckEventHandler += new EventHandler(this.StatusUpdate);
 }
Example #8
0
 //Constructor to Edit EDC Xml Information
 public frmEditEDCXml(SetEDCXmlInfo set_xml, GateWayManager gwm, cls_EDC_Info edc_info, string gateway, string device, bool copy_flag)
 {
     InitializeComponent();
     this.isEdit            = true;
     this.isCopy            = copy_flag;
     this.gateway_mgr       = gwm;;
     this.edc_data          = edc_info;
     this.gateway_id        = gateway;
     this.device_id         = device;
     this.delgSetEDCXmlInfo = set_xml;
 }
 //Constructor to Edit DB Config Information
 public frmEditDBConfig(SetDBInfo set_db_info, GateWayManager gwm, cls_DB_Info db_info, string gateway, string device, bool copy_flag)
 {
     InitializeComponent();
     this.isEdit        = true;
     this.isCopy        = copy_flag;
     this.gateway_mgr   = gwm;;
     this.db_data       = db_info;
     this.gateway_id    = gateway;
     this.device_id     = device;
     this.delgSetDBInfo = set_db_info;
 }