blob: ab6b4c30f60bb38b1c9b5744b91cb9afa1366aca (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 20 00 00 00 20 08 06 00 00 00 73 7a 7a | .PNG........IHDR.............szz |
| 0020 | f4 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 88 00 00 00 09 70 48 59 73 00 00 00 b2 00 00 00 | .....sBIT....|.d.....pHYs....... |
| 0040 | b2 01 6b 94 68 e0 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 | ..k.h.....tEXtSoftware.www.inksc |
| 0060 | 61 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 05 fd 49 44 41 54 58 85 b5 57 59 6c 54 55 18 fe ce b9 77 | ape.org..<.....IDATX..WYlTU....w |
| 0080 | 66 ee ec 7b 4b 3b 95 ee 20 d0 86 a2 2d 2d 50 b4 40 b5 c0 60 0c 9b 0a a8 10 0d 04 97 98 98 20 6e | f..{K;......--P.@..`...........n |
| 00a0 | 2f f0 80 b8 10 13 c5 28 a8 10 1f ac 16 44 50 a4 96 b2 56 21 80 94 87 52 4a 13 a0 74 a3 05 4a db | /......(.....DP...V!...RJ..t..J. |
| 00c0 | e9 32 ed cc ed cc dc 7b 7c d0 5b 09 99 a5 ad f0 bf dd fb fd e7 fb be 7b ce c9 b9 df 21 88 50 c5 | .2.....{|.[............{....!.P. |
| 00e0 | 13 56 14 06 05 cd 02 aa d7 69 89 5e af 95 ef f4 6c a9 aa fd using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.AutoComplete.Editors;
using Tango.BL;
using Tango.BL.Entities;
namespace Tango.MachineStudio.MachineDesigner.AutoComplete
{
/// <summary>
/// Represents an auto-complete <see cref="MachineVersion">Machine Versions</see> provider.
/// </summary>
/// <seealso cref="Tango.AutoComplete.Editors.ISuggestionProvider" />
public class MachineVersionsProvider : ISuggestionProvider
{
public String Text { get; set; }
public IEnumerable GetSuggestions(string filter)
{
Text = filter;
return ObservablesStaticCollections.Instance.MachineVersions.Where(x => x.Version.ToString().StartsWith(filter, StringComparison.CurrentCultureIgnoreCase) || x.Name.StartsWith(filter, StringComparison.CurrentCultureIgnoreCase)).ToList();
}
}
}
|