VEPROMS_UI / remove BouncyCastle
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
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;
|
||||
|
||||
@@ -40,10 +36,10 @@ namespace VEPROMS
|
||||
tmp = $"{su.UserID} Information";
|
||||
}
|
||||
|
||||
this.Text = tmp;
|
||||
Text = tmp;
|
||||
}
|
||||
}
|
||||
private string _Mode;
|
||||
private readonly string _Mode;
|
||||
public frmManageUser(string mode)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -55,7 +51,7 @@ namespace VEPROMS
|
||||
_MyUser = (pgUser.SelectedObject as SimpleUser).MyUser;
|
||||
if (_MyUser.UserID.StartsWith("["))
|
||||
{
|
||||
MessageBox.Show(string.Format("{0} is an invalid UserID", _MyUser.UserID));
|
||||
MessageBox.Show($"{_MyUser.UserID} is an invalid UserID");
|
||||
return;
|
||||
}
|
||||
if (_MyUser.UserID == string.Empty)
|
||||
@@ -65,29 +61,26 @@ namespace VEPROMS
|
||||
}
|
||||
if (UserInfo.GetByUserID(_MyUser.UserID) != null && _Mode.ToUpper() == "ADD")
|
||||
{
|
||||
MessageBox.Show(string.Format("A user already exists with the UserID '{0}'", _MyUser.UserID));
|
||||
MessageBox.Show($"A user already exists with the UserID '{_MyUser.UserID}'");
|
||||
return;
|
||||
}
|
||||
_MyUser.Save();
|
||||
this.DialogResult = DialogResult.OK;
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
_MyUser = User.Get(_MyUser.UID);
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
}
|
||||
internal class SimpleUser
|
||||
{
|
||||
private User _MyUser;
|
||||
private UserConfig _MyUC;
|
||||
[Browsable(false)]
|
||||
public User MyUser
|
||||
{
|
||||
get { return _MyUser; }
|
||||
}
|
||||
public SimpleUser(User myUser)
|
||||
private readonly User _MyUser;
|
||||
private readonly UserConfig _MyUC;
|
||||
[Browsable(false)]
|
||||
public User MyUser => _MyUser;
|
||||
public SimpleUser(User myUser)
|
||||
{
|
||||
_MyUser = myUser;
|
||||
_MyUC = new UserConfig(myUser.Config);
|
||||
|
||||
Reference in New Issue
Block a user