예제 #1
0
 protected override void OnVmChange()
 {
     vm = ViewModel as ListBindViewModel;
     dropdown.options = vm.DropdownData;
     Binding.RevertBind(dropdown, vm.SelectedDropDownIndex);
     Binding.BindViewList <ItemViewModel, ItemView>(vm.Items, ItemRoot);
     Binding.BindCommand(addBtn, vm.AddItem);
     Binding.BindCommand(deleteBtn, vm.DeleteSelectedItem);
     Binding.BindCommand(updateBtn, vm.UpdateItem);
 }
예제 #2
0
 // Start is called before the first frame update
 private void Start()
 {
     vm      = new ListBindViewModel();
     pair_vm = new ListPairsBindViewModel();
 }