public Form_SceneMapping(Bridge br) { InitializeComponent(); _bridge = br; _smv = new SceneMappingView(br); DataContext = _smv; }
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; }