private void FillList() { UserQueries.Refresh(); int tempIndex = list2.SelectedIndex; list2.Items.Clear(); for (int i = 0; i < UserQueries.List.Length; i++) { this.list2.Items.Add(UserQueries.List[i].Description); } list2.SelectedIndex = tempIndex; }
private void FillList() { QueryList = UserQueries.Refresh(); int tempIndex = list2.SelectedIndex; list2.Items.Clear(); for (int i = 0; i < QueryList.Count; i++) { this.list2.Items.Add(QueryList[i].Description); } list2.SelectedIndex = tempIndex; }