private void IPhoneForceCPUButton_Click(object sender, EventArgs e) { using (var iOSDevicesForm = new IOSDeviceManager(IPhoneForceCPUField.Text.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries))) { if (iOSDevicesForm.ShowDialog(this) == DialogResult.OK) IPhoneForceCPUField.Text = iOSDevicesForm.SelectedDevices; } }
private void IPhoneResolutionExcludeButton_Click(object sender, EventArgs e) { string devicesData = (string)(IPhoneResolutionExcludeButton.Tag ?? string.Empty); string[] devices = devicesData.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); using (var iOSDevicesForm = new IOSDeviceManager(devices)) { if (iOSDevicesForm.ShowDialog(this) == DialogResult.OK) IPhoneResolutionExcludeButton.Tag = iOSDevicesForm.SelectedDevices; } }