C2025-022-Remove-UCF-2

This commit is contained in:
2025-08-27 12:59:53 -04:00
parent 47a4c62e92
commit 525173bc9f
30 changed files with 1159 additions and 1603 deletions

View File

@@ -338,23 +338,23 @@ namespace VEPROMS
//if (btnAnnoTypeSave.Enabled) return;
folderConfigBindingSource.EndEdit();
// if there is a change to the format, clean up any overridden formats that point to the selected item before saving the format change:
if (_FolderConfig.MyFolder.FormatID != _cmbxformatOriginal)
{
// clean up & then refresh the configs
using (ContentInfoList cil = ContentInfoList.ClearOverrideFormatsByFolder(_FolderConfig.MyFolder.FolderID, _cmbxformatOriginal, _FolderConfig.MyFolder.FormatID))
{
foreach (ContentInfo ci in cil)
{
using (Content c = ci.Get())
{
// first refresh configs because the ContentInfo.Refresh causes events to occur that refresh screen
// and if configs aren't done first, the screen refresh, if based on config data, will not be correct.
foreach (ItemInfo ii in ci.ContentItems) ii.RefreshConfig();
ContentInfo.Refresh(c);
}
}
}
}
//if (_FolderConfig.MyFolder.FormatID != _cmbxformatOriginal)
//{
// // clean up & then refresh the configs
// using (ContentInfoList cil = ContentInfoList.ClearOverrideFormatsByFolder(_FolderConfig.MyFolder.FolderID, _cmbxformatOriginal, _FolderConfig.MyFolder.FormatID))
// {
// foreach (ContentInfo ci in cil)
// {
// using (Content c = ci.Get())
// {
// // first refresh configs because the ContentInfo.Refresh causes events to occur that refresh screen
// // and if configs aren't done first, the screen refresh, if based on config data, will not be correct.
// foreach (ItemInfo ii in ci.ContentItems) ii.RefreshConfig();
// ContentInfo.Refresh(c);
// }
// }
// }
//}
// Save Default settings for User
//
// Save whether we should display the default values on this property page