Пример #1
0
 public EditorWindow(object objectToEdit, WpfEditorSettings settings, IWpfEditor editor)
 {
     _objectToEdit = objectToEdit;
     _editor       = editor;
     InitializeComponent();
     ApplySettings(settings);
     UpdateUI();
 }
Пример #2
0
 public void ApplySettings(WpfEditorSettings settings)
 {
     _settings = settings;
     Width     = _settings.Width;
     Height    = _settings.Height;
     Title     = _settings.Title;
     Margin    = _settings.Margin;
 }
Пример #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();
        }
Пример #4
0
 public ControlResolver(IMemberResolver memberResolver, WpfEditorSettings settings)
 {
     _memberResolver = memberResolver;
     _settings       = settings;
 }
Пример #5
0
 public WpfEditor(WpfEditorSettings settings, IMemberResolver memberResolver)
 {
     _memberResolver  = memberResolver;
     _controlResolver = new ControlResolver(_memberResolver, settings);
     _settings        = settings;
 }