private void BtnCtrlEstoqueClick(object sender, EventArgs e) { if (gstEstoque == null) { gstEstoque = new FrmEstoque(); gstEstoque.Show(); gstEstoque.Focus(); gstEstoque.FormClosed += delegate { gstEstoque = null; }; } else { gstEstoque.Show(); gstEstoque.Focus(); } }
private void DataGriewDados_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { int rowindex = e.RowIndex; if (LIS_MOVPRODUTOESColl.Count > 0 && rowindex > -1) { int ColumnSelecionada = e.ColumnIndex; int CodSelect = Convert.ToInt32(LIS_MOVPRODUTOESColl[rowindex].IDESTOQUEES); using (FrmEstoque frm = new FrmEstoque()) { frm._IDESTOQUEES = CodSelect; frm.ShowDialog(); } } } catch (Exception ex) { MessageBox.Show("Erro na pesquisa! Erro Técnico: " + ex.Message); } }
private void accordionControlElementEstoqueCad_Click(object sender, EventArgs e) { FrmEstoque obj = new FrmEstoque(); obj.ShowDialog(); }