public void GetUser() { LogInPage formLogIn = new LogInPage(); formLogIn.ShowDialog(); if (formLogIn.DialogResult == DialogResult.OK) { userName = formLogIn.Name; Role = formLogIn.Role; } }
public void GetUser() { LogInPage formLogIn = new LogInPage(); formLogIn.ShowDialog(); if (formLogIn.DialogResult == DialogResult.OK) { userName = formLogIn.Name; Role = formLogIn.Role; } //else //{ // InitializeComponent(); // Vizible(); // Initializer(); // this.Close(); //} }