private void buttonSavePath_Click(object sender, RoutedEventArgs e) { DialogBoxes dialogBox = new DialogBoxes(); dialogBox.saveFile(); if (dialogBox.Result == true) { this.savePathName = dialogBox.FileName; buttonSavePath.Content = savePathName; buttonMakeVideo.IsEnabled = true; } }
//----------------------------------------------------------------- //Buttons private void buttonLoadVideo_Click(object sender, RoutedEventArgs e) { DialogBoxes dialogBox = new DialogBoxes(); dialogBox.loadFile(); if (dialogBox.Result == true) { if (bw.IsBusy != true) { loadPathName = dialogBox.FileName; workToDo = Work.LoadFrames; bw.RunWorkerAsync(); } } }