Exemplo n.º 1
0
 public EditorWindow(object objectToEdit, WpfEditorSettings settings, IWpfEditor editor)
 {
     _objectToEdit = objectToEdit;
     _editor       = editor;
     InitializeComponent();
     ApplySettings(settings);
     UpdateUI();
 }
Exemplo n.º 2
0
 public void ApplySettings(WpfEditorSettings settings)
 {
     _settings = settings;
     Width     = _settings.Width;
     Height    = _settings.Height;
     Title     = _settings.Title;
     Margin    = _settings.Margin;
 }
Exemplo n.º 3
0
        public EditorWindow(object objectToEdit, WpfEditorSettings settings)
        {
            _objectToEdit = objectToEdit;
            InitializeComponent();
            ApplySettings(settings);
            var editor = new WpfEditor(settings);

            editor.SaveClicked += Editor_SaveClicked;
            _editor             = editor;
            UpdateUI();
        }
Exemplo n.º 4
0
 public ControlResolver(IMemberResolver memberResolver, WpfEditorSettings settings)
 {
     _memberResolver = memberResolver;
     _settings       = settings;
 }
Exemplo n.º 5
0
 public WpfEditor(WpfEditorSettings settings, IMemberResolver memberResolver)
 {
     _memberResolver  = memberResolver;
     _controlResolver = new ControlResolver(_memberResolver, settings);
     _settings        = settings;
 }