Exemplo n.º 1
0
        public static void RemovePlugin <T>()
        {
            foreach (var item in CommandMap)
            {
                if (typeof(T) != item.Value.GetType())
                {
                    continue;
                }
                CommandMap.Remove(item.Key, out _);
            }

            foreach (var item in ServiceList)
            {
                if (typeof(T) != item.GetType())
                {
                    continue;
                }
                ServiceList.Remove(item);
            }

            foreach (var item in ApplicationList)
            {
                if (typeof(T) != item.GetType())
                {
                    continue;
                }
                ApplicationList.Remove(item);
            }
        }
Exemplo n.º 2
0
 private void ExecuteDeleteMethod(object obj)
 {
     if (SelectedService.ServiceId == 0)
     {
         MessageBox.Show("서비스를 선택해주세요");
         return;
     }
     _serviceRepository.DeleteService(SelectedService.ServiceId);
     ServiceList.Remove(SelectedService);
     SelectedService = new ServiceVo();
 }
Exemplo n.º 3
0
 public void DeleteService()
 {
     ServicesDataAccess.DeleteService(SelectedService.Id);
     ServiceList.Remove(SelectedService);
     ServiceId = 0;
 }