Exemplo n.º 1
0
 public virtual void SetViewEditor(IViewEditor viewEditor)
 {
     if (ReferenceEquals(ViewEditor, viewEditor))
     {
         return;
     }
     if (null != ViewEditor)
     {
         ViewEditor.ViewChange            -= ViewEditorOnViewChange;
         ViewEditor.PropertyPathActivated -= ViewEditorOnPropertyPathActivate;
     }
     ViewEditor = viewEditor;
     if (null != ViewEditor)
     {
         ViewEditor.ViewChange            += ViewEditorOnViewChange;
         ViewEditor.PropertyPathActivated += ViewEditorOnPropertyPathActivate;
         ViewEditorOnViewChange(this, new EventArgs());
     }
     foreach (var subEditor in _subEditors)
     {
         subEditor.SetViewEditor(viewEditor);
     }
 }
Exemplo n.º 2
0
 public virtual void SetViewEditor(IViewEditor viewEditor)
 {
     if (ReferenceEquals(ViewEditor, viewEditor))
     {
         return;
     }
     if (null != ViewEditor)
     {
         ViewEditor.ViewChange -= ViewEditorOnViewChange;
         ViewEditor.PropertyPathActivated -= ViewEditorOnPropertyPathActivate;
     }
     ViewEditor = viewEditor;
     if (null != ViewEditor)
     {
         ViewEditor.ViewChange += ViewEditorOnViewChange;
         ViewEditor.PropertyPathActivated += ViewEditorOnPropertyPathActivate;
         ViewEditorOnViewChange(this, new EventArgs());
     }
     foreach (var subEditor in _subEditors)
     {
         subEditor.SetViewEditor(viewEditor);
     }
 }
Exemplo n.º 3
0
 public Presenter(IViewEditor editor)
 {
     this.data   = new Model();
     this.editor = editor;
 }