예제 #1
0
        public override void BtnFinishClicked(TodoItemViewModel viewModel)
        {
            base.BtnFinishClicked(viewModel);

            //viewModel.Finished = true;
            Debug.Log("finished");
        }
 public virtual void InitializeTodoItem(TodoItemViewModel viewModel)
 {
     // This is called when a TodoItemViewModel is created
     viewModel.BtnFinishClicked.Action  = this.BtnFinishClickedHandler;
     viewModel.BtnRestoreClicked.Action = this.BtnRestoreClickedHandler;
     viewModel.BtnDeleteClicked.Action  = this.BtnDeleteClickedHandler;
     viewModel.TodoItemClicked.Action   = this.TodoItemClickedHandler;
     TodoItemViewModelManager.Add(viewModel);
 }
예제 #3
0
        public override void BtnDeleteClicked(TodoItemViewModel viewModel)
        {
            base.BtnDeleteClicked(viewModel);

            Debug.Log("delete:" + viewModel.Content);

            this.Publish(new BtnDeleteClickedCommand()
            {
                Sender = viewModel
            });
        }
예제 #4
0
        public override void TodoItemClicked(TodoItemViewModel viewModel)
        {
            base.TodoItemClicked(viewModel);

            Debug.Log("TodoItemClicked");
            Debug.Log(viewModel.Content);

            this.Publish(new TodoItemClickedCommand()
            {
                Sender = viewModel
            });
        }
예제 #5
0
        public void Init(TodoItemViewModel totoItem)
        {
            mTodoItem = totoItem;

            this.GetView <TodoItemView>()
            .ViewModelObject = totoItem;

            //transform.Find("BtnFinish").GetComponent<Button>().OnClickAsObservable().Subscribe( _ =>
            //{
            //    mTodoItem.Finished = true;
            //    Debug.Log("finished");
            //    (this.View as TodoListView).UpdateView();
            //});

            //UpdateView();
        }
 public virtual void TodoItemClicked(TodoItemViewModel viewModel)
 {
 }
 public virtual void BtnDeleteClicked(TodoItemViewModel viewModel)
 {
 }
 public virtual void BtnRestoreClicked(TodoItemViewModel viewModel)
 {
 }
 public virtual void BtnFinishClicked(TodoItemViewModel viewModel)
 {
 }
예제 #10
0
 public override void BtnRestoreClicked(TodoItemViewModel viewModel)
 {
     base.BtnRestoreClicked(viewModel);
 }
예제 #11
0
 public override void InitializeTodoItem(TodoItemViewModel viewModel)
 {
     base.InitializeTodoItem(viewModel);
     // This is called when a TodoItemViewModel is created
 }
예제 #12
0
 public virtual void TodoItemsOnRemove(TodoItemViewModel arg1)
 {
 }
예제 #13
0
 public virtual void TodoItemsOnAdd(TodoItemViewModel arg1)
 {
 }
예제 #14
0
        public override void TodoItemsOnRemove(TodoItemViewModel arg1)
        {
            Debug.Log("remove: " + arg1);

            UpdateView();
        }
예제 #15
0
        public override void TodoItemsOnAdd(TodoItemViewModel arg1)
        {
            Debug.Log("add: " + arg1);

            UpdateView();
        }