public void PopLastScreen()
        {
            // If user does not want to delete current working card just do nothing.
            if (CurrentActivity is CtrlCard)
            {
                CtrlCard card = ((CtrlCard)CurrentActivity);
                if (card.ExternalAskToDiscardIsInProcess == true)
                {
                    card.ExternalAskToDiscard();
                    if (card.AllowClose == false)
                    {
                        return;
                    }
                }
                else
                {
                    if (card.SaveIsPressed == true)
                    {
                    }
                    else // Discard is pressed
                    {
                    }
                }
            }

            if (this.ActivityStack.Count > 0)
            {
                CurrentActivity            = this.ActivityStack.Pop();
                this.ContentHolder.Content = CurrentActivity;
            }
        }
Exemplo n.º 2
0
        private void OnNewCardClicked(object sender, RoutedEventArgs e)
        {
            CtrlCard ctrlCard = new CtrlCard();

            ctrlCard.Init();
            ctrlCard.OnClose += new EventHandler(ctrlCard_OnClose);
            wndMainWindow.PresentContent(ctrlCard);
        }