private void AddSubGroupButton_Click(object sender, EventArgs e) { if (SubGroupTextBox.Text.Length == 0 || StorageItemsManager.GroupsBS.Current == null) { return; } TechStoreManager.AddTechStoreSubGroup(SubGroupTextBox.Text, StorageItemsManager.CurrentGroup); StorageItemsManager.RefreshSubGroups(); //StorageItemsManager.AddSubGroup(SubGroupTextBox.Text, // Convert.ToInt32(((DataRowView)StorageItemsManager.GroupsBindingSource.Current).Row["TechStoreGroupID"])); }