private void OpenTaskDetailWindow(EncodingTask t) { TaskDetail taskDetail = new TaskDetail { DataContext = t }; taskDetail.Show(); }
private void ListBoxItem_MouseDoubleClick(object sender, MouseButtonEventArgs e) { EncodingTask source = (EncodingTask)((ListBoxItem)sender).Content; OpenTaskDetailWindow(source); }