| ofs | hex dump | ascii |
|---|
| 0000 | 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 b8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 | MZ......................@....... |
| 0020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 01 00 00 | ................................ |
| 0040 | 0e 1f ba 0e 00 b4 09 cd 21 b8 01 4c cd 21 54 68 69 73 20 70 72 6f 67 72 61 6d 20 63 61 6e 6e 6f | ........!..L.!This.program.canno |
| 0060 | 74 20 62 65 20 72 75 6e 20 69 6e 20 44 4f 53 20 6d 6f 64 65 2e 0d 0d 0a 24 00 00 00 00 00 00 00 | t.be.run.in.DOS.mode....$....... |
| 0080 | 2b 95 92 28 6f f4 fc 7b 6f f4 fc 7b 6f f4 fc 7b 48 32 91 7b 68 f4 fc 7b 48 32 87 7b 7b f4 fc 7b | +..(o..{o..{o..{H2.{h..{H2.{{..{ |
| 00a0 | 71 a6 69 7b 77 f4 fc 7b 71 a6 7f 7b ff f4 fc 7b 71 a6 78 7b 13 f4 fc 7b 71 a6 6f 7b 6c f4 fc 7b | q.i{w..{q..{...{q.x{...{q.o{l..{ |
| 00c0 | 6f f4 fd 7b 95 f5 fc 7b 71 a6 76 7b 6d f4 fc 7b 71 a6 6e 7b 6e f4 fc 7b 71 a6 68 7b 6e f4 fc 7b | o..{...{q.v{m..{q.n{n..{q.h{n..{ |
| 00e0 | 71 a6 6d 7b 6e f4 fc 7b 52 69 63 68 6f f4 fc 7b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | q.m{n..{Richo..{................ |
| 0100 | 00 00 00 00 00 00 00 00 50 45 00 00 4c 01 05 00 41 03 4b 55 00 00 00 00 00 00 00 00 e0 00 02 21 | ........PE..L...A.KU...........! |
| 0120 | 0b 01 09 00 00 ea 01 00 00 42 01 00 00 00 00 00 6e d4 00 00 00 10 00 00 00 00 02 00 00 00 00 10 | .........B......n............... |
| 0140 | 00 10 00 00 00 02 00 00 05 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 00 a0 03 00 00 04 00 00 | ................................ |
| 0160 | 0f 1f 04 00 02 00 00 00 00 00 10 00 00 10 00 00 00 00 10 00 00 10 00 00 00 00 00 00 10 00 00 00 | ................................ |
| 0180 | 60 73 02 00 bc 01 00 00 18 61 02 00 a0 00 00 00 00 f0 02 00 00 3c 00 00 00 00 00 00 00 00 00 00 | `s.......a...........<.......... |
| 01a0 | 00 00 00 00 00 00 00 00 00 30 03 00 5c 1e 00 00 00 04 02 00 1c 00 00 00 00 00 00 00 00 00 00 00 | .........0..\................... |
| 01c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e8 3c 02 00 40 00 00 00 00 00 00 00 00 00 00 00 | .................<..@........... |
| 01e0 | 00 00 02 00 74 03 00 00 90 60 02 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ....t....`..@................... |
| 0200 | 2e 74 65 78 74 00 00 00 ec e9 01 00 00 10 00 00 00 ea 01 00 00 04 00 00 00 00 00 00 00 00 00 00 | .texusing System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
using Tango.Core.Commands;
using Tango.Scripting.IDE.ProjectTypes;
using Tango.SharedUI;
namespace Tango.Scripting.IDE.Dialogs
{
public class BaseProjectDialogVM : IDEDialogViewModel
{
#region properties
public ObservableCollection<IProjectType> ProjectTypes { get; set; }
private IProjectType _selectedProjectType = null;
public IProjectType SelectedProjectType
{
get { return _selectedProjectType; }
set
{
_selectedProjectType = value;
RaisePropertyChangedAuto();
RaisePropertyChanged("LargeImage");
RaisePropertyChanged("SelectedDescription");
}
}
private BitmapSource _defaultLargeImage = ProjectType.GetImage("Images/test.png");
public BitmapSource LargeImage
{
get
{
if (SelectedProjectType != null)
return SelectedProjectType.LargeImage;
else return _defaultLargeImage;
}
}
public string SelectedDescription
{
get
{
if (SelectedProjectType != null)
return SelectedProjectType.Description;
return "";
}
}
private String _projectName = "App1";
public String ProjectName
{
get { return _projectName; }
set { _projectName = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); }
}
private String _projectLocation;
public String ProjectLocation
{
get { return _projectLocation; }
set { _projectLocation = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); }
}
public String GetFullProjectPath()
{
StringBuilder builder = new StringBuilder(ProjectLocation);
builder.AppendFormat(@"{0}\{1}", ProjectLocation, ProjectName);
return builder.ToString();
}
#endregion
#region constructor
public BaseProjectDialogVM(List<IProjectType> project_types) : base()
{
ProjectTypes = new ObservableCollection<IProjectType>();
project_types.ForEach(ProjectTypes.Add);
_selectedProjectType = ProjectTypes.FirstOrDefault();
}
#endregion
#region Override Methods
protected override bool 55 0c d1 e2 52 8b 45 08 50 e8 79 b8 00 00 83 c4 10 5d | U...E...P.M.Q.U...R.E.P.y......] |
| 0d00 | c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 55 8b ec 83 ec 0c 89 4d f4 33 c0 83 7d 10 00 0f | ................U......M.3..}... |
| 0d20 | 95 c0 89 45 f8 83 7d f8 00 75 0a 68 05 40 00 80 e8 3b ff ff ff 33 c9 75 e0 83 7d 08 00 75 10 83 | ...E..}..u.h.@...;...3.u..}..u.. |
| 0d40 | 7d 0c 00 74 0a 68 57 00 07 80 e8 21 ff ff ff 6a 02 8b 55 0c 52 8b 45 10 8b 10 8b 4d 10 8b 02 ff | }..t.hW....!...j..U.R.E....M.... |
| 0d60 | d0 89 45 fc 83 7d fc 00 75 05 e8 51 fd ff ff 8b 4d fc 51 8b 4d f4 e8 d5 fe ff ff 8b 55 0c 52 8b | <