public MainWindowViewModel(ICopyPasteController <IList <IBufferItem> > copyPasteController, IShowNotifyController showNotifyController) { ViewName = NavigationKeys.HelpView; App.Current.MainWindow.Deactivated += MainWindow_Deactivated; _buffers = copyPasteController.Buffer; copyPasteController.Update += CopyPasteController_Update; showNotifyController.ShowBuffersClick += ShowNotifyController_ShowBuffersClick; showNotifyController.ShowHelpClick += ShowNotifyController_ShowHelpClick; }
public NotifyViewModel(IShowNotifyController notifyContoller) { notifyContoller.CopyIsActive += TextNotifyContoller_UpdateProps; notifyContoller.PasteIsActive += TextNotifyContoller_UpdateProps; }