public NodeSelectForm(INode rootNode, Func <T, bool> filter = null) { InitializeComponent(); if (StyleSet.CurrentStyle != null) { StyleHelpers.ApplyStyle(this, StyleSet.CurrentStyle); } Icon = ResourceStore.LoadIcon("Icons/Application.ico"); mRootNode = new ReferenceNode(rootNode); mRootNode.Populate(); foreach (var node in mRootNode.Nodes) { if (node.DataType != typeof(T)) { continue; } if (filter != null && !filter(( T )node.Data)) { continue; } mNodeTreeView.Nodes.Add(new NodeAsTreeNode(new ReferenceNode(node), true) { HideContextMenuStrip = true }); } StyleHelpers.ApplySystemFont(this); }
public TextureSelectForm(INode textureSetNode, MaterialTextureType type) : this( textureSetNode ) { mMaterialTextureTypeLabel.Visible = true; mMaterialTextureTypeComboBox.Visible = true; foreach (string typeName in Enum.GetNames(typeof(MaterialTextureType))) { mMaterialTextureTypeComboBox.Items.Add(typeName); } mMaterialTextureTypeComboBox.SelectedIndex = ( int )type; StyleHelpers.ApplySystemFont(this); }
public MainForm() { InitializeComponent(); Icon = ResourceStore.LoadIcon("Icons/Application.ico"); SetTitle(); Select(); #if DEBUG mPropertyGrid.BrowsableAttributes = new AttributeCollection(); #endif StyleHelpers.ApplySystemFont(this); }
public ConfigurationForm() { InitializeComponent(); Icon = ResourceStore.LoadIcon("Icons/Application.ico"); mConfigurationList = ( ConfigurationList )ConfigurationList.Instance.Clone(); mOriginalMap = new Dictionary <Configuration, Configuration>(); for (int i = 0; i < mConfigurationList.Configurations.Count; i++) { mOriginalMap[mConfigurationList.Configurations[i]] = ConfigurationList.Instance.Configurations[i]; } StyleHelpers.ApplySystemFont(this); }