private void CheckDrivers_Executed(object sender, ExecutedRoutedEventArgs e) { var driverDetails = PnPutilInterface.GetVMSpcDrivers(); if (driverDetails != null && driverDetails.Count > 0) { if (driverDetails.Count == 2) { MessageBox.Show($"All VMSpc drivers are installed, including {driverDetails[0].Class} and {driverDetails[1].Class}"); } else if (driverDetails.Count == 1) { MessageBox.Show($"Only one VMSpc driver is installed: {driverDetails[0].Class}. Select the \"Install Drivers\" option to install the other driver"); } } else { MessageBox.Show($"No VMSpc drivers are installed. Select the \"Install Drivers\" option"); } }
private void DeleteDrivers_Executed(object sender, ExecutedRoutedEventArgs e) { PnPutilInterface.DeleteDrivers(); }