public WordEditor(DocumentControlM.ListElement element, Action close, bool Type) { ReadOnly = true; this.element = element; this.DataContext = this; this.close = close; this.Type = Type; Start(); }
public WordEditor(DocumentControlM.ListElement element, int PatientId, string name, string Code, Action close, bool Type, Action Change) { ReadOnly = false; WordEditorVM.PatientId = PatientId; this.element = element; this.DataContext = this; this.name = name; this.Code = Code; this.close = close; this.Type = Type; this.Change = Change; Start(); }
protected internal void NewDataQuestion(Action action, DocumentControlM.ListElement element) { if (element.File != null) { Dialog dialog = new Dialog(false, "El nem menetett változások lehetnek az adott oldalon", action, () => { }, true); dialog.content = new Views.Dialogs.TextBlock("Amennyiben felülrja a mostani dokumentumot, úgy az elveszik\n\n" + "Biztosan betölti az új dokumentumot?"); dialog.Start(); } else { action(); } }