Esempio n. 1
0
        private void LoadProperties()
        {
            Text += m_methodHook.ToShortString();

            lblMethod.Text = m_methodHook.ToLongString();

            chbLogMethods.Checked      = m_methodHook.LogMethodName;
            chbLogParameters.Checked   = m_methodHook.LogParameterValues;
            chbLogReturnValues.Checked = m_methodHook.LogReturnValues;
            chbRunCode.Checked         = m_methodHook.RunCustomCode;

            bool replace = ((m_methodHook.HookType & HookType.ReplaceMethod) == HookType.ReplaceMethod);

            rbReplace.Checked = replace;

            bool addBegin = ((m_methodHook.HookType & HookType.OnMethodEnter) == HookType.OnMethodEnter);

            rbMethodEnter.Checked = addBegin;

            bool addEnd = ((m_methodHook.HookType & HookType.OnMethodExit) == HookType.OnMethodExit);

            rbMethodExit.Checked = addEnd;

            rtbCode.Text = m_methodHook.Code;
        }