Beispiel #1
0
        void tvProfiles_NodeMouseClick(object sender, System.Windows.Forms.TreeNodeMouseClickEventArgs e)
        {
            if (_inactive)
            {
                if (e.Node == tvProfiles.SelectedNode && _inactive)
                {
                    _inactive = false;

                    TreeNode node = e.Node;
                    if (node != null)
                    {
                        while (node.Parent != null)
                        {
                            node = node.Parent;
                        }

                        IProfileDefinition profile = (IProfileDefinition)node.Tag;

                        if (ProfileSelected != null)
                        {
                            ProfileSelected(profile);
                        }
                    }
                }
            }
        }
Beispiel #2
0
 void ReportProfileChecked(IProfileDefinition profile, ProfileStatus status, string dump)
 {
     if (ProfileDefinitionCompleted != null)
     {
         ProfileDefinitionCompleted(profile, status, dump);
     }
 }
Beispiel #3
0
 public void ClearProfiles()
 {
     foreach (TreeNode profileNode in _profileNodes.Values)
     {
         IProfileDefinition profile = profileNode.Tag as IProfileDefinition;
         //if (profile.Status == ProfileVersionStatus.Release)
         //{
         //    SetImageKey(profileNode, PROFILEUNDEFINED);
         //}
         //else
         //{
         //    SetImageKey(profileNode, PROFILERCUNDEFINED);
         //}
         SetImageKey(profileNode, PROFILEUNDEFINED);
         profileNode.ToolTipText = string.Empty;
     }
     foreach (List <TreeNode> list in _functionalityNodes.Values)
     {
         foreach (TreeNode funcNode in list)
         {
             SetImageKey(funcNode, UNDEFINED);
             funcNode.ToolTipText = string.Empty;
         }
     }
 }
        void _td_ProfileDefinitionCompleted(IProfileDefinition profile, ProfileStatus status, string dump)
        {
            ProfileTestInfo info = new ProfileTestInfo();

            info.Status = status;
            info.Log    = dump;
            _profilesSupportInfo.Add(profile, info);
        }
 void LoadProfile(Type t)
 {
     if (t.GetInterfaces().Contains(typeof(IProfileDefinition)))
     {
         IProfileDefinition profile = (IProfileDefinition)Activator.CreateInstance(t, new object[0]);
         _onvifProfiles.Add(profile);
     }
 }
 public ProfileTestInfo GetProfileInformation(IProfileDefinition profile)
 {
     if (_profilesSupportInfo.ContainsKey(profile))
     {
         return(_profilesSupportInfo[profile]);
     }
     else
     {
         return(null);
     }
 }
Beispiel #7
0
        void _td_ProfileDefinitionCompleted(IProfileDefinition profile, ProfileStatus status, string dump)
        {
            ProfileTestInfo info = new ProfileTestInfo();

            info.Status = status;
            info.Log    = dump;
            if (_profilesSupportInfo.ContainsKey(profile))
            {
                _profilesSupportInfo[profile] = info;
            }
            else
            {
                _profilesSupportInfo.Add(profile, info);
            }
        }
Beispiel #8
0
 void tvProfiles_ProfileSelected(IProfileDefinition profile)
 {
     if (!Controller.Running)
     {
         if (profile != null)
         {
             ProfileTestInfo info = _controller.GetProfileInformation(profile);
             if (info != null)
             {
                 tcTestResults.DisplayProfileTestLog(info.Log);
             }
         }
         tvTestCases.SetInactive();
         featuresTree.SetInactive();
     }
 }
Beispiel #9
0
        void tvProfiles_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeNode node = e.Node;

            if (node != null)
            {
                while (node.Parent != null)
                {
                    node = node.Parent;
                }

                IProfileDefinition profile = (IProfileDefinition)node.Tag;

                if (ProfileSelected != null)
                {
                    ProfileSelected(profile);
                }
            }
        }
Beispiel #10
0
        void pst_ProfileDefinitionCompleted(IProfileDefinition profile, ProfileStatus status, string dump)
        {
            switch (status)
            {
            case ProfileStatus.Failed:
                _failedProfiles.Add(profile);
                break;

            case ProfileStatus.NotSupported:
                _unsupportedProfiles.Add(profile);
                break;

            case ProfileStatus.Supported:
                _supportedProfiles.Add(profile);
                break;
            }

            if (ProfileDefinitionCompleted != null)
            {
                ProfileDefinitionCompleted(profile, status, dump);
            }
        }
Beispiel #11
0
 public static bool ScopesMatched(this IProfileDefinition T, IEnumerable <string> scopes)
 {
     return(ScopesMatched(T.GetType(), scopes));
 }
Beispiel #12
0
 public static string GetProfileScope(this IProfileDefinition T)
 {
     return(GetProfileScope(T.GetType()));
 }
Beispiel #13
0
 public static ProfileVersionStatus GetProfileVersionStatus(this IProfileDefinition T)
 {
     return(GetProfileVersionStatus(T.GetType()));
 }
Beispiel #14
0
 private void ReloadDefinitions()
 {
     profileDefinition = GetShaderInfoForMaterial(m_ShaderName);
 }