Beispiel #1
0
        /// <summary>
        /// Event that gets called to update GUI and projectstate on NewProject.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OpenProject_Load(object sender, StateEventArgs e)
        {
            Close_Click(null, null);

            this.projectstate.Active = true;
            this.projectstate.Saved  = true;

            //Update projectstate
            framesContainer.Copy(e.Framescontainer);
            projectstate.Copy(e.Projectstate);

            //Set Viewport
            this.SequencePanel.Child = timeLinePanel;
            this.GLControl.Children.Add(glHost);
            glHost.SetProjectFrameSize(new System.Drawing.Size(projectstate.Width, projectstate.Height));

            EnableMenuItems();

            EnableButtons();

            EnableLayers();

            EnableImagesOnImport();
        }