Exemple #1
0
        private void FillClientTreeView()
        {
            // Remove all of the nodes
            treeViewClients.Nodes.Clear();

            // Create the main node
            TreeNode mainNode = treeViewClients.Nodes.Add("Clients");

            mainNode.Tag = 0;

            foreach (ClientInformation client in ClientInformation.ReturnAllClients())
            {
                // Add a client to the main node
                TreeNode clientNode = mainNode.Nodes.Add(client.FullName);
                clientNode.Tag = client.Id;

                // if the current client has progress notes ... add them
                //foreach (ProgressNoteInformation pnObj in ProgressNoteInformation.ReturnClientProgressNotes(client.Id))
                //{
                //    TreeNode pNode = clientNode.Nodes.Add(pnObj.DateOfService.ToShortDateString());
                //    pNode.Tag = -1 * pnObj.Id;
                //}
            }

            treeViewClients.ExpandAll();
        }
 private void RefreshClientList()
 {
     // Load the clients
     comboBoxEditClients.Properties.Items.Clear();
     comboBoxEditClients.Properties.Items.AddRange(ClientInformation.ReturnAllClients());
 }