示例#1
0
        /// <summary>
        /// Delete scheduler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Delete(object sender, DirectEventArgs e)
        {
            // init id
            var param = e.ExtraParams["Id"];

            // parse id
            if (!int.TryParse(param, out var id) || id <= 0)
            {
                // parse error, show error
                Dialog.ShowError("Có lỗi xảy ra trong quá trình xử lý");
                return;
            }
            // delete scheduler
            SchedulerController.Delete(id);
            // reload data
            gpScheduler.Reload();
        }