Ejemplo n.º 1
0
        private void DeleteConfig(object obj)
        {
            if (SelectedConfig.KeyBinding != null)
            {
                UnregisterHotKey(_windowHandle, KeyInterop.VirtualKeyFromKey(SelectedConfig.KeyBinding.Key));
            }

            if (_configService.DeleteConfig(SelectedConfig))
            {
                Configs.RemoveAt(SelectedConfigIndex);
                SelectedConfigIndex = 0;
            }
        }
Ejemplo n.º 2
0
        public async Task <NetResult <CoroResult> > DeleteConfig(string id)
        {
            try
            {
                var config = _config.Get(id);
                if (config == null)
                {
                    return(null);
                }
                await _project.DeleteService(config.ProjectId, config.Id, Entity.Enum.Services.Config);

                await _config.DeleteConfig(config);

                return(new CoroResult()
                {
                    Success = true
                });
            }
            catch (Exception ext)
            {
                return(ext);
            }
        }
Ejemplo n.º 3
0
 public ResultModel <string> DeleteConfig(DelParameterRQ rq)
 {
     return(_service.DeleteConfig(rq));
 }
Ejemplo n.º 4
0
 public IActionResult Delete(int id)
 {
     _service.DeleteConfig(id);
     return(RedirectToAction("Index", new { messageType = 1, message = "Configuration Deleted Successfully." }));
 }
Ejemplo n.º 5
0
 public BasicResponse DeleteConfig(ConfigDeleteRequest configrequest)
 {
     return(_configService.DeleteConfig(configrequest));
 }