示例#1
0
        public PasswordView(PasswordViewModel viewModel)
        {
            DataContext = viewModel;

            InitializeComponent();

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

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

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

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

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

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