Example #1
0
        public CrmPluginViewModel(ICrm crmClient, IPasswordService passwordService, IPortableNavigationService navigationService)
        {
            this.crmClient         = crmClient;
            this.passwordService   = passwordService;
            this.navigationService = navigationService;
            taskInfoService        = new TaskInfoService(crmClient);

            Name = crmClient.GetName();

            LoginCommand = new RelayCommand(LoginCommand_Executed, () => !isBusy);
        }
Example #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public MainViewModel(IPluginService pluginService, IClipboardService clipboardService, IPortableNavigationService navigationService,
                             IDialogService dialogService)
        {
            this.pluginService     = pluginService;
            this.clipboardService  = clipboardService;
            this.navigationService = navigationService;
            this.dialogService     = dialogService;

            var version = AppVersion.Get().ProductVersion.Split('+')[0];

            Title    = $"Timesheet Parser {version}";
            JobsDate = DateTime.Now;

            GenerateCommand   = new RelayCommand(GenerateCommand_Executed);
            SubmitJobsCommand = new RelayCommand(SubmitJobs_Executed, SubmitJobs_CanExecute);
            HelpCommand       = new RelayCommand(HelpCommand_Executed);
        }
        public HelpViewModel(IPortableNavigationService navigationService)
        {
            this.navigationService = navigationService;

            BackCommand = new RelayCommand(BackCommand_Executed);
        }
 public PluginService(IPortableNavigationService navigationService)
 {
     this.navigationService = navigationService;
 }
Example #5
0
        public CrmLoginViewModel(IPortableNavigationService navigationService)
        {
            this.navigationService = navigationService;

            LoginCommand = new RelayCommand(LoginCommand_Executed, () => !string.IsNullOrWhiteSpace(Login) && !string.IsNullOrEmpty(Password));
        }