private void usersToolStripMenuItem_Click(object sender, EventArgs e) { frmUsers frm = new frmUsers(); frm.MdiParent = this; frm.Show(); }
public int Read_Val_GUI(frmUsers f, int iAUID) { AUID = iAUID; FName = f.txtFName.Text.Trim(); SName = f.txtSName.Text.Trim(); Email = f.txtEmail.Text.Trim(); Pword = f.txtPword.Text.Trim(); if (f.chkSiteAdmin.Checked == true) { ULevel = 1000; } else { ULevel = (int)f.udULevel.Value; } ATag = 1; if ((!FName.Length.Equals(0)) && (!SName.Length.Equals(0)) && (!Email.Length.Equals(0)) && (!Pword.Length.Equals(0))) { return(1); } else { MessageBox.Show("Not all the fields have values", "Enter User Details", MessageBoxButtons.OK, MessageBoxIcon.Error); return(-1); } }