private TesteView ParseModelParaViewModel(TBTeste tbTeste) { TesteView testeView = new TesteView() { DescricaoTeste = tbTeste.DescricaoTeste, CodigoTeste = tbTeste.CodigoTeste }; return(testeView); }
private void btnVoluntario_Click(object sender, EventArgs e) { /* * VoluntarioView voluntarioView = new VoluntarioView(); * voluntarioView.TopLevel = false; * pnHome.Controls.Add(voluntarioView); * voluntarioView.FormBorderStyle = FormBorderStyle.None; * voluntarioView.Show(); */ TesteView testeView = new TesteView(); testeView.TopLevel = false; pnHome.Controls.Add(testeView); testeView.FormBorderStyle = FormBorderStyle.None; testeView.Show(); }