Esempio n. 1
0
 public void Delete()
 {
     if (_viewmodel.ValidtionDml())
     {
         BodyDelete();
         _viewmodel.Delete();
         MessageBox.Show("Data Deleted Successfully");
         Clear();
     }
 }
Esempio n. 2
0
        private async void Delete(object sender, EventArgs e)
        {
            var result = await modal.ShowOkCancel(localizationManager.Translate("DeleteTransactionModal"));

            if (result)
            {
                var deleteButton = sender as Button;
                var stacklayout  = deleteButton.Parent as StackLayout;
                var account      = GetCurrentAccount(stacklayout);
                await viewModel.Delete(account);

                viewModel.Refresh();
            }
        }
Esempio n. 3
0
        private async void btnDelete_Click(object sender, EventArgs e)
        {
            var selectedIds = orphanageGridView1.SelectedIds;

            if (selectedIds == null || selectedIds.Count == 0)
            {
                return;
            }
            foreach (var id in selectedIds)
            {
                var ret = await _accountViewModel.Delete(id, true);

                if (ret)
                {
                    _radGridHelper.HideRow("Id", id);
                }
            }
        }