Exemplo n.º 1
0
        protected async System.Threading.Tasks.Task GridDeleteButtonClick(MouseEventArgs args, dynamic data)
        {
            try
            {
                if (await DialogService.Confirm("Are you sure you want to delete this record?") == true)
                {
                    var museDeleteChartResult = await Muse.DeleteChart($"{data.NENDO}", $"{data.GENRE}", data.HYOKA_NUM, $"{data.KYOKU_NAME}", $"{data.AUTHOR_NAME}", data.HOUR, data.MINUTE, data.SECOND, data.MEMBER, data.FILE_SIZE);

                    if (museDeleteChartResult != null)
                    {
                        await grid0.Reload();
                    }
                }
            }
            catch (System.Exception museDeleteChartException)
            {
                NotificationService.Notify(new NotificationMessage()
                {
                    Severity = NotificationSeverity.Error, Summary = $"Error", Detail = $"Unable to delete Chart"
                });
            }
        }