Ejemplo n.º 1
0
 private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CheckUpdateForm f = new CheckUpdateForm();
     f.ShowDialog();
 }
Ejemplo n.º 2
0
        private void Main_Load(object sender, EventArgs e)
        {
            //This is just temporary, until I get proper build selection and installation implemented.
            Properties.User.Default.selectedBuilds = Preferences.buildNames[Preferences.currentBuild];

            Program.ToolboxForm = new Toolbox();
            Program.ToolboxForm.Size = new Size(179, 375);
            Program.ToolboxForm.TopLevel = false;
            Program.ToolboxForm.Parent = this.splitContainer1.Panel2;
            Program.ToolboxForm.StartPosition = FormStartPosition.Manual;
            Program.ToolboxForm.Location = new Point(0, 10);
            splitContainer1.Panel2.Controls.Add(Program.ToolboxForm);

            Program.CanvasForm = new Canvas();
            Program.CanvasForm.Size = Properties.User.Default.CanvasSize;
            Program.CanvasForm.BackColor = Properties.User.Default.CanvasColor;
            Program.CanvasForm.TopLevel = false;
            Program.CanvasForm.Parent = this.splitContainer1.Panel2;
            Program.CanvasForm.StartPosition = FormStartPosition.Manual;
            Program.CanvasForm.Location = new Point(Program.ToolboxForm.Location.X + 4 + Program.ToolboxForm.Width, 10);
            splitContainer1.Panel2.Controls.Add(Program.CanvasForm);

            Program.RenderViewForm = new RenderView();
            Program.RenderViewForm.Size = Properties.User.Default.CanvasSize;
            Program.RenderViewForm.BackColor = Properties.User.Default.CanvasColor;
            Program.RenderViewForm.TopLevel = false;
            Program.RenderViewForm.Parent = this.splitContainer1.Panel2;
            Program.RenderViewForm.StartPosition = FormStartPosition.Manual;
            Program.RenderViewForm.Location = new Point(Program.CanvasForm.Location.X + 4 + Program.CanvasForm.Width, 10);
            splitContainer1.Panel2.Controls.Add(Program.RenderViewForm);

            //TODO: Finish scenes
            /*
            Program.ScenesForm = new Scenes();
            Program.ScenesForm.TopLevel = false;
            Program.ScenesForm.Parent = this.splitContainer1.Panel2;
            Program.ScenesForm.StartPosition = FormStartPosition.Manual;
            Program.ScenesForm.Location = new Point(Program.CanvasForm.Location.X + 4 + Program.CanvasForm.Width, 10);
            splitContainer1.Panel2.Controls.Add(Program.ScenesForm);
            */

            Program.TimelineForm = new Timeline();
            Program.TimelineForm.TopLevel = false;
            Program.TimelineForm.Parent = this.splitContainer1.Panel1;
            Program.TimelineForm.Size = new Size(this.splitContainer1.Width - 2, splitContainer1.Panel1.Height);
            Program.TimelineForm.StartPosition = FormStartPosition.Manual;
            Program.TimelineForm.Location = new Point(0, 0);
            splitContainer1.Panel1.Controls.Add(Program.TimelineForm);

            int timelineLength = 1024;
            framesPanel.Location = new Point(timelineLength * 9, 0);

            //Timeline needs to be loaded first.
            Program.TimelineForm.Show();

            Program.ToolboxForm.Show();
            Program.CanvasForm.Show();

            //Program.RenderViewForm.Show();
            //Program.ScenesForm.Show();

            if (Program.loadFile != "")
                Loader.loadProjectFile(Program.loadFile);

            //If the auto check updates value is true, then start the update checker in the background.
            if (Properties.User.Default.autoCheck)
            {
                //Create the checker with an argument that makes the form auto-close if no updates are available
                CheckUpdateForm checker = new CheckUpdateForm(true);
                checker.Show();
                this.Focus();
            }
        }