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); } } } } }
void ReportProfileChecked(IProfileDefinition profile, ProfileStatus status, string dump) { if (ProfileDefinitionCompleted != null) { ProfileDefinitionCompleted(profile, status, dump); } }
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); } }
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); } }
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(); } }
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); } } }
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); } }
public static bool ScopesMatched(this IProfileDefinition T, IEnumerable <string> scopes) { return(ScopesMatched(T.GetType(), scopes)); }
public static string GetProfileScope(this IProfileDefinition T) { return(GetProfileScope(T.GetType())); }
public static ProfileVersionStatus GetProfileVersionStatus(this IProfileDefinition T) { return(GetProfileVersionStatus(T.GetType())); }
private void ReloadDefinitions() { profileDefinition = GetShaderInfoForMaterial(m_ShaderName); }