示例#1
0
        public void GetNotes_user1_ListOfNote()
        {
            var dbManager = new DatabaseAccessManager();

            var notes = dbManager.GetNotes(1);

            Assert.IsNotNull(notes);
        }
示例#2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            //clear checkListBox
            checkedListBox1.Items.Clear();

            var selectedUser = (User)comboBox1.SelectedItem;

            checkedListBox1.Items.AddRange(
                _databaseAccessManager.GetNotes(selectedUser.UserID).ToArray <Note>());

            this.checkedListBox1.SelectionMode = SelectionMode.One;
            this.checkedListBox1.DisplayMember = "NoteBody";
        }