private void buttonAccept_Click(object sender, System.EventArgs e) { if (textBoxName.Text.Length > 0) { krnGateway.AddorUpdateCategory(uint.Parse(labelID.Text), this.textBoxName.Text, this.textBoxAutoAssign.Text, (uint)panel1.BackColor.ToArgb()); } this.Close(); }