private void TextBlock_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { current = (sender as TextBlock).DataContext as TreeViewExpertModal; if (WorkMode.IsExpert && current.Children.Count == 0) { if (e.ClickCount == 2) { SliderWindow SW = new SliderWindow(current); SW.ShowDialog(); current.IsDoubleClick = true; NotSave(); } } if (!WorkMode.IsExpert) { if (current.Parent != null) { if (current.Parent.Parent != null) { if (e.ClickCount == 2) { SliderWindow SW = new SliderWindow(current); SW.ShowDialog(); current.IsDoubleClick = true; NotSave(); } } } } }
private void ShowPostPlaybackForms() { _Orchestrator.ShowPostPlaybackVisualizations(_videoExecutionInstance); SliderWindow _slider = new SliderWindow(_Orchestrator.GetExecutionScores()); _slider.LoadVideoExecution(_videoExecutionInstance); _slider.Show(); }
/// <summary>button2_Click</summary> private void button2_Click(object sender, RoutedEventArgs e) { Window w = new SliderWindow(); w.Show(); }
public void OpenNewSlideWindow(object parameter) { var window = new SliderWindow(_alphabetSymbols, this); window.Show(); }