private void buttonItem16_Click(object sender, EventArgs e) { Autentificare aut = new Autentificare(); aut.ShowDialog(); aut.Dispose(); aut.Focus(); }
private void MainForm_Activated(object sender, EventArgs e) { if (aut.enter == false) { aut.enter = true; aut.ShowDialog(); aut.Dispose(); aut.Focus(); } labelItem1.Text = aut.user; labelItem2.Text = DateTime.Today.ToLongDateString(); }