private void startDriverButton_Click(object sender, RoutedEventArgs e) { try { using (ServiceControlManager scm = new ServiceControlManager()) { scm.StartDriver(serviceNameTextBox.Text); } MessageBox.Show("Драйвер запущен"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }