public IndexedDataTable(string name, string description) : base(name, description) { VisualProperties = new DataTableVisualProperties(name); rows = new NamedItemCollection <IndexedDataRow <T> >(); this.RegisterRowsEvents(); }
private void AfterDeserialization() { if (VisualProperties == null) { VisualProperties = new ScatterPlotVisualProperties(name); } if (string.IsNullOrEmpty(VisualProperties.XAxisTitle) && !string.IsNullOrEmpty(xAxisName)) { VisualProperties.XAxisTitle = xAxisName; } if (string.IsNullOrEmpty(VisualProperties.YAxisTitle) && !string.IsNullOrEmpty(yAxisName)) { VisualProperties.YAxisTitle = yAxisName; } if (rows == null) { Rows = new NamedItemCollection <ScatterPlotDataRow>(); } if ((Rows.Count == 0) && (points != null)) { Rows.Add(new ScatterPlotDataRow(name, null, points.Select(p => new Point2D <double>(p.X, p.Y)))); } if (string.IsNullOrEmpty(this.name)) { this.name = ItemName; } if (string.IsNullOrEmpty(this.description)) { this.description = ItemDescription; } }
public IndexedDataTable() : base() { VisualProperties = new DataTableVisualProperties(); rows = new NamedItemCollection <IndexedDataRow <T> >(); this.RegisterRowsEvents(); }
public DataTable() : base() { Name = "DataTable"; VisualProperties = new DataTableVisualProperties(); Rows = new NamedItemCollection <DataRow>(); }
protected IndexedDataTable(IndexedDataTable <T> original, Cloner cloner) : base(original, cloner) { VisualProperties = (DataTableVisualProperties)cloner.Clone(original.visualProperties); rows = cloner.Clone(original.rows); this.RegisterRowsEvents(); }
public ScatterPlot() : base() { this.Name = ItemName; this.Description = ItemDescription; VisualProperties = new ScatterPlotVisualProperties(); Rows = new NamedItemCollection <ScatterPlotDataRow>(); }
/// <summary> /// Loads the [commands] list from the specified json file. /// </summary> /// <param name="path">Path to a json file containing serialized iTachCmd instances.</param> public static void Load(string path) { if (File.Exists(path)) { string json = File.ReadAllText(path); commands = JsonConvert.DeserializeObject <NamedItemCollection <BroadLinkCmd> >(json); } }
public ScatterPlot(string name, string description, ScatterPlotVisualProperties visualProperties) : base(name, description) { VisualProperties = visualProperties; Rows = new NamedItemCollection <ScatterPlotDataRow>(); }
public PreprocessingDataTable() : base() { SelectedRows = new NamedItemCollection <DataRow>(); }
protected override void OnStart() { SpellDelay = SpellDelay < 0 ? 0 : SpellDelay; WindowDelay = WindowDelay < 500 ? 500 : WindowDelay; SkipWindowDelay = SkipWindowDelay < 200 ? 200 : SkipWindowDelay; if (Distance > 3.5f) { TreeRoot.Stop("Using a distance of greater than 3.5 is not supported, change the value and restart the profile."); } if (HotSpots != null) { HotSpots.IsCyclic = Loops < 1; } // backwards compatibility if (GatherObjects == null && !string.IsNullOrWhiteSpace(GatherObject)) { GatherObjects = new List<string> { GatherObject }; } startTime = DateTime.Now; CordialSpellData = DataManager.GetItem((uint)CordialType.Cordial).BackingAction; if (Items == null) { Items = new NamedItemCollection(); #pragma warning disable 618 if (ItemNames != null) { foreach (var item in ItemNames) { Items.Add(new GatherItem { Name = item }); } } if (Collectables != null) { foreach (var collectable in Collectables) { Items.Add(collectable); } } #pragma warning restore 618 } if (string.IsNullOrWhiteSpace(Name)) { if (Items.Count > 0) { Name = Items.First().Name; } else { Name = string.Format("ZoneId [{0}], Calling Location {1}", WorldManager.ZoneId, Me.Location); } } StatusText = Name; poiCoroutine = new ActionRunCoroutine(ctx => ExecutePoiLogic()); TreeHooks.Instance.AddHook("PoiAction", poiCoroutine); ResolveGatherRotation(); }
private void AfterDeserialization() { if (VisualProperties == null) VisualProperties = new ScatterPlotVisualProperties(name); if (string.IsNullOrEmpty(VisualProperties.XAxisTitle) && !string.IsNullOrEmpty(xAxisName)) VisualProperties.XAxisTitle = xAxisName; if (string.IsNullOrEmpty(VisualProperties.YAxisTitle) && !string.IsNullOrEmpty(yAxisName)) VisualProperties.YAxisTitle = yAxisName; if (rows == null) Rows = new NamedItemCollection<ScatterPlotDataRow>(); if ((Rows.Count == 0) && (points != null)) Rows.Add(new ScatterPlotDataRow(name, null, points.Select(p => new Point2D<double>(p.X, p.Y)))); if (string.IsNullOrEmpty(this.name)) this.name = ItemName; if (string.IsNullOrEmpty(this.description)) this.description = ItemDescription; }
public GanttData(string name, string description, IEnumerable <GanttRow> rows) : base(name, description) { this.rows = new NamedItemCollection <GanttRow>(rows); categoryColors = new ObservableDictionary <string, Color>(); }
protected GanttData(GanttData original, Cloner cloner) : base(original, cloner) { rows = cloner.Clone(original.rows); categoryColors = new ObservableDictionary <string, Color>(original.categoryColors); }
public PreprocessingDataTable(string name) : base(name) { SelectedRows = new NamedItemCollection<DataRow>(); }
public DataTable() : base() { Name = "DataTable"; VisualProperties = new DataTableVisualProperties(); Rows = new NamedItemCollection<DataRow>(); }
public DataTable(string name) : base(name) { VisualProperties = new DataTableVisualProperties(name); Rows = new NamedItemCollection<DataRow>(); }
public ScatterPlot() : base() { this.Name = ItemName; this.Description = ItemDescription; VisualProperties = new ScatterPlotVisualProperties(); Rows = new NamedItemCollection<ScatterPlotDataRow>(); }
public DataTable(string name, string description) : base(name, description) { VisualProperties = new DataTableVisualProperties(name); Rows = new NamedItemCollection <DataRow>(); }
public ScatterPlot(string name, string description, ScatterPlotVisualProperties visualProperties) : base(name, description) { VisualProperties = visualProperties; Rows = new NamedItemCollection<ScatterPlotDataRow>(); }