Пример #1
0
        /// <summary>
        ///     Close view, which binding with this viewModel.
        /// </summary>
        /// <param name="obj"></param>
        private void OnCloseCommand(object obj)
        {
            SelectedMenuItem = null;
            TransactionsData.Clear();

            BaseSingleton <NavigationObserver> .Instance.OnCloseView();
        }
Пример #2
0
        /// <summary>
        ///     ctor().
        /// </summary>
        public BuyerProfilePageViewModel()
        {
            BaseSingleton <NavigationObserver> .Instance.SendToBuyerProfileTransAction += OnSendToBuyerProfileTransAction;

            CloseCommand = new Command(() => {
                TransactionsData.Clear();
                BaseSingleton <NavigationObserver> .Instance.OnCloseView();
            });
        }
Пример #3
0
        /// <summary>
        ///     ctor().
        /// </summary>
        public GrowerProfileViewModel()
        {
            BaseSingleton <NavigationObserver> .Instance.SendToGrowerProfileTransAction += OnSendToGrowerProfileTransAction;

            CloseCommand = new Command(() => {
                SelectedMenuItem = null;
                TransactionsData.Clear();

                BaseSingleton <NavigationObserver> .Instance.OnCloseView();
            });
        }