public ChangePasswordView(IMessenger messenger) { InitializeComponent(); _messenger = messenger; _messenger.Register<PasswordChangeMsg>(this, OnPasswordChangeMsgMessage); }
public void Init() { var messengerMock = new Mock<IMessenger>(); var serviceMock = new Mock<ITrackerService>(); _Messenger = messengerMock.Object; _MockPriorityList = new List<string>() { "High", "Low" }; _MockStatusList = new List<string>() { "In Progress", "Closed" }; _MockActiveProject = new ProjectViewModel(new Project { Id = 1, Code = "GGGGG", Description = "", Name = "TestProject" }); _AssignedUserMock = new User() { Id = 5, FirstName = "Adam", Username = "******", Password = "******" }; _MockProjectUsersList = new List<User>() { _AssignedUserMock}; serviceMock.Setup<List<string>>(p => p.GetBugPriorityList()).Returns(_MockPriorityList); serviceMock.Setup<List<string>>(p => p.GetBugStatusList()).Returns(_MockStatusList); serviceMock.Setup<List<User>>(p => p.GetUsersByProject(_MockActiveProject.ToProjectModel())).Returns(_MockProjectUsersList); serviceMock.Setup<User>(p => p.GetMyUser()).Returns(_AssignedUserMock); var _MockNotifier = new Mock<IGrowlNotifiactions>(); _ServiceMock = serviceMock.Object; _ActiveProjectStub = new ProjectViewModel(new Project { Id = 5, Description = "Stub Project", Name = "Stub Title" }); _AddPanel = new BugAddPanelViewModel(_Messenger, _ServiceMock, _MockActiveProject, _MockNotifier.Object); }
private Consolery(Type targetType, string[] args, IMessenger messenger) { #region Parameter Validation if (targetType == null) { throw new ArgumentNullException("targetType"); } if (args == null) { throw new ArgumentNullException("args"); } if (messenger == null) { throw new ArgumentNullException("messenger"); } #endregion _targetType = targetType; _args = args; _messenger = messenger; MethodInfo[] methods = _targetType.GetMethods(BindingFlags.Public | BindingFlags.Static); foreach (MethodInfo method in methods) { object[] attributes = method.GetCustomAttributes(false); foreach (object attribute in attributes) { if (attribute is ActionAttribute) { _actionMethods.Add(method); break; } } } }
/// <summary> /// Initializes a new instance of the TaxonViewModel class. /// </summary> public TaxonViewModel(IMessenger msngr) { MessengerInstance = msngr; MessengerInstance.Register<ConnectionStateChanged>(this, (msg) => { if((msg.Content & ConnectionState.ConnectedToRepTax) == ConnectionState.ConnectedToRepTax) updateTaxonLists(); }); DownloadTaxa = new RelayCommand<IList>( (selection) => { if (selection != null) { var typedSelection = from object list in selection where list is TaxonList select list as TaxonList; IList<TaxonList> finalList = new List<TaxonList>(typedSelection); _expectClose = true; sendLists(finalList); } }); }
public ProductPreviewViewModel(IMessenger messenger, IBasketModel basketModel) { // Design setup if (this.IsInDesignMode) { Visible = true; Product = new Product() { ProductId=12345, Name = "Product Name", Description = "Product Description", UpdatedDate = DateTime.Today, }; } // Unpack MessengerInstance = messenger; _basketModel = basketModel; // Register Message Handlers MessengerInstance.Register<ProductPreviewMessage>(this, HandleProductPreview); // Commands CloseCommand = new RelayCommand(CloseExecute); AddProductCommand = new RelayCommand(AddProductExecute); }
/// <summary> /// Initialises the panel object. /// </summary> /// <param name="comm">Messenger object to communicate with other view models.</param> /// <param name="svc">The bug tracker web service.</param> /// <param name="activeProj">The currently active project.</param> public BugAddPanelViewModel(IMessenger comm, ITrackerService svc, ProjectViewModel activeProj, IGrowlNotifiactions notifier) : base(comm, svc, activeProj) { InitialiseBugViewModel(); _Notifier = notifier; }
public ProjectPanelViewModel(ITrackerService svc, IMessenger mess) { _Messenger = mess; _Service = svc; Project = new ProjectViewModel(); }
public Communicator(Settings settings, Battlefield battlefield, GameStateClient gameState, out RealCharacter player) { _battlefield = battlefield; _gameState = gameState; // подключаемся к серверу ServerConnectionPacket connMsg = Connect(settings, ref _clientPort); if (connMsg == null) { _battlefield.Game.Exit(); } _messenger = new UdpMessenger(settings.ServerAddress, settings.ServerPort, _clientPort, _receiveTimeout); _gameState.SetLevel((Level)connMsg.Level); // обновление состояния игрока _gameState.CreateCharacter(connMsg.PlayerId); player = _gameState.Players[connMsg.PlayerId]; player.Position = (Vector2)connMsg.PlayerPosition; player.Health = connMsg.Health; player.Speed = connMsg.Speed; player.MoveBehavior = new PlayerMove1(player); _gameState.Player = player; _gameState.NetPlayer = new NetPlayer(_messenger, player); new Thread(StartReceiving).Start(); new Thread(StartSending).Start(); }
public FileListingController(FileListingViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRepository Repository, IUpkFileRemoteRepository RemoteRepository) { viewModel = ViewModel; menuViewModel = MenuViewModel; messenger = Messenger; mapper = Mapper; repository = Repository; remoteRepository = RemoteRepository; viewModel.Files = new ObservableCollection<FileViewEntity>(); viewModel.FilterText = String.Empty; viewModel.PropertyChanged += onViewModelPropertyChanged; menuViewModel.PropertyChanged += onMenuViewModelPropertyChanged; allFiles = new List<DomainUpkFile>(); allFileEntities = new List<FileViewEntity>(); registerMessages(); registerCommands(); }
public AgileBoardViewModel(IJiraApi jiraApi, JiraSessionViewModel jiraSession, IMessenger messenger, IssuesStatisticsCalculator statisticsCalculator, RawAgileBoard board) { Board = board; _messenger = messenger; _jiraApi = jiraApi; _jiraSession = jiraSession; _statisticsCalculator = statisticsCalculator; PickUpSprintCommand = new RelayCommand(OpenPickUpSprint, () => Board.Type == "scrum"); OpenPivotAnalysisCommand = new RelayCommand(() => _messenger.Send(new OpenPivotAnalysisMessage(BoardContent.Issues))); OpenEpicsOverviewCommand = new RelayCommand(() => _messenger.Send(new OpenEpicsOverviewMessage(BoardContent.Issues, BoardContent.Epics)), () => Board.Type == "scrum"); BrowseIssuesCommand = new RelayCommand(() => _messenger.Send(new OpenIssuesBrowserMessage(BoardContent.Issues))); OpenGraveyardCommand = new RelayCommand(() => _messenger.Send(new OpenBoardGraveyardMessage(BoardContent.Issues))); OpenSprintsVelocityCommand = new RelayCommand(() => _messenger.Send(new OpenSprintsVelocityMessage(BoardContent)), () => Board.Type == "scrum"); RefreshDataCommand = new RelayCommand(() => { _forceReload = true; DownloadElements(); }, () => IsBusy == false); FetchChangesCommand = new RelayCommand(() => { DownloadElements(); }, () => IsBusy == false); DownloadElements(); }
public MessageController(IMessageService iMessageService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IMessenger iMessenger) { _iMessageService = iMessageService; _iUserInfo = iUserInfo; _unitOfWork = unitOfWork; _iMessenger = iMessenger; }
protected BaseViewModel(IMessenger messenger, UserLogin userLogin) { Messenger = messenger; Initialize(); if (UserLogin == null) UserLogin = userLogin; }
/// <summary> /// Initializes a new instance of the <see cref="MainPageViewModel"/> class. /// </summary> /// <param name="messenger"> /// The messenger. /// </param> /// <param name="navigationService"> /// The navigation service. /// </param> public MainPageViewModel(IMessenger messenger, NavigationService navigationService) : base(messenger, navigationService) { this.InitializeMenu(); this.ItemInvokedCommand = new RelayCommand<ListViewItem>(this.ItemInvoked); }
public ProjectListViewModel( IViewServiceRepository viewServices = null, ISettingsRepository settingsRepo = null, IProjectRepository projectRepo = null, IMessenger messenger = null ) : base( viewServices, settingsRepo, messenger ) { ProjectRepo = projectRepo ?? new ProjectRepository( Session ); Projects = new ObservableCollection<ProjectViewModel>( ProjectRepo.GetAll().OrderBy( p => p.Name ).Select( p => new ProjectViewModel( p ) ) ); var last = Settings.GetById( SettingKeys.LastProject ); CurrentProject = Projects.FirstOrDefault( p => p.Model.Id == last.Get<int>() ) ?? Projects.FirstOrDefault(); foreach( var proj in Projects ) { proj.CurrentChanged += Proj_CurrentChanged; } if( CurrentProject != null ) { CurrentProject.IsCurrent = true; } ProjectNames = new List<string>(); Validate( nameof( NewProjectName ) ).Check( () => !string.IsNullOrWhiteSpace( NewProjectName ) ).Message( Strings.ProjectMustHaveName ); Validate( nameof( NewProjectName ) ).Check( () => !ProjectNames.Contains( NewProjectName ) ).Message( Strings.ThisNameIsAlreadyUsed ); Reset(); }
public static UserPassword UserPasswordReset(string name, out string password, IMessenger messenger) { var user = UserPassword.FetchUserPassword( new UserPasswordCriteria { Name = name }); if (user != null) { password = PasswordHelper.GetRandomPassword(10); user.SetPassword(password); user = user.Save(); if (messenger == null) { messenger = MessageHelper.InitializeMessageForUserPasswordReset(user.Email); } messenger.Message = messenger.Message.Replace(MessageParameter.Password, password); messenger.Send(); } else { throw new ArgumentException("No such user exists."); } return user; }
public SessionManagerMonkey(IMessenger messenger, UserTaskRepository taskRepository) { this.messenger = messenger; this.taskRepository = taskRepository; messenger.Register<CreateUserTaskMessage>(this, HandleUserTaskCreatedMessage); }
public MainViewModel(IViewModelNavigator navigator, IMessenger messenger) { messenger.Register<ContentChangedMessage>(this, OnContentChanged); _messenger = messenger; _navigator = navigator; _navigator.NavigateForward<WelcomViewModel>(null); }
public GroupedMoviesViewModel( IMessenger messenger, IMovieRepository movieRepository) { MovieRepository = movieRepository; if (MovieRepository != null) { MovieGroups = MovieRepository.LoadMovies() .GroupBy(m => m.Genre) .Select(g => new MovieGroupViewModel(messenger) { Title = g.Key.ToString(), Movies = g.ToList(), GroupImageUrl = g.First().ImageUrl }); } MovieTappedCommand = new RelayCommand<Movie>((movie) => { var movieGroup = MovieGroups.First(mg => mg.Movies.Contains(movie)); messenger.Send<MovieSelectedMessage>(new MovieSelectedMessage { Movie = movie, MovieGroup = movieGroup }); }); MovieSelectedCommand = new RelayCommand(() => { var movieGroup = MovieGroups.First(mg => mg.Movies.Contains(SelectedMovie)); messenger.Send<MovieSelectedMessage>(new MovieSelectedMessage { Movie = SelectedMovie, MovieGroup = movieGroup }); }); }
public MovieGroupDetailViewModel( IMovieRepository movieRepository, IMessenger messenger) { MovieRepository = movieRepository; Messenger = messenger; }
public ListViewModel( IToDoService toDoService, IMessenger messenger, IDispatcher dispatcher, ISearchService searchService, ISharingService sharingService ) { _toDoService = toDoService; _searchService = searchService; _dispatcher = dispatcher; _messenger = messenger; _sharingService = sharingService; Items = new ObservableCollection<ToDoItem>(); SearchResult = new ObservableCollection<ToDoItem>(); RegisterSubscriptions(); SetupCommands(); Items.CollectionChanged += (s, c) => { var count = Items.Count; Count = count; messenger.Send(new ItemCountChanged { Count = count }); }; PopulateItems(); }
public TableTypeViewModel(ITableService tableService, IMessenger messenger) : base(messenger) { this.TableService = tableService; }
public MainViewModel( IViewModelNavigator navigator, IMessenger messenger, SessionService sessionService, CommunicationManager communicationManager, SettingsProvider settingsProvider) { _sessionService = sessionService; _communicationManager = communicationManager; _settingsProvider = settingsProvider; messenger.Register<ShowChildWindowMessage>(this, RaiseShowWindow); messenger.Register<WindowStateMessage>(this, state => RaiseStateChanged(state.State)); messenger.Register<ContentChangedMessage>(this, OnContentChanged); //navigator.NavigateForward<WelcomeViewModel>(null); //temporary navigator.NavigateForward<PasswordPromptViewModel>(null); messenger.Register<CommandMessage>(this, OnOpenCommand); messenger.Register<CloseCommandMessage>(this, OnCloseCommand); UpdateSessionStart(); communicationManager.Connect(); _timer = new DispatcherTimer(); _timer.Interval = new TimeSpan(0, 0, 15); _timer.IsEnabled = true; _timer.Tick += SendPing; _timer.Start(); }
public MixItemViewModel( IMessenger messenger, IMixItem mixItem, PlayPauseTrackCommand playPauseCommand, IMix mix, MixViewModel mixViewModel) : base(messenger) { this.mix = mix; this.mixViewModel = mixViewModel; if (messenger == null) throw new ArgumentNullException("messenger"); if (mixItem == null) throw new ArgumentNullException("mixItem"); if (playPauseCommand == null) throw new ArgumentNullException("playPauseCommand"); if (mix == null) throw new ArgumentNullException("mix"); if (mixViewModel == null) throw new ArgumentNullException("mixViewModel"); MixItem = mixItem; PlayPauseCommand = playPauseCommand; messenger.Register<TransitionChangedEvent>(this, OnTransitionChanged); messenger.Register<PlaybackSpeedAdjustedEvent>(this, OnPlaybackSpeedAdjusted); messenger.Register<TrackUpdatedEvent>(this, OnTrackUpdated); messenger.Register<MixLockedEvent>(this, _ => RaisePropertyChanged(() => IsPitchFaderEnabled)); messenger.Register<MixUnlockedEvent>(this, _ => RaisePropertyChanged(() => IsPitchFaderEnabled)); // Required for play/pause status messenger.Register<PlayerPlayingEvent>(this, _ => RaisePropertyChanged(() => Track)); messenger.Register<PlayerStoppedEvent>(this, _ => RaisePropertyChanged(() => Track)); messenger.Register<ConfigSavedEvent>(this, _ => RaisePropertyChanged(() => ActualKey)); }
private Consolery(Type targetType, string[] args, IMessenger messenger) { #region Parameter Validation if (targetType == null) { throw new ArgumentNullException("targetType"); } if (args == null) { throw new ArgumentNullException("args"); } if (messenger == null) { throw new ArgumentNullException("messenger"); } #endregion m_TargetType = targetType; m_Args = args; m_Messenger = messenger; MethodInfo[] methods = m_TargetType.GetMethods(BindingFlags.Public | BindingFlags.Static); foreach (MethodInfo method in methods) { object[] attributes = method.GetCustomAttributes(false); if (attributes.OfType<ActionAttribute>().Any()) { m_ActionMethods.Add(method); } } }
protected ViewModelBaseEx( IViewServiceRepository viewServices = null, ISettingsRepository settingsRepo = null, IMessenger messenger = null ) { MessengerInstance = messenger; ViewServices = viewServices ?? App.ViewServices; Session = App.Session; Settings = settingsRepo ?? App.Settings; }
public LoginViewModel(IMessenger messenger, ILoginService loginService) { _messenger = messenger; _loginService = loginService; LoginCommand = new RelayCommand<object>(Login); }
public UpkManagerController(UpkManagerViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, ISettingsRepository SettingsRepository, IExceptionRepository ExceptionRepository, IMapper Mapper) { if (Application.Current != null) Application.Current.DispatcherUnhandledException += onCurrentDispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += onDomainUnhandledException; Dispatcher.CurrentDispatcher.UnhandledException += onCurrentDispatcherUnhandledException; TaskScheduler.UnobservedTaskException += onUnobservedTaskException; System.Windows.Forms.Application.ThreadException += onThreadException; viewModel = ViewModel; menuViewModel = MenuViewModel; messenger = Messenger; settingsRepository = SettingsRepository; exceptionRepository = ExceptionRepository; mapper = Mapper; settings = Task.Run(() => settingsRepository.LoadSettingsAsync()).Result; viewModel.Settings = mapper.Map<SettingsWindowViewEntity>(settings); registerMessages(); registerCommands(); }
public Consolery(Type targetType, object target, string[] args, IMessenger messenger, Notation notationType) { Contract.Requires(targetType != null); Contract.Requires(args != null); Contract.Requires(messenger != null); _target = target; _targetType = targetType; _args = args; _messenger = messenger; _actionMethods = _targetType .GetMethods(BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance) .Where(method => method.GetCustomAttributes(false).OfType<ActionAttribute>().Any()) .ToList(); _metadata = new Metadata(_actionMethods); _metadataValidator = new MetadataValidator(_targetType, _actionMethods, _metadata); if (notationType == Notation.Windows) { _notation = new WindowsNotationStrategy(_args, _messenger, _metadata, _targetType, _actionMethods); } else { _notation = new LinuxNotationStrategy(_args, _messenger, _metadata); } }
public Playlist(IAudioPlayer player, ICurrentMixProvider mixProvider, IMessenger messenger) { if (mixProvider == null) throw new ArgumentNullException("mixProvider"); if (messenger == null) throw new ArgumentNullException("messenger"); this.player = player; this.mixProvider = mixProvider; }
public CommonWindow(IMessenger messenger) { _messenger = messenger; _messenger.Register<CloseViewMessage>(this, Close); InitializeComponent(); }
public BaseViewModel(IMessenger messenger, INavigationService navigation) : base(messenger) { Navigation = navigation; SetCommands(); }
public TestViewModelNoMagicString(IMessenger messenger) : base(messenger) { }
public BaseViewModel(IMessenger messenger) : base(messenger) { Navigation = DependencyInjection.Get <INavigationService>(); SetCommands(); }
public RozchodWewnetrznyDodajViewModel(IUnitOfWork unitOfWork, IViewService viewService, IDialogService dialogService, IMessenger messenger) { this.unitOfWork = unitOfWork; this.viewService = viewService; this.dialogService = dialogService; this.messenger = messenger; messenger.Register <vwStanTowaru>("DodajTowar", GdyPrzeslanoDaneTowaru); }
public MessageController(IMessenger messenger) { _messenger = messenger; }
/// <summary> /// Registers all declared message handlers for a given recipient. /// </summary> /// <typeparam name="TToken">The type of token to identify what channel to use to receive messages.</typeparam> /// <param name="messenger">The <see cref="IMessenger"/> instance to use to register the recipient.</param> /// <param name="recipient">The recipient that will receive the messages.</param> /// <param name="token">The token indicating what channel to use.</param> /// <remarks> /// This method will register all messages corresponding to the <see cref="IRecipient{TMessage}"/> interfaces /// being implemented by <paramref name="recipient"/>. If none are present, this method will do nothing. /// Note that unlike all other extensions, this method will use reflection to find the handlers to register. /// Once the registration is complete though, the performance will be exactly the same as with handlers /// registered directly through any of the other generic extensions for the <see cref="IMessenger"/> interface. /// </remarks> public static void RegisterAll <TToken>(this IMessenger messenger, object recipient, TToken token) where TToken : IEquatable <TToken> {
/// <summary> /// Registers all declared message handlers for a given recipient, using the default channel. /// </summary> /// <param name="messenger">The <see cref="IMessenger"/> instance to use to register the recipient.</param> /// <param name="recipient">The recipient that will receive the messages.</param> /// <remarks>See notes for <see cref="RegisterAll{TToken}(IMessenger,object,TToken)"/> for more info.</remarks> public static void RegisterAll(this IMessenger messenger, object recipient) { messenger.RegisterAll(recipient, default(Unit)); }
public static bool IsRegistered <TMessage>(this IMessenger messenger, object recipient) where TMessage : class { return(messenger.IsRegistered <TMessage, Unit>(recipient, default)); }
protected override void OnCreate(Bundle savedInstanceState) { //this.SetTheme(Android.Resource.Style.ThemeNoTitleBarFullScreen);//全屏并且无标题栏,必须在OnCreate前面设置 base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.huazhong); Stopwatch swtotal = new Stopwatch(); swtotal.Start(); Stopwatch sw = new Stopwatch(); sw.Start(); messager = Singleton.GetMessager; speaker = Singleton.GetSpeaker; dataService = Singleton.GetDataService; Logger = Singleton.GetLogManager; sw.Stop(); Logger.Error("GetMessage" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); globalSetting = dataService.GetSettings(); sw.Stop(); Logger.Error("GetglobalSetting" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); authorization = new Authorization(this); sw.Stop(); Logger.Error("Getauthorization" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); InitParameter(); sw.Stop(); Logger.Error("GetInitParameter" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); GetIntentParameter(); sw.Stop(); Logger.Error("GetIntentParameter" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); InitUI(); sw.Stop(); Logger.Error("GetInitUI" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); InitBrokenRules(); sw.Stop(); Logger.Error("InitBrokenRules" + sw.Elapsed.TotalMilliseconds.ToString()); sw = new Stopwatch(); sw.Start(); System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(RegisterMessages)); t.Start(messager); sw.Stop(); Logger.Error("messager" + sw.Elapsed.TotalMilliseconds.ToString()); AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser; swtotal.Stop(); Logger.Error("TotalStarTime" + swtotal.Elapsed.TotalMilliseconds.ToString()); }
protected ViewModelBaseEx(IMessenger messenger = null) : base(messenger) { }
public TableTypeViewModel(ITableService tableService, IMessenger messenger) : base(messenger) { this.TableService = tableService; }
// inyectamos la dependencia mediante el ctor // public ServiciosSeguridad(IMessenger msgr) { _mensajero = msgr; }
public Notification(IMessenger mes) { _messenger = mes; }
public EmployeeEntity(IDataService dataService, IMessenger messanger, Model.Employee entity) : this(dataService, messanger, entity, 0) { }
public override async Task <bool> OnMessage(IMessage message, IMessenger messenger) { return(false); }
public WorkItemSearchResultViewModel(IMessenger messenger) { _messenger = messenger; }
public void DoNotify(IMessenger pMessenger) { pMessenger.SendMessage(); }
public override async Task <bool> OnCommand(Command command, IMessage message, IMessenger messenger) { if (command == null) { throw new ArgumentNullException("command"); } if (message == null) { throw new ArgumentNullException("message"); } if (messenger == null) { throw new ArgumentNullException("messenger"); } string url = "http://api.giphy.com/v1/gifs/translate?s={0}&api_key=dc6zaTOxFJmzC"; try { var giphyFetcher = new GiphyFetcher(url, base.HttpClient); if (command.Arguments.Any()) { string giphyUrl = null; if (command.Arguments.Length == 1) { string keyword = command.Arguments[0]; if (!string.IsNullOrEmpty(keyword)) { giphyUrl = await giphyFetcher.GetGiphyGif(keyword); } } if (!string.IsNullOrEmpty(giphyUrl)) { messenger.SendMessage(giphyUrl); } } return(false); } catch (Exception er) { return(false); } }
protected AbstractContactInteractor(IContactRepository repository, IMessenger messenger, IEncryption keyEncryption) : base(messenger, keyEncryption) { this.Repository = repository; this.Messenger = messenger; }
public CustomerViewModel(IMessenger messenger, UserLogin userLogin) : base(messenger, userLogin) { GetCustomerCollection(); }
public ViewModelFactory(IMessenger messenger, INavigationService navigationService) { _messenger = messenger; _navigationService = navigationService; }
public PoloniexTradeMACD(Poloniex exch, string pair, IMessenger messenger) { m_exch = exch; m_pair = pair; m_msg = messenger; }
public IssuesUpdatesChecker(ReportsSettings reportsSettings, IJiraApi jiraApi, JiraSessionViewModel jiraSession, IMessenger messenger) { _reportsSettings = reportsSettings; _jiraApi = jiraApi; _jiraSession = jiraSession; _messenger = messenger; SystemEvents.SessionSwitch += (sender, args) => { _isStationLocked = args.Reason == SessionSwitchReason.SessionLock; }; _timer = new DispatcherTimer(); _timer.Interval = TimeSpan.FromSeconds(30); _timer.Tick += TimerTick; _timer.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="RepositoryDetailViewModel"/> class. /// </summary> /// <param name="iocCommonLogging"> /// The ioc common logging. /// </param> /// <param name="iocEventAggregator"> /// The ioc event aggregator. /// </param> public RepositoryDetailViewModel(ISharedLogging iocCommonLogging, IMessenger iocEventAggregator) : base(iocCommonLogging) { }
public MainViewModel(IMessenger messenger) { this.messenger = messenger; CreateAlbumCommand = new RelayCommand(AddNewAlbum); }
public CustomerViewModel(IMessenger messenger) : base(messenger) { GetCustomerCollection(); }
public MainPresenter() { messenger = Locator.Current.GetService <IMessenger>(); getAlertsUseCase = Locator.Current.GetService <GetAlertsUseCase>(); getVersionsUseCase = Locator.Current.GetService <GetVersionsUseCase>(); }
public AsyncCommand Notify(IMessenger messenger) { this.messenger = messenger; return(this); }
public JukeboxFactory(IMessenger messenger) { _messenger = messenger ?? throw new ArgumentNullException(nameof(messenger)); }
public ShiftOpenMenuItem(MenuItemSize size, IMessenger messenger) : base("ShiftOpen", "ShiftOpen", 0, size, messenger) { LoggedUserUpdated(null); _messenger.Register <ShiftUpdatedMsg>(ShiftUpdate); }