Ejemplo n.º 1
0
        public Coordinator(IPairManager pairManager, IIocWrapper iocWrapper)
        {
            pairManager.VerifyPairs();
            _pairManager = pairManager;

            _session               = new Session();
            _dataBindingManager    = new DataBindingManager();
            _actionInvokerProvider = new ActionInvokerProvider();

            iocWrapper.RegisterTypes(this); // Register the ICoordinator itself and all controller and view types
            _controllerManager = new ControllerManager(iocWrapper, pairManager);
        }
Ejemplo n.º 2
0
    private void Awake()
    {
        DataBindingManager dataBindingManager = DataBindingManager.Instance;
        DeepBindManager    deepBindManager    = new DeepBindManager(dataBindingManager);

        dataBindingManager.SetSource("DataSet", s1);
        dataBindingManager.SetSource("ListData", dynamic);

        dataBindingManager.Subscribe("UISample.ToS1", ToS1);;
        dataBindingManager.Subscribe("UISample.ToS2", ToS2);
        dataBindingManager.Subscribe("UISample.Random", RandS);

        Dictionary <string, object> JsonData = new Dictionary <string, object>();

        JsonData["Name"] = "TestData";
        var data = new Dictionary <string, object>();

        JsonData["Data"] = data;
        data["Age"]      = 16;
        data["ATK"]      = 80;
        data["Love"]     = "Lucy";
        DataBindingManager.Instance.SetSource("Json", JsonData);
    }