Exemplo n.º 1
0
        public static CustomResource CreateCustomResource(int res_id, string caption, int ResColor)
        {
            CustomResource cr = new CustomResource();

            cr.ResID = res_id;
            cr.Name  = caption;
            cr.Color = ResColor;
            return(cr);
        }
Exemplo n.º 2
0
        public static List <CustomResource> GetResources()
        {
            List <CustomResource> resources = new List <CustomResource>();

            resources.Add(CustomResource.CreateCustomResource(1, "Max Fowler", Color.Yellow.ToArgb()));
            resources.Add(CustomResource.CreateCustomResource(2, "Nancy Drewmore", Color.Green.ToArgb()));
            resources.Add(CustomResource.CreateCustomResource(3, "Pak Jang", Color.LightPink.ToArgb()));
            return(resources);
        }