public UserControl_AddWard(Ward Ward, UserControl_Wards parentUC) { InitializeComponent(); _isNewWard = false; //A new patient will not have a health care no to reference ward = Ward; ParentWardsWindow = parentUC as UserControl_Wards; }
public UserControl_AddRoom(Ward ward, UserControl_Wards parentUC) { InitializeComponent(); room = new Room(); _Ward = ward; ParentWardsWindow = parentUC as UserControl_Wards; }
public UserControl_AddRoom(Room Room, Ward ward, UserControl_Wards parentUC) { InitializeComponent(); _isNewRoom = false; //A new patient will not have a health care no to reference room = Room; _Ward = ward; ParentWardsWindow = parentUC as UserControl_Wards; }
private bool _isNewWard = true; //To use the same window for edits and adds. #endregion Fields #region Constructors //Required for databinding -- END public UserControl_AddWard(UserControl_Wards parentUC) { InitializeComponent(); //New patient can use default constructor ward = new Ward(); ParentWardsWindow = parentUC as UserControl_Wards; }