Esempio n. 1
0
			public void PerformEvent(object sender, EventParam e)
			{
				for (int i = 0; i < listerners.Count; i++)
				{
					listerners[i].FireEvent(sender, e);
				}
			}
Esempio n. 2
0
        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;

            }
        }
Esempio n. 3
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID) {
     case EventID.CUSTCODE_SELECTED:
         RunOnUiThread (() => SetSelectedItem(e.Param["SELECTED"].ToString()));
         break;
     }
 }
Esempio n. 4
0
 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;
     }
 }
Esempio n. 5
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID)
     {
     case EventID.ICODE_SELECTED:
         RunOnUiThread(() => SetSelectedItem(e.Param ["SELECTED"].ToString()));
         break;
     }
 }
Esempio n. 6
0
 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;
     }
 }
Esempio n. 7
0
        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);
        }
Esempio n. 8
0
        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();
        }
Esempio n. 9
0
        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();
        }
Esempio n. 10
0
        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();
        }
Esempio n. 11
0
 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;
     }
 }
Esempio n. 12
0
        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;
            }
        }
Esempio n. 13
0
        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;
            }
        }
Esempio n. 14
0
 void FireEvent(int eventID)
 {
     Hashtable param = new Hashtable ();
     EventParam p = new EventParam (eventID, param);
     EventManagerFacade.Instance.GetEventManager ().PerformEvent (CallingActivity, p);
 }
Esempio n. 15
0
			public void FireEvent(object sender, EventParam eventArgs)
			{
				eventHandler(sender, eventArgs);
			}
Esempio n. 16
0
		public void FireEvent(object sender,EventParam eventArgs)
		{
			if (eventHandler != null)
				eventHandler (sender, eventArgs);
		}
Esempio n. 17
0
 public void FireEvent(object sender,EventParam eventArgs)
 {
     if (eventHandler != null)
         eventHandler (sender, eventArgs);
 }
Esempio n. 18
0
 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);
 }
Esempio n. 19
0
 public void FireEvent(object sender, EventParam eventArgs)
 {
     eventHandler(sender, eventArgs);
 }
Esempio n. 20
0
        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();
        }
Esempio n. 21
0
        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;

            }
        }
Esempio n. 22
0
 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 ();
 }