private async void Save_button_Click(object sender, RoutedEventArgs e)
        {
            /*
             * string ffmpegoption;
             * var dialog = new CommonSaveFileDialog();
             * // ファイルの種類を設定
             *
             * CommonFileDialogTextBox commonFileDialogText = new CommonFileDialogTextBox();
             * CommonFileDialogLabel commonFileDialogLabel = new CommonFileDialogLabel();
             * commonFileDialogLabel.Text = ("FFMPEGのオプション");
             * dialog.Controls.Add(commonFileDialogLabel);
             * dialog.Controls.Add(commonFileDialogText);
             * dialog.Filters.Add(new CommonFileDialogFilter("MP4 Video ファイル", "*.mp4"));
             * dialog.Filters.Add(new CommonFileDialogFilter("Webm Video ファイル", "*.webm"));
             * dialog.Filters.Add(new CommonFileDialogFilter("すべてのファイル", "*"));
             * dialog.AlwaysAppendDefaultExtension = true;
             * if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
             * {
             *
             *  logwin.AddLog(DateTime.Now, "File save : " + dialog.FileName);
             *  ffmpegoption = commonFileDialogText.Text;
             *  if (commonFileDialogText.Text == "")
             *  {
             *      if (System.IO.Path.GetExtension(dialog.FileName) == ".mp4")
             *      {
             *          ffmpegoption = "-vcodec libx264";
             *      }
             *      if (System.IO.Path.GetExtension(dialog.FileName) == ".webm")
             *      {
             *          ffmpegoption = "-vcodec libvpx-vp9";
             *      }
             *  }
             *  string cmdline = "-y -i temp.avi ";
             *  cmdline += ffmpegoption;
             *  cmdline += " \"";
             *  cmdline += dialog.FileName;
             *  cmdline += "\"";
             *  Process proc = new Process();
             *  proc.StartInfo.FileName = "ffmpeg.exe";
             *  proc.StartInfo.Arguments = cmdline;
             *  proc.StartInfo.UseShellExecute = false;
             *  proc.StartInfo.RedirectStandardOutput = true;
             *  proc.StartInfo.RedirectStandardInput = false;
             *  //ウィンドウを表示しないようにする
             *  proc.StartInfo.CreateNoWindow = true;
             *  proc.Start();
             *  proc.WaitForExit();
             *  wform.MessageBox.Show("エンコードに成功!", "Success");
             *
             * }*/
            MovieSaveDialog msdialog = new MovieSaveDialog(logwin);

            msdialog.Owner           = this;
            msdialog.FormCloseEvent += MSFM_CLosed;
            var topElm = ((UIElement)VisualTreeHelper.GetChild(this, 0));

            topElm.IsEnabled = false;
            msdialog.Show();
        }
        private void MSFM_CLosed(MovieSaveDialog sender, EventArgs e)
        {
            var topElm = ((UIElement)VisualTreeHelper.GetChild(this, 0));

            topElm.IsEnabled = true;
        }