示例#1
0
 void btnGoToSessions_Click(object sender, RoutedEventArgs e)
 {
     if (_patientWindow.PatientId != null && _patientWindow.UserName != null)
     {
         _sessionsWindow = new SessionsWindow(_patientWindow.PatientId, _patientWindow.UserName);
         _sessionsWindow.btnBackToPatientScreen.Click += new RoutedEventHandler(btnBackToPatientScreen_Click);
         _sessionsWindow.btnRunSession.Click          += new RoutedEventHandler(btnRunSession_Click);
         _patientWindow.Hide();
         _sessionsWindow.Show();
     }
 }
        void btnGoToSessions_Click(object sender, RoutedEventArgs e)
        {
            if (_patientWindow.PatientId != null && _patientWindow.UserName != null)
            { 
                _sessionsWindow = new SessionsWindow(_patientWindow.PatientId, _patientWindow.UserName);
                _sessionsWindow.btnBackToPatientScreen.Click += new RoutedEventHandler(btnBackToPatientScreen_Click);
                _sessionsWindow.btnRunSession.Click += new RoutedEventHandler(btnRunSession_Click);
                _patientWindow.Hide();
                _sessionsWindow.Show();
            }

        }