Пример #1
0
        public void GetUser()
        {
            LogInPage formLogIn = new LogInPage();

            formLogIn.ShowDialog();
            if (formLogIn.DialogResult == DialogResult.OK)
            {
                userName = formLogIn.Name;
                Role     = formLogIn.Role;
            }
        }
Пример #2
0
        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();
            //}
        }