private void setBtn_Click(object sender, EventArgs e) { SmallSet a = new SmallSet(dataGridView4); SmallSet b = new SmallSet(dataGridView5); SmallSet c = new SmallSet(dataGridView6); c.n = a.n; if (plus.Checked) { c = a + b; c.ToDataGridView(this.dataGridView6); } if (minus.Checked) { c = a - b; c.ToDataGridView(this.dataGridView6); } if (mult.Checked) { c = a * b; c.ToDataGridView(this.dataGridView6); } if (div.Checked) { System.Windows.Forms.MessageBox.Show("one doesn't simply divide sets!!111!1"); } if (compl.Checked) { c = a.compl(a); c.ToDataGridView(this.dataGridView6); } }