VEPROMS_UI / remove BouncyCastle
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
@@ -11,7 +6,7 @@ namespace VEPROMS
|
||||
{
|
||||
public partial class frmPropGrid : DevComponents.DotNetBar.Office2007Form
|
||||
{
|
||||
private object _PGobject;
|
||||
private readonly object _PGobject;
|
||||
|
||||
public frmPropGrid(object pgobject)
|
||||
{
|
||||
@@ -23,24 +18,23 @@ namespace VEPROMS
|
||||
{
|
||||
InitializeComponent();
|
||||
_PGobject = pgobject;
|
||||
this.Text = title;
|
||||
Text = title;
|
||||
}
|
||||
|
||||
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();
|
||||
if (_PGobject is DocVersionConfig dvcfg && dvcfg.IsDirty)
|
||||
{
|
||||
dvcfg.MyDocVersion.Save();
|
||||
}
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
Close();
|
||||
}
|
||||
|
||||
private void frmPropGrid_Load(object sender, EventArgs e)
|
||||
@@ -51,39 +45,23 @@ 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)
|
||||
{
|
||||
if ((string)e.OldValue != tstfoldercfg.Name)
|
||||
{
|
||||
bool isunique = tstfoldercfg.CheckUniqueName(tstfoldercfg.Name);
|
||||
if (!isunique)
|
||||
{
|
||||
MessageBox.Show(string.Format("The Name '{0}' that was entered is not a unique folder name", tstfoldercfg.Name));
|
||||
tstfoldercfg.Name = (string)e.OldValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.Refresh();
|
||||
if (_PGobject is DocVersionConfig dvcfg)
|
||||
dvcfg.IsDirty = true;
|
||||
// check if folder config & if so, check for name change
|
||||
if (_PGobject is FolderConfig tstfoldercfg)
|
||||
{
|
||||
if ((string)e.OldValue != tstfoldercfg.Name)
|
||||
{
|
||||
bool isunique = tstfoldercfg.CheckUniqueName(tstfoldercfg.Name);
|
||||
if (!isunique)
|
||||
{
|
||||
MessageBox.Show(string.Format("The Name '{0}' that was entered is not a unique folder name", tstfoldercfg.Name));
|
||||
tstfoldercfg.Name = (string)e.OldValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Refresh();
|
||||
|
||||
}
|
||||
}
|
||||
//public partial class SystemConfig
|
||||
//{
|
||||
// FolderConfig _FolderConfig;
|
||||
// public SystemConfig(FolderConfig folderConfig)
|
||||
// {
|
||||
// _FolderConfig = folderConfig;
|
||||
// //_FolderConfig.Default_SPPrefix;
|
||||
// }
|
||||
// public string Default_SPPrefix
|
||||
// {
|
||||
// get { return _FolderConfig.Default_SPPrefix; }
|
||||
// set { _FolderConfig.Default_SPPrefix = value; }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user