private void btnPesuisarProduto_Click(object sender, EventArgs e) { try { OpenMdiForm.LoadNewKeepAnother(this, new frmPesquisarProduto(EnumMovimentacao.Pesquisa)); } catch (CustomException erro) { DialogMessage.MessageFullComButtonOkIconeDeInformacao(erro.Message, "Aviso"); } catch (Exception erro) { DialogMessage.MessageComButtonOkIconeErro(erro.Message, "Erro"); } }
private void btnSangria_Click(object sender, EventArgs e) { try { OpenMdiForm.LoadNewKeepAnother(this, new frmSangria()); } catch (CustomException error) { DialogMessage.MessageFullComButtonOkIconeDeInformacao(message: error.Message, title: "Aviso"); } catch (Exception error) { SaveErroInTxt.RecordInTxt(error, this.GetType().Name); DialogMessage.MessageFullComButtonOkIconeDeInformacao(message: error.Message, title: "Aviso"); } }
private void btnPesuisarProduto_Click(object sender, EventArgs e) { try { OpenMdiForm.LoadNewKeepAnother(this, new frmPesquisarProduto(EnumMovimentacao.Neutro)); } catch (CustomException error) { DialogMessage.MessageFullComButtonOkIconeDeInformacao(error.Message, "Aviso"); } catch (Exception error) { SaveErroInTxt.RecordInTxt(error, this.GetType().Name); DialogMessage.MessageComButtonOkIconeErro(error.Message, "Erro"); } }
private void btnGerenciarComanda_Click(object sender, EventArgs e) { try { OpenMdiForm.LoadNewKeepAnother(this, new frmGerenciarComanda(EnumComanda.Seleção)); } catch (CustomException error) { DialogMessage.MessageFullComButtonOkIconeDeInformacao(error.Message, "Aviso"); } catch (Exception error) { SaveErroInTxt.RecordInTxt(error, this.GetType().Name); DialogMessage.MessageComButtonOkIconeErro(error.Message, "Erro"); } }
private void dgvAvisosEstoque_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex >= 0) { var codigo = dgvAvisosEstoque.CurrentRow.Cells["Código"].Value.ToString(); if (codigo != null) { var formAlertEstoque = new frmGerenciarEstoque(); GerenciarGerenciamentoDeEstoque.FecharForm(formAlertEstoque); Estoque.CodigoEstoque = codigo; OpenMdiForm.LoadNewKeepAnother(ContainerContext.Context, formAlertEstoque); } } } catch (Exception erro) { SaveErroInTxt.RecordInTxt(erro, this.GetType().Name); throw; } }
private void frmMenu_Load(object sender, EventArgs e) { try { this.KeyPreview = true; ContainerContext.Context = this; OpenMdiForm.LoadNewKeepAnother(this, new frmAlertaEstoque()); VerificaQuantidadesDeDatas(); AtribuirItensNoRodape(_usuario); lblUsuarioLogado.Text = _usuario.NomeCompleto; InstanciarTipoCadastroRepositorio(); InstanciarTipoPagamentoRepositorio(); _tipoCadastroRepositorio.Cadastrar(); _tipoPagamentoRepositorio.Cadastrar(); CarregarTextoDePermissao(); if (InserirDatasUnicas() > 0) { Properties.Settings.Default.CaixaAberto = new CaixaRepositorio().GetValor().Valor > 0 ? true : false; } if (_keyGenRepositorio.GetDiasTrail() == 0) { new frmKeyGen().Show(); this.Hide(); } } catch (CustomException erro) { DialogMessage.MessageFullComButtonOkIconeDeInformacao(erro.Message, "Aviso"); } catch (Exception erro) { SaveErroInTxt.RecordInTxt(erro, this.GetType().Name); DialogMessage.MessageComButtonOkIconeErro(erro.Message, "Erro"); } }
private void btnRelatorioCompra_Click(object sender, EventArgs e) { OpenMdiForm.LoadNewKeepAnother(this, new frmCompras()); }
private void btnMovimentacaoProduto_Click(object sender, EventArgs e) { OpenMdiForm.LoadNewKeepAnother(this, new frmPesquisarProduto(EnumMovimentacao.Movimentacao)); }
private void btnMovimentacaoCaixa_Click_1(object sender, EventArgs e) { OpenMdiForm.LoadNewKeepAnother(this, new frmMovimentacaoCaixa()); }
private void btnCaixa_Click(object sender, EventArgs e) { OpenMdiForm.LoadNewKeepAnother(this, new frmCaixa()); }
private void btnGerenciarEstoque_Click(object sender, EventArgs e) { OpenMdiForm.LoadNewKeepAnother(this, new frmGerenciarEstoque()); }