Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
		public void Add( Pref p )
		{
			this.m_list.Add(p);
		}
Ejemplo n.º 4
0
 public void Add(Pref p)
 {
     this.m_list.Add(p);
 }