private void button1_Click(object sender, EventArgs e) { if (pmv == null) { pmv = new PaletteMV(this); pmv.Text = "Dodaj paletę"; pmv.Show(); } }
private void button2_Click(object sender, EventArgs e) { if (pmv == null && dataGridView1.Rows.Count != 0) { pmv = new PaletteMV(this, dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells[1].Value.ToString(), dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells[2].Value.ToString(), dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells[3].Value.ToString()); pmv.Text = "Zmień dane palety"; pmv.Show(); } }
public void deleteSmallWindow() { pmv = null; }