public void Formate() { Can = false; SettingValue.InputFile = MyFileDialog.GetOpenFile();; SettingValue.OutputFile = MyFileDialog.GetSaveFile(); if (string.IsNullOrEmpty(SettingValue.InputFile) || string.IsNullOrEmpty(SettingValue.OutputFile)) { Can = true; return; } var f = new FileFormater(SettingValue); f.Formate(); Can = true; }
public void Formate() { var str = MyFileDialog.GetOpenFiles(); if (str == null) { return; } foreach (var item in str) { SettingValue.InputFile = item; SettingValue.OutputFile = MyFileDialog.GetSaveFiles(item); if (string.IsNullOrEmpty(SettingValue.InputFile)) { return; } else { var f = new FileFormater(SettingValue); f.Formate(); } } }