private static string GetPlotCubeDataGroupLabel(ILPlotCubeDataGroup source, ILPanel panel) { if (panel.Scene.Find<ILPlotCubeDataGroup>().Count() == 1) return "DataGroup"; return BuildDefaultName(panel, source, "DataGroup"); }
public ILPlotCubeDataGroupWrapper(ILPlotCubeDataGroup source, ILPanelEditor editor, string path, string name = null, string label = null) : base(source, editor, path, BuildName(name, editor.Panel, source, ILPlotCubeScaleGroup.PlotsTag), String.IsNullOrEmpty(label) ? GetPlotCubeDataGroupLabel(source, editor.Panel) : label) { this.source = source; scaleModes = new ILScaleModesWrapper(source.ScaleModes, editor, Path); limits = new ILLimitsWrapper(source.Limits, GetSyncNode(source).Limits, editor, Path); }