private void disposePlus() { if (_plusPanel != null) { gridPanel.Children.Remove(_plusPanel); _plusPanel.DataContext = null; _plusPanel = null; } }
private void loadPlus() { if (_plusPanel == null && ViewModel.CanClose) { _plusPanel = new VideoPlusPanel(); _plusPanel.DataContext = ViewModel.PlusSignModel; gridPanel.Children.Add(_plusPanel); } }