private void OpenExecutableOptions(Executable executable) { ExecutableOptions executableOptions = new ExecutableOptions() { DataContext = executable, Owner = this }; executableOptions.ShowDialog(); }
private void ExecutableConfig_Click(object sender, RoutedEventArgs e) { Executable executable = ((FrameworkElement)sender).DataContext as Executable; ExecutableOptions executableOptions = new ExecutableOptions() { DataContext = executable, Owner = this }; executableOptions.ShowDialog(); }