コード例 #1
0
ファイル: MainWindowViewModel.cs プロジェクト: GoodBoris/WPF
        public MainWindowViewModel(Target target, ISerializerService<Account> accountSerializerService, ISchedulerService accountSchedulerService, 
            IUIVisualizerService uiVisualizerService, IMessageService messageService)
        {
            Argument.IsNotNull(() => accountSerializerService);
            Argument.IsNotNull(() => accountSchedulerService);
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => messageService);
            Argument.IsNotNull(() => target);
            _accountSerializerService = accountSerializerService;
            _accountSchedulerService = accountSchedulerService;
            _uiVisualizerService = uiVisualizerService;
            _messageService = messageService;
            Target = target;
            AddTarget = new Command(OnAddTargetExecute);
            RemoveTarget = new Command(OnRemoveTargetExecute, OnRemoveTargetCanExecute);

            /*var job = JobBuilder.Create<HelloJob>().WithIdentity(new JobKey("Task_1", "TaskGroup")).Build();
            var t =
                TriggerBuilder.Create()
                    .WithIdentity("Trigger_1", "TaskGroup")
                    .StartAt(DateBuilder.TodayAt(21, 15, 0))
                    .EndAt(DateBuilder.TodayAt(21, 18, 0))
                    .Build();
            _accountSchedulerService.Scheduler.ScheduleJob(job, t);
            MessageBox.Show(_accountSchedulerService.Scheduler.IsStarted.ToString());  */
        }
コード例 #2
0
ファイル: MainWindowViewModel.cs プロジェクト: GoodBoris/WPF
        private async void OnAddTargetExecute()
        {
            var target = new Target();

        }
コード例 #3
0
ファイル: TargetViewModel.cs プロジェクト: GoodBoris/WPF
 public TargetViewModel(Target target)
 {
     Argument.IsNotNull(() => target);
     Target = target;
 }