- (IBAction)onInjectPartsToFreeze: (id)sender␊ |
{␊ |
␉int size = [[PartsInfoMgr parts] count ];␊ |
␉NSString * title = GetLocStrDef(@"Freeze_Dialog", @"msgbox", @"Inject Partitions to Freeze Configuration");␊ |
␉if (!size) ␊ |
␉{ // nothing to inject␊ |
␉␉NSRunAlertPanel(@"Inject Partitions to Freeze Configuration", ␊ |
␉␉␉␉␉␉@"No current partitions to inject, did you check boot config file ?",@"OK", nil,nil);␊ |
␉␉NSRunAlertPanel(title, ␊ |
␉␉␉␉␉␉GetLocStrDef(@"Freeze_NoPart", @"msgbox", @"No current partitions to inject, did you check boot config file ?"),␊ |
␉␉␉␉␉␉@"OK", nil,nil);␊ |
␉␉return;␊ |
␉}␊ |
␉// generate the parts list in preferences proplist␊ |
␉NSInteger n = NSRunAlertPanel(@"Inject Partitions to Freeze Configuration", ␊ |
␉␉␉␉␉␉␉␉ @"Are you sure you want to overwrite your Freeze settings with current partition list ?",␊ |
␉NSInteger n = NSRunAlertPanel(title, ␊ |
␉␉␉␉␉␉␉␉ GetLocStrDef(@"Freeze_Overwrite", @"msgbox",␊ |
␉␉␉␉␉␉␉␉␉␉␉ @"Are you sure you want to overwrite your Freeze settings with current partition list ?"),␊ |
␉␉␉␉␉␉␉␉ @"OK", @"Cancel",nil);␊ |
␉if (n==1)␊ |
␉{␊ |
|
␉␉if (result)␊ |
␉␉{␊ |
␉␉␉[self msgBoxInfo:␊ |
␉␉␉ [NSString stringWithFormat:@"Boot cd creator script successfully executed. BootCD.iso created in %@.", ␊ |
␉␉␉␉destination]];␊ |
␉␉␉ [NSString stringWithFormat: ␊ |
␉␉␉ GetLocStrDef(@"CD_Success", @"msgbox", @"Boot cd creator script successfully executed. BootCD.iso created in %@."), ␊ |
␉␉␉ destination]];␊ |
␉␉}␊ |
␉␉else␊ |
␉␉␉[self msgBoxError:@"ERROR: Couldn't execute boot cd creator script successfully!"];␊ |
␉␉␉[self msgBoxError:␊ |
␉␉␉␉GetLocStrDef(@"CD_Failure", @"msgbox", @"ERROR: Couldn't execute boot cd creator script successfully!")];␊ |
␉}␊ |
␉␊ |
␉[arr release];␊ |