private void cbIDEVersion_SelectedIndexChanged(object sender, System.EventArgs e) { registry = new ExpertRegistry(IDEVersion); UpdateView(lvExperts, registry); }
private void UpdateView(ListView list, ExpertRegistry registry) { LoggingService.EnterMethod(); list.SuspendLayout(); list.Items.Clear(); foreach (ExpertInfo expert in registry.Experts) { AppendTo(list, expert); } list.ResumeLayout(); LoggingService.LeaveMethod(); }
private void btRefresh_Click(object sender, System.EventArgs e) { registry = new ExpertRegistry(IDEVersion); UpdateView(lvExperts, registry); }