示例#1
0
        public static void SetDataGridViewCellImage(DataGridViewImageCell imageCell, ValueImage valueImage)
        {
            if (!EAppRuntime.Instance.CurrentApp.ResourceManagers.ContainsKey(valueImage.ResourceManagerName))
            {
                return;
            }

            imageCell.Value = EAppRuntime.Instance.CurrentApp.ResourceManagers[valueImage.ResourceManagerName].GetImage(valueImage.ImageName);
        }
示例#2
0
        public static Image GetResourceImage(ValueImage valueImage)
        {
            if (!EAppRuntime.Instance.CurrentApp.ResourceManagers.ContainsKey(valueImage.ResourceManagerName))
            {
                return null;
            }

            return EAppRuntime.Instance.CurrentApp.ResourceManagers[valueImage.ResourceManagerName].GetImage(valueImage.ImageName);
        }