コード例 #1
0
 private void FillList()
 {
     AutoNotes.RefreshCache();
     listMain.Items.Clear();
     for (int i = 0; i < AutoNotes.Listt.Count; i++)
     {
         listMain.Items.Add(AutoNotes.Listt[i].AutoNoteName);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
        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();
        }