| ofs | hex dump | ascii |
|---|
| 0000 | ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 01 2c 01 2c 00 00 ff db 00 43 00 06 04 04 05 04 04 06 | ......JFIF.....,.,.....C........ |
| 0020 | 05 05 05 06 06 06 07 09 0e 09 09 08 08 09 12 0d 0d 0a 0e 15 12 16 16 15 12 14 14 17 1a 21 1c 17 | .............................!.. |
| 0040 | 18 1f 19 14 14 1d 27 1d 1f 22 23 25 25 25 16 1c 29 2c 28 24 2b 21 24 25 24 ff db 00 43 01 06 06 | ......'.."#%%%..),($+!$%$...C... |
| 0060 | 06 09 08 09 11 09 09 11 24 18 14 18 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 | ........$...$$$$$$$$$$$$$$$$$$$$ |
| 0080 | 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 ff c2 | $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.. |
| 00a0 | 00 11 08 02 a3 04 38 03 01 11 00 02 11 01 03 11 01 ff c4 00 1b 00 01 00 02 03 01 01 00 00 00 00 | ......8......................... |
| 00c0 | 00 00 00 00 00 00 00 01 02 03 04 05 06 07 ff c4 00 1b 01 01 00 02 03 01 01 00 00 00 00 00 00 00 | ................................ |
| 00e0 | 00 00 00 00 01 04 02 03 05 06 07 ff da 00 0c 03 01 00 02 10 03 10 00 00 01 fa 42 24 00 09 24 90 | ..........................B$..$. |
| 0100 | 00 00 00 00 00 80 09 2c 59 32 00 00 00 08 20 82 4b 12 08 2a 0b 12 01 05 49 24 90 0e 6e fa 7e 5b | .......,Y2......K..*....I$..n.~[ |
| 0120 | a7 e7 7b 74 fa db 75 2d 60 cb 57 5f 57 46 ec a0 92 98 e5 cc d1 7b 5f 0d dd 5b 3c fd 9c f4 89 24 | ..{t..u-`.W_WF.......{_..[<....$ |
| 0140 | 00 54 16 00 90 00 00 02 a4 16 04 90 54 92 c0 10 55 16 4c 90 0a c3 c9 73 3d 17 9e a5 d8 fa 57 7b | .T..........T...U.L....s=.....W{ |
| 0160 | c4 e6 cf 58 80 58 d4 cb 57 94 b1 c6 db 8d d3 0c f8 ec de c2 ce fe 16 72 32 10 46 bc b9 7c 2b fb | ...X.X..W..............r2.F..|+. |
| 0180 | bd 3a bb 57 b4 0d 54 01 20 12 09 24 00 00 00 02 00 05 8b a6 40 00 00 00 28 6b a3 3a 46 40 08 20 | .:.W..T....$........@...(k.:F@.. |
| 01a0 | 92 c0 10 41 04 96 00 82 a6 9e da fe 4b ad e6 36 74 d9 e9 d0 e8 6d e1 67 a5 85 c2 46 be bd fc cd | ...A........K..6t....m.g...F.... |
| 01c0 | 17 66 5d 3d f4 73 e7 a6 4b 00 08 20 16 00 90 00 00 02 0a a2 c9 92 01 04 16 24 10 40 24 92 01 53 | .f]=.s..K................$.@$..S |
| 01e0 | 53 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Xml.Serialization;
using Tango.Core.Commands;
using Tango.BL.Entities;
using Tango.SharedUI.Helpers;
using System.Collections.ObjectModel;
namespace Tango.MachineStudio.Technician.TechItems
{
/// <summary>
/// Represents a dancer controller item.
/// </summary>
/// <seealso cref="Tango.MachineStudio.Technician.TechItems.TechItem" />
[TechItem(15)]
public class DancerItem : TechItem
{
private static List<HardwareDancer> _dancerConfigurations;
/// <summary>
/// Gets or sets the winder configurations.
/// </summary>
public static List<HardwareDancer> DancerConfigurations
{
get { return _dancerConfigurations; }
set { _dancerConfigurations = value; }
}
static DancerItem()
{
DancerConfigurations = new List<HardwareDancer>();
foreach (var winderType in BL.ObservablesStaticCollections.Instance.HardwareDancerTypes)
{
DancerConfigurations.Add(new HardwareDancer() { HardwareDancerType = winderType });
}
}
private HardwareDancerType _hardwareDancerType;
/// <summary>
/// Gets or sets the type of the hardware winder.
/// </summary>
[XmlIgnore]
public HardwareDancerType HardwareDancerType
{
get { return _hardwareDancerType; }
set
{
_hardwareDancerType = value; RaisePropertyChangedAuto(); TechName = _hardwareDancerType != null ? _hardwareDancerType.Description : null; ItemGuid = value != null ? value.Guid : null;
if (_hardwareDancerType != null)
{
HardwareDancer = DancerConfigurations.SingleOrDefault(x => x.HardwareDancerType == _hardwareDancerType);
}
}
}
private HardwareDancer _hardwareDancer;
/// <summary>
/// Gets or sets the hardware winder.
/// </summary>
[XmlIgnore]
public HardwareDancer HardwareDancer
{
get { return _hardwareDancer; }
set { _hardwareDancer = value; RaisePropertyChangedAuto(); }
}
/// <summary>
/// Initializes a new instance of the <see cref="DancerItem"/> class.
/// </summary>
public DancerItem() : base()
{
Name = "Dancer";
Description = "Dancer Controller";
Image = ResourceHelper.GetImageFromResources("Images/dancer-small.png");
Color = Colors.White;
HardwareDancer = new HardwareDancer();
}
/// <summary>
/// Initializes a new instance of the <see cref="DancerItem"/> class.
/// </summary>
/// <param name="winderType">Type of the winder.</param>
public DancerItem(HardwareDancerType winderType) : this()
{
HardwareDancerType = winderType;
}
/// <summary>
/// Clones this instance.
/// </summary>
/// <returns></returns>
public override TechItem Clone()
{
DancerItem cloned = base.Clone() as DancerItem;
cloned.HardwareDancerType = HardwareDancerType;
return cloned;
}
}
}
|