Ejemplo n.º 1
0
 private void ucGenerar1_onSelectedIndex(int index)
 {
     if (index == 0)
     {
         // nueva versión
         FormDecree fmDecree = new FormDecree(oDecree, LoadData.FromDecree_ToDecree);
         fmDecree.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        public static void OpenForm(Formulario form)
        {
            switch (form)
            {
            case Formulario.fmElement:
                FormElement fmElement = new FormElement();
                fmElement.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmElement.Show();
                break;

            case Formulario.fmTypeSample:
                FormTypeSample fmTypeSample = new FormTypeSample();
                fmTypeSample.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmTypeSample.Show();
                break;

            case Formulario.fmDigestion:
                FormDigestion fmDigestion = new FormDigestion();
                fmDigestion.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmDigestion.Show();
                break;

            case Formulario.fmReception:
                FormReception fmReception = new FormReception();
                fmReception.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmReception.Show();
                break;

            case Formulario.fmDescriptionSample:
                FormDescription fmDescription = new FormDescription();
                fmDescription.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmDescription.Show();
                break;

            case Formulario.fmEmpresa:
                FormEmpresa fmClient = new FormEmpresa();
                fmClient.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmClient.Show();
                break;

            case Formulario.fmMeasurementUnit:
                FormUnitMeasure fmMeasurment_unit = new FormUnitMeasure();
                fmMeasurment_unit.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmMeasurment_unit.Show();
                break;

            case Formulario.fmConvertionUM:
                FormConvertUM fmConvertionUM = new FormConvertUM();
                fmConvertionUM.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmConvertionUM.Show();
                break;

            case Formulario.fmCorrelative:
                FormCorrelatives fmCorrelative = new FormCorrelatives();
                fmCorrelative.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmCorrelative.Show();
                break;

            case Formulario.fmMaterialReference:
                FormMaterialReference fmMaterialReference = new FormMaterialReference();
                fmMaterialReference.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmMaterialReference.Show();
                break;

            case Formulario.fmUser:
                FormUser fmUser = new FormUser();
                fmUser.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmUser.Show();
                break;

            case Formulario.fmTypeSolution:
                FormTypeSolution fmTypeSolution = new FormTypeSolution();
                fmTypeSolution.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmTypeSolution.Show();
                break;

            case Formulario.fmReactive:
                FormReactives fmReactives = new FormReactives();
                fmReactives.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmReactives.Show();
                break;

            case Formulario.fmMatrixGroup:
                FormGroupMatrix fmMatrizGroup = new FormGroupMatrix();
                fmMatrizGroup.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmMatrizGroup.Show();
                break;

            case Formulario.fmMatrixItem:
                FormMatrixItems fmMatrizItem = new FormMatrixItems();
                fmMatrizItem.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmMatrizItem.Show();
                break;

            case Formulario.fmDecree:
                FormDecree fmDecree = new FormDecree();
                fmDecree.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmDecree.Show();
                break;

            case Formulario.fmPreparationSamples:
                FormPrepSamples fmPreparationSamples = new FormPrepSamples();
                fmPreparationSamples.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmPreparationSamples.Show();
                break;

            case Formulario.fmCompound:
                FormCompound fmcompound = new FormCompound();
                fmcompound.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmcompound.Show();
                break;

            case Formulario.fmFactorEstequ:
                FormFactorEstequiometrico fmFactorEstequ = new FormFactorEstequiometrico();
                fmFactorEstequ.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmFactorEstequ.Show();
                break;

            case Formulario.fmCalibs:
                FormCalibs fmCalibs = new FormCalibs();
                fmCalibs.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                fmCalibs.Show();
                break;
            }
        }
Ejemplo n.º 3
0
 public static void OpenForm(Formulario form)
 {
     switch (form)
     {
         case Formulario.fmElement:
             FormElement fmElement = new FormElement();
             fmElement.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmElement.Show();
             break;
         case Formulario.fmTypeSample:
             FormTypeSample fmTypeSample = new FormTypeSample();
             fmTypeSample.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmTypeSample.Show();
             break;
         case Formulario.fmDigestion:
             FormDigestion fmDigestion = new FormDigestion();
             fmDigestion.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmDigestion.Show();
             break;
         case Formulario.fmReception:
             FormReception fmReception = new FormReception();
             fmReception.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmReception.Show();
             break;
         case Formulario.fmDescriptionSample:
             FormDescription fmDescription = new FormDescription();
             fmDescription.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmDescription.Show();
             break;
         case Formulario.fmEmpresa:
             FormEmpresa fmClient = new FormEmpresa();
             fmClient.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmClient.Show();
             break;
         case Formulario.fmMeasurementUnit:
             FormUnitMeasure fmMeasurment_unit = new FormUnitMeasure();
             fmMeasurment_unit.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmMeasurment_unit.Show();
             break;
         case Formulario.fmConvertionUM:
             FormConvertUM fmConvertionUM = new FormConvertUM();
             fmConvertionUM.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmConvertionUM.Show();
             break;
         case Formulario.fmCorrelative:
             FormCorrelatives fmCorrelative = new FormCorrelatives();
             fmCorrelative.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmCorrelative.Show();
             break;
         case Formulario.fmMaterialReference:
             FormMaterialReference fmMaterialReference = new FormMaterialReference();
             fmMaterialReference.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmMaterialReference.Show();
             break;
         case Formulario.fmUser:
             FormUser fmUser = new FormUser();
             fmUser.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmUser.Show();
             break;
         case Formulario.fmTypeSolution:
             FormTypeSolution fmTypeSolution = new FormTypeSolution();
             fmTypeSolution.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmTypeSolution.Show();
             break;
         case Formulario.fmReactive:
             FormReactives fmReactives = new FormReactives();
             fmReactives.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmReactives.Show();
             break;
         case Formulario.fmMatrixGroup:
             FormGroupMatrix fmMatrizGroup = new FormGroupMatrix();
             fmMatrizGroup.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmMatrizGroup.Show();
             break;
         case Formulario.fmMatrixItem:
             FormMatrixItems fmMatrizItem = new FormMatrixItems();
             fmMatrizItem.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmMatrizItem.Show();
             break;
         case Formulario.fmDecree:
             FormDecree fmDecree = new FormDecree();
             fmDecree.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmDecree.Show();
             break;
         case Formulario.fmPreparationSamples:
             FormPrepSamples fmPreparationSamples = new FormPrepSamples();
             fmPreparationSamples.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmPreparationSamples.Show();
             break;
         case Formulario.fmCompound:
             FormCompound fmcompound = new FormCompound();
             fmcompound.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmcompound.Show();
             break;
         case Formulario.fmFactorEstequ:
             FormFactorEstequiometrico fmFactorEstequ = new FormFactorEstequiometrico();
             fmFactorEstequ.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmFactorEstequ.Show();
             break;
         case Formulario.fmCalibs:
             FormCalibs fmCalibs = new FormCalibs();
             fmCalibs.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             fmCalibs.Show();
             break;
     }
 }
Ejemplo n.º 4
0
 private void ucGenerar1_onSelectedIndex(int index)
 {
     if (index == 0)
     {
         // nueva versión
         FormDecree fmDecree = new FormDecree(oDecree, LoadData.FromDecree_ToDecree);
         fmDecree.ShowDialog();
     }
 }