Exemple #1
0
        void BtnFormasClick(object sender, EventArgs e)
        {
            fCadFormas frmCad = new fCadFormas(true);

            frmCad.ShowDialog();
            if (frmCad.result)
            {
                CarregaFormas();
                cbxCodFormas.Text = frmCad.codigo;
                int f = cbxCodFormas.SelectedIndex;
                cbxFormas.Text = (f >= 0) ? cbxFormas.Items[f].ToString() : "";
            }
            cbxFormas.Focus();
        }
Exemple #2
0
        void FormasToolStripMenuItemClick(object sender, EventArgs e)
        {
            fCadFormas frm = new fCadFormas(false);

            frm.ShowDialog();
        }