Exemple #1
0
        private void bttnVoltarInicial_Click(object sender, EventArgs e)
        {
            if (formInicial == null)
            {
                formInicial = new frmJanelaInicial();
            }

            formInicial.Location = this.Location;
            this.Hide();
            formInicial.Show();
        }
Exemple #2
0
        private void bttnLogin_Click(object sender, EventArgs e)
        {
            string ID = Convert.ToString(txtID.Text);
            string PW = Convert.ToString(txtPW.Text);

            if (ID == "bom" && PW == "natal")
            {
                formJanelaInicial = new frmJanelaInicial();

                formJanelaInicial.Location = this.Location;
                this.Hide();
                formJanelaInicial.Show();
            }
            else
            {
                MessageBox.Show("Dados Incorretos! Tente outra vez.");
            }
        }