private void Construct(IDialogFacade dialogFacade, INavigationService navigationService, IWorkflowService workflowService) { m_DialogFacade = dialogFacade; m_NavigationService = navigationService; m_WorkflowService = workflowService; }
public TemplateDetailsPresentationModel(IServiceLocator serviceLocator, IEventAggregator eventAggregator, IDialogFacade dialogFacade) { this.serviceLocator = serviceLocator; this.eventAggregator = eventAggregator; this.dialogFacade = dialogFacade; this.RemoveTemplateCommand = new DelegateCommand <object>(RemoveTemplate); this.EditTemplateCommand = new DelegateCommand <object>(EditTemplate); this.CreateRideCommand = new DelegateCommand <object>(CreateRide); }
public DesignerPresentationModel(IServiceLocator serviceLocator, IShell shell, IDialogFacade dialogFacade, IEventAggregator eventAggregator) { this.serviceLocator = serviceLocator; this.shell = shell; this.dialogFacade = dialogFacade; this.eventAggregator = eventAggregator; this.CancelCommand = new DelegateCommand <object>(Cancel); this.SaveCommand = new DelegateCommand <object>(Save); eventAggregator.GetEvent <IntervalSelectedEvent>().Subscribe(IntervalSelected, true); }
/// <summary> /// Displays a message box with specified text, caption, buttons and icon. /// </summary> /// <param name="facade">The <see cref="IDialogFacade"/></param> /// <param name="message">The text to display in the message box.</param> /// <param name="caption">The text to display in the title bar of the message box.</param> /// <returns>One of the <see cref="DialogResult"/> values.</returns> public static DialogResult ShowMessage(this IDialogFacade facade, string message, string caption) { return(facade.ShowMessage( message, caption, DefaultButtons, DefaultIcon, DefaultDefaultButton, DefaultOptions, DefaultDisplayHelpButton)); }
public TrainingSetsPresentationModel(IServiceLocator serviceLocator, IEventAggregator eventAggregator, IDialogFacade dialogFacade) { ApplicationContext.Current.PropertyChanged += (sender, e) => { if (e.PropertyName == "TrainingSetCount") { FirePropertyChanged("NumberOfTrainingSetsLabel"); } }; this.serviceLocator = serviceLocator; this.eventAggregator = eventAggregator; this.dialogFacade = dialogFacade; this.AddTrainingSetCommand = new DelegateCommand <object>(AddTrainingSet); }
public TemplatesPresentationModel(IServiceLocator serviceLocator, IEventAggregator eventAggregator, IDialogFacade dialogFacade) { ApplicationContext.Current.PropertyChanged += (sender, e) => { if (e.PropertyName == "TemplateCount") { FirePropertyChanged("NumberOfTemplatesLabel"); } }; this.serviceLocator = serviceLocator; this.eventAggregator = eventAggregator; this.dialogFacade = dialogFacade; this.AddTemplateCommand = new DelegateCommand <object>(AddTemplate); this.RemoveTemplateCommand = new DelegateCommand <TrainingSetTemplate>(RemoveTemplate); this.EditTemplateCommand = new DelegateCommand <TrainingSetTemplate>(EditTemplate); this.CreateRideCommand = new DelegateCommand <TrainingSetTemplate>(CreateRide); }
public TemplatePresentationModel(IServiceLocator serviceLocator, IEventAggregator eventAggregator, IDialogFacade dialogFacade, IShell shell) { this.serviceLocator = serviceLocator; this.eventAggregator = eventAggregator; this.dialogFacade = dialogFacade; this.shell = shell; this.intervals = new ObservableCollection <Interval>(); this.intervals.CollectionChanged += (sender, e) => { switch (e.Action) { case System.Collections.Specialized.NotifyCollectionChangedAction.Add: if (IsPopulatingIntervals) { return; } var interval = e.NewItems[0] as Interval; Interval.Setup(interval, string.Empty, Template.EffortType, () => RefreshTemplate()); RefreshTemplate(); break; case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: RefreshTemplate(); break; case System.Collections.Specialized.NotifyCollectionChangedAction.Replace: RefreshTemplate(); break; case System.Collections.Specialized.NotifyCollectionChangedAction.Reset: break; default: break; } }; this.CancelCommand = new DelegateCommand <object>(Cancel); this.SaveCommand = new DelegateCommand <object>(Save); this.editIntervalCommand = new DelegateCommand <Interval>(EditInterval); this.addIntervalCommand = new DelegateCommand <Interval>(AddInterval); this.removeIntervalCommand = new DelegateCommand <Interval>(RemoveInterval); this.InsertRowCommand = new DelegateCommand <string>(InsertRow); this.CopyRowsCommand = new DelegateCommand <string>(CopyRows); this.MoveRowsCommand = new DelegateCommand <string>(MoveRows); this.DeleteRowsCommand = new DelegateCommand <string>(DeleteRows); }
public EconomyEditorViewModel(Galaxy Galaxy) { this.Galaxy = Galaxy; this.dialogFacade = new DialogFacade(); }
private void Construct(IDialogFacade dialogFacade) { m_DialogFacade = dialogFacade; }
public MainWindowViewModel(IDialogFacade dialogFacade) { _dialogFacade = dialogFacade; OpenDialogCommand = new RelayCommand(OnOpenDialog); }
public IntervalPresentationModel(IServiceLocator serviceLocator, IDialogFacade dialogFacade) { this.serviceLocator = serviceLocator; this.dialogFacade = dialogFacade; }
public Module(IEventAggregator eventAggregator, IDialogFacade dialogFacade) { this.eventAggregator = eventAggregator; this.dialogFacade = dialogFacade; }
public IntervalDesignerPresentationModel(IEventAggregator eventAggregator, IDialogFacade dialogFacade) { this.eventAggregator = eventAggregator; this.dialogFacade = dialogFacade; }