| 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 03 00 00 00 9d b7 81 | .PNG........IHDR...@...@........ |
| 0020 | ec 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 09 70 48 59 73 00 00 0f 46 00 00 0f 46 | .....sBIT.....O.....pHYs...F...F |
| 0040 | 01 68 53 20 82 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 61 | .hS......tEXtSoftware.www.inksca |
| 0060 | 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 00 fc 50 4c 54 45 ff ff ff ff 00 00 b9 2e 17 b6 24 24 aa 2b | pe.org..<.....PLTE..........$$.+ |
| 0080 | 1c e3 f1 f1 55 60 80 b5 2b 20 ad 29 1f ad 24 24 c8 c8 c8 c7 c7 c7 e7 ef ef b1 2b 23 94 94 94 ae | ....U`..+..)..$$..........+#.... |
| 00a0 | 28 22 b0 24 1e 57 60 80 55 5e 7d ae 28 20 c7 cb c7 95 95 95 b0 26 22 95 95 92 b0 28 21 d0 d6 d3 | (".$.W`.U^}.(........&"....(!... |
| 00c0 | b1 28 22 b1 26 20 7c 7e 8b 94 94 94 b0 26 22 b0 26 21 b1 28 21 54 60 80 94 94 94 c6 cb c6 b0 27 | .(".&.|~.....&".&!.(!T`........' |
| 00e0 | 20 b0 26 22 b1 28 22 94 94 92 c7 cb c7 94 94 92 e6 ec ed ad b0 ad af 26 21 b0 28 22 d4 d9 d6 b0 | ..&".("................&!.(".... |
| 0100 | 27 21 94 94 92 97 97 96 9f 9f 9e b0 27 21 64 56 71 b1 27 21 db df df a0 a1 a0 94 94 92 a3 2f 2f | '!..........'!dVq.'!..........// |
| 0120 | b0 28 21 a7 a9 a7 b0 27 21 af 28 22 5b 65 82 94 94 93 ab 2a 26 57 5e 7d b0 27 21 b0 27 21 c7 ca | .(!....'!.("[e.....*&W^}.'!.'!.. |
| 0140 | c7 b0 27 21 b0 27 21 94 94 93 95 95 94 96 96 95 b0 27 21 94 94 93 97 97 96 b0 27 21 b0 27 21 55 | ..'!.'!..........'!.......'!.'!U |
| 0160 | 60 80 94 94 93 b0 27 21 c7 ca c7 e7 ec ed 04 12 45 f4 00 00 00 4f 74 52 4e 53 00 01 0b 0e 12 12 | `.....'!........E....OtRNS...... |
| 0180 | 18 18 19 1c 1c 20 20 24 26 26 2a 38 39 3f 40 48 4a 4d 4d 51 52 58 65 69 6a 6b 6c 70 70 70 77 78 | .......$&&*89?@HJMMQRXeijklpppwx |
| 01a0 | 79 88 88 8f 90 9b a0 a7 a7 ab b0 b3 bd bf c0 c0 c0 c1 c3 c5 c8 c9 c9 cb cc d0 d4 e0 e1 e2 e4 e5 | y............................... |
| 01c0 | e6 f0 f0 f0 f0 f1 f1 f6 f8 9a f8 b3 52 00 00 01 6d 49 44 41 54 58 c3 ed 94 67 53 c2 40 14 45 97 | ............R...mIDATX...gS.@.E. |
| 01e0 | 2a 90 d0 09 4d 9a 05 08 bd 2b 04 50 01 01 45 41 83 ff ff bf b8 d9 14 82 23 bb 1b c6 71 1c c9 f9 | *...M....+.P..EA........#...q... |
| 0200 | f4 f6 ce bb e7 53 f2 00 c0 e1 bc 80 38 81 21 2c fe e4 b9 44 d4 05 1f c1 37 48 10 0e ae 28 0a 93 | <using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Tango.Scripting.Editors.Popups
{
public class MethodPopup : Control
{
public List<MethodDescription> Methods { get; set; }
public int CurrentMethodIndex
{
get { return (int)GetValue(CurrentMethodIndexProperty); }
set { SetValue(CurrentMethodIndexProperty, value); }
}
public static readonly DependencyProperty CurrentMethodIndexProperty =
DependencyProperty.Register("CurrentMethodIndex", typeof(int), typeof(MethodPopup), new PropertyMetadata(1));
public MethodDescription CurrentMethod
{
get { return (MethodDescription)GetValue(CurrentMethodProperty); }
set { SetValue(CurrentMethodProperty, value); }
}
public static readonly DependencyProperty CurrentMethodProperty =
DependencyProperty.Register("CurrentMethod", typeof(MethodDescription), typeof(MethodPopup), new PropertyMetadata(null));
public void IncrementMethod()
{
if (Methods.Count > 0)
{
if (CurrentMethodIndex < Methods.Count)
{
CurrentMethodIndex++;
CurrentMethod = Methods[CurrentMethodIndex - 1];
}
else
{
CurrentMethodIndex = 1;
CurrentMethod = Methods[0];
}
}
}
public void DecrementMethod()
{
if (Methods.Count > 0)
{
if (CurrentMethodIndex > 1)
{
CurrentMethodIndex--;
CurrentMethod = Methods[CurrentMethodIndex - 1];
}
else
{
CurrentMethodIndex = Methods.Count;
CurrentMethod = Methods[Methods.Count - 1];
}
}
}
public MethodPopup()
{
Methods = new List<MethodDescription>();
}
static MethodPopup()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(MethodPopup), new FrameworkPropertyMetadata(typeof(MethodPopup)));
}
}
}