Tangerine.UI.frmEditHook.SaveProperties C# (CSharp) Method

SaveProperties() private method

private SaveProperties ( ) : void
return void
        private void SaveProperties()
        {
            m_methodHook.LogMethodName = chbLogMethods.Checked;
            m_methodHook.LogParameterValues = chbLogParameters.Checked;
            m_methodHook.LogReturnValues = chbLogReturnValues.Checked;
            m_methodHook.RunCustomCode = chbRunCode.Checked;

            if (chbRunCode.Checked)
            {
                if (rbReplace.Checked)
                {
                    m_methodHook.HookType |= HookType.ReplaceMethod;
                }
                else if (rbMethodEnter.Checked)
                {
                    m_methodHook.HookType |= HookType.OnMethodEnter;
                }
                else if (rbMethodExit.Checked)
                {
                    m_methodHook.HookType |= HookType.OnMethodExit;
                }
            }
            else
            {
                m_methodHook.HookType &= ~HookType.ReplaceMethod;
                m_methodHook.HookType &= ~HookType.OnMethodEnter;
                m_methodHook.HookType &= ~HookType.OnMethodExit;
            }

            m_methodHook.Code = rtbCode.Text;
        }