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

            InitializeComponent();

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

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

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

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

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

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