示例#1
0
        private void facturarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                frmFacturar ofrmFacturar = new frmFacturar();
                ofrmFacturar.MdiParent = this;
                ofrmFacturar.Show();
            }
            catch (Exception er)
            {
                StringBuilder msg = new StringBuilder();
                msg.AppendFormat("\n\rMessage        {0}\n", er.Message);
                msg.AppendFormat("Source         {0}\n", er.Source);
                msg.AppendFormat("StackTrace     {0}\n", er.StackTrace);
                _MyLogControlEventos.ErrorFormat("Error {0}", msg.ToString());

                MessageBox.Show("Ocurrion un error, favor revisar \n" + er.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
 private void facturarPublicacionesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmFacturar frmFacturarPublicaciones = new frmFacturar();
     frmFacturarPublicaciones.abrirConUsuario(unUsuario);
 }