private void otherBT_Click_1(object sender, EventArgs e) { Others f = new Others(cIdCB.Text); f.Visible = true; this.Close(); }
private void otherBT_Click(object sender, EventArgs e) { if (cIdCB.Text == "") { MessageBox.Show("Please select Customer id!", "Error"); return; } Others f = new Others(cIdCB.SelectedItem.ToString()); f.Visible = true; }