public ActionResult Colors(string typeName) { Type type = Navigator.ResolveType(typeName); var model = ChartColorLogic.GetPalette(type); return(Navigator.NormalPage(this, model)); }
public ActionResult CreateNewPalette(string typeName) { Type type = Navigator.ResolveType(typeName); ChartColorLogic.CreateNewPalette(type, Request["palette"]); var model = ChartColorLogic.GetPalette(type); return(Navigator.NormalControl(this, model)); }
public ChartPaletteModel?ColorPelette(string typeName, bool allEntities) { var type = TypeLogic.TryGetType(typeName); if (type == null) { return(null); } return(ChartColorLogic.GetPalette(type, allEntities)); }
public static void Start(SchemaBuilder sb, bool googleMapsChartScripts, string[]?svgMapUrls = null) { if (sb.NotDefined(MethodInfo.GetCurrentMethod())) { QueryLogic.Start(sb); PermissionAuthLogic.RegisterTypes(typeof(ChartPermission)); ChartColorLogic.Start(sb); ChartScriptLogic.Start(sb, googleMapsChartScripts, svgMapUrls); UserChartLogic.Start(sb); } }
public ActionResult SavePalette(string typeName) { Type type = Navigator.ResolveType(typeName); var ctx = ChartColorLogic.GetPalette(type).ApplyChanges(this).Validate(); if (ctx.HasErrors()) { return(ctx.ToJsonModelState()); } var palette = ctx.Value; ChartColorLogic.SavePalette(palette); return(Navigator.NormalControl(this, palette)); }
public void SaveColorPalete(string typeName, [Required, FromBody] ChartPaletteModel paletteModel) { ChartColorLogic.SavePalette(paletteModel); }
public void DeleteColorPalete(string typeName) { ChartColorLogic.DeletePalette(TypeLogic.GetType(typeName)); }
public void NewColorPelette(string typeName, string paletteName) { ChartColorLogic.CreateNewPalette(TypeLogic.GetType(typeName), paletteName); }