public bool AddType(ProviderType type) { try { _Types.Add(type); } catch { return false; } return true; }
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; }
public ProviderType Clone(Provider p) { ProviderType t = new ProviderType(); t.SetProperties(this); t.Provider = p; return t; }
public void RemoveType(ProviderType type) { _Types.Remove(type); }
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; }