//public event EventHandler vehicleChange; public DBTableWatcher(App.WindownApplication _app) { app = _app; ImmediateNotificationRegister <object> .StartMonitor(conForWatchTable); CanRequestNotifications(); }
public void initUI(TarnferCMDViewObj mcs_cmd, string identifier) { try { app = App.WindownApplication.getInstance(); identity = identifier; mcs_cmd_id = mcs_cmd.CMD_ID; if (identifier == BCAppConstants.SubPageIdentifier.TRANSFER_CHANGE_STATUS) { txt_McsCmdID.Text = mcs_cmd.CMD_ID; ComboBox.Items.Clear(); foreach (E_TRAN_STATUS item in Enum.GetValues(typeof(E_TRAN_STATUS))) { ComboBox.Items.Add(item); } ComboBox.SelectedItem = mcs_cmd.TRANSFERSTATE; registerEvent_MCSCommandStatusChange(); } else if (identifier == BCAppConstants.SubPageIdentifier.TRANSFER_ASSIGN_VEHICLE) { txt_McsCmdID.Text = mcs_cmd.CMD_ID; ComboBox.Items.Clear(); List <AVEHICLE> vhs = app.ObjCacheManager.GetVEHICLEs().ToList(); app.VehicleBLL.filterVh(ref vhs, E_VH_TYPE.None); foreach (AVEHICLE vh in vhs) { ComboBox.Items.Add(vh.VEHICLE_ID); } registerEvent_MCSCommandVehicleAssign(); } else if (identifier == BCAppConstants.SubPageIdentifier.TRANSFER_SHIFT_COMMAND) { txt_McsCmdID.Text = mcs_cmd.CMD_ID; ComboBox.Items.Clear(); List <AVEHICLE> vhs = app.ObjCacheManager.GetVEHICLEs().ToList(); app.VehicleBLL.filterVh(ref vhs, E_VH_TYPE.None); foreach (AVEHICLE vh in vhs.ToList()) { if (mcs_cmd.VH_ID.Trim() == vh.VEHICLE_ID) { vhs.Remove(vh); } } foreach (AVEHICLE vh in vhs) { ComboBox.Items.Add(vh.VEHICLE_ID); } registerEvent_MCSCommandShift(); } } catch (Exception ex) { logger.Error(ex, "Exception"); } }
//組件載入 private void MainSignalBackGround_Load(object sender, EventArgs e) { try { app = App.WindownApplication.getInstance(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private frmMTL_MTSOperation(App.WindownApplication _app) { try { InitializeComponent(); uc_MTLMTSInfo1.start(_app); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private frmSegmentReservation(App.WindownApplication _app) { try { InitializeComponent(); app = _app; } catch (Exception ex) { logger.Error(ex, "Exception"); } }
//建構子 public LoginPopupForm(string function_code, Boolean withDifferentAccount) { try { InitializeComponent(); this.function_code = function_code; app = App.WindownApplication.getInstance(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public static frmMTL_MTSOperation getInstance(App.WindownApplication _app) { lock (lock_obj) { if (form == null || form.IsDisposed) { form = new frmMTL_MTSOperation(_app); } else { form.Focus(); } } return(form); }
public void init() { app = App.WindownApplication.getInstance(); //MTL = app.ObjCacheManager.GetVEHICLEs(device_id) as MaintainLift; MTL1MTS1List = app.ObjCacheManager.GetMTL1MTS1(); MTS2List = app.ObjCacheManager.GetMTS2(); var all_mtl1_mts1_detail_view_obj = this.MTL1MTS1List.Select(eq => new MTLMTSDatailViewObj(eq)); grid_MTLMTS1.ItemsSource = all_mtl1_mts1_detail_view_obj; var all_mts2_detail_view_obj = this.MTS2List.Select(eq => new MTLMTSDatailViewObj(eq)); grid_MTS2.ItemsSource = all_mts2_detail_view_obj; refreshUI(); registerEvent(); }
public CommandDatailViewObj(AVEHICLE myDatabaseObject) { this.vhehicle = myDatabaseObject; app = App.WindownApplication.getInstance(); }
public void start(App.WindownApplication _app) { dgv_vehicle_status.DataSource = _app.ObjCacheManager.GetVehicleObjToShows(); }
public void start() { app = App.WindownApplication.getInstance(); uc_DeviceStatusSignals = new List <uc_DeviceStatusSignal>(); refreshUI(); }