Ejemplo n.º 1
0
 public WordEditor(DocumentControlM.ListElement element, Action close, bool Type)
 {
     ReadOnly         = true;
     this.element     = element;
     this.DataContext = this;
     this.close       = close;
     this.Type        = Type;
     Start();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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();
     }
 }