public vmEdit() { try { Mvvm.Helpers.Observers.GlobalNavigation.Pagina = "EDITAR"; var obj = Mvvm.Helpers.Observers.GlobalNavigation.Parametro; Portaria = mdata.ListaParaEdicao(Convert.ToInt32(obj))[0]; } catch { Portaria.ResetValues(); } }
private void ExecuteCommandSave(object obj) { bool gravado = false; try { Portaria.Atualizado = DateTime.Now; Portaria.Pdf = string.Format(@"{0}\{1}.pdf", Portaria.Data.Year, Portaria.Numero); gravado = mdata.Insert(Portaria); } catch (Exception ex) { MessageBox.Show(ex.Message, "Sim.Apps.Alerta!"); } finally { if (gravado == true) { Portaria.ResetValues(); } } }
private void ExecuteCommandCancel(object obj) { Portaria.ResetValues(); }
public vmAdd() { Mvvm.Helpers.Observers.GlobalNavigation.Pagina = "INCLUIR"; Portaria.ResetValues(); }
public vmAdd() { GlobalNavigation.Pagina = "INCLUIR"; Portaria.ResetValues(); }