private void FileOpenInvoked(object obj) { string fileName = myShell.AskUserForFileName(true); if (string.IsNullOrEmpty(fileName)) { return; } myModel.FileName = fileName; Memory memory = HexReader.ReadHexFile(fileName); myModel.Document = memory.Instructions; }