コード例 #1
0
        public void Select()
        {
            SelectCountryEvent eventInstance = new SelectCountryEvent {
                CountryCode = this.data.Key,
                CountryName = this.data.Value
            };

            EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub);
        }
コード例 #2
0
 public void ChangeCountry(DialogConfirmEvent e, SingleNode <SelectCountryDialogComponent> dialog)
 {
     if (!string.IsNullOrEmpty(dialog.component.country.Value))
     {
         SelectCountryEvent eventInstance = new SelectCountryEvent {
             CountryCode = dialog.component.country.Key,
             CountryName = dialog.component.country.Value
         };
         base.ScheduleEvent(eventInstance, dialog.Entity);
         dialog.component.Hide();
     }
 }
コード例 #3
0
        public void Continue(SelectCountryEvent e, Node stub, [JoinAll] SingleNode <SelfUserComponent> selfUser, [JoinAll] SingleNode <ClientSessionComponent> session)
        {
            ConfirmUserCountryEvent eventInstance = new ConfirmUserCountryEvent {
                CountryCode = e.CountryCode
            };

            base.ScheduleEvent(eventInstance, selfUser);
            PaymentStatisticsEvent event3 = new PaymentStatisticsEvent {
                Action = PaymentStatisticsAction.COUNTRY_SELECT,
                Screen = "SelectCountryScreen"
            };

            base.ScheduleEvent(event3, session);
        }