private void AddFileToDatabase(DatabaseReference database)
        {
            var result = _databaseInteractions.AddFileToDatabase(database);

            if (result.IsSuccess)
            {
                CollectionListView.ScrollIntoSelectedItem();
            }
        }
        private void AddFileToDatabase(DatabaseReference database)
        {
            var result = _databaseInteractions.AddFileToDatabase(database);

            if (result.IsSuccess)
            {
                Store.Current.SelectCollection(database.Collections.First(a => a.Name == "_files"));
                Store.Current.SelectDocument(result.Value.DocumentReference);

                CollectionListView.ScrollIntoSelectedItem();
            }
        }
示例#3
0
        private void AddFileToDatabase(DatabaseReference database)
        {
            var result = _databaseInteractions.AddFileToDatabase(database);

            if (result.IsSuccess)
            {
                var documentsCreated = result.Value;
                Store.Current.SelectCollection(documentsCreated.CollectionReference);
                Store.Current.SelectDocument(documentsCreated.Items?.FirstOrDefault());

                CollectionListView.ScrollIntoSelectedItem();
            }
        }