Exemple #1
0
 public void Initialize()
 {
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.MENU_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.MENU_PANE)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.INFO_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.INFO_PANE)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.DISPLAY_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.DISPLAY_PANE)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.MESSAGE_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.MESSAGE_PANE)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.IMAGE_CONTROL),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.IMAGE_CONTROL)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.GRAB_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.GRAB_PANE)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.DRAWING_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.DRAWING_PANE)));
     _regionViewRegistry.RegisterViewWithRegion(
         UnityNameTool.ConvertRegionName(Constant.SPECLIST_PANE),
         () => _container.Resolve <IView>(UnityNameTool.ConvertViewName(Constant.SPECLIST_PANE)));
 }
Exemple #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                throw new ArgumentNullException("Parameter of converter is null.");
            }

            return(UnityNameTool.ConvertRegionName((string)value));
        }