public void PerformEvent(object sender, EventParam e) { for (int i = 0; i < listerners.Count; i++) { listerners[i].FireEvent(sender, e); } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.DOWNLOADED_PROFILE: startDownloadRunNoInfo (); break; case EventID.DOWNLOADED_RUNNO: if (_downloadAll) { if (_downloadPro) { _downloadPro = false; startDownloadItem (); } } break; case EventID.DOWNLOADED_ITEM: if (_downloadAll) { if (_downloadItem) { _downloadItem = false; startDownloadCustomer (); } } break; } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.CUSTCODE_SELECTED: RunOnUiThread (() => SetSelectedItem(e.Param["SELECTED"].ToString())); break; } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case 2021: sdate =Utility.ConvertToDate(e.Param ["DATE1"].ToString ()); edate=Utility.ConvertToDate(e.Param ["DATE2"].ToString ()); break; } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.ICODE_SELECTED: RunOnUiThread(() => SetSelectedItem(e.Param ["SELECTED"].ToString())); break; } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case 2020: sdate = Utility.ConvertToDate(e.Param ["DATE1"].ToString()); edate = Utility.ConvertToDate(e.Param ["DATE2"].ToString()); break; } }
void FireEvent(int eventID, string startD, string endD) { Hashtable param = new Hashtable(); param.Add("DATE1", startD); param.Add("DATE2", endD); EventParam p = new EventParam(eventID, param); EventManagerFacade.Instance.GetEventManager().PerformEvent(CallingActivity, p); }
private void HandlePaidOnlyButtonClick(object sender, DialogClickEventArgs e) { var dialog = (AlertDialog)sender; Hashtable param = new Hashtable(); param.Add("print", "no"); param.Add("remark", txtRemark.Text.ToUpper()); EventParam p = new EventParam(EventID.PAYMENT_PRINT, param); EventManagerFacade.Instance.GetEventManager().PerformEvent(this.Activity, p); dialog.Dismiss(); }
void ListView_Click(object sender, AdapterView.ItemClickEventArgs e) { Item itm = adapter[e.Position]; if (itm != null) { _selectedItem = itm.ICode + " | " + itm.IDesc.Trim(); Hashtable param = new Hashtable(); param.Add("SELECTED", _selectedItem); EventParam p = new EventParam(EventID.ICODE_SELECTED, param); EventManagerFacade.Instance.GetEventManager().PerformEvent(this.Activity, p); } this.Dialog.Dismiss(); }
void ListView_Click(object sender, AdapterView.ItemClickEventArgs e) { Trader itm = adapter[e.Position]; if (itm != null) { _selectedItem = itm.CustCode + " | " + itm.CustName.Trim(); Hashtable param = new Hashtable(); param.Add("SELECTED", _selectedItem); //int eventID = (_filter == null ? EventID.CUSTCODE_SELECTED : EventID.CUSTCODE2_SELECTED); EventParam p = new EventParam(eventid, param); EventManagerFacade.Instance.GetEventManager().PerformEvent(this.Activity, p); } this.Dialog.Dismiss(); }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.LOGIN_DOWNCOMPLETE: string comp =((GlobalvarsApp)this.Application).COMPANY_CODE; string bran = ((GlobalvarsApp)this.Application).BRANCH_CODE; ShowMainActivity (comp,bran); break; case EventID.LOGIN_SUCCESS: if (!_donwloadPro) { DownloadHelper download = new DownloadHelper (); download.Downloadhandle = LoginDoneDlg; download.DownloadAllhandle = LoginDoneDlgEx; download.CallingActivity = this; download.StartDownloadAll (); _donwloadPro = true; } break; } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.CUSTCODE_SELECTED: RunOnUiThread(() => SetSelectedCust(e.Param["SELECTED"].ToString())); break; case EventID.ICODE_SELECTED: RunOnUiThread(() => SetSelectedItem(e.Param["SELECTED"].ToString())); break; case EventID.PAYMENT_PAID: if (!IsFirePaid) { IsFirePaid = true; RunOnUiThread(() => SaveCashBill()); } break; } }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.LOGIN_DOWNCOMPLETE: string comp = ((GlobalvarsApp)this.Application).COMPANY_CODE; string bran = ((GlobalvarsApp)this.Application).BRANCH_CODE; ShowMainActivity(comp, bran); break; case EventID.LOGIN_SUCCESS: if (!_donwloadPro) { DownloadHelper download = new DownloadHelper(); download.Downloadhandle = LoginDoneDlg; download.DownloadAllhandle = LoginDoneDlgEx; download.CallingActivity = this; download.StartDownloadAll(); _donwloadPro = true; } break; } }
void FireEvent(int eventID) { Hashtable param = new Hashtable (); EventParam p = new EventParam (eventID, param); EventManagerFacade.Instance.GetEventManager ().PerformEvent (CallingActivity, p); }
public void FireEvent(object sender, EventParam eventArgs) { eventHandler(sender, eventArgs); }
public void FireEvent(object sender,EventParam eventArgs) { if (eventHandler != null) eventHandler (sender, eventArgs); }
void FireEvent(int eventID,string startD,string endD) { Hashtable param = new Hashtable (); param.Add ("DATE1", startD); param.Add ("DATE2", endD); EventParam p = new EventParam (eventID, param); EventManagerFacade.Instance.GetEventManager ().PerformEvent (CallingActivity, p); }
private void HandlePositiveButtonClick(object sender, DialogClickEventArgs e) { var dialog = (AlertDialog) sender; Hashtable param = new Hashtable (); param.Add ("print","yes"); param.Add ("remark", txtRemark.Text.ToUpper ()); EventParam p = new EventParam (EventID.PAYMENT_PAID , param); EventManagerFacade.Instance.GetEventManager ().PerformEvent (this.Activity, p); dialog.Dismiss(); }
public void PerformEvent(object sender, EventParam e) { switch (e.EventID) { case EventID.CUSTCODE_SELECTED: RunOnUiThread (() => SetSelectedCust(e.Param["SELECTED"].ToString())); break; case EventID.ICODE_SELECTED: RunOnUiThread (() => SetSelectedItem(e.Param["SELECTED"].ToString())); break; // case EventID.PAYMENT_PAID: // if (!IsFirePaid) { // IsFirePaid = true; // RunOnUiThread (() => SaveCashBill (e.Param)); // } // break; // case EventID.PAYMENT_PRINT: // if (!IsFirePaidOnly) { // IsFirePaidOnly = true; // RunOnUiThread (() => SaveCashBill (e.Param)); // } // break; } }
void ListView_Click(object sender, AdapterView.ItemClickEventArgs e) { Trader itm = adapter[e.Position]; if (itm != null) { _selectedItem = itm.CustCode + " | " + itm.CustName; Hashtable param = new Hashtable (); param.Add ("SELECTED", _selectedItem); EventParam p = new EventParam (EventID.CUSTCODE_SELECTED, param); EventManagerFacade.Instance.GetEventManager ().PerformEvent (this.Activity, p); } this.Dialog.Dismiss (); }