示例#1
0
        void SetupAsm()
        {
            m_text.Text         = "";
            m_decoratedFunction = null;

            AsmFunction function = SearchFunction(m_window.ActiveAsm.Functions, m_window.CurrentLine);

            if (function != null)
            {
                SetupFunction(function);
            }
        }
示例#2
0
        void AddFunctionHeader(AsmFunction function)
        {
            m_decoratedFunction = new AsmFunctionDecorator()
            {
                Function = function,
                Run      = new Run(function.Name)
                {
                    Foreground = FunctionForeground
                },
                Blocks = new List <AsmBlockDecorator>()
            };

            m_text.Inlines.Add(m_decoratedFunction.Run);
            m_text.Inlines.Add(new Run(Environment.NewLine));
        }