private void programsMenu_OpenRunAs(object sender, RoutedEventArgs e) { MenuItem item = (MenuItem)sender; ApplicationInfo app = item.DataContext as ApplicationInfo; appGrabber.LaunchProgramVerb(app, "runasuser"); }
private void LaunchProgramRunAs(object sender, RoutedEventArgs e) { System.Windows.Controls.MenuItem item = (System.Windows.Controls.MenuItem)sender; ApplicationInfo app = item.DataContext as ApplicationInfo; appGrabber.LaunchProgramVerb(app, "runasuser"); }