コード例 #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);
		}
コード例 #2
0
ファイル: SchemeNode.cs プロジェクト: prid77/TickZoomPublic
        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);
        }
コード例 #3
0
		public RuleSetsOptionPanel(RuleSetsNode parent) : base(parent)
		{
			SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.RuleSets.xfrm"));
			
			addBtn = (Button)ControlDictionary["addBtn"];
			addBtn.Click += new EventHandler(addClick);
			removeBtn = (Button)ControlDictionary["removeBtn"];
			removeBtn.Click += new EventHandler(removeClick);
			
			listView  = (ListView)ControlDictionary["listView"];
		}
コード例 #4
0
ファイル: RuleSetsNode.cs プロジェクト: prid77/TickZoomPublic
        public RuleSetsOptionPanel(RuleSetsNode parent) : base(parent)
        {
            SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.RuleSets.xfrm"));

            addBtn           = (Button)ControlDictionary["addBtn"];
            addBtn.Click    += new EventHandler(addClick);
            removeBtn        = (Button)ControlDictionary["removeBtn"];
            removeBtn.Click += new EventHandler(removeClick);

            listView = (ListView)ControlDictionary["listView"];
        }
コード例 #5
0
ファイル: RuleSetsNode.cs プロジェクト: prid77/TickZoomPublic
        public override void LoadSettings()
        {
            RuleSetsNode node = (RuleSetsNode)parent;

            listView.Items.Clear();

            foreach (RuleSetNode rn in node.Nodes)
            {
                if (rn.Name == "")
                {
                    continue;
                }
                ListViewItem lv = new ListViewItem(rn.Name);
                lv.Tag = rn;
                listView.Items.Add(lv);
            }
        }