Account user = new Account();//Created an object of the class "Account" public SignUpControl() { InitializeComponent(); CivilIdNote_Lbl.Hide(); CivilId_Lbl.Hide(); DriverCivilID_txt.Hide(); CookWorkingHours_txt.Hide(); WorkingHours_Lbl.Hide(); }
string gender; //To be able to put a string value into database private void Driver_CheckedChanged(object sender, EventArgs e) { if (Driver_Rb.Checked) { CivilIdNote_Lbl.Show(); CivilId_Lbl.Show(); DriverCivilID_txt.Show(); ; } else { CivilIdNote_Lbl.Hide(); CivilId_Lbl.Hide(); DriverCivilID_txt.Hide(); } }