Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public Scene(string Name, SceneWindow window, bool CreateFile)
        {
            this.Name   = Name;
            this.window = window;

            Item                 = new ListViewItem(Name);
            Item.Tag             = this;
            Item.ImageIndex      = 0;
            Item.StateImageIndex = 0;
            window.listView1.Items.Add(Item);

            if (CreateFile)
            {
                SaveToXML(null, true);
            }
        }