Ejemplo n.º 1
0
        public CommentEntry()
        {
            InitializeComponent();

            Notes = new BindingList <Note>(DBAction.GetNotes());

            this.MouseWheel        += CommentEntry_MouseWheel;
            txtNoteText.MouseWheel += CommentEntry_MouseWheel;

            bs = new BindingSource
            {
                DataSource = Notes
            };

            bs.PositionChanged    += BindingSource_PositionChanged;
            bs.CurrentItemChanged += Bs_CurrentItemChanged;

            bs.ListChanged += Bs_ListChanged;

            navNotes.BindingSource = bs;

            BindProperties();
        }