private void OnLoad(object sender, EventArgs e) { treeView1.Nodes["root"].Expand(); content = new ContentWindow(this); scenes = new SceneWindow(this); plugins = new ComponentPluginManager(renderControl1.X); //add the different component plugins to the component list box! foreach (ComponentPlugin plugin in plugins.Plugins) { treeView1.Nodes[0].Nodes.Add(plugin.type.ToString()); } open = new OpenPopup(this); open.Show(); open.Select(); open.Focus(); open.Location = new Point(Location.X + Width / 2 - open.Width / 2, Location.Y + Height / 2 - open.Height / 2); Timer tim = new Timer(); tim.Interval = 100; tim.Tick += new EventHandler(tim_Tick); tim.Start(); }
public AddContentWindow(ContentWindow window, ContentFolder folder) { InitializeComponent(); builder = new ContentBuilder(); this.window = window; this.folder = folder; }
public ContentFolder(string Name, ContentFolder Parent, ContentWindow window) { this.Parent = Parent; this.Name = Name; this.window = window; Node = new TreeNode(Name); Node.Tag = this; Node.ImageIndex = 1; Node.SelectedImageIndex = 1; }
public ContentItem(object Parent, string Name, ContentWindow window, bool Built) { this.Parent = Parent; this.Name = Name; this.window = window; this.Built = Built; Node = new TreeNode(Name); Node.Tag = this; if (!Built) { Node.ImageIndex = 0; Node.SelectedImageIndex = 0; } else { Node.ImageIndex = 2; Node.SelectedImageIndex = 2; } }