private void LoadCollectionFile()
        {
            var fileLocation = _userDialogs.SelectFile("", "Collection database (*.db/*.osdb)|*.db;*.osdb",
                                                       "collection.db");

            if (fileLocation == string.Empty)
            {
                return;
            }
            var loadedCollections = _osuFileIo.CollectionLoader.LoadCollection(fileLocation);

            _collectionEditor.EditCollection(CollectionEditArgs.AddCollections(loadedCollections));
        }
Ejemplo n.º 2
0
 private void LoadCollectionFile(object sender, object data = null)
 => LoadCollection(data?.ToString() ?? _userDialogs.SelectFile("", "Collection database (*.db/*.osdb)|*.db;*.osdb", "collection.db"));