Пример #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            AgregarMedicamentos am = new AgregarMedicamentos();

            am.MdiParent = this.MdiParent;
            am.Show();
        }
Пример #2
0
        private void agregarToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            AgregarMedicamentos im = new AgregarMedicamentos();

            im.MdiParent = this;
            im.Show();
        }
Пример #3
0
        private void combitoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            /*combito c = new combito();
             * c.Show();*/
            AgregarMedicamentos am = new AgregarMedicamentos();

            am.MdiParent = this;
            am.Show();
        }
Пример #4
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count != 0)
            {
                AgregarMedicamentos rp = new AgregarMedicamentos(int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()));

                rp.Owner     = this;
                rp.MdiParent = this.MdiParent;

                rp.Show();
            }
            else
            {
                MessageBox.Show("contenido vacío");
            }
        }