public TabViewModelBase( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService) { this.eventAggregator = eventAggregator; this.dialogMessageService = dialogMessageService; RegisterCommandHandlers(); }
public SubscriptionDetailViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, ISubscriptionRepository subscriptionRepository) : base(eventAggregator, dialogMessageService) { this.subscriptionRepository = subscriptionRepository; }
public TrainerDetailViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, ITrainerRepository trainerRepository) : base(eventAggregator, dialogMessageService) { this.trainerRepository = trainerRepository; }
public MembersViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, IMemberRepository memberRepository) : base(eventAggregator, dialogMessageService) { this.memberRepository = memberRepository; Title = "Все клиенты"; Members = new ObservableCollection <MemberWrapper>(); }
public TrainersViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, ITrainerRepository trainerRepository) : base(eventAggregator, dialogMessageService) { this.trainerRepository = trainerRepository; Title = "Все тренеры"; Trainers = new ObservableCollection <TrainerWrapper>(); }
public MemberDetailViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, IMemberRepository memberRepository, ISubscriptionLookupDataService subscriptionLookupDataService) : base(eventAggregator, dialogMessageService) { this.memberRepository = memberRepository; this.subscriptionLookupDataService = subscriptionLookupDataService; Subscriptions = new ObservableCollection <LookupItem>(); }
public TrainingDetailViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, ITrainingRepository trainingRepository, IMemberLookupDataService memberLookupDataService, ITrainerLookupDataService trainerLookupDataService) : base(eventAggregator, dialogMessageService) { this.trainingRepository = trainingRepository; this.memberLookupDataService = memberLookupDataService; this.trainerLookupDataService = trainerLookupDataService; Members = new ObservableCollection <LookupItem>(); Trainers = new ObservableCollection <LookupItem>(); }
public MainViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, INavigationViewModel navigationViewModel, IIndex <string, ITabViewModel> tabViewModelCreator) { this.eventAggregator = eventAggregator; this.dialogMessageService = dialogMessageService; this.tabViewModelCreator = tabViewModelCreator; NavigationViewModel = navigationViewModel; TabViewModels = new ObservableCollection <ITabViewModel>(); SubscribeEvents(); RegisterCommands(); }
public ProxyServerConfigurationViewModel(IProxyConfigurationService proxyConfService, IDialogMessageService dialogMessageService) { _proxyConfService = proxyConfService; _dialogMessageService = dialogMessageService; ProxyConfigurationList = new ObservableCollection <ProxyConfiguration>(); ProxyConfigurationItem = new ProxyConfiguration(); EnableControl = true; GetAllProxyConfCommand = new RelayCommand(GetProxyConfigurationList); ShowProxyConfigurationCommandd = new RelayCommand <ProxyConfiguration>(ShowProxyConfiguration); SaveCommand = new RelayCommand(SaveProxyConfiguration); ApplyProxyConfCommand = new RelayCommand(ApplyProxyConf); ClearProxyConfCommand = new RelayCommand(ClearProxy); }
public ScheduleViewModel( IEventAggregator eventAggregator, IDialogMessageService dialogMessageService, ITrainingRepository trainingRepository) : base(eventAggregator, dialogMessageService) { this.trainingRepository = trainingRepository; this.targetDate = DateTime.Now; Trainings = new ObservableCollection <Training>(); SourceTrainingsCollection = CollectionViewSource.GetDefaultView(Trainings); SourceTrainingsCollection.Filter = new Predicate <object>(t => { if (!(t is Training training)) { return(false); } return(training.Start.Date == TargetDate.Date); }); Title = "Расписание"; }
public IPConfigurationViewModel(IIPConfigurationService ipInformationService, IDialogMessageService dialogMessageService) { _ipInformationService = ipInformationService; _dialogMessageService = dialogMessageService; IPConfigurationList = new ObservableCollection <IPConfiguration>(); IPConfigurationItem = new IPConfiguration(); AvailableNetworkInterfaces = new ObservableCollection <NetworkInterface>(); ProgressReport prgReport = new ProgressReport { ProgressMessage = "Ready", ProgressValue = 0 }; GetAllIPInfoCommand = new RelayCommand(GetIPInformationList); SaveCommand = new RelayCommand(SaveIPInformation); ShowIPInformationCommand = new RelayCommand <IPConfiguration>(ShowIPInformation); SelectNetworkInterfaceCommand = new RelayCommand <NetworkInterface>(SelectNetworkAdapter); ApplyIPConfigurationCommand = new RelayCommand(ApplyIPConfiguration); DisableIPConfigurationDHCPCommand = new RelayCommand <bool>(DisableIPConfigurationDHCP); EnableIPTextBoxes = true; EnableControl = true; ReportProgress(prgReport); }