Beispiel #1
0
        private static string GetLegendLabel(ILLegend source, ILPanel panel)
        {
            if (panel.Scene.Find<ILLegend>().Count() == 1)
                return ILLegend.LegendTag;

            return BuildDefaultName(panel, source, ILLegend.LegendTag);
        }
Beispiel #2
0
 private void ReLegend()
 {
     Space.Children.Remove(Legend);
     Space.Children.Add(Legend = new ILLegend());
 }
Beispiel #3
0
 public ShapesPlot()
 {
     Space.Children.Add(Legend = new ILLegend());
 }
Beispiel #4
0
 public ILLegendWrapper(ILLegend source, ILPanelEditor editor, string path, string name = null, string label = null)
     : base(source, editor, path, BuildName(name, editor.Panel, source, ILLegend.LegendTag),
            String.IsNullOrEmpty(label) ? GetLegendLabel(source, editor.Panel) : label)
 {
     this.source = source;
 }