Пример #1
0
 private void btnIrAtras_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("¿Desea regresar a Módulo Selección de Viviendas?", "Regresar", MessageBoxButtons.OKCancel) == DialogResult.OK)
     {
         MSeleccionaPlano sdp = new MSeleccionaPlano();
         Modelo.EncDatosConfiguracion.ConDatos = true;
         sdp.Show();
         Modelo.EncDatosPlano.M2SuperFloteTipo.Clear();
         Modelo.EncDatosConfiguracion.CierreAuto = true;
         Close();
     }
 }
        private void btnSiguiente_Click(object sender, EventArgs e)
        {
            Modelo.EncDatosIniciales.PrototipoRelacional = new string[dtRelacion.RowCount, dtRelacion.ColumnCount];

            foreach (DataGridViewRow dtRow in dtRelacion.Rows)
            {
                foreach (DataGridViewCell dtCell in dtRow.Cells)
                {
                    Modelo.EncDatosIniciales.PrototipoRelacional[dtCell.RowIndex, dtCell.ColumnIndex] = dtCell.Value.ToString();
                }
            }

            MSeleccionaPlano msp = new MSeleccionaPlano();

            msp.Show();
            Modelo.EncDatosConfiguracion.CierreAuto = true;
            this.Close();
        }