Example #1
0
        private void FillNumericChs()
        {
            labelN.Text = RandomProcess.Inst.N.ToString();

            CharactNumeric nc = new CharactNumeric();

            listViewChar.Items[0] = new ListViewItem(new string[] { "Mx",
                                                                    NumFormat(nc.CalcMx(), 6) });


            listViewChar.Items[1] = new ListViewItem(new string[] { "Dx",
                                                                    NumFormat(nc.CalcDx(), 6) });

            listViewChar.Items[2] = new ListViewItem(new string[] { "Ka",
                                                                    NumFormat(nc.CalcKa(), 6) });

            listViewChar.Items[3] = new ListViewItem(new string[] { "Kε",
                                                                    NumFormat(nc.CalcKe(), 6) });
        }
        private void FillNumericChs()
        {
            IDistrLaw dl = (IDistrLaw) RandomProcess.Inst.Stochastic;
            CharactNumeric nc = new CharactNumeric();

            labelN.Text = RandomProcess.Inst.N.ToString();

            listViewChar.Items[0] = new ListViewItem(new string[] { "Mx",
                NumFormat(nc.CalcMx(), 6),
                NumFormat(dl.CalcMx(), 6)});

            listViewChar.Items[1] = new ListViewItem(new string[] { "Dx",
                NumFormat(nc.CalcDx(), 6),
                NumFormat(dl.CalcDx(), 6)});

            listViewChar.Items[2] = new ListViewItem(new string[] { "Ka",
                NumFormat(nc.CalcKa(), 6),
                NumFormat(dl.CalcKa(), 6)});

            listViewChar.Items[3] = new ListViewItem(new string[] { "Kε",
                NumFormat(nc.CalcKe(), 6),
                NumFormat(dl.CalcKe(), 6)});
        }