public BuffersViewModel(ICopyPasteController <IList <IBufferItem> > copyPasteController) { ICopyPasteController <IList <IBufferItem> > _copyPasteController = copyPasteController; _copyPasteController.Update += CopyPasteController_Update; Buffers = copyPasteController.Buffer; }
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; }