public void Testar_Metodo() { Game_Grid_BD oGame = new Game_Grid_BD(); oGame.Nome_Game = "Game 1"; oGame.Total_Morte = 1; SG_Game_NG.Game.Inserir(oGame); }
private void btn_Salvar_Click(object sender, EventArgs e) { try { SplashScreenManager.ShowForm(typeof(SplashScreen_Carregar)); Game_Grid_BD oGame = new Game_Grid_BD(); oGame.Nome_Game = txt_Nome_Game.Text; oGame.Total_Morte = Convert.ToInt16(txt_Total_Morte.Text); SG_Game_NG.Game.Inserir(oGame); SplashScreenManager.CloseForm(); Menssagem.Chamar_Mensagem("Salvo", "Registro salvo com sucesso!"); Close(); } catch (Exception ex) { SplashScreenManager.CloseForm(false); Menssagem.Chamar_Mensagem_Erro("Erro", ex.Message); } }