public SectorSectorAliasGroupingController( TomViewModel tom, EntityGroupingManager groupingMgr, EntitiyGrouping view ) : base(groupingMgr) { myTom = tom; view.GroupNameChanged += OnGroupNameChanged; }
public SectorSectorAliasGroupingController(TomViewModel tom, EntityGroupingManager groupingMgr, EntitiyGrouping view) : base(groupingMgr) { myTom = tom; view.GroupNameChanged += OnGroupNameChanged; }
private void Window_Loaded(object sender, RoutedEventArgs e) { var ioc = new IoCContainer(); ioc.SetupDefaults(); var container = ioc.Container; myTomViewModel = new TomViewModel(myTom); container.RegisterInstance <TomViewModel>(myTomViewModel); myStocks.DataContext = myTom; myStocks.ItemsSource = myTom.TradedStocks.ToList(); myStocks.Items.SortDescriptions.Add(new SortDescription("Company.Name", ListSortDirection.Ascending)); myStocks.AddHandler(ListBoxItem.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(myStocks_MouseLeftButtonDown)); myStocks.AddHandler(ListBoxItem.PreviewMouseMoveEvent, new MouseEventHandler(myStocks_MouseMove)); myCatalogs.DataContext = myTomViewModel; myCatalogs.ItemsSource = myTomViewModel.StockCatalogs; using (var child = container.CreateChildContainer()) { child.RegisterInstance <EntitiyGrouping>(myCatalogs); myCatalogs.Initialize(child.Resolve <StockCatalogController>()); } }
private void Window_Loaded( object sender, RoutedEventArgs e ) { var ioc = new IoCContainer(); ioc.SetupDefaults(); var container = ioc.Container; myTomViewModel = new TomViewModel( myTom ); container.RegisterInstance<TomViewModel>( myTomViewModel ); mySectorsAliasesTree.DataContext = myTomViewModel; mySectorsAliasesTree.ItemsSource = myTomViewModel.Sectors; using ( var child = container.CreateChildContainer() ) { child.RegisterInstance<EntitiyGrouping>( mySectorsAliasesTree ); mySectorsAliasesTree.Initialize( child.Resolve<SectorSectorAliasGroupingController>() ); } mySectorsCompaniesTree.DataContext = myTomViewModel; mySectorsCompaniesTree.ItemsSource = myTomViewModel.Sectors; mySectorsCompaniesTree.Initialize( container.Resolve<SectorCompanyGroupingController>() ); }
private void Window_Loaded(object sender, RoutedEventArgs e) { var ioc = new IoCContainer(); ioc.SetupDefaults(); var container = ioc.Container; myTomViewModel = new TomViewModel(myTom); container.RegisterInstance <TomViewModel>(myTomViewModel); mySectorsAliasesTree.DataContext = myTomViewModel; mySectorsAliasesTree.ItemsSource = myTomViewModel.Sectors; using (var child = container.CreateChildContainer()) { child.RegisterInstance <EntitiyGrouping>(mySectorsAliasesTree); mySectorsAliasesTree.Initialize(child.Resolve <SectorSectorAliasGroupingController>()); } mySectorsCompaniesTree.DataContext = myTomViewModel; mySectorsCompaniesTree.ItemsSource = myTomViewModel.Sectors; mySectorsCompaniesTree.Initialize(container.Resolve <SectorCompanyGroupingController>()); }
public StockCatalogController( TomViewModel tom, EntityGroupingManager groupingMgr ) : base(groupingMgr) { myTom = tom; }
public SectorCompanyGroupingController( TomViewModel tom, EntityGroupingManager groupingMgr ) : base(groupingMgr) { myTom = tom; }
private void Window_Loaded( object sender, RoutedEventArgs e ) { var ioc = new IoCContainer(); ioc.SetupDefaults(); var container = ioc.Container; myTomViewModel = new TomViewModel( myTom ); container.RegisterInstance<TomViewModel>( myTomViewModel ); myStocks.DataContext = myTom; myStocks.ItemsSource = myTom.TradedStocks.ToList(); myStocks.Items.SortDescriptions.Add( new SortDescription( "Company.Name", ListSortDirection.Ascending ) ); myStocks.AddHandler( ListBoxItem.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler( myStocks_MouseLeftButtonDown ) ); myStocks.AddHandler( ListBoxItem.PreviewMouseMoveEvent, new MouseEventHandler( myStocks_MouseMove ) ); myCatalogs.DataContext = myTomViewModel; myCatalogs.ItemsSource = myTomViewModel.StockCatalogs; using ( var child = container.CreateChildContainer() ) { child.RegisterInstance<EntitiyGrouping>( myCatalogs ); myCatalogs.Initialize( child.Resolve<StockCatalogController>() ); } }
public StockCatalogController(TomViewModel tom, EntityGroupingManager groupingMgr) : base(groupingMgr) { myTom = tom; }