예제 #1
0
        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"));
        }
예제 #3
0
        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;
            }
        }
예제 #4
0
 private void ExecuteImportCommand()
 {
     _import(Open.ChooseFile());
 }
예제 #5
0
 private void ExecuteOpenReplaceCommand()
 {
     _openReplace(Open.ChooseFile());
 }