예제 #1
0
        private void btnEstoque_Click(object sender, EventArgs e)
        {
            Point posicaoForm = new Point(100, 100);

            posicaoForm = this.Location;

            Form formConsultarEstoque = new ConsultarEstoque(this, posicaoForm.X, posicaoForm.Y, permissaoUsuario);

            this.Hide();
            formConsultarEstoque.Show();
        }
예제 #2
0
        private void btnCancelar_Click_1(object sender, EventArgs e)
        {
            //Recarregando a página

            Point posicaoForm = new Point(100, 100);

            posicaoForm = this.Location;

            Form formConsultarEstoque = new ConsultarEstoque(formAnterior, posicaoForm.X, posicaoForm.Y, permissaoUsuario);

            xClicked = false;
            this.Close();
            formConsultarEstoque.Show();
        }