예제 #1
0
 public void Execute()
 {
     ManagComm.getInstance().addComm(this);
     m1 = new SimpleMatrix(3, 4);
     m2 = new DisperseMatrix(5, 3);
     IniciatorMatrix.fullMatrix(m1, 8, 45);
     IniciatorMatrix.fullMatrix(m2, 6, 45);
     g = form2.getGraph1();
     g1 = form2.getGraph2();
     d = new Sheme1(g, 10, 10);
     d1 = new Sheme1(g1, 10, 10);
     m1.setDrawer(d);
     m2.setDrawer(d1);
     m1.draw();
     m2.draw();
 }
예제 #2
0
 public void Execute()
 {
     ManagComm.getInstance().addComm(this);
     m1 = new SimpleMatrix(3, 4);
     m2 = new DisperseMatrix(5, 3);
     IniciatorMatrix.fullMatrix(m1, 8, 45);
     IniciatorMatrix.fullMatrix(m2, 6, 45);
     g  = form2.getGraph1();
     g1 = form2.getGraph2();
     d  = new Sheme1(g, 10, 10);
     d1 = new Sheme1(g1, 10, 10);
     m1.setDrawer(d);
     m2.setDrawer(d1);
     m1.draw();
     m2.draw();
 }
예제 #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     m1 = new SimpleMatrix(2, 3);
     m2 = new DisperseMatrix(4, 2);
     IniciatorMatrix.fullMatrix(m1, 4, 7);
     IniciatorMatrix.fullMatrix(m2, 10, 5);
     Statistics j = new Statistics(m1);
     int y = j.max;
     Statistics l = new Statistics(m2);
     int x = l.max;
     textBox1.Text = y.ToString();
     textBox3.Text = x.ToString();
     int z = j.notnull;
     int v = l.notnull;
     textBox2.Text = z.ToString();
     textBox4.Text = v.ToString();
 }
예제 #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     CleanMatrix();
        // new CommGen(this).Execute();
     m1 = new SimpleMatrix(3, 4);
     m2 = new DisperseMatrix(5, 3);
     IniciatorMatrix.fullMatrix(m1, 8, 45);
     IniciatorMatrix.fullMatrix(m2, 6, 45);
     Graphics g = Graphics.FromHwnd(panel1.Handle);
     Graphics g1 = Graphics.FromHwnd(panel2.Handle);
     d = new Sheme1(g, 10, 10);
     d1 = new Sheme1(g1, 10, 10);
     m1.setDrawer(d);
     m2.setDrawer(d1);
     m1.draw();
     m2.draw();
 }
예제 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            CleanMatrix();
            // new CommGen(this).Execute();
            m1 = new SimpleMatrix(3, 4);
            m2 = new DisperseMatrix(5, 3);
            IniciatorMatrix.fullMatrix(m1, 8, 45);
            IniciatorMatrix.fullMatrix(m2, 6, 45);
            Graphics g  = Graphics.FromHwnd(panel1.Handle);
            Graphics g1 = Graphics.FromHwnd(panel2.Handle);

            d  = new Sheme1(g, 10, 10);
            d1 = new Sheme1(g1, 10, 10);
            m1.setDrawer(d);
            m2.setDrawer(d1);
            m1.draw();
            m2.draw();
        }
예제 #6
0
        private void button2_Click(object sender, EventArgs e)
        {
            m1 = new SimpleMatrix(2, 3);
            m2 = new DisperseMatrix(4, 2);
            IniciatorMatrix.fullMatrix(m1, 4, 7);
            IniciatorMatrix.fullMatrix(m2, 10, 5);
            Statistics j = new Statistics(m1);
            int        y = j.max;
            Statistics l = new Statistics(m2);
            int        x = l.max;

            textBox1.Text = y.ToString();
            textBox3.Text = x.ToString();
            int z = j.notnull;
            int v = l.notnull;

            textBox2.Text = z.ToString();
            textBox4.Text = v.ToString();
        }