Пример #1
0
 public Form_SceneMapping(Bridge br)
 {
     InitializeComponent();
     _bridge     = br;
     _smv        = new SceneMappingView(br);
     DataContext = _smv;
 }
Пример #2
0
        public Form_SceneMapping()
        {
            InitializeComponent();
            CommandResult lresult = BridgeStore.SelectedBridge.GetListObjects <Light>();

            if (!lresult.Success)
            {
                return;
            }
            CommandResult sresult = BridgeStore.SelectedBridge.GetListObjects <Scene>();

            if (!sresult.Success)
            {
                return;
            }
            _smv = new SceneMappingView((Dictionary <string, Scene>)sresult.resultobject,
                                        (Dictionary <string, Light>)lresult.resultobject);
            DataContext = _smv;
        }