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

            appGrabber.LaunchProgram(app);
        }
Пример #2
0
        private void programsMenu_Open(object sender, RoutedEventArgs e)
        {
            MenuItem        item = (MenuItem)sender;
            ApplicationInfo app  = item.DataContext as ApplicationInfo;

            appGrabber.LaunchProgram(app);
        }
Пример #3
0
        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);
        }