Ejemplo n.º 1
0
 public void SetupTable()
 {
     if (!this.m_bEdit)
     {
         AxMSFlexGrid grdParameters = this.grdParameters;
         CfrmSUFIMain frmSUFIMain   = this.frmMain.frmSUFIMain;
         Recordset    dbParameters  = frmSUFIMain.dbParameters;
         this.frmMain.frmSUFIMain.OpenCurrentParameters(ref dbParameters);
         frmSUFIMain.dbParameters = dbParameters;
         grdParameters.Cols       = 4;
         frmSUFIMain              = this.frmMain.frmSUFIMain;
         dbParameters             = frmSUFIMain.dbParameters;
         frmSUFIMain.dbParameters = dbParameters;
         grdParameters.Rows       = ReadSaveFunctions.RecordCount(ref dbParameters) + 1;
         grdParameters.FixedCols  = 1;
         grdParameters.FixedRows  = 1;
         grdParameters.set_TextMatrix(0, 0, "Name:");
         grdParameters.set_TextMatrix(0, 1, "Min.:");
         grdParameters.set_TextMatrix(0, 2, "Max.:");
         grdParameters.set_TextMatrix(0, 3, "Strata:");
         grdParameters.Row = 0;
         this.frmMain.frmSUFIMain.dbParameters.MoveFirst();
         while (true)
         {
             if (this.frmMain.frmSUFIMain.dbParameters.EOF)
             {
                 this.frmMain.frmSUFIMain.dbParameters.Close();
                 grdParameters = null;
                 break;
             }
             grdParameters.Row++;
             grdParameters.set_TextMatrix(grdParameters.Row, 0, Conversions.ToString(this.frmMain.frmSUFIMain.dbParameters[]["Name"][]));
Ejemplo n.º 2
0
        private void MSFlexGrid1_KeyPressEvent(object eventSender, DMSFlexGridEvents_KeyPressEvent eventArgs)
        {
            AxMSFlexGrid grid = this.MSFlexGrid1;

            if (!this.m_InGrid & (eventArgs.keyAscii != 13))
            {
                grid.set_TextMatrix(grid.Row, grid.Col, "");
            }
            this.m_InGrid = true;
            if ((grid.Col > 0) & (grid.Row > 0))
            {
                if (eventArgs.keyAscii != 8)
                {
                    if (eventArgs.keyAscii != 13)
                    {
                        grid.set_TextMatrix(grid.Row, grid.Col, grid.get_TextMatrix(grid.Row, grid.Col) + Conversions.ToString(Strings.Chr(eventArgs.keyAscii)));
                    }
                    else
                    {
                        if (grid.Row != (grid.Rows - 1))
                        {
                            grid.Row++;
                        }
                        return;
                    }
                }
                else
                {
                    if (Strings.Len(grid.get_TextMatrix(grid.Row, grid.Col)) > 0)
                    {
                        grid.set_TextMatrix(grid.Row, grid.Col, Strings.Left(grid.get_TextMatrix(grid.Row, grid.Col), Strings.Len(grid.get_TextMatrix(grid.Row, grid.Col)) - 1));
                    }
                    return;
                }
            }
            grid = null;
        }
Ejemplo n.º 3
0
        public int ComputeNumberOfSims()
        {
            AxMSFlexGrid grdParameters = this.grdParameters;
            int          num           = 1;
            short        num3          = (short)(grdParameters.Rows - 1);
            short        row           = 1;

            while (true)
            {
                short num4 = num3;
                if (row > num4)
                {
                    grdParameters = null;
                    return(num);
                }
                if (!Versioned.IsNumeric(grdParameters.get_TextMatrix(row, 3)))
                {
                    grdParameters.set_TextMatrix(row, 3, Conversions.ToString(1));
                }
                num *= Conversions.ToShort(grdParameters.get_TextMatrix(row, 3));
                row  = (short)(row + 1);
            }
        }
Ejemplo n.º 4
0
        private void SetUpParameterTable()
        {
            AxMSFlexGrid grid = this.MSFlexGrid1;

            grid.set_TextMatrix(0, 1, "P(1/0)");
            grid.set_TextMatrix(0, 2, "P(0/1)");
            grid.set_TextMatrix(0, 3, "P(x/x)");
            grid.set_TextMatrix(1, 0, "Start(a)");
            grid.set_TextMatrix(2, 0, "Start(b)");
            grid.set_TextMatrix(3, 0, "Encl.(a)");
            grid.set_TextMatrix(4, 0, "Encl.(b)");
            grid.set_TextMatrix(5, 0, "End(a)");
            grid.set_TextMatrix(6, 0, "End(b)");
            grid.set_TextMatrix(7, 0, "Isol.(a)");
            grid.set_TextMatrix(8, 0, "Isol.(b)");
            grid = null;
        }
Ejemplo n.º 5
0
        private void SetDefaultParametersUK()
        {
            AxMSFlexGrid grid = this.MSFlexGrid1;

            grid.set_TextMatrix(1, 2, "0.21");
            grid.set_TextMatrix(2, 2, "0.46");
            grid.set_TextMatrix(3, 2, "0.03");
            grid.set_TextMatrix(4, 2, "0.15");
            grid.set_TextMatrix(5, 2, "0.03");
            grid.set_TextMatrix(6, 2, "0.15");
            grid.set_TextMatrix(7, 2, "0.23");
            grid.set_TextMatrix(8, 2, "0.33");
            grid.set_TextMatrix(1, 1, "0.03");
            grid.set_TextMatrix(2, 1, "0.14");
            grid.set_TextMatrix(3, 1, "0.03");
            grid.set_TextMatrix(4, 1, "0.16");
            grid.set_TextMatrix(5, 1, "0.22");
            grid.set_TextMatrix(6, 1, "0.40");
            grid.set_TextMatrix(7, 1, "0.20");
            grid.set_TextMatrix(8, 1, "0.34");
            grid.set_TextMatrix(1, 3, "0.76");
            grid.set_TextMatrix(2, 3, "0.40");
            grid.set_TextMatrix(3, 3, "0.94");
            grid.set_TextMatrix(4, 3, "0.69");
            grid.set_TextMatrix(5, 3, "0.75");
            grid.set_TextMatrix(6, 3, "0.45");
            grid.set_TextMatrix(7, 3, "0.57");
            grid.set_TextMatrix(8, 3, "0.33");
            grid = null;
        }
Ejemplo n.º 6
0
        private void SetDefaultParametersSkåne()
        {
            AxMSFlexGrid grid = this.MSFlexGrid1;

            grid.set_TextMatrix(1, 2, "0.29");
            grid.set_TextMatrix(2, 2, "0.61");
            grid.set_TextMatrix(3, 2, "0.13");
            grid.set_TextMatrix(4, 2, "0.34");
            grid.set_TextMatrix(5, 2, "0.10");
            grid.set_TextMatrix(6, 2, "0.21");
            grid.set_TextMatrix(7, 2, "0.24");
            grid.set_TextMatrix(8, 2, "0.44");
            grid.set_TextMatrix(1, 1, "0.10");
            grid.set_TextMatrix(2, 1, "0.21");
            grid.set_TextMatrix(3, 1, "0.13");
            grid.set_TextMatrix(4, 1, "0.34");
            grid.set_TextMatrix(5, 1, "0.29");
            grid.set_TextMatrix(6, 1, "0.61");
            grid.set_TextMatrix(7, 1, "0.24");
            grid.set_TextMatrix(8, 1, "0.44");
            grid.set_TextMatrix(1, 3, "0.61");
            grid.set_TextMatrix(2, 3, "0.18");
            grid.set_TextMatrix(3, 3, "0.74");
            grid.set_TextMatrix(4, 3, "0.32");
            grid.set_TextMatrix(5, 3, "0.62");
            grid.set_TextMatrix(6, 3, "0.18");
            grid.set_TextMatrix(7, 3, "0.52");
            grid.set_TextMatrix(8, 3, "0.12");
            grid = null;
        }
Ejemplo n.º 7
0
        private void SetDefaultParametersBrazil()
        {
            AxMSFlexGrid grid = this.MSFlexGrid1;

            grid.set_TextMatrix(1, 2, "0.49");
            grid.set_TextMatrix(2, 2, "0.56");
            grid.set_TextMatrix(3, 2, "0.18");
            grid.set_TextMatrix(4, 2, "0.24");
            grid.set_TextMatrix(5, 2, "0.13");
            grid.set_TextMatrix(6, 2, "0.20");
            grid.set_TextMatrix(7, 2, "0.28");
            grid.set_TextMatrix(8, 2, "0.44");
            grid.set_TextMatrix(1, 1, "0.11");
            grid.set_TextMatrix(2, 1, "0.24");
            grid.set_TextMatrix(3, 1, "0.08");
            grid.set_TextMatrix(4, 1, "0.26");
            grid.set_TextMatrix(5, 1, "0.38");
            grid.set_TextMatrix(6, 1, "0.46");
            grid.set_TextMatrix(7, 1, "0.28");
            grid.set_TextMatrix(8, 1, "0.40");
            grid.set_TextMatrix(1, 3, "0.40");
            grid.set_TextMatrix(2, 3, "0.20");
            grid.set_TextMatrix(3, 3, "0.74");
            grid.set_TextMatrix(4, 3, "0.50");
            grid.set_TextMatrix(5, 3, "0.49");
            grid.set_TextMatrix(6, 3, "0.34");
            grid.set_TextMatrix(7, 3, "0.44");
            grid.set_TextMatrix(8, 3, "0.16");
            grid = null;
        }