Ejemplo n.º 1
0
        private bool addSelectedSection()
        {
            CutSection s = new CutSection();

            s.startFrame = (int)startFrame.Value;
            s.endFrame   = (int)endFrame.Value;

            if (s.endFrame <= s.startFrame)
            {
                MessageBox.Show("The end frame must be larger than the start frame", "Invalid section configuration", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return(false);
            }

            if (!cuts.addSection(s))
            {
                MessageBox.Show("Section overlaps with another", "Invalid configuration", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return(false);
            }
            return(true);
        }