private void EClipClipIntegerProperty_TextChanged(object sender, EventArgs e)
        {
            if (isLocked || transactionManager.TransactionInProgress)
            {
                return;
            }
            TextBox textBox = (TextBox)sender;
            int     value;

            if (int.TryParse(textBox.Text, out value))
            {
                VClipTimeTransaction transaction = new VClipTimeTransaction("EClip property", clip.Clip, (string)textBox.Tag, eclipID, 2, value);
                transactionManager.ApplyTransaction(transaction);
                //The transaction may have changed frame time, so update it.
                txtEffectFrameSpeed.Text = clip.Clip.FrameTime.ToString();
            }
        }
Exemple #2
0
        private void VClipFixedProperty_TextChanged(object sender, EventArgs e)
        {
            if (isLocked || transactionManager.TransactionInProgress)
            {
                return;
            }
            TextBox textBox = (TextBox)sender;
            double  value;

            if (double.TryParse(textBox.Text, out value))
            {
                VClipTimeTransaction transaction = new VClipTimeTransaction("VClip property", clip, (string)textBox.Tag, vclipID, 1, (Fix)value);
                transactionManager.ApplyTransaction(transaction);
                //The transaction may have changed frame time, so update it.
                FrameTimeTextBox.Text = clip.FrameTime.ToString();
            }
        }