示例#1
0
        private void vendaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMovimentacaoVenda f = new frmMovimentacaoVenda();

            f.ShowDialog();
            f.Dispose();
        }
        public void toolStripButton1_Click(object sender, EventArgs e)
        {
            frmMovimentacaoVenda f = new frmMovimentacaoVenda();

            if (Application.OpenForms[f.Name] == null)
            {
                f.ShowDialog();
                f.Dispose();
            }
            else
            {
                Application.OpenForms[f.Name].Focus();
            }
        }
        private void receberVendaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMovimentacaoVenda f = new frmMovimentacaoVenda();

            if (Application.OpenForms[f.Name] == null)
            {
                f.ShowDialog();
                f.Dispose();
            }
            else
            {
                Application.OpenForms[f.Name].Focus();
            }
        }
        public void AbrirCaixa()
        {
            frmMovimentacaoVenda f = new frmMovimentacaoVenda();

            if (Application.OpenForms[f.Name] == null)
            {
                f.ShowDialog();
                f.Dispose();
            }
            else
            {
                Application.OpenForms[f.Name].Focus();
            }
        }