Exemplo n.º 1
0
        public async void AddNew()
        {
            var dialog = new Microsoft.Win32.OpenFileDialog()
            {
                Multiselect = true,
                Title       = _languageService.GetEntry("SelectShaderPacks"),
                Filter      = "Minecraft shaderpacks | *.zip;",
            };

            if (dialog.ShowDialog() ?? false)
            {
                Packs.AddRange(await _shaderPackService.MoveLoadAllAsync(dialog.FileNames, IsCopy));
            }
        }
Exemplo n.º 2
0
 public async void OnDrop(object _, DragEventArgs e)
 {
     string[] paths = e.Data.GetData(DataFormats.FileDrop) as string[];
     Packs.AddRange(await _shaderPackService.MoveLoadAllAsync(paths, IsCopy));
 }