private void LaunchProgram(object sender, RoutedEventArgs e) { Button item = (Button)sender; ApplicationInfo app = item.DataContext as ApplicationInfo; appGrabber.LaunchProgram(app); }
private void programsMenu_Open(object sender, RoutedEventArgs e) { MenuItem item = (MenuItem)sender; ApplicationInfo app = item.DataContext as ApplicationInfo; appGrabber.LaunchProgram(app); }
private void LaunchProgram(object sender, RoutedEventArgs e) { System.Windows.Controls.MenuItem item = (System.Windows.Controls.MenuItem)sender; ApplicationInfo app = item.DataContext as ApplicationInfo; appGrabber.LaunchProgram(app); }