public PasswordView(PasswordViewModel viewModel) { DataContext = viewModel; InitializeComponent(); EventTypeAggregator.GetEvent <PubSubEvent <CloseWindowEvent> >() .Subscribe((item) => { if (item?.WindowName == this.GetType().Name) { Close(); } }); }
public LoginView() { InitializeComponent(); #if false EventTypeAggregator.GetEvent <PubSubEvent <CloseWindowEvent> >() .Subscribe((item) => { if (item?.WindowName == this.GetType().Name) { Close(); } }); #endif }
// **************** Class enumerations ********************************************** // // **************** Class data members ********************************************** // // **************** Class properties ************************************************ // // **************** Class constructors ********************************************** // public AppController() { EventTypeAggregator.GetEvent <PubSubEvent <string> >().Subscribe(OnUserAction); }