public Add_Patient(List <patient> PatientList) { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; hms = new DataLayer.HmsDA(); this.PatientList = PatientList; this.DataContext = vm; }
public Add_Doctor(List <doctor> docList) { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; hms = new DataLayer.HmsDA(); this.docList = docList; cboSpecialization.ItemsSource = hms.getCategories(); this.DataContext = new EmpViewModel(); }
public Add_Room(List <nurse> NurseList, List <room> RoomList, DataLayer.HmsDA hms) { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; this.NurseList = NurseList; this.RoomList = RoomList; cboGovernedBy.ItemsSource = NurseList; this.hms = hms; this.DataContext = new ValidationModel(); }
public AdminPanel(user u, Login login) { var splash = new SplashScreen("images/splash.png"); splash.Show(true); InitializeComponent(); splash.Show(false); this.login = login; hms = new DataLayer.HmsDA(); owner = u; }
public MainWindow() { InitializeComponent(); hms = new DataLayer.HmsDA(); }