C2025-022-Remove-UCF-2
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user