Пример #1
0
 private void disposePlus()
 {
     if (_plusPanel != null)
     {
         gridPanel.Children.Remove(_plusPanel);
         _plusPanel.DataContext = null;
         _plusPanel             = null;
     }
 }
Пример #2
0
 private void loadPlus()
 {
     if (_plusPanel == null && ViewModel.CanClose)
     {
         _plusPanel             = new VideoPlusPanel();
         _plusPanel.DataContext = ViewModel.PlusSignModel;
         gridPanel.Children.Add(_plusPanel);
     }
 }