예제 #1
0
        public async Task Down()
        {
            if (ListExtViewModel.CurrentItem != null)
            {
                await ListExtViewModel.Down(ListExtViewModel.CurrentItem);

                StateHasChanged();
            }
        }
예제 #2
0
        public async Task AddFolder()
        {
            await ListExtViewModel.AddItem(new ListItem()
            {
                IsCat = true, Exp = true, Title = newItem
            });

            newItem = string.Empty;
            await Focus(editNameRef);
        }
예제 #3
0
        public async Task AddItem()
        {
            await ListExtViewModel.AddItem(new ListItem()
            {
                Title = newItem
            });

            newItem = string.Empty;
            await Focus(editNameRef);
        }
예제 #4
0
 public void ItemSelected(ListItem item, object checkedValue)
 {
     ListExtViewModel.SelectItem(item, (bool)checkedValue);
 }
예제 #5
0
 public async Task ToggleIsDone(ListItem item)
 {
     await ListExtViewModel.ToggleIsDone(item);
 }
예제 #6
0
 public void SetCurrent(ListItem item)
 {
     ListExtViewModel.SetCurrent(item);
 }
예제 #7
0
 public async Task Delete(ListItem item)
 {
     await ListExtViewModel.DeleteItem(item);
 }
예제 #8
0
 public async Task ExpandFolder(ListItem item)
 {
     await ListExtViewModel.ExpandItem(item);
 }
예제 #9
0
        protected override async Task OnInitializedAsync()
        {
            await ListExtViewModel.Load();

            ListExtViewModel.StateChanged += new EventHandler(OnStateChanged);
        }