/// <summary>
        ///   Called when an attached view's Loaded event fires.
        /// </summary>
        /// <param name = "view">The displayed view.</param>
        protected override void OnViewLoaded(object view)
        {
            base.OnViewLoaded(view);

            dockWindowManager = IoC.Get<IDockWindowManager>();
            foreach (var vm in viewModels)
                dockWindowManager.ShowDocumentWindow(vm, null);
        }
        /// <summary>
        ///   Called when an attached view's Loaded event fires.
        /// </summary>
        /// <param name = "view">The displayed view.</param>
        protected override void OnViewLoaded(object view)
        {
            base.OnViewLoaded(view);

            dockWindowManager = IoC.Get <IDockWindowManager>();
            foreach (var vm in viewModels)
            {
                dockWindowManager.ShowDocumentWindow(vm, null);
            }
        }
        public CustomersViewModel(IMenuManager menuManger, IDockWindowManager windowManager)
        {
            DisplayName = "Customers";

            //setup the menu
            menuManger.WithParent("Customer")
            .ShowItem(new ShowCustomerAction(windowManager))
            .WithScopeOf(this)
            .ShowItem(new AddCustomerAction());
        }
        public CustomersViewModel(IMenuManager menuManger, IDockWindowManager windowManager)
        {
            DisplayName = "Customers";

            //setup the menu
            menuManger.WithParent("Customer")
                .ShowItem(new ShowCustomerAction(windowManager))
                .WithScopeOf(this)
                .ShowItem(new AddCustomerAction());

        }
 public ShowCustomerAction(IDockWindowManager windowManager) : base("Show Customers")
 {
     this.windowManager = windowManager;
 }
Ejemplo n.º 6
0
 public ShowCustomerAction(IDockWindowManager windowManager) : base("Show Customers")
 {
     this.windowManager = windowManager;
 }