This commit is contained in:
2008-08-12 11:44:28 +00:00
parent ac8f69baf4
commit 869ff724d9
3 changed files with 2234 additions and 2148 deletions

View File

@@ -134,9 +134,13 @@ namespace VEPROMS
// }
imageCodecInfoBindingSource.DataSource = ImageCodecInfo.GetImageDecoders();
formatInfoListBindingSource.DataSource = FormatInfoList.Get();
//formatInfoListBindingSource.DataSource = FormatInfoList.Get();
folderConfigBindingSource.DataSource = _FolderConfig;
ppCmbxFormat.DataSource = null;
ppCmbxFormat.DisplayMember = "FullName";
ppCmbxFormat.ValueMember = "FullName";
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
// Get the saved settings for this user
//
// This setting tells us if we should display the default values on this property page
@@ -158,7 +162,8 @@ namespace VEPROMS
// Setup as to which "tabs" to display on the property page
// - the first (top) tree node shows different "tabs" than the
// other folder type of tree nodes
if (_FolderConfig.Name.Equals("VEPROMS"))
if (!_FolderConfig.HasParent())
//if (_FolderConfig.Name.Equals("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)
@@ -263,6 +268,19 @@ namespace VEPROMS
ProcessButtonClick(tiGeneral, btnGeneral);
}
private void ppRTxtName_Leave(object sender, EventArgs e)
{
if (ppRTxtName.Text != _FolderConfig.Name)
{
// need a folderinfo to check for unique names...
bool isunique = _FolderConfig.CheckUniqueName(ppRTxtName.Text);
if (!isunique)
{
MessageBox.Show(string.Format("The Name '{0}' that was entered is not a unique folder name", ppRTxtName.Text));
ppRTxtName.Text = _FolderConfig.Name;
}
}
}
#endregion
#region Referenced Objects tab
@@ -1052,5 +1070,7 @@ namespace VEPROMS
}
#endregion
}
}