public frmDeviceSelection(iMultiBootController pController) { InitializeComponent(); Controller = pController; string[] AvailableDevices = Controller.getAvailableDevices(); for (int i = 0; i < AvailableDevices.Length; i++) { switch (AvailableDevices[i]) { case "k94ap": cmbDeviceSelection.Items.Add("iPad 2nd (K94AP)"); break; case "n81ap": cmbDeviceSelection.Items.Add("iPod Touch 4th (N81AP)"); break; case "n88ap": cmbDeviceSelection.Items.Add("iPhone 3Gs (N88AP)"); break; case "n90ap": cmbDeviceSelection.Items.Add("iPhone 4 (N90AP)"); break; default: cmbDeviceSelection.Items.Add(AvailableDevices[i]); break; } } }
public frmConfigureOS(OperatingSystem pOperatingSystem, iMultiBootController pController) { InitializeComponent(); OperatingSystem = pOperatingSystem; Controller = pController; for (int i = 0; i < Controller.getAppleMobileDevice().PartitionList.Count; i++) { lbPartitionTable.Items.Add(Controller.getAppleMobileDevice().PartitionList[i].Name); } }
private void btnDeserializeController_Click(object sender, EventArgs e) { OpenFileDialog vOpenFileDialog = new OpenFileDialog(); DialogResult result = vOpenFileDialog.ShowDialog(); Stream DataStream = File.Open(vOpenFileDialog.FileName, FileMode.Open); BinaryFormatter ObjectFromBinary = new BinaryFormatter(); Controller = (iMultiBootController)ObjectFromBinary.Deserialize(DataStream); DataStream.Close(); }
public frmPartitionManager(AppleMobileDevice pDevice, iMultiBootController pController) { InitializeComponent(); Device = pDevice; Controller = pController; if (pDevice != null) { lbPartitionTable.Items.Add(Device.SystemPartition.Name); lbPartitionTable.Items.Add(Device.DataPartition.Name); } txtDeviceAvailableStorage.Text = Convert.ToString(DeviceAvailableStorage); }
public frmMain() { InitializeComponent(); MessageBox.Show("Some features of iMultiBoot require flashing low-level components which might contain critical information needed by the iOS device to work properly. This software is provided as-is without warranty, iMultiBoot can cause permanent damages to iOS devices. I'm not responsible of any damages this software may do to any of your equipment. By clicking OK, you understand this.", "Disclaimer", MessageBoxButtons.OK, MessageBoxIcon.Information); Controller = new iMultiBootController(); }
public frmSelectionOS(iMultiBootController pController) { InitializeComponent(); Controller = pController; iDevice = Controller.getAppleMobileDevice(); }
public frmSoftwareConfiguration(iMultiBootController pController) { InitializeComponent(); Controller = pController; txtWorkingDirectory.Text = pController.getWorkingDirectory(); }