private void TssfrmRelatorios_Click(object sender, EventArgs e) { try { //Setando o mousepointer para ocupado. Cursor.Current = Cursors.WaitCursor; Form frm = new frmRelatorios(this); OpenTela(frm); return; } catch (Exception ex) { MessageBox.Show(ex.Message, "Acesso Negado", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frmRelatorioPesquisa(frmRelatorios frmRelatorios) { InitializeComponent(); this.frmRelatorios = frmRelatorios; }