Пример #1
0
 public OldSesionData(Networkconnect network, User user)
 {
     this.network = network;
     this.user = (UserClient)user;
     InitializeComponent();
     if (user is Physician)
     {
         //todo
         Physician p = (Physician)user;
         listBox_Data.DataSource = p.clients;
         users = p.clients;
         isPhysician = true;
     }
     else
     {
         UserClient a = (UserClient)user;
         listBox_Data.DataSource = a.sessions;
         Debug.WriteLine("aantal sessies: " + a.sessions[0].ToString());
         isPhysician = false;
     }
 }
Пример #2
0
 public void addClient(UserClient client)
 {
     clients.Add(client);
 }
Пример #3
0
 public OldTestData(UserClient user)
 {
     InitializeComponent();
     this.user = user;
     oldTestsList.DataSource = user.GetTests();
 }
Пример #4
0
 public void addClient(UserClient client)
 {
     clients.Add(client);
 }