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; } }
public void addClient(UserClient client) { clients.Add(client); }
public OldTestData(UserClient user) { InitializeComponent(); this.user = user; oldTestsList.DataSource = user.GetTests(); }