private void btnCloseWhatsApp_Click(object sender, RoutedEventArgs e) { if (_runningGroupIndex == -1) { MessageBox.Show(resourceManager.GetString("Error_Please_Launch_A_Vm", cultureInfo)); return; } string packagename = "com.whatsapp"; for (int i = 0; i < VmManager.Instance.Column; i++) { int vmIndex = VmManager.Instance.VmIndexArray[_runningGroupIndex, i]; if (vmIndex != -1) { ProcessUtils.AdbCloseApps(vmIndex, packagename); } } }
private void btnCloseMessenger_Click(object sender, RoutedEventArgs e) { if (_runningGroupIndex == -1) { MessageDialogManager.ShowDialogAsync(SystemLanguageManager.Instance.ResourceManager.GetString("Error_Please_Launch_A_Vm", SystemLanguageManager.Instance.CultureInfo)); return; } string packagename = "com.facebook.mlite"; for (int i = 0; i < VmManager.Instance.Column; i++) { int vmIndex = VmManager.Instance.VmIndexArray[_runningGroupIndex, i]; if (vmIndex != -1) { ProcessUtils.AdbCloseApps(vmIndex, packagename); } } }