示例#1
0
        void txt_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            HelpMenuModel model = (HelpMenuModel)((TextBlock)sender).Tag;

            if (model != null)
            {
                _history.Add(model);
            }
            if (model == null)
            {
                _history.Clear();
            }
            displayedModel = model;
            DisplayRoot();
        }
示例#2
0
 private void TextBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (_history.Count() > 0)
     {
         _history.RemoveAt(_history.Count() - 1);
         if (_history.Count() > 0)
         {
             displayedModel = _history[_history.Count() - 1];
         }
         else
         {
             displayedModel = null;
         }
     }
     DisplayRoot();
 }