private void RenameBlockGroup(BlockGroup blockGroup) { if (blockGroup.IsChangeable) { Trace.TraceInformation("Exporting: " + blockGroup.Name + System.Environment.NewLine); blockGroup.RenameAll(_Find, _Replace); } else { string diagnostics = "The block group " + blockGroup.Name + " has some blocks that were not changeable..." + blockGroup.GetIschangeableInfo(); using (Form owner = Util.GetForegroundWindow()) { MessageBox.Show(owner, diagnostics); } Trace.TraceInformation(diagnostics); } }