Example #1
0
 private void MenuItemHibernate_Click(object sender, RoutedEventArgs e)
 {
     foreach (RemoteComputer computer in Master.table.selectedItems)
     {
         RemoteTaskManager remoteTaskManager = new RemoteTaskManager(computer);
         remoteTaskManager.CreateProcess("shutdown -h -t 0 -f");
     }
 }
Example #2
0
 private void ButtonRun_Click(object sender, RoutedEventArgs e)
 {
     foreach (RemoteComputer computer in Master.table.selectedItems)
     {
         RemoteTaskManager remoteTaskManager = new RemoteTaskManager(computer);
         remoteTaskManager.CreateProcess(TextBoxCommand.Text);
     }
     //	Close();
 }