Merge pull request 'C2026-006 Change Title bar on Add/Edit User' (#695) from C2026-006 into Development
good for testing phase
This commit was merged in pull request #695.
This commit is contained in:
@@ -333,6 +333,7 @@ namespace VEPROMS
|
||||
User u = User.MakeUser("[Enter New UserID]", "", "", "", "", "", "", "", "", "", "", DateTime.Now, "");
|
||||
frmManageUser frm = new frmManageUser("add");
|
||||
frm.MyUser = u;
|
||||
frm.Text = "Enter New UserID"; //C2026-002 Change Title bar on Add/Edit User
|
||||
if (frm.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
u = frm.MyUser;
|
||||
|
||||
@@ -20,7 +20,27 @@ namespace VEPROMS
|
||||
_MyUser = value;
|
||||
SimpleUser su = new SimpleUser(_MyUser);
|
||||
pgUser.SelectedObject = su;
|
||||
this.Text = string.Format("{0} ({1} {2}) Information",su.UserID,su.FirstName,su.LastName);
|
||||
|
||||
//C2026-002 Change Title bar on Add/Edit User
|
||||
string tmp;
|
||||
if (!string.IsNullOrEmpty(su.FirstName) && !string.IsNullOrEmpty(su.LastName))
|
||||
{
|
||||
tmp = $"{su.UserID} ({su.FirstName} {su.LastName}) Information";
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(su.LastName))
|
||||
{
|
||||
tmp = $"{su.UserID} ({su.LastName}) Information";
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(su.FirstName))
|
||||
{
|
||||
tmp = $"{su.UserID} ({su.FirstName}) Information";
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp = $"{su.UserID} Information";
|
||||
}
|
||||
|
||||
this.Text = tmp;
|
||||
}
|
||||
}
|
||||
private string _Mode;
|
||||
|
||||
Reference in New Issue
Block a user