public void AddNewSecondaryCategory() { DataManager dataManager = new DataManager(connectionString); string newSecCat = GetNewSecCat(); string selectedPrimeCat = GetSelectedPrimeCat(); if(newSecCat != string.Empty && selectedPrimeCat != string.Empty) { dataManager.InsertSecondaryCategory(newSecCat,selectedPrimeCat); MessageBox.Show(string.Format("You Have Just Added: {0}",newSecCat)); this.Close(); } }