public Form1() { InitializeComponent(); UI_InicioDeSesion form = new UI_InicioDeSesion(); form.SetAuthorized(false); }
//Variables private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == masterKey) { UI_InicioDeSesion form = new UI_InicioDeSesion(); form.SetAuthorized(true); this.Close(); } else { UI_InicioDeSesion form = new UI_InicioDeSesion(); form.SetAuthorized(false); this.Close(); } }