public SectorSectorAliasGroupingController( TomViewModel tom, EntityGroupingManager groupingMgr, EntitiyGrouping view )
            : base(groupingMgr)
        {
            myTom = tom;

            view.GroupNameChanged += OnGroupNameChanged;
        }
Example #2
0
        public SectorSectorAliasGroupingController(TomViewModel tom, EntityGroupingManager groupingMgr, EntitiyGrouping view)
            : base(groupingMgr)
        {
            myTom = tom;

            view.GroupNameChanged += OnGroupNameChanged;
        }
Example #3
0
        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>());
            }
        }
Example #4
0
        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>() );
        }
Example #5
0
        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>());
        }
Example #6
0
 public StockCatalogController( TomViewModel tom, EntityGroupingManager groupingMgr )
     : base(groupingMgr)
 {
     myTom = tom;
 }
 public SectorCompanyGroupingController( TomViewModel tom, EntityGroupingManager groupingMgr )
     : base(groupingMgr)
 {
     myTom = tom;
 }
Example #8
0
        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>() );
            }
        }
Example #9
0
 public StockCatalogController(TomViewModel tom, EntityGroupingManager groupingMgr)
     : base(groupingMgr)
 {
     myTom = tom;
 }