Proms Express: display format tab for top folder if not using default format

Use generic Specific Information field processing
This commit is contained in:
2015-05-14 14:35:01 +00:00
parent 977b748548
commit 46ff7a513d
2 changed files with 12 additions and 5 deletions

View File

@@ -179,14 +179,21 @@ namespace VEPROMS
{
// if we are at the top node of the tree, remove the Folder Property page tabs
// that do not pertain to this level (top of tree)
this.tcFolder.Tabs.Remove(tiFmtSettings);
this.tcFolder.Tabs.Remove(tiOutputSettings);
this.tcFolder.Tabs.Remove(tiEditSettings);
// for format settings, include it if the top node's format is NOT the base, i.e. formatid != 1.
// this is done so that PROMS EXPRESS folder specific info can be displayed/used for the top
// node of the tree. The formatid for the top folder for PROMS EXPRESS databases must be
// set manually to the PROMS EXPRESS format.
if (_FolderConfig.MyFolder.MyFormat.FormatID == 1)
{
this.tcFolder.Tabs.Remove(tiFmtSettings);
this.btnFormatSettings.Visible = false;
}
//this.tcFolder.Tabs.Remove(tiAnnoTypes); // TEMPORARY - JSJ
//this.tcFolder.Tabs.Remove(tiApprvStages);// TEMPORARY - JSJ
//this.btnAnnoTypes.Visible = false; // TEMPORARY - JSJ
//this.btnApprvStages.Visible = false; // TEMPORARY - JSJ
this.btnFormatSettings.Visible = false;
this.btnOutputSettings.Visible = false;
this.btnEdSettings.Visible = false;
ppLblDefSettingsInfo.Visible = false;