Пример #1
0
        private void listadoDeCitasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmAppointment frm = FrmAppointment.GetInstancia();

            frm.MdiParent = this;
            frm.Show();
        }
Пример #2
0
 private void dataListado_DoubleClick(object sender, EventArgs e)
 {
     if (add)
     {
         FrmNewAppointment form = FrmNewAppointment.GetInstancia();
         string            par1, par2;
         par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["id"].Value);
         par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["name"].Value);
         form.setCustumer(par1, par2);
         this.Hide();
     }
     else
     {
         FrmAppointment form = FrmAppointment.GetInstancia();
         string         par1, par2;
         par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["id"].Value);
         par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["name"].Value);
         form.setCustumer(par1, par2);
         this.Hide();
     }
     this.add    = false;
     this.update = false;
 }