Example #1
0
 // grid layout management
 public void SaveGridLayout()
 {
     if (_dataType != null)
     {
         _target.SaveLayout(LayoutDescriptor.makeDirectForType(_dataType));
     }
 }
Example #2
0
        public List <LayoutDescriptor> GetLayoutsByTypeAndPrefix(Type type, string prefix)
        {
            if (Layouts == null)
            {
                return(null);
            }

            List <LayoutDescriptor> ret = new List <LayoutDescriptor>()
            {
                LayoutDescriptor.makeDirectDefaultForType(type), LayoutDescriptor.makeDirectForType(type)
            };

            var tmp = Layouts.Groups.FindAll(g => g.prefix == prefix && g.type == type.Name).FirstOrDefault();

            if (tmp != null)
            {
                ret.AddRange(tmp.Layouts.Select(e => LayoutDescriptor.makeCustomForType(type.Name, tmp.path, e)));
            }

            return(ret);
        }
Example #3
0
 public void LoadGridLayout()
 {
     LoadGridLayout(LayoutDescriptor.makeDirectForType(_dataType));
 }