예제 #1
0
 protected virtual void CloneFrom(ObjectBrowserSettings source)
 {
     m_memberOrder        = source.m_memberOrder;
     m_showMembers        = source.m_showMembers;
     m_showNonPublic      = source.m_showNonPublic;
     m_showTypeCheckBoxes = source.m_showTypeCheckBoxes;
     m_typeOrder          = source.m_typeOrder;
 }
예제 #2
0
        internal virtual void SetSettings(ObjectBrowserSettings value)
        {
            if (value != null && !SettingsObjectAcceptable(value))
            {
                throw new ArgumentException(string.Format("The object browser manager and settings objects are"
                                                          + " incompatible. The manager object type is '{0}' and the settings object type is '{1}'.",
                                                          GetType().FullName, value.GetType().FullName));
            }

            m_settings = value;
        }
예제 #3
0
        public virtual bool SettingsEqual(ISettingsObject obj)
        {
            ObjectBrowserSettings other = obj as ObjectBrowserSettings;

            if (other == null)
            {
                return(false);
            }

            return(ShowMembers == other.ShowMembers && ShowTypeCheckBoxes == other.ShowTypeCheckBoxes &&
                   ShowNonPublic == other.ShowNonPublic && TypeOrder == other.TypeOrder &&
                   MemberOrder == other.MemberOrder);
        }
예제 #4
0
 public virtual void Dispose()
 {
     ClearCache();
     m_settings = null;
 }
예제 #5
0
 protected abstract bool SettingsObjectAcceptable(ObjectBrowserSettings settings);