Example #1
0
        private void OnNav(string Destination)
        {
            switch (Destination)
            {
            case "itemschartparam":
                ItemChartViewModel = ContainerHelper.Container.Resolve <ItemChartViewModel>();
                CurrentViewModel   = ItemChartViewModel;
                break;

            case "PurchaseChartParam":
                PurchaseChartViewModel = ContainerHelper.Container.Resolve <PurchaseChartViewModel>();
                CurrentViewModel       = PurchaseChartViewModel;
                break;

            case "saleschartparam":
                SalesChartViewModel = ContainerHelper.Container.Resolve <SalesChartViewModel>();
                CurrentViewModel    = SalesChartViewModel;
                break;

            case "accountchartparam":
                AccountChartViewModel = ContainerHelper.Container.Resolve <AccountChartViewModel>();
                CurrentViewModel      = AccountChartViewModel;
                break;

            case "ItemSalesChartParam":
                ItemSalesChartViewModel = ContainerHelper.Container.Resolve <ItemSalesChartViewModel>();
                CurrentViewModel        = ItemSalesChartViewModel;
                break;

            case "InventoryPurchaseChartParam":
                //InventoryPurchaseChartViewModel = ContainerHelper.Container.Resolve<InventoryPurchaseChartViewModel>();
                //CurrentViewModel = InventoryPurchaseChartViewModel;
                break;

            case "IncomeChartParam":
                IncomeChartViewModel = ContainerHelper.Container.Resolve <IncomeChartViewModel>();
                CurrentViewModel     = IncomeChartViewModel;
                break;
            }
        }
Example #2
0
 public PurchaseChartControl()
 {
     vm          = ContainerHelper.Container.Resolve <PurchaseChartViewModel>();
     DataContext = vm;
     InitializeComponent();
 }