Exemplo n.º 1
0
        private void SetDataContext(ViewModels.Config.ConfigViewModel config)
        {
            _Config = config;

            _TextEditorPage = new TextEditorPage(_Config.TextEditor);
            _UpdaterPage    = new UpdaterPage(_Config.Updater);

            DataContext = this;
        }
Exemplo n.º 2
0
 public EditorView(ViewModels.Config.ConfigViewModel config)
 {
     InitializeComponent();
     SetDataContext(config);
 }
Exemplo n.º 3
0
        private void SetDataContext(ViewModels.Config.ConfigViewModel config)
        {
            _Config = config;

            _TextEditorPage = new TextEditorPage(_Config.TextEditor);
            _UpdaterPage = new UpdaterPage(_Config.Updater);
            _BackupPage = new BackupPage(_Config.Backup);

            DataContext = this;
        }