public GuardarTutor(String nombreParametro, String apellidoParametro, String dirParametro, String NacParametro, Image Foto, Candidato Cand)
        {
            InitializeComponent();
            this.nombreParametro = nombreParametro;
            this.apellidoParametro = apellidoParametro;
            this.dirParametro = dirParametro;
            this.NacParametro = NacParametro;
            this.Foto = Foto;
            this.Cand = Cand;

            nombreNin.Enabled = false;
            apellidoNin.Enabled = false;
            dirNin.Enabled = false;
            fechaNac.Enabled = false;
        }
 /*************Objetos*********************/
 public Camara(String Name, String Apellido, String Fecha_nac, String Tel, String Dir, String Tipo, String Ced, int CbxIndex, String Exp, String Sexo, String Proced, String Cpe, String Cjs, Candidato C)
 {
     InitializeComponent();
     BuscarDispositivos();
     this.Name = Name;
     this.Apellido = Apellido;
     this.Fecha_nac = Fecha_nac;
     this.Tel = Tel;
     this.Dir = Dir;
     this.Tipo = Tipo;
     this.Ced = Ced;
     this.C = C;
     this.CbxIndex = CbxIndex;
     this.Exp = Exp;
     this.Sexo = Sexo;
     this.Proced = Proced;
     this.Cpe = Cpe;
     this.Cjs = Cjs;
 }
        private void button1_Click(object sender, EventArgs e)
        {
            Image Foto;

            if(nombre.Text.Length==0 || apellido.Text.Length==0 || ced.Text.Trim().Length<16 || dir.Text.Length==0){
                MessageBox.Show("Complete la información del tutor antes de regitrar","Información");
            }else{
            string query = "Select *From Candidatos where nombre='" + nombreNin.Text
                + "' AND apellido= '"+apellidoNin.Text+"' AND dir='"+dirNin.Text
                +"' AND fecha_nac= '"+fechaNac.Text+"' AND Tipo='Niño'";

            mc = new MetodosComunes();
            mc.GuardarTutor(nombre.Text, apellido.Text, ced.Text, dir.Text, tel.Text, query);
            this.Dispose();

            Candidato cand = new Candidato();
            Camara cam = new Camara("", "", "", "", "", "", "", 0,"", "", "", "", "",cand);

            Foto = cam.Captura.Image;
            Candidato c = new Candidato(Foto, cam, "", "", "", "", "", "","", -1, "", "","","", "");
            c.MdiParent = this.MdiParent;
            c.Show();
            }
        }
        public void SenderImage()
        {
            Candidato c = new Candidato(Captura.Image, this, Name, Apellido, Fecha_nac, Tel, Dir, Tipo, Ced, CbxIndex, Exp, Sexo, Proced, Cpe, Cjs );
            c.pictureBox1.Refresh();
            c.MdiParent = this.MdiParent;
            c.Show();

            this.Dispose();
        }
        private void registrarNuevoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Image Foto;
            Candidato cand = new Candidato();
            Camara cam = new Camara("", "" , "", "", "", "", "", 0, "", "", "", "", "", cand);

            Foto = cam.Captura.Image;
            Candidato c = new Candidato(Foto, cam, "", "", "", "", "", "", "", -1, "radio4", "", "", "", "");
            c.MdiParent = this;
            c.Show();
        }