public void Test_DoctorClient_GetDoctorBySpecializationOnDate()
 {
     var doctorClient = new DoctorClient();
     doctorClient.Open();
     var doctors = doctorClient.GetDoctorsWithSpecializationOnDate(1, DateTime.Now);
     Assert.AreEqual(doctors[0].Name,"Test");
 }
Beispiel #2
0
 private static void GetMedicalSpecialization()
 {
     var doctorClient = new DoctorClient();
     doctorClient.Open();
     var specializations = doctorClient.GetMedicalSpecializations();
     foreach (var specialization in specializations)
     {
         Console.WriteLine(specialization.Id + "   " + specialization.Specialization);
     }
 }
Beispiel #3
0
 public DocGUI(DoctorClient doctorClient)
 {
     this.doctorClient = doctorClient;
     InitializeComponent();
     panel9.Height = BycicleButton.Height;
     panel9.Top    = BycicleButton.Top;
     bikes         = new List <BicycleCustomControl>();
     graphs        = new List <GraphCustomControll>();
     generateGraphs();
 }
Beispiel #4
0
 private static void GetDocotor()
 {
     var doctorClient = new DoctorClient();
     doctorClient.Open();
     var doctors = doctorClient.GetDoctorsWithSpecializationOnDate(1, DateTime.Now);
     foreach (var doctor in doctors)
     {
         Console.WriteLine(doctor.Id + "   " + doctor.Name);
     }
 }
Beispiel #5
0
 public PatientGUI(DoctorClient DoctorClient, Patient patient)
 {
     this.DoctorClient = DoctorClient;
     this.patient      = patient;
     InitializeComponent();
     this.RPMWChart.ChartAreas[0].AxisX.LabelStyle.Format = "";
     this.RPMWChart.Series[0].Name = "RPM";
     this.RPMWChart.Series[1].Name = "Heartbeat";
     this.RPMWChart.Series[2].Name = "Power";
     RPMWChartTimer.Start();
 }
Beispiel #6
0
        public BicycleCustomControl(string patientNaam, string bikeID, DoctorClient doctorClient)
        {
            InitializeComponent();
            this.patientnaam = patientNaam;
            bttnEnd1.Enabled = false;

            circleSpeedBar.Value    = 0;
            circleTimeBar.Value     = 0;
            circlePowerBar.Value    = 0;
            circleDistanceBar.Value = 0;

            this.bikeID       = bikeID;
            lblusername1.Text = patientNaam;
            this.doctorClient = doctorClient;
        }
 private void StartClient(string serverIpAddress)
 {
     DoctorClient = new DoctorClient(serverIpAddress);
 }
Beispiel #8
0
 public AddPatientForm(SpecialistForm specialistForm, DoctorClient DoctorClient)
 {
     InitializeComponent();
     this.specialistForm = specialistForm;
     this.DoctorClient   = DoctorClient;
 }
 public void Test_DoctorClient_Connection()
 {
     var doctorClient = new DoctorClient();
     doctorClient.Open();
 }
Beispiel #10
0
 public HistoricDataForm(DoctorClient DoctorClient)
 {
     InitializeComponent();
     this.DoctorClient = DoctorClient;
 }
Beispiel #11
0
 public ChatForm(string bikeID, DoctorClient doctorClient)
 {
     InitializeComponent();
     this.doctorClient = doctorClient;
     this.bikeID       = bikeID;
 }
Beispiel #12
0
 private void StartClient()
 {
     doctorClient = new DoctorClient();
 }
 public PatientData(DoctorClient DoctorClient)
 {
     InitializeComponent();
     this.DoctorClient = DoctorClient;
 }
 private void StartClient(string ip)
 {
     DoctorClient = new DoctorClient(ip);
 }
Beispiel #15
0
 public CreateAccount(DoctorInput docInput, DoctorClient DoctorClient)
 {
     InitializeComponent();
     this.docInput     = docInput;
     this.DoctorClient = DoctorClient;
 }
 public SpecialistForm(DoctorClient DoctorClient)
 {
     InitializeComponent();
     this.DoctorClient = DoctorClient;
     patientGUIs       = new List <PatientGUI>();
 }