public Form_GroupView(Bridge br) { InitializeComponent(); _br = br; _gvv = new GroupViewView(br); DataContext = _gvv; }
public Form_GroupView() { InitializeComponent(); CommandResult comlgt = BridgeStore.SelectedBridge.GetListObjects <Light>(); if (!comlgt.Success) { return; } CommandResult comgrp = BridgeStore.SelectedBridge.GetListObjects <Group>(); if (!comgrp.Success) { return; } _gvv = new GroupViewView((Dictionary <string, Group>)comgrp.resultobject, (Dictionary <string, Light>)comlgt.resultobject); DataContext = _gvv; }