コード例 #1
0
        //click new patient
        private void NewPatient_Click(object sender, RoutedEventArgs e)
        {
            NewPatientsWindow patientWindow = new NewPatientsWindow(false);

            //patientWindow.Owner = this.Owner; //TODO idk if i should remove this
            this.Close();
            patientWindow.Show();
        }
コード例 #2
0
        private void NewPatient_Click(object sender, RoutedEventArgs e)
        {
            NewPatientsWindow patientWindow = new NewPatientsWindow(true);

            //patientWindow.Owner = this.Owner; //TODO not sure if i should do this owner stuff
            patientWindow.Show();
            this.Close();
        }
コード例 #3
0
        //initialize new patient window depending on if its from a new appointment window
        public NewPatientsWindow(bool fromAppointment)
        {
            NewPatientsWindow.newWindowOpened += handleNewWindow;
            MainWindow.mainClosed             += handleMainClose;
            NewPatientsWindow.newWindowOpened(this, null);

            InitializeComponent();
            this.fromAppointment = fromAppointment;
        }