Ejemplo n.º 1
0
 public void RegisterModule(PandaProtection pandaProtection)
 {
     if (pandaProtection == null)
     {
         new ArgumentNullException("pandaProtection cannot be null!");
     }
     if (pandaProtection.Name == null)
     {
         new ArgumentNullException("pandaProtection.Name cannot be null!");
     }
     if (pandaProtection.Description == null)
     {
         new ArgumentNullException("pandaProtection.Description cannot be null!");
     }
     if (pandaProtection.Id == null)
     {
         new ArgumentNullException("pandaProtection.Id cannot be null!");
     }
     if (pandaProtection.Author == null)
     {
         new ArgumentNullException("pandaProtection.Author cannot be null!");
     }
     registredModules.Add(pandaProtection);
 }
Ejemplo n.º 2
0
 public void UnRegisterIGModule(PandaProtection pandaProtection)
 {
     if (pandaProtection == null)
     {
         new ArgumentNullException("pandaProtection cannot be null!");
     }
     if (pandaProtection.Name == null)
     {
         new ArgumentNullException("pandaProtection.Name cannot be null!");
     }
     if (pandaProtection.Description == null)
     {
         new ArgumentNullException("pandaProtection.Description cannot be null!");
     }
     if (pandaProtection.Id == null)
     {
         new ArgumentNullException("pandaProtection.Id cannot be null!");
     }
     if (pandaProtection.Author == null)
     {
         new ArgumentNullException("pandaProtection.Author cannot be null!");
     }
     pandaProtections.Remove(pandaProtection);
 }
 public void removeIGModule(PandaProtection pandaProtection)
 {
     pandaIG.UnRegisterIGModule(pandaProtection);
 }
 public void addIGModule(PandaProtection pandaProtection)
 {
     pandaIG.RegisterIGModule(pandaProtection);
 }