Пример #1
0
 public static AllPatientsWindow GetInstance()
 {
     if (_instance == null)
     {
         _instance = new AllPatientsWindow();
     }
     return(_instance);
 }
Пример #2
0
        public AllPatientsWindow()
        {
            InitializeComponent();
            double screenWidth  = System.Windows.SystemParameters.PrimaryScreenWidth;
            double screenHeight = System.Windows.SystemParameters.PrimaryScreenHeight;
            double windowWidth  = this.Width;
            double windowHeight = this.Height;

            this.Left = (screenWidth / 2) - (windowWidth / 2);
            this.Top  = (screenHeight / 2) - (windowHeight / 2);

            _instance = this;

            SecretaryController sc = new SecretaryController();


            lvUsers.ItemsSource = sc.GetAllPatients();
        }