Example #1
0
        private void DoBindings()
        {
            Binder.Bind(txtDescription, txt => txt.Text, vm => vm.Description);
            Binder.Bind(dtpDate, dtp => dtp.Value, vm => vm.Date);
            Binder.Bind(cboCategory, cbo => cbo.Items, vm => vm.Categories);


            Binder.Apply();
        }
Example #2
0
 private void DoBindings()
 {
     Binder.Bind(lvTodos, obj => obj.Columns, vm => vm.ListOfTodos);
     Binder.Bind(lvTodos, obj => obj.Items, vm => vm.ListOfTodos)
     .ViewItem.ItemSelectionChanged += (sender, e) =>
     {
         ViewModel.SelectedItem = e.Item.Tag as Todo;
     };
     Binder.Bind(btnDelete, btn => btn.Enabled, vm => vm.DeleteEnabled);
     Binder.Apply();
 }