public void Set(string name, object val) { Pref p = this.Find(name); if (p == null) { throw new Exception("No such pref: " + name); } this.__setregkey(p.m_name, val, p.m_defval); }
public object Get(string name) { Pref p = this.Find(name); if (p == null) { throw new Exception("No such pref: " + name); } object o = this.__getregvalue(p.m_name); if (o == null) { o = p.m_defval; } else { if (p.m_type == false.GetType()) { o = ("True" == o.ToString()); } } return(o); }
public void Add( Pref p ) { this.m_list.Add(p); }
public void Add(Pref p) { this.m_list.Add(p); }