private void btnGenerateID_Click(object sender, EventArgs e) { //get the Dtae //get the Level of importance //Buuild the Identifier //Display on Tetxt box if (cmbImportance.SelectedIndex < 0) { MessageBox.Show("Please select a level of importance", "EMPTY FIELDS!!", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { Identtifier = SC_L.GenerateIDentifier(dtDateFinal.Value, cmbImportance.SelectedItem.ToString()); txtIdentifier.Text = Identtifier; } }