private void button1_Click(object sender, EventArgs e) { using (Kombain f = new Kombain()) { f.ShowDialog(); this.OnLoad(e); } }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Items.Dostup = 1; Items.listItems.Clear(); for (int i = 1; i <= dataGridView1.ColumnCount - 1; i++) { Items.listItems.Add(dataGridView1.Rows[e.RowIndex].Cells[i].Value.ToString()); } using (Kombain f = new Kombain()) { f.ShowDialog(); this.OnLoad(e); } }