public VidConverterViewModel() { ConvertCommand = new ConvertCommand(this); BrowseFilesCommand = new BrowseFilesCommand(this); BrowseDirectoriesCommand = new BrowseDirectoriesCommand(this); CurrVidPath = "Select a video file you'd like to convert..."; CurrOutputDir = "Select output folder (will be same as video file's if unselected)"; VidConverter = new VidConverter(); VidConverter.PropertyChanged += VidConverter_PropertyChanged; }
public void ConvertVideo() { if (!String.Equals(CurrOutputDir, "Select output folder (will be same as video file's if unselected)")) { VidConverter.BeginConversion(CurrVidPath, CurrOutputDir, CurrVidFormat); } else { VidConverter.BeginConversion(CurrVidPath, CurrVidFormat); } }