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()); */ }
private async void OnAddTargetExecute() { var target = new Target(); }
public TargetViewModel(Target target) { Argument.IsNotNull(() => target); Target = target; }