private void ExecuteOpenCommand() { var file = Open.ChooseFile("图片|*.jpg;*.jpeg;*.png;*.bmp"); if (string.IsNullOrEmpty(file)) { return; } Background = file; }
private void ExecuteExceptCommand() { var numbers = LocalHelper.GetNumber(Open.ChooseFile()); if (numbers.Count <= 0) { return; } numbers = _numberList.Except(numbers).ToList(); _showMessage("导出差集文本成功!路径:" + ExportHelper.ExportRandomName(numbers, "ExceptNumbers")); }
private void ExecuteOpenCommand() { var file = Open.ChooseFile(); if (string.IsNullOrEmpty(file)) { return; } Url = file; Source = BookSources.本地; if (string.IsNullOrWhiteSpace(Name)) { Name = Regex.Match(file, @"\\([^\.\\]+)\.", RegexOptions.RightToLeft).Groups[1].Value; } }
private void ExecuteImportCommand() { _import(Open.ChooseFile()); }
private void ExecuteOpenReplaceCommand() { _openReplace(Open.ChooseFile()); }