private void HandleFileAssembledMsg(string compiledFileName) { LoadFile(compiledFileName); var activeViewRequest = new ActiveViewRequestMessage(m_ViewId); BroadcastMessage(activeViewRequest); }
private void DisassembleAndImportFile(string fileName) { var newVm = new AssemblyFileViewModel(fileName, m_Disassembler); m_OpenViewModels.Add(newVm); ActiveFileIndex = m_OpenViewModels.Count - 1; var activeViewRequest = new ActiveViewRequestMessage(m_ViewId); BroadcastMessage(activeViewRequest); }
private void OpenFile(string fileName) { // see if we already have this file open. if (!m_OpenViewModels.Contains((vm) => vm.FilePath == fileName)) { DataModels.AssemblyFile newFile = AssemblyFileLoader.LoadFile(fileName); var newVm = new AssemblyFileViewModel(newFile); m_OpenViewModels.Add(newVm); ActiveFileIndex = m_OpenViewModels.Count - 1; } else { ActiveFileIndex = m_OpenViewModels.IndexOf(vm => vm.FileName == fileName); } var activeViewRequest = new ActiveViewRequestMessage(m_ViewId); BroadcastMessage(activeViewRequest); }