Example #1
0
        private void LoadProjects()
        {
            try
            {
                ProjectsView.Items.Clear();

                ClientProjectsController.GetProjectsItemList(Unit, MyClient.Id).ForEach(item => ProjectsView.Items.Add(item));
            }
            catch (Exception)
            {
                MessageBox.Show("Error loading the projects, please try again later");
            }
        }
Example #2
0
 private void FindById_Click(object sender, EventArgs e)
 {
     ProjectsView.Items.Clear();
     ClientProjectsController.GetProjectsByInput(Unit, FindByIdTxtB.Text, MyClient.Id).ForEach(item => ProjectsView.Items.Add(item));
 }