Skip to content

Commit

Permalink
Some Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yirade committed Jul 11, 2023
1 parent d2a218e commit f85e42b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions WorkShiftManager/Element.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion WorkShiftManager/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion WorkShiftManager/modalEditUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ public modalEditUser(int Id)
Worker worker = Globals.DataManager.GetWorkerById(Id);
txtName.Text = worker.Name;
txtEmail.Text = worker.Email;
imgProfile.Image = Image.FromFile(worker.ProfileImagePath);
try { imgProfile.Image = Image.FromFile(worker.ProfileImagePath); }
catch (Exception ex)
{
imgProfile.Image = Properties.Resources.user;
}
selectedImagePath = worker.ProfileImagePath;

foreach (Department department in Globals.DataManager.Departments)
Expand Down

0 comments on commit f85e42b

Please sign in to comment.