public EditStudyTextViewModel(LaboratoryDomainContext laboratoryDomainContext, IServiceLocator serviceLocator) { DisplayName = "Úprava popisu vyšetrenia"; _laboratoryDomainContext = laboratoryDomainContext; _serviceLocator = serviceLocator; Study = null; }
/// <summary> /// Deprecated Method for adding a new object to the Vysetrenie EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVysetrenie(Vysetrenie vysetrenie) { base.AddObject("Vysetrenie", vysetrenie); }
/// <summary> /// Create a new Vysetrenie object. /// </summary> /// <param name="idVysetrenia">Initial value of the IdVysetrenia property.</param> /// <param name="idDoktor">Initial value of the IdDoktor property.</param> /// <param name="osCislo">Initial value of the OsCislo property.</param> public static Vysetrenie CreateVysetrenie(global::System.Int32 idVysetrenia, global::System.Int32 idDoktor, global::System.Int32 osCislo) { Vysetrenie vysetrenie = new Vysetrenie(); vysetrenie.IdVysetrenia = idVysetrenia; vysetrenie.IdDoktor = idDoktor; vysetrenie.OsCislo = osCislo; return vysetrenie; }
private bool FilterVysetrenie(Vysetrenie entity) { return (entity.IdVysetrenia == this.IdVysetrenie); }
private bool FilterVysetrenie(Vysetrenie entity) { return (entity.OsCislo == this.OsCislo); }
private void DetachVysetrenie(Vysetrenie entity) { entity.IdentifikacneUdaje = null; }
private void AttachVysetrenie(Vysetrenie entity) { entity.IdentifikacneUdaje = this; }
public void EditStudyText(Vysetrenie study) { EditStudyTextViewModel editStudyTextViewModel = IoC.Get<EditStudyTextViewModel>(); editStudyTextViewModel.Study = study; Coroutine.BeginExecuteFor(Show.Dialog(editStudyTextViewModel), this); }
public void UpdateVysetrenie(Vysetrenie currentVysetrenie) { this.ObjectContext.Vysetrenie.AttachAsModified(currentVysetrenie, this.ChangeSet.GetOriginal(currentVysetrenie)); }