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); }
public override void BtnDeleteClicked(TodoItemViewModel viewModel) { base.BtnDeleteClicked(viewModel); Debug.Log("delete:" + viewModel.Content); this.Publish(new BtnDeleteClickedCommand() { Sender = viewModel }); }
public override void TodoItemClicked(TodoItemViewModel viewModel) { base.TodoItemClicked(viewModel); Debug.Log("TodoItemClicked"); Debug.Log(viewModel.Content); this.Publish(new TodoItemClickedCommand() { Sender = viewModel }); }
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) { }
public override void BtnRestoreClicked(TodoItemViewModel viewModel) { base.BtnRestoreClicked(viewModel); }
public override void InitializeTodoItem(TodoItemViewModel viewModel) { base.InitializeTodoItem(viewModel); // This is called when a TodoItemViewModel is created }
public virtual void TodoItemsOnRemove(TodoItemViewModel arg1) { }
public virtual void TodoItemsOnAdd(TodoItemViewModel arg1) { }
public override void TodoItemsOnRemove(TodoItemViewModel arg1) { Debug.Log("remove: " + arg1); UpdateView(); }
public override void TodoItemsOnAdd(TodoItemViewModel arg1) { Debug.Log("add: " + arg1); UpdateView(); }