public void Execute()
 {
     ManagComm.getInstance().addComm(this);
     form2.getGraph1().Clear(Color.AntiqueWhite);
     form2.getGraph2().Clear(Color.AntiqueWhite);
     draw1 = new Sheme4(form2.getGraph1(), 10, 10);
     draw2 = new Sheme4(form2.getGraph2(), 10, 10);
     smatrix = new HideDecorator(smatrix, 1, 2);
     dmatrix = new HideDecorator(dmatrix, 1, 2);
     smatrix.setDrawer(draw1);
     dmatrix.setDrawer(draw2);
     smatrix.draw();
     dmatrix.draw();
 }
 public void Execute()
 {
     ManagComm.getInstance().addComm(this);
     form2.getGraph1().Clear(Color.AntiqueWhite);
     form2.getGraph2().Clear(Color.AntiqueWhite);
     draw1   = new Sheme4(form2.getGraph1(), 10, 10);
     draw2   = new Sheme4(form2.getGraph2(), 10, 10);
     smatrix = new HideDecorator(smatrix, 1, 2);
     dmatrix = new HideDecorator(dmatrix, 1, 2);
     smatrix.setDrawer(draw1);
     dmatrix.setDrawer(draw2);
     smatrix.draw();
     dmatrix.draw();
 }
Exemple #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            CleanMatrix();
            Graphics g  = Graphics.FromHwnd(panel1.Handle);
            Graphics g1 = Graphics.FromHwnd(panel2.Handle);

            d  = new Sheme4(g, 10, 10);
            d1 = new Sheme4(g1, 10, 10);
            m1 = new HideDecorator(m1, 1, 2);
            m2 = new HideDecorator(m2, 1, 2);
            m1.setDrawer(d);
            m2.setDrawer(d1);
            m1.draw();
            m2.draw();
        }
Exemple #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            CleanMatrix();
            Graphics g = Graphics.FromHwnd(panel1.Handle);
            Graphics g1 = Graphics.FromHwnd(panel2.Handle);

            d = new Sheme4(g, 10, 10);
            d1 = new Sheme4(g1, 10, 10);
            m1 = new HideDecorator(m1, 1, 2);
            m2 = new HideDecorator(m2, 1, 2);
            m1.setDrawer(d);
            m2.setDrawer(d1);
            m1.draw();
            m2.draw();
        }