예제 #1
0
        //点击底部的删除按钮时触发
        public void delete()
        {
            if (id.Text.Equals(""))
            {
                return;
            }
            ViewModels.RemoveTodoItem(id.Text);
            DataAccess.Instance.DeleteData(id.Text);
            clearForm();
            showMessageDialog("Delete successfully!");

            MainPage.latestInstance.showItemList();
        }
        private void Delete_Item(object sender, RoutedEventArgs e)
        {
            TodoItemViewModels ViewModels = ((App)App.Current).ViewModels;

            ViewModels.RemoveTodoItem(Id.Text);
        }