Exemplo n.º 1
0
        private async void StackPannel_RightTapped(object sender, RightTappedRoutedEventArgs e)
        {
            var panel = sender as StackPanel;

            if (panel != null)
            {
                var model = panel.DataContext as FileModel;
                if (model != null)
                {
                    await _fileViewModel.Delete(model);
                }
            }
        }
Exemplo n.º 2
0
        private void Delete(object sender, RoutedEventArgs e)
        {
            var select = savelist.SelectedItem as RecordsViewModel;

            model.Delete(select.Id);
        }