Beispiel #1
0
        private void btnTareas_Click(object sender, EventArgs e)
        {
            if (categoria.categoriaId > 0)
            {
                frmSeleccionarTareaPredeterminada frm = new frmSeleccionarTareaPredeterminada(categoria);
                frm.StartPosition = FormStartPosition.Manual;
                frm.Location      = this.Location;

                frm.FormClosing += delegate
                {
                    frmSC.Show();
                    this.ShowDialog();
                };

                frm.Show();
                this.Hide();
                frmSC.Hide();
            }
            else
            {
                MessageBox.Show(
                    "Esta categoria no ha sido registrada.",
                    "Error",
                    MessageBoxButtons.OK, MessageBoxIcon.Warning
                    );
            }
        }
        private void btnGestionarCategorias_Click(object sender, EventArgs e)
        {
            frmSeleccionarCategoria frm = new frmSeleccionarCategoria();

            frm.FormClosing += delegate
            {
                this.Show();
            };

            frm.Show();
            this.Hide();
        }