private static string GetPlotCubeScaleGroupLabel(ILPlotCubeScaleGroup source, ILPanel panel) { if (panel.Scene.Find<ILPlotCubeScaleGroup>().Count() == 1) return "ScaleGroup"; return BuildDefaultName(panel, source, "ScaleGroup"); }
public ILPlotCubeScaleGroupWrapper(ILPlotCubeScaleGroup source, ILPanelEditor editor, string path, string name = null, string label = null) : base(source, editor, path, BuildName(name, editor.Panel, source, ILPlotCubeScaleGroup.DefaultTag), String.IsNullOrEmpty(label) ? GetPlotCubeScaleGroupLabel(source, editor.Panel) : label) { this.source = source; axes = new ILAxisCollectionWrapper(source.First<ILAxisCollection>(ILPlotCubeScaleGroup.AxesTag), editor, Path, ILPlotCubeScaleGroup.AxesTag); lines = new ILLinesWrapper(source.First<ILLines>(ILPlotCubeScaleGroup.LinesTag), editor, Path, ILPlotCubeScaleGroup.LinesTag); }