private async void _categoryUpBtn_Click(Object sender, EventArgs e) { if (prevCategories.Count == 0) { return; } var category = _categoriesList.SelectedItem as CategoryModel; try { _statusLabel.Text = "Loading..."; var categories = await _storage.GetCategories(prevCategories.Peek()); currentCategoryId = prevCategories.Pop(); _categoriesList.DataSource = categories; _scriptsList.Text = "Loaded"; } catch (Exception ex) { _statusLabel.Text = "Struture is not correct. It should be initialized"; MessageBox.Show(ex.Message); } }