Beispiel #1
0
        public override void Initialize(IViewModelHost host)
        {
            base.Initialize(host);

            HireCommand         = new DelegateCommand((args) => Hire(args as CommandExecutionContext));
            CancelCommand       = new NavigateCommand <IHomePageViewModel>(host);
            CallCommand         = new DelegateCommand((args) => Call(args as CommandExecutionContext));
            RequestOtherCommand = new DelegateCommand((args) => Other(args as CommandExecutionContext));
        }
Beispiel #2
0
        public override void Initialize(IViewModelHost host)
        {
            base.Initialize(host);

            HireCommand         = new DelegateCommand((args) => Hire(args as CommandExecutionContext));
            CancelCommand       = new NavigateCommand <IHomePageViewModel>(host);
            CallCommand         = new DelegateCommand((args) => Call(args as CommandExecutionContext));
            RequestOtherCommand = new DelegateCommand((args) => Other(args as CommandExecutionContext));
            if (MFundiRuntime.ServiceTypeID == 2)
            {
                IsMonthly = true;
            }
            else
            {
                IsMonthly = false;
            }
        }