| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 40 00 00 00 40 08 06 00 00 00 aa 69 71 | .PNG........IHDR...@...@......iq |
| 0020 | de 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 01 c2 00 00 01 | .....sBIT....|.d.....pHYs....... |
| 0040 | c2 01 e8 3c 7d 54 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 | ...<}T....tEXtSoftware.www.inksc |
| 0060 | 61 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 09 6c 49 44 41 54 78 da ed 5b 79 70 13 65 14 47 50 bc f0 | ape.org..<....lIDATx..[yp.e.GP.. |
| 0080 | 18 04 75 f0 aa d0 26 51 54 54 f4 0f 75 d0 b4 a0 4c 1d ef b1 a2 74 48 b6 49 1b 01 69 37 65 98 f1 | ..u...&QTT..u...L....tH.I..i7e.. |
| 00a0 | d6 4d 0b b5 8c d0 24 2d a8 8c a3 28 34 49 29 8c 82 a8 68 05 c4 fb 42 b2 bb 50 50 c1 0b 3c 10 15 | .M....$-...(4I)...h...B..PP..<.. |
| 00c0 | 3a 16 b5 50 68 7d 2f dd a4 9b 6f f7 db ec 66 c3 98 56 3b f3 66 b3 d7 cb 7b bf ef dd 5f 3a a0 bb | :..Ph}/...o...f..V;.f...{..._:.. |
| 00e0 | bb 7b c0 7f 99 fa aa d0 47 fd 27 01 28 ad aa 1b e7 e6 02 5f 03 75 94 55 05 ae 94 df 73 71 0d 23 | .{......G.'.(......_.u.U....sq.# |
| 0100 | 8a b9 fa 93 fb 35 00 2e 5f b0 1c 94 ef 46 72 71 fe 45 89 eb 73 e7 9e 04 d7 b6 02 ed 77 73 c1 9a | .....5.._....Frq.E..s.......ws.. |
| 0120 | 7e 01 80 8b 0b 38 40 99 57 3c dc bc 61 78 ee e6 ea 72 e1 da ba 38 00 40 07 80 3e 06 0a c1 73 ef | ~....8@.W<..ax...r...8.@..>...s. |
| 0140 | ca ae b7 f4 79 00 7a 94 4f 28 b4 13 68 0d 50 97 ec 9a 06 f9 5f e8 f3 00 30 9c 3f 07 94 39 ac 4f | ....y.z.O(..h.P....._...0.?..9.O |
| 0160 | 61 05 1d 02 8b 98 95 70 0d 5f dd cd 7d d2 05 40 91 2d 1a 4a 76 48 f7 f7 6b 3c 83 ee d1 1e 8b 17 | a......p._..}..@.-.JvH..k<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.Synchronization.AutoComplete
{
/// <summary>
/// Represents an auto-complete machines suggestions provider.
/// </summary>
/// <seealso cref="Tango.AutoComplete.Editors.ISuggestionProvider" />
public class MachinesProvider : ISuggestionProvider
{
/// <summary>
/// Gets the suggestions.
/// </summary>
/// <param name="filter">The filter.</param>
/// <returns></returns>
public IEnumerable GetSuggestions(string filter)
{
return ObservablesEntitiesAdapter.Instance.Machines.Where(x => x.SerialNumber.StartsWith(filter, StringComparison.CurrentCultureIgnoreCase)).ToList();
}
}
}
|