C2026-006 Change Title bar on Add/Edit User
This commit is contained in:
@@ -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