Example #1
0
 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);
     }
 }
Example #2
0
        private void btnManagePartitions_Click(object sender, EventArgs e)
        {
            frmPartitionManager PartitionManager = new frmPartitionManager(Controller.getAppleMobileDevice(), Controller);

            PartitionManager.Show();
            btnSelectOperatingSystems.Enabled = true;
        }
Example #3
0
        private void btnDeviceTree_Click(object sender, EventArgs e)
        {
            OpenFileDialog vOpenFileDialog = new OpenFileDialog();

            vOpenFileDialog.Title  = "Select Custom DeviceTree Image";
            vOpenFileDialog.Filter = "IMG3 Files|*.img3";
            DialogResult result = vOpenFileDialog.ShowDialog();

            txtDeviceTree.Text = vOpenFileDialog.FileName;

            string GenericDeviceTreeFileName = "DeviceTree." + Controller.getAppleMobileDevice().InternalCodeName + "_custom.img3";

            if (Directory.Exists(Controller.getWorkingDirectory()) == false)
            {
                Directory.CreateDirectory(Controller.getWorkingDirectory());
            }

            File.Copy(vOpenFileDialog.FileName, Controller.getWorkingDirectory() + "\\" + GenericDeviceTreeFileName);
            OperatingSystem.DeviceTree = Controller.getWorkingDirectory() + "\\" + GenericDeviceTreeFileName;
        }
Example #4
0
 public frmSelectionOS(iMultiBootController pController)
 {
     InitializeComponent();
     Controller = pController;
     iDevice    = Controller.getAppleMobileDevice();
 }