public virtual void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            string key = ResourceManagerUtility.GetGlobalResourceKey(Category);

            if (!string.IsNullOrEmpty(key))
            {
                Category = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(Text);
            if (!string.IsNullOrEmpty(key))
            {
                Text = resourceManager.GetString(key);
            }

            Icon.LoadResources(resourceManager);
            DisabledIcon.LoadResources(resourceManager);

            if (Command != null)
            {
                Command.LoadResources(resourceManager, globalizationService);
            }
        }
Exemple #2
0
        /// <summary> Loads the resources into the control's properties. </summary>
        protected override void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            if (IsDesignMode)
            {
                return;
            }
            base.LoadResources(resourceManager, globalizationService);

            string key;

            key = ResourceManagerUtility.GetGlobalResourceKey(TrueDescription);
            if (!string.IsNullOrEmpty(key))
            {
                TrueDescription = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(FalseDescription);
            if (!string.IsNullOrEmpty(key))
            {
                FalseDescription = resourceManager.GetString(key);
            }
        }
        public void LoadResources(IResourceManager resourceManager)
        {
            if (resourceManager == null)
            {
                return;
            }

            string key;

            key = ResourceManagerUtility.GetGlobalResourceKey(Url);
            if (!string.IsNullOrEmpty(key))
            {
                Url = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(AlternateText);
            if (!string.IsNullOrEmpty(key))
            {
                AlternateText = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(ToolTip);
            if (!string.IsNullOrEmpty(key))
            {
                ToolTip = resourceManager.GetString(key);
            }
        }
Exemple #4
0
        /// <summary> Loads the resources into the control's properties. </summary>
        protected virtual void LoadResources(IResourceManager resourceManager)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);

            if (ControlHelper.IsDesignMode(this))
            {
                return;
            }

            //  Dispatch simple properties
            string key = ResourceManagerUtility.GetGlobalResourceKey(Text);

            if (!string.IsNullOrEmpty(key))
            {
                Text = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(AccessKey);
            if (!string.IsNullOrEmpty(key))
            {
                AccessKey = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(ToolTip);
            if (!string.IsNullOrEmpty(key))
            {
                ToolTip = resourceManager.GetString(key);
            }

            if (Icon != null)
            {
                Icon.LoadResources(resourceManager);
            }
        }
Exemple #5
0
        /// <summary> Loads the resources into the control's properties. </summary>
        protected override void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            if (IsDesignMode)
            {
                return;
            }

            base.LoadResources(resourceManager, globalizationService);

            var key = ResourceManagerUtility.GetGlobalResourceKey(NullItemErrorMessage);

            if (!string.IsNullOrEmpty(key))
            {
                NullItemErrorMessage = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(OptionsTitle);
            if (!string.IsNullOrEmpty(key))
            {
                OptionsTitle = resourceManager.GetString(key);
            }

            if (Command != null)
            {
                Command.LoadResources(resourceManager, globalizationService);
            }

            OptionsMenuItems.LoadResources(resourceManager, globalizationService);
        }
Exemple #6
0
        public virtual void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            var key = ResourceManagerUtility.GetGlobalResourceKey(ToolTip);

            if (!string.IsNullOrEmpty(key))
            {
                ToolTip = resourceManager.GetString(key);
            }
        }
        public override void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            base.LoadResources(resourceManager, globalizationService);

            string key = ResourceManagerUtility.GetGlobalResourceKey(ColumnTitle);

            if (!string.IsNullOrEmpty(key))
            {
                ColumnTitle = resourceManager.GetString(key);
            }
        }
Exemple #8
0
        protected virtual void LoadResources(IResourceManager resourceManager)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);

            if (ControlHelper.IsDesignMode(this))
            {
                return;
            }

            string key = ResourceManagerUtility.GetGlobalResourceKey(NoticeText);

            if (!string.IsNullOrEmpty(key))
            {
                NoticeText = resourceManager.GetString(key);
            }
        }
Exemple #9
0
        /// <summary> Loads the resources into the control's properties. </summary>
        protected virtual void LoadResources(IResourceManager resourceManager)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);

            if (IsDesignMode)
            {
                return;
            }

            string key = ResourceManagerUtility.GetGlobalResourceKey(StatusText);

            if (!string.IsNullOrEmpty(key))
            {
                StatusText = resourceManager.GetString(key);
            }
        }
        /// <summary> Loads the resources into the control's properties. </summary>
        protected override void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            if (IsDesignMode)
            {
                return;
            }
            base.LoadResources(resourceManager, globalizationService);

            //  Dispatch simple properties
            string key = ResourceManagerUtility.GetGlobalResourceKey(ErrorMessage);

            if (!string.IsNullOrEmpty(key))
            {
                ErrorMessage = resourceManager.GetString(key);
            }
        }
Exemple #11
0
        public override void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            base.LoadResources(resourceManager, globalizationService);

            string key = ResourceManagerUtility.GetGlobalResourceKey(EditText);

            if (!string.IsNullOrEmpty(key))
            {
                EditText = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(SaveText);
            if (!string.IsNullOrEmpty(key))
            {
                SaveText = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(CancelText);
            if (!string.IsNullOrEmpty(key))
            {
                CancelText = resourceManager.GetString(key);
            }

            if (EditIcon != null)
            {
                EditIcon.LoadResources(resourceManager);
            }
            if (SaveIcon != null)
            {
                SaveIcon.LoadResources(resourceManager);
            }
            if (CancelIcon != null)
            {
                CancelIcon.LoadResources(resourceManager);
            }
        }
Exemple #12
0
        /// <summary> Loads the resources into the control's properties. </summary>
        protected virtual void LoadResources(IResourceManager resourceManager, IGlobalizationService globalizationService)
        {
            ArgumentUtility.CheckNotNull("resourceManager", resourceManager);
            ArgumentUtility.CheckNotNull("globalizationService", globalizationService);

            if (IsDesignMode)
            {
                return;
            }

            string key;

            key = ResourceManagerUtility.GetGlobalResourceKey(AccessKey);
            if (!string.IsNullOrEmpty(key))
            {
                AccessKey = resourceManager.GetString(key);
            }

            key = ResourceManagerUtility.GetGlobalResourceKey(ToolTip);
            if (!string.IsNullOrEmpty(key))
            {
                ToolTip = resourceManager.GetString(key);
            }
        }