Пример #1
0
        private void programsMenu_OpenRunAs(object sender, RoutedEventArgs e)
        {
            MenuItem        item = (MenuItem)sender;
            ApplicationInfo app  = item.DataContext as ApplicationInfo;

            appGrabber.LaunchProgramVerb(app, "runasuser");
        }
Пример #2
0
        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");
        }