Esempio n. 1
0
 public bool AddType(ProviderType type)
 {
     try
     { _Types.Add(type); }
     catch
     { return false; }
     return true;
 }
Esempio n. 2
0
 public static Provider GetProviderByXML(XmlNode node)
 {
     Provider _provider = new Provider();
     _provider.Name = node.Attributes[ConfigurationNames.ProviderName].Value;
     _provider.TemplateName = node.Attributes[ConfigurationNames.ProviderDirectory].Value;
     XmlNodeList typesNode = node.SelectNodes("Type");
     foreach (XmlNode subnode in typesNode)
     {
         ProviderType pType = new ProviderType();
         pType.SetXML(subnode, _provider);
         _provider.AddType(pType);
     }
     return _provider;
 }
Esempio n. 3
0
 public ProviderType Clone(Provider p)
 {
     ProviderType t = new ProviderType();
     t.SetProperties(this);
     t.Provider = p;
     return t;
 }
Esempio n. 4
0
 public void RemoveType(ProviderType type)
 {
     _Types.Remove(type);
 }
Esempio n. 5
0
 public void SetProperties(ProviderType t)
 {
     this.Name = t.Name;
     this.Template = t.Template;
     this.Header = t.Header;
     this.Email = t.Email;
     this.ToButton = t.ToButton;
     this.Parameter = t.Parameter;
     this.Parameter2 = t.Parameter2;
     this.ComboBoxParameters = t.ComboBoxParameters;
     this.ServiceFromText = t.ServiceFromText;
     this.IsNumberOnly = t.IsNumberOnly;
 }