Esempio n. 1
0
        public PasswordView(PasswordViewModel viewModel)
        {
            DataContext = viewModel;

            InitializeComponent();

            EventTypeAggregator.GetEvent <PubSubEvent <CloseWindowEvent> >()
            .Subscribe((item) =>
            {
                if (item?.WindowName == this.GetType().Name)
                {
                    Close();
                }
            });
        }
Esempio n. 2
0
        public LoginView()
        {
            InitializeComponent();

#if false
            EventTypeAggregator.GetEvent <PubSubEvent <CloseWindowEvent> >()
            .Subscribe((item) =>
            {
                if (item?.WindowName == this.GetType().Name)
                {
                    Close();
                }
            });
#endif
        }
Esempio n. 3
0
        // **************** Class enumerations ********************************************** //

        // **************** Class data members ********************************************** //

        // **************** Class properties ************************************************ //

        // **************** Class constructors ********************************************** //

        public AppController()
        {
            EventTypeAggregator.GetEvent <PubSubEvent <string> >().Subscribe(OnUserAction);
        }