private void btn_CreatPosition_Click(object sender, EventArgs e) { this.Hide(); VariableGlobal.position_id = 0; FrmPosition position = new FrmPosition(); position.Show(); }
private void btn_EditPosition_Click(object sender, EventArgs e) { foreach (DataGridViewRow item in this.dataGridViewX1.SelectedRows) { if (item.Cells[1].Value != null) { this.Hide(); VariableGlobal.position_id = Convert.ToInt32(item.Cells[3].Value.ToString()); FrmPosition position = new FrmPosition(); position.Show(); } } }