/// <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(); }
/// <summary> /// ctor(). /// </summary> public BuyerProfilePageViewModel() { BaseSingleton <NavigationObserver> .Instance.SendToBuyerProfileTransAction += OnSendToBuyerProfileTransAction; CloseCommand = new Command(() => { TransactionsData.Clear(); BaseSingleton <NavigationObserver> .Instance.OnCloseView(); }); }
/// <summary> /// ctor(). /// </summary> public GrowerProfileViewModel() { BaseSingleton <NavigationObserver> .Instance.SendToGrowerProfileTransAction += OnSendToGrowerProfileTransAction; CloseCommand = new Command(() => { SelectedMenuItem = null; TransactionsData.Clear(); BaseSingleton <NavigationObserver> .Instance.OnCloseView(); }); }