示例#1
0
 public IndexedDataTable(string name, string description)
     : base(name, description)
 {
     VisualProperties = new DataTableVisualProperties(name);
     rows             = new NamedItemCollection <IndexedDataRow <T> >();
     this.RegisterRowsEvents();
 }
示例#2
0
 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;
     }
 }
示例#3
0
 public IndexedDataTable()
     : base()
 {
     VisualProperties = new DataTableVisualProperties();
     rows             = new NamedItemCollection <IndexedDataRow <T> >();
     this.RegisterRowsEvents();
 }
示例#4
0
 public DataTable()
     : base()
 {
     Name             = "DataTable";
     VisualProperties = new DataTableVisualProperties();
     Rows             = new NamedItemCollection <DataRow>();
 }
示例#5
0
 protected IndexedDataTable(IndexedDataTable <T> original, Cloner cloner)
     : base(original, cloner)
 {
     VisualProperties = (DataTableVisualProperties)cloner.Clone(original.visualProperties);
     rows             = cloner.Clone(original.rows);
     this.RegisterRowsEvents();
 }
示例#6
0
 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);
     }
 }
示例#8
0
 public ScatterPlot(string name, string description, ScatterPlotVisualProperties visualProperties)
     : base(name, description)
 {
     VisualProperties = visualProperties;
     Rows             = new NamedItemCollection <ScatterPlotDataRow>();
 }
 public PreprocessingDataTable()
     : base()
 {
     SelectedRows = new NamedItemCollection <DataRow>();
 }
示例#10
0
		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();
		}
示例#11
0
 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;
 }
示例#12
0
 public GanttData(string name, string description, IEnumerable <GanttRow> rows) : base(name, description)
 {
     this.rows      = new NamedItemCollection <GanttRow>(rows);
     categoryColors = new ObservableDictionary <string, Color>();
 }
示例#13
0
 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>();
 }
示例#15
0
 public DataTable()
   : base() {
   Name = "DataTable";
   VisualProperties = new DataTableVisualProperties();
   Rows = new NamedItemCollection<DataRow>();
 }
示例#16
0
 public DataTable(string name)
   : base(name) {
   VisualProperties = new DataTableVisualProperties(name);
   Rows = new NamedItemCollection<DataRow>();
 }
示例#17
0
 public ScatterPlot()
   : base() {
   this.Name = ItemName;
   this.Description = ItemDescription;
   VisualProperties = new ScatterPlotVisualProperties();
   Rows = new NamedItemCollection<ScatterPlotDataRow>();
 }
示例#18
0
 public DataTable(string name, string description)
     : base(name, description)
 {
     VisualProperties = new DataTableVisualProperties(name);
     Rows             = new NamedItemCollection <DataRow>();
 }
示例#19
0
 public ScatterPlot(string name, string description, ScatterPlotVisualProperties visualProperties)
   : base(name, description) {
   VisualProperties = visualProperties;
   Rows = new NamedItemCollection<ScatterPlotDataRow>();
 }