Example #1
0
        // Add SubShot
        private void AddSubShot(int ShotNo, int shotType, int start, int end)
        {
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();

            // Create a temp SubShot and assign value
            SubShotManaged TempSubShot = new SubShotManaged();

            TempSubShot.shotType = shotType;
            TempSubShot.start    = start;
            TempSubShot.end      = end;

            // Retrive current shot parameter and copy to temp shot object
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotNo]);


            // Remove first dummy shot if subshot count = 0
            if (TempShot.subShotCount == 0)
            {
                TempShot.subShotList.RemoveAt(TempShot.subShotList.Count - 1);
            }

            // Add temp subshot to temp shot object
            TempShot.subShotList.Add(TempSubShot);

            TempShot.subShotCount = TempShot.subShotList.Count;

            ObjShotInfo.shotList[ShotNo] = TempShot;
        }
Example #2
0
        // Add SubShot
        private void AddSubShot(int ShotNo, int shotType, int start, int end)
        {
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();

            // Create a temp SubShot and assign value
            SubShotManaged TempSubShot = new SubShotManaged();

            TempSubShot.shotType = shotType;
            TempSubShot.start = start;
            TempSubShot.end = end;

            // Retrive current shot parameter and copy to temp shot object
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotNo]);

            // Remove first dummy shot if subshot count = 0
            if (TempShot.subShotCount == 0)
                TempShot.subShotList.RemoveAt(TempShot.subShotList.Count-1);

            // Add temp subshot to temp shot object
            TempShot.subShotList.Add(TempSubShot);

            TempShot.subShotCount = TempShot.subShotList.Count;

            ObjShotInfo.shotList[ShotNo] = TempShot;
        }
Example #3
0
        private void UpdateShottreeView(int ShotNo, int SubShotNo)
        {
            int FrameNo = 0;

            // Add SubShot Number to Combo Box
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();

            TempShot.subShotList = new ArrayList();

            // Create a temp SubShot and assign value
            SubShotManaged TempSubShot = new SubShotManaged();

            // Retrieve current shot information
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotNo]);

            if (SubShotNo != -99)
            {
                // Retrive current sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[SubShotNo];

                // Update Temp start frame
                TempSelectedStartFrame = TempSubShot.start;
                TempSelectedEndFrame   = TempSubShot.end;
            }
            else
            {
                // Retrive 0 sub shot information, start frame
                TempSubShot = (SubShotManaged)TempShot.subShotList[0];

                TempSelectedStartFrame = TempSubShot.start;

                // Retrive last sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[TempShot.subShotList.Count - 1];

                TempSelectedEndFrame = TempSubShot.end;
            }


            // Clear up
            ShottreeView.Nodes.Clear();

            //Display frame 0
            for (FrameNo = TempSelectedStartFrame; FrameNo <= TempSelectedEndFrame; FrameNo++)
            {
                ShottreeView.Nodes.Add(CompleteTreeView.Nodes[FrameNo].Text);
            }
        }
Example #4
0
        // Change display of shot\subshot item number
        private void ShotCbox_SelectedIndexChanged(object sender, EventArgs e)
        {
            int i = 0;

            // Add SubShot Number to Combo Box
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();

            TempShot.subShotList = new ArrayList();
            SubShotManaged TempSubShot = new SubShotManaged();

            // Retrieve current shot information
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotCbox.SelectedIndex]);

            // Clean up old data
            SubShotCBox.Items.Clear();

            // Update SubShot Combo box
            for (i = 0; i < TempShot.subShotCount; i++)
            {
                SubShotCBox.Items.Add(i);
            }
        }
