private async void _addCategoryBtn_Click(Object sender, EventArgs e) { InputNameDialog inputNameDialog = new InputNameDialog(); if (inputNameDialog.ShowDialog() == DialogResult.OK) { await _storage.AddCategory(currentCategoryId, inputNameDialog.InputName); var categories = await _storage.GetCategories(currentCategoryId); currentCategoryId = 0; _categoriesList.DataSource = categories; } }