Exemplo n.º 1
0
 private void start_Click(object sender, EventArgs e)
 {
     col   = new universum(colUniversum);
     plus  = new context(plusDG);
     minus = new context(minusDG);
     tao   = new context(taoDG);
     context[] conts = { plus, minus, tao };
     row[0] = new universum(plusU);
     row[1] = new universum(minusU);
     row[2] = new universum(taoU);
     for (int i = 0; i < 3; i++)
     {
         conts[i].uColumn = col;
         conts[i].setUniversForSS(col);
         conts[i].uRow = row[i];
     }
     colUniversum.Enabled = false;
     //plusDG.Enabled = false;
     //minusDG.Enabled = false;
     //taoDG.Enabled = false;
     plusU.Enabled  = false;
     minusU.Enabled = false;
     taoU.Enabled   = false;
     JSM            = new JSM(conts);
     c1.Hide();
     p1.Hide();
     m1.Hide();
     t1.Hide();
     createButton.Hide();
     JSM.toDGV(r1, r2, r3);
 }
Exemplo n.º 2
0
 public void setUniversForSS(universum u)
 {
     for (int i = 0; i < body.Count; i++)
     {
         body[i].univers = u;
     }
 }
Exemplo n.º 3
0
        private void button4_Click(object sender, EventArgs e)
        {
            u    = new universum(dataGridView4);
            u1   = new universum(dataGridView5);
            cont = new context(dataGridView6);

            cont.uColumn = u;
            cont.uRow    = u1;
            //cont.uColumn = u1; הכ� �מננטסא
            //cont.uRow = u; הכ� �מננטסא
            dataGridView4.Enabled = false;
            dataGridView5.Enabled = false;
            textBox4.Hide();
            button3.Hide();
        }
Exemplo n.º 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            u                     = new universum(dataGridView4);
            s1                    = new smallSet(dataGridView1);
            s1.univers            = u;
            s2                    = new smallSet(dataGridView2);
            s2.univers            = u;
            dataGridView4.Enabled = false;
            dataGridView1.Enabled = false;
            dataGridView2.Enabled = false;
            string s = s1.ToString();

            textBox2.Text = s1.ToString();
            textBox3.Text = s2.ToString();
            textBox1.Hide();
            button1.Hide();
        }