public CoursesWindow(int docId) { InitializeComponent(); this.doctorId = docId; employeeHandler = new EmployeeHandler(); exHandler = new ExceptionHandler(); }
private BitmapImage _doctorImage; //after Uploading image assign it to this variable public EmployeeWindow(string name, byte[] image) { InitializeComponent(); _employeeHandler = new EmployeeHandler(); _exHandler = new ExceptionHandler(); _doctorImage = null; welcomelabel.Content = welcomelabel.Content.ToString() + name; //Load Image Employee try { employeeImage.Source = LoadImage(image); } catch (Exception ex) { MessageBox.Show("Error in Uplading Photo! :" + ex.Message); } }