コード例 #1
0
ファイル: FormStep2.cs プロジェクト: young97w/marukotoolbox
        /// <summary>
        /// 判断文件
        /// </summary>
        public void CheckFile()
        {
            if (!IsVideo())
            {
                MessageBox.Show(FormWizard.VideoFilePath + "\n不是视频!", "你又在玩我",
                                MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                FormWizard.VideoFilePath = null;
                return;
            }

            FormWizard.NeedEncode = NeedEncode();
            if (FormWizard.NeedEncode)
            {
                FormWizard.NeedMux = false;
            }
            else
            {
                FormWizard.NeedMux = NeedMux();
            }
            //if (!FormWizard.NeedEncode)//不需要转码,直接直接封装
            //{
            //    WizardParent.SwitchToNextStep();
            //    return;
            //}

            ////Need Encoding
            //WizardParent.SwitchToNextStep();

            WizardParent.SwitchToNextStep();
        }
コード例 #2
0
ファイル: FormStep3.cs プロジェクト: young97w/marukotoolbox
        private void btnChooseOutput_Click(object sender, EventArgs e)
        {
            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                if (Directory.Exists(saveFileDialog1.FileName))
                {
                    MessageBox.Show(FormWizard.VideoFilePath + "请更换个文件名或目录", "",
                                    MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    return;
                }

                FormWizard.OutputFilePath = saveFileDialog1.FileName;
                WizardParent.SwitchToNextStep();
            }
        }