Example #5
0
        // Update Type, Start & Frame
        private void UpdateStartEndFrameText(int ShotNo, int SubShotNo)
        {
            // Add SubShot Number to Combo Box
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();

            TempShot.subShotList = new ArrayList();

            // Create a temp SubShot and assign value
            SubShotManaged TempSubShot = new SubShotManaged();

            // Retrieve current shot information
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotNo]);

            if (SubShotNo != -99)
            {
                // Retrive current sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[SubShotNo];

                // Update Text
                StartSubShotFramebtn.Text = TempSubShot.start.ToString();
                EndSubShotFramebtn.Text   = TempSubShot.end.ToString();
            }
            else
            {
                // Retrive 0 sub shot information and its start frame
                TempSubShot = (SubShotManaged)TempShot.subShotList[0];

                // Update Text
                StartSubShotFramebtn.Text = TempSubShot.start.ToString();

                // Retrive last sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[TempShot.subShotList.Count - 1];

                EndSubShotFramebtn.Text = TempSubShot.end.ToString();
            }
        }
Example #6
0
        // Update Type, Start & Frame
        private void UpdateStartEndFrameText(int ShotNo, int SubShotNo)
        {
            // Add SubShot Number to Combo Box
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();
            TempShot.subShotList = new ArrayList();

            // Create a temp SubShot and assign value
            SubShotManaged TempSubShot = new SubShotManaged();

            // Retrieve current shot information
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotNo]);

            if (SubShotNo != -99)
            {
                // Retrive current sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[SubShotNo];

                // Update Text
                StartSubShotFramebtn.Text = TempSubShot.start.ToString();
                EndSubShotFramebtn.Text = TempSubShot.end.ToString();

            }
            else
            {
                // Retrive 0 sub shot information and its start frame
                TempSubShot = (SubShotManaged)TempShot.subShotList[0];

                // Update Text
                StartSubShotFramebtn.Text = TempSubShot.start.ToString();

                // Retrive last sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[TempShot.subShotList.Count-1];

                EndSubShotFramebtn.Text = TempSubShot.end.ToString();

            }
        }
Example #7
0
        private void UpdateShottreeView(int ShotNo, int SubShotNo)
        {
            int FrameNo = 0;

            // Add SubShot Number to Combo Box
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();
            TempShot.subShotList = new ArrayList();

            // Create a temp SubShot and assign value
            SubShotManaged TempSubShot = new SubShotManaged();

            // Retrieve current shot information
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotNo]);

            if (SubShotNo != -99)
            {
                // Retrive current sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[SubShotNo];

                // Update Temp start frame
                TempSelectedStartFrame = TempSubShot.start;
                TempSelectedEndFrame = TempSubShot.end;
            }
            else
            {
                // Retrive 0 sub shot information, start frame
                TempSubShot = (SubShotManaged)TempShot.subShotList[0];

                TempSelectedStartFrame = TempSubShot.start;

                // Retrive last sub shot information
                TempSubShot = (SubShotManaged)TempShot.subShotList[TempShot.subShotList.Count - 1];

                TempSelectedEndFrame = TempSubShot.end;

            }

            // Clear up
            ShottreeView.Nodes.Clear();

            //Display frame 0
            for (FrameNo = TempSelectedStartFrame; FrameNo <= TempSelectedEndFrame; FrameNo++)
                ShottreeView.Nodes.Add(CompleteTreeView.Nodes[FrameNo].Text);
        }
Example #8
0
        // Change display of shot\subshot item number
        private void ShotCbox_SelectedIndexChanged(object sender, EventArgs e)
        {
            int i = 0;

            // Add SubShot Number to Combo Box
            // Create a temp Shot
            ShotManaged TempShot = new ShotManaged();
            TempShot.subShotList = new ArrayList();
            SubShotManaged TempSubShot = new SubShotManaged();

            // Retrieve current shot information
            TempShot = ((ShotManaged)ObjShotInfo.shotList[ShotCbox.SelectedIndex]);

            // Clean up old data
            SubShotCBox.Items.Clear();

            // Update SubShot Combo box
            for (i = 0; i < TempShot.subShotCount; i++)
                SubShotCBox.Items.Add(i);
        }