Example #1
0
			public OptionTabPage(TabbedOptions options, IOptionPanelDescriptor descriptor)
			{
				this.options = options;
				this.descriptor = descriptor;
				string title = StringParser.Parse(descriptor.Label);
				this.Header = title;
				placeholder = new TextBlock { Text = title };
				placeholder.IsVisibleChanged += placeholder_IsVisibleChanged;
				this.Content = placeholder;
			}
Example #2
0
		private void AddTopic(IOptionPanelDescriptor desc, NGTreeNodeCollection nodecoll)
		{
			var newNode = new NGTreeNode(desc.Label);
			newNode.Tag = desc;
			if (null != desc.ChildOptionPanelDescriptors)
			{
				foreach (var child in desc.ChildOptionPanelDescriptors)
					AddTopic(child, newNode.Nodes);
			}
			nodecoll.Add(newNode);
		}
Example #3
0
            public OptionTabPage(TabbedOptions options, IOptionPanelDescriptor descriptor)
            {
                this.options    = options;
                this.descriptor = descriptor;
                string title = StringParser.Parse(descriptor.Label);

                this.Header = title;
                placeholder = new TextBlock {
                    Text = title
                };
                placeholder.IsVisibleChanged += placeholder_IsVisibleChanged;
                this.Content = placeholder;
            }
Example #4
0
        private void AddTopic(IOptionPanelDescriptor desc, NGTreeNodeCollection nodecoll)
        {
            var newNode = new NGTreeNode(desc.Label)
            {
                Tag = desc
            };

            if (null != desc.ChildOptionPanelDescriptors)
            {
                foreach (var child in desc.ChildOptionPanelDescriptors)
                {
                    AddTopic(child, newNode.Nodes);
                }
            }
            nodecoll.Add(newNode);
        }
Example #5
0
 public OptionPanelNode(IOptionPanelDescriptor optionPanel, OptionPanelNode parent)
 {
     this.OptionPanelDescriptor = optionPanel;
     this.Parent = parent;
     this.dialog = parent.dialog;
 }
Example #6
0
 public OptionPanelNode(IOptionPanelDescriptor optionPanel, TreeViewOptionsDialog dialog)
 {
     this.OptionPanelDescriptor = optionPanel;
     this.dialog = dialog;
 }
 public OptionPanelNode(IOptionPanelDescriptor optionPanel, OptionPanelNode parent)
 {
     this.OptionPanelDescriptor = optionPanel;
     this.Parent = parent;
     this.dialog = parent.dialog;
 }
 public OptionPanelNode(IOptionPanelDescriptor optionPanel, TreeViewOptionsDialog dialog)
 {
     this.OptionPanelDescriptor = optionPanel;
     this.dialog = dialog;
 }
        OptionPanelViewModel CreateOptionPanel(IOptionPanelDescriptor descriptor)
        {
            var panel = descriptor.CreateViewModel();
            panel.PropertyChanged += OptionPanelPropertyChanged;
            foreach(var child in panel.Children)
                child.PropertyChanged += OptionPanelPropertyChanged;

            return panel;
        }