Beispiel #1
0
 public HexFileViewModel(IMemory memory, string path, HexFileManagerViewModel hexFileManagerViewModel)
 {
     this.hexFileManagerViewModel = hexFileManagerViewModel;
     memoryViewModel = new MemoryViewModel(memory);
     this.memory     = memory;
     this.path       = path;
     fileName        = System.IO.Path.GetFileName(path);
     isDirty         = false;
     SaveCommand     = new DelegateCommand <object>(OnSave, CanSave);
     CloseCommand    = new DelegateCommand <object>(OnClose, CanClose);
     Debug.WriteLine(string.Format("Open File: {0}", path));
 }
Beispiel #2
0
 public HexFileViewModel(IMemory memory, string path, HexFileManagerViewModel hexFileManagerViewModel)
 {
     this.hexFileManagerViewModel = hexFileManagerViewModel;
     memoryViewModel = new MemoryViewModel(memory);
     this.memory = memory;
     this.path = path;
     fileName = System.IO.Path.GetFileName(path);
     isDirty = false;
     SaveCommand = new DelegateCommand<object>(OnSave, CanSave);
     CloseCommand = new DelegateCommand<object>(OnClose, CanClose);
     Debug.WriteLine(string.Format("Open File: {0}", path));
 }
Beispiel #3
0
 public HexFileViewModel(IMemory memory, HexFileManagerViewModel hexFileManagerViewModel)
 {
     this.hexFileManagerViewModel = hexFileManagerViewModel;
     this.memory     = memory;
     memoryViewModel = new MemoryViewModel(memory);
     path            = "Noname " + DateTime.Now.ToLongTimeString() + "*";
     fileName        = "Noname " + DateTime.Now.ToLongTimeString() + "*";
     isDirty         = true;
     SaveCommand     = new DelegateCommand <object>(OnSave, CanSave);
     CloseCommand    = new DelegateCommand <object>(OnClose, CanClose);
     Debug.WriteLine(string.Format("Open File: {0}", path));
 }
Beispiel #4
0
 public HexFileViewModel(IMemory memory, HexFileManagerViewModel hexFileManagerViewModel)
 {
     this.hexFileManagerViewModel = hexFileManagerViewModel;
     this.memory = memory;
     memoryViewModel = new MemoryViewModel(memory);
     path = "Noname " + DateTime.Now.ToLongTimeString() + "*";
     fileName = "Noname " + DateTime.Now.ToLongTimeString() + "*";
     isDirty = true;
     SaveCommand = new DelegateCommand<object>(OnSave, CanSave);
     CloseCommand = new DelegateCommand<object>(OnClose, CanClose);
     Debug.WriteLine(string.Format("Open File: {0}", path));
 }