Exemplo n.º 1
0
        private static void Navigate(PubSubEvent <NavigateOrder> @this, string viewName, IDictionary <string, object> prms)
        {
            var order = new NavigateOrder
            {
                ViewName = viewName,
                Prms     = prms,
            };

            @this.Publish(order);
        }
Exemplo n.º 2
0
        private void Navigate(NavigateOrder order)
        {
            var isVisibleTop =
                order.ViewName != ViewNames.ROOT;

            if (isVisibleTop)
            {
                regionManager.Move(RegionNames.TopMenuRegion, typeof(TopMenuView).ToString(), order.Prms);
            }
            else
            {
                regionManager.Clear(RegionNames.TopMenuRegion);
            }

            regionManager.Clear(RegionNames.ProjectContentRegion);

            regionManager.Move(RegionNames.ContentRegion, order.ViewName, order.Prms);
        }
Exemplo n.º 3
0
 private void NavigateInProjectView(NavigateOrder order)
 {
     regionManager.Move(RegionNames.ProjectContentRegion, order.ViewName, order.Prms);
 }