Esempio n. 1
0
		public SchemeNode(XmlElement el, bool readChildren)
		{
			content = el.OuterXml;
			
			name = el.Attributes["name"].InnerText;
			
			if (el.Attributes["extensions"] != null) {
				extensions = el.Attributes["extensions"].InnerText.Split('|');
			}
			
			extends = el.GetAttribute("extends");
			
			UpdateNodeText();

			panel = new SchemeOptionPanel(this);

			if (!readChildren) return;
			
			envNode = new EnvironmentNode(el["Environment"]);
			digitsNode = new DigitsNode(el["Digits"]);
			propNode = new PropertiesNode(el["Properties"]);
			rulesetsNode = new RuleSetsNode(el);
			
			Nodes.Add(envNode);
			Nodes.Add(digitsNode);
			Nodes.Add(propNode);
			Nodes.Add(rulesetsNode);
		}
Esempio n. 2
0
        public SchemeNode(XmlElement el, bool readChildren)
        {
            content = el.OuterXml;

            name = el.Attributes["name"].InnerText;

            if (el.Attributes["extensions"] != null)
            {
                extensions = el.Attributes["extensions"].InnerText.Split('|');
            }

            extends = el.GetAttribute("extends");

            UpdateNodeText();

            panel = new SchemeOptionPanel(this);

            if (!readChildren)
            {
                return;
            }

            envNode      = new EnvironmentNode(el["Environment"]);
            digitsNode   = new DigitsNode(el["Digits"]);
            propNode     = new PropertiesNode(el["Properties"]);
            rulesetsNode = new RuleSetsNode(el);

            Nodes.Add(envNode);
            Nodes.Add(digitsNode);
            Nodes.Add(propNode);
            Nodes.Add(rulesetsNode);
        }
Esempio n. 3
0
        public override void StoreSettings()
        {
            EnvironmentNode node = (EnvironmentNode)parent;

            foreach (EnvironmentItem item in listView.Items)
            {
                node.Colors[item.arrayIndex] = item.Color;
            }
        }
Esempio n. 4
0
        public EnvironmentOptionPanel(EnvironmentNode parent) : base(parent)
        {
            SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Environment.xfrm"));

            button        = (Button)ControlDictionary["button"];
            button.Click += new EventHandler(EditButtonClicked);
            listView      = (ListView)ControlDictionary["listView"];

            listView.Font = new Font(listView.Font.FontFamily, 10);
        }
Esempio n. 5
0
        public override void LoadSettings()
        {
            EnvironmentNode node = (EnvironmentNode)parent;

            listView.Items.Clear();

            for (int i = 0; i <= node.ColorNames.GetUpperBound(0); ++i)
            {
                listView.Items.Add(new EnvironmentItem(i, node.ColorDescs[i], node.Colors[i], listView.Font));
            }
        }
		public EnvironmentOptionPanel(EnvironmentNode parent) : base(parent)
		{
			SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Environment.xfrm"));
			
			button = (Button)ControlDictionary["button"];
			button.Click += new EventHandler(EditButtonClicked);
			listView  = (ListView)ControlDictionary["listView"];
			
			listView.Font = new Font(listView.Font.FontFamily, 10);
		}