Example #1
0
 private void addMenuItem_Click(object sender, EventArgs e)
 {
     if (this.treeViewFrame.SelectedNode != null)
     {
         AddFrameMessageBox addFrameMessageBox = new AddFrameMessageBox();
         if (addFrameMessageBox.ShowDialog() == DialogResult.OK)
         {
             int framePosition = addFrameMessageBox.GetFramePosition();
             int index         = this.treeViewFrame.SelectedNode.Index;
             CameraMotion.Frame motionFrame = this.panelPreview.GetMotionFrame(index);
             CameraMotion.Frame item        = new CameraMotion.Frame();
             item = motionFrame;
             List <CameraMotion.Frame> frames = this.camMotion.GetFrames();
             frames.Insert(index + framePosition, item);
             this.panelPreview.UpdateCameraMatrices();
             this.camMotion.GenerateVertices();
             this.DisplayFrames();
         }
     }
 }
Example #2
0
 private void addMenuItem_Click(object sender, EventArgs e)
 {
     if (this.treeViewFrame.SelectedNode != null)
     {
         AddFrameMessageBox addFrameMessageBox = new AddFrameMessageBox();
         if (addFrameMessageBox.ShowDialog() == DialogResult.OK)
         {
             int framePosition = addFrameMessageBox.GetFramePosition();
             int index = this.treeViewFrame.SelectedNode.Index;
             CameraMotion.Frame motionFrame = this.panelPreview.GetMotionFrame(index);
             CameraMotion.Frame item = new CameraMotion.Frame();
             item = motionFrame;
             List<CameraMotion.Frame> frames = this.camMotion.GetFrames();
             frames.Insert(index + framePosition, item);
             this.panelPreview.UpdateCameraMatrices();
             this.camMotion.GenerateVertices();
             this.DisplayFrames();
         }
     }
 }