Пример #1
0
        private void LoadOptions()
        {
            List <Type> types = ReflectionHelper.GetSubClasses(typeof(AbstractOptions), this._applicationAssembly);

            foreach (Type type in types)
            {
                if (OptionsManager.GetManager().OptionsCollection.ContainsKey(type.Name))
                {
                    AbstractOptions options = OptionsManager.GetManager().OptionsCollection[type.Name];
                    this.tvOptions.Nodes.Add(new OptionsTreeNode(options));
                }
            }

            this._loaded = true;
        }
Пример #2
0
 private void btnOK_Click(object sender, System.EventArgs e)
 {
     OptionsManager.GetManager().Save();
 }