public static void KMSActivate() { if (mainW.windows_option.IsChecked == true) { Thread win = new Thread(() => { ActWin.WinActivate(); CheckActivateState(); }); win.Start(); } else if (mainW.office_option.IsChecked == true) { Thread office = new Thread(() => { ActOffice.OfficeActivate(); }); office.Start(); } }
private void Office_option_Checked(object sender, RoutedEventArgs e) { ActOffice.OfficeEnv(); }