- (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)␊ |
␉{␊ |