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)); }
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)); }
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)); }
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)); }
public HexFileManagerView(HexFileManagerViewModel hexFileManagerViewModel) { InitializeComponent(); DataContext = hexFileManagerViewModel; }