public OrdersUserControl(HomeBugaltery homeBugaltery) { InitializeComponent(); this.homeBugaltery = homeBugaltery; ListBoxOrders.ItemsSource = ordersViews = new ObservableCollection <OrdersView>(); fuco = new FiltersUserControl(homeBugaltery); GridFilters.Children.Add(fuco); }
public BalanceUserControl(HomeAccounting ha) { InitializeComponent(); this.ha = ha; fuc = new FiltersUserControl(ha); GridFilters.Children.Add(fuc); ha.FiltersUpdated += UpdateListBoxBalance; }