Added Save for DocVersion Config

This commit is contained in:
Rich 2012-03-07 19:41:21 +00:00
parent af59ad1538
commit d06421f6df

View File

@ -29,6 +29,11 @@ namespace VEPROMS
private void btnOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
DocVersionConfig dvcfg = this._PGobject as DocVersionConfig;
if (dvcfg != null && dvcfg.IsDirty)
{
dvcfg.MyDocVersion.Save();
}
this.Close();
}
@ -46,6 +51,9 @@ namespace VEPROMS
private void pg_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
DocVersionConfig dvcfg = this._PGobject as DocVersionConfig;
if (dvcfg != null)
dvcfg.IsDirty = true;
// check if folder config & if so, check for name change
FolderConfig tstfoldercfg = this._PGobject as FolderConfig;
if (tstfoldercfg != null)