private void MiChangeUser_Click(object sender, EventArgs e) { FormLogin frmLogin = new FormLogin(); if (frmLogin.ShowDialog() != DialogResult.OK) { frmLogin.Close(); return; } frmLogin.Close(); SelectProject(); matchPermissions(); labelCurrentName.Text = Global.USER_NAME; lableCurrentOrganization.Text = Global.ORGANIZAITON_NAME; labelCurrentProject.Text = Global.CURRENT_PROJECT_NAME; }
private void FormMain_Load(object sender, EventArgs e) { FormLogin frmLogin = new FormLogin(); DialogResult dialogResult = frmLogin.ShowDialog(); if (frmLogin.DialogResult != DialogResult.OK) { frmLogin.Close(); return; } frmLogin.Close(); SelectProject(); matchPermissions(); labelCurrentName.Text = Global.USER_NAME; lableCurrentOrganization.Text = Global.ORGANIZAITON_NAME; labelCurrentProject.Text = Global.CURRENT_PROJECT_NAME; //formPop = new FormPop(this.statusStrip1.Height); //formPop.Show(); }