private void CodeTraceEvent(CodeTraceInfo codeTraceInfo)
        {
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                CodeTraceResult result = this.Results.FirstOrDefault(results => results.Address == codeTraceInfo.Instruction.Address);

                // Insert or increment
                if (result != null)
                {
                    result.Count++;
                }
                else
                {
                    this.Results.Add(new CodeTraceResult(codeTraceInfo));
                }
            }));
        }
        /// <summary>
        /// Adds the given code trace result to the project explorer.
        /// </summary>
        /// <param name="codeTraceResult">The code trace result to add to the project explorer.</param>
        private void AddCodeTraceResult(CodeTraceResult codeTraceResult)
        {
            InstructionItem instructionItem = new InstructionItem(codeTraceResult.Address, "", "nop", new Byte[] { 0x90 });

            ProjectExplorerViewModel.GetInstance().AddProjectItems(instructionItem);
        }