Exemplo n.º 1
0
 public async void RemoveConnectionItem()
 {
     if (await AppMessageBox.ConfirmDeleteAsync() == false)
     {
         return;
     }
     this.RemoveConnectionItem(this.ConnectionItem);
 }
 protected async override void OnExecute(object parameter)
 {
     if (parameter is ConnectionItemViewModel connectionItem)
     {
         if (await AppMessageBox.ConfirmDeleteAsync() == false)
         {
             return;
         }
         this.cremaAppHost.RemoveConnectionItem(connectionItem);
     }
 }
Exemplo n.º 3
0
        public async Task CloseAsync()
        {
            if (await AppMessageBox.ConfirmDeleteAsync() == false)
            {
                return;
            }
            this.BeginProgress();
            await this.CloseDocumentsAsync(false);

            this.EndProgress();
            this.browserService.ItemsSource.Remove(this);
        }
        public async Task DeleteAsync()
        {
            if (await AppMessageBox.ConfirmDeleteAsync() == false)
            {
                return;
            }

            try
            {
                this.category.Dispose();
            }
            catch (Exception e)
            {
                await AppMessageBox.ShowErrorAsync(e);
            }
        }
Exemplo n.º 5
0
        public async Task DeleteAsync()
        {
            if (await AppMessageBox.ConfirmDeleteAsync() == false)
            {
                return;
            }
            try
            {
                await this.accessible.RemoveAccessMemberAsync(this.authentication, this.MemberID);

                this.viewMdoel.ItemsSource.Remove(this);
            }
            catch (Exception e)
            {
                await AppMessageBox.ShowErrorAsync(e);
            }
        }