public MainWindow() { InitializeComponent(); dataGrid.ItemsSource = targetFiles.ConvInfos; /* Setting */ settingWindow = new SettingWindow(SetExePath, SetDeleteOriginalFile, SetQuantizerValue); }
void SetDeleteOriginalFile(SettingWindow settingWindow, bool isDeleteOriginalFile) { ConvertToBPG_Parallel.isDeleteOriginalFile = isDeleteOriginalFile; settingWindow.UpdateIsDeleteOriginalFile(isDeleteOriginalFile); }
void SetQuantizerValue(SettingWindow settingWindow, int quantizerValue) { ConvertToBPG_Parallel.quantizerValue = quantizerValue; settingWindow.UpdateQuantizerValue(quantizerValue); }
void SetExePath(SettingWindow settingWindow, string bpgencExePath) { settingWindow.UpdateBpgencExePath(bpgencExePath); ConvertToBPG.bpgencPath = bpgencExePath; }