private void FillList() { AutoNotes.RefreshCache(); listMain.Items.Clear(); for (int i = 0; i < AutoNotes.Listt.Count; i++) { listMain.Items.Add(AutoNotes.Listt[i].AutoNoteName); } }
private void FormAutoNoteCompose_Load(object sender, EventArgs e) { AutoNotes.RefreshCache(); AutoNoteControls.RefreshCache(); listMain.Items.Clear(); for (int i = 0; i < AutoNotes.Listt.Count; i++) { listMain.Items.Add(AutoNotes.Listt[i].AutoNoteName); } }
private void FillGrid() { AutoNotes.RefreshCache(); List <AutoNote> listAutoNotes = AutoNotes.GetDeepCopy(); gridMain.BeginUpdate(); gridMain.ListGridColumns.Clear(); gridMain.ListGridColumns.Add(new GridColumn("", 100)); gridMain.ListGridRows.Clear(); GridRow row; foreach (AutoNote autoNote in listAutoNotes) { row = new GridRow(); row.Cells.Add(autoNote.AutoNoteName); row.Tag = autoNote; gridMain.ListGridRows.Add(row); } gridMain.EndUpdate(); }