//uses the given data to create a new category
 private void newCategoryButton_Click(object sender, EventArgs e)
 {
     NewCategory newcat = new NewCategory(this);
     newcat.Show(this);
     RefreshComboBox();
     this.Invalidate();
     this.Refresh();
 }
        //uses the given data to create a new category
        private void newCategoryButton_Click(object sender, EventArgs e)
        {
            NewCategory newcat = new NewCategory(this);

            newcat.Show(this);
            RefreshComboBox();
            this.Invalidate();
            this.Refresh();
        }