Beispiel #1
0
        static object GetCollabInstance()
        {
            if (CollabType == null)
            {
                return(null);
            }

            return(CollabType.GetProperty("instance")
                   .GetValue(null, null));
        }
Beispiel #2
0
        static bool IsCollabEnabledForCurrentProject(object collabInstance)
        {
            MethodInfo InternalIsCollabEnabledForCurrentProject =
                CollabType.GetMethod("IsCollabEnabledForCurrentProject");

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

            return((bool)InternalIsCollabEnabledForCurrentProject.
                   Invoke(collabInstance, null));
        }
Beispiel #3
0
        static void SetCollabEnabledForCurrentProject(object collabInstance, bool enable)
        {
            MethodInfo InternalSetCollabEnabledForCurrentProject =
                CollabType.GetMethod("SetCollabEnabledForCurrentProject");

            if (InternalSetCollabEnabledForCurrentProject == null)
            {
                return;
            }

            InternalSetCollabEnabledForCurrentProject.
            Invoke(collabInstance, new object[] { enable });
        }
Beispiel #4
0
        static object GetCollabInstance()
        {
            if (CollabType == null)
            {
                return(null);
            }

            PropertyInfo InternalInstance =
                CollabType.GetProperty("instance");

            if (InternalInstance == null)
            {
                return(null);
            }

            return(InternalInstance.GetValue(null, null));
        }