Exemplo n.º 1
0
        private void GoProxy()
        {
            var inst = root.AutoCreateProxy <ThemeService>();

            root.BindTwoWay(inst, JsonChangeTransferCondition.Instance);
            Proxy.DataContext = inst;
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            var builder = new SavableConfiurationBuilder();

            builder.AddJsonFile("app.json", true, true);
            root        = builder.Build();
            DataContext = ProxyHelper.Default.EnsureCreateProxWithAttribute <ThemeService>(root);
            root.BindTwoWay(DataContext, JsonChangeTransferCondition.Instance);
        }