예제 #1
0
 public AssemblyFileViewModel(string compiledFileName, DisassemblyManager disassembler)
 {
     m_AreAnyChangesUnsaved = false;
     m_LoggerVm             = new LoggerViewModel();
     m_FileErrors           = new ObservableCollection <AssemblyException>();
     m_UnderlyingFile       = disassembler.DiassembleCompiledFile(compiledFileName, m_LoggerVm.Logger);
 }
예제 #2
0
 public AssemblyFileViewModel(AssemblyFile file)
 {
     m_AreAnyChangesUnsaved = false;
     m_UnderlyingFile       = file;
     m_LoggerVm             = new LoggerViewModel();
     m_FileErrors           = new ObservableCollection <AssemblyException>();
 }
        public DebugWindowViewModel(int viewId, MessageManager msgMgr) :
            base(msgMgr)
        {
            m_ViewId         = viewId;
            m_LoggerVm       = new LoggerViewModel();
            m_FilesToExecute = new ObservableCollection <DisassembledFileViewModel>();
            m_FileProc       = new FileReaderFactory();
            m_LoadFileCmd    = new RelayCommand <string>((param) => LoadFile(param), true);

            m_HandleAssembledFileCmd = new RelayCommand <string>((compiledFileName) => HandleFileAssembledMsg(compiledFileName), true);
        }