content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class CBTTaskSailorDismountBoat : IBehTreeTask { [Ordinal(1)] [RED("riderData")] public CHandle<CAIStorageRiderData> RiderData { get; set;} public CBTTaskSailorDismountBoat(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ } public static new CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new CBTTaskSailorDismountBoat(cr2w, parent, name); public override void Read(BinaryReader file, uint size) => base.Read(file, size); public override void Write(BinaryWriter file) => base.Write(file); } }
32.4
137
0.740741
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/CBTTaskSailorDismountBoat.cs
786
C#
using System; using System.Collections.Generic; using System.Reflection; using Cooke.GraphQL.Annotations; using Cooke.GraphQL.Introspection; using GraphQLParser.AST; using Newtonsoft.Json.Linq; namespace Cooke.GraphQL.Types { public class EnumValue { public EnumValue(string value) { Value = value; } public string Value { get; } } class EnumType : ScalarBaseType { private readonly Type _enumType; public EnumType(IEnumerable<EnumValue> enumValues, Type enumType) { _enumType = enumType; EnumValues = enumValues; var typeNameAttribute = _enumType.GetTypeInfo().GetCustomAttribute<TypeName>(); Name = typeNameAttribute?.Name ?? _enumType.Name; } public IEnumerable<EnumValue> EnumValues { get; } public override object CoerceInputLiteralValue(GraphQLValue value) { if (value == null) { return null; } if (value.Kind != ASTNodeKind.EnumValue) { throw new TypeCoercionException( $"Input value of type {value.Kind} could not be coerced to int"); } var scalarValue = (GraphQLScalarValue) value; return Enum.Parse(_enumType, scalarValue.Value, true); } public override object CoerceInputVariableValue(JToken value) { if (value == null) { return null; } if (value.Type != JTokenType.String) { throw new TypeCoercionException( $"Input variable value of type {value.Type} could not be coerced to an enum value."); } try { return Enum.Parse(_enumType, value.Value<string>(), true); } catch (Exception) { throw new TypeCoercionException($"Input variable value could not be coerced to a defined enum value."); } } public override string Name { get; } public override __TypeKind Kind => __TypeKind.Enum; public override JValue CoerceResultValue(object resolvedValue) { // TODO add support for custom/non upper enum values return new JValue(resolvedValue.ToString().ToUpperInvariant()); } } }
28.348837
119
0.566858
[ "MIT" ]
Cooke/graphql-plain-dotnet
src/Cooke.GraphQL/Types/EnumType.cs
2,438
C#
using System; using System.IO; using System.Reflection; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.OpenApi.Models; namespace AspNetCore.Jwt.Sample.Config { public static class SwaggerConfig { public static void AddSwaggerConfiguration(this IServiceCollection services) { services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "NetDevPack Identity Sample API", Description = "Developed by Eduardo Pires - Owner @ desenvolvedor.io", Contact = new OpenApiContact { Name = "Eduardo Pires", Email = "contato@eduardopires.net.br" }, License = new OpenApiLicense { Name = "MIT", Url = new Uri("https://opensource.org/licenses/MIT") } }); c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme { Description = "Input the JWT like: Bearer {your token}", Name = "Authorization", Scheme = "Bearer", BearerFormat = "JWT", In = ParameterLocation.Header, Type = SecuritySchemeType.ApiKey }); c.AddSecurityRequirement(new OpenApiSecurityRequirement { { new OpenApiSecurityScheme { Reference = new OpenApiReference { Type = ReferenceType.SecurityScheme, Id = "Bearer" } }, new string[] {} } }); }); } public static void UseSwaggerConfiguration(this IApplicationBuilder app) { app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "v1"); }); } } }
36.633333
120
0.466788
[ "MIT" ]
NetDevPack/NetDevPack.Identity
src/Samples/AspNetCore.Jwt.Sample/Config/SwaggerConfig.cs
2,200
C#
using System; using System.Linq; namespace DXVisualTestFixer.UI.Common { static class InitialsExtractor { public static string Extract(string fullName) { if(fullName == "XpfDutyService") return "XD"; var initials = fullName .Replace(" ", string.Empty) .Split(new[] {'.'}, StringSplitOptions.RemoveEmptyEntries) .Where(s => !string.IsNullOrWhiteSpace(s)) .Select(s => s.First().ToString().ToUpper()); return string.Concat(initials); } } }
26.333333
62
0.685654
[ "MIT" ]
maksimLebedevDevEx/DXVisualTestFixer
DXVisualTestFixer.UI/Common/InitialsExtractor.cs
474
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace BankingApp.Migrations { public partial class foreign_key_table : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { } } }
18.777778
71
0.674556
[ "MIT" ]
pachecoder/banking-app
BankingApp/Migrations/20211116220548_foreign_key_table.cs
340
C#
namespace CheatSheetViewerApp.Services { public class SheetSettings { public bool FontSizeLock { get; set; } public int BaseFontSize { get; set; } = 12; } }
23.125
51
0.632432
[ "MIT" ]
emilborowiec/cheatsheetviewer
CheatSheetViewer/CheatSheetViewer/Services/SheetSettings.cs
187
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Shared.Collections; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Extensions { internal static partial class SyntaxNodeExtensions { public static bool IsParentKind(this SyntaxNode node, SyntaxKind kind) { return node != null && CodeAnalysis.CSharpExtensions.IsKind(node.Parent, kind); } public static bool IsKind(this SyntaxNode node, SyntaxKind kind1, SyntaxKind kind2) { if (node == null) { return false; } var csharpKind = node.Kind(); return csharpKind == kind1 || csharpKind == kind2; } public static bool IsKind(this SyntaxNode node, SyntaxKind kind1, SyntaxKind kind2, SyntaxKind kind3) { if (node == null) { return false; } var csharpKind = node.Kind(); return csharpKind == kind1 || csharpKind == kind2 || csharpKind == kind3; } public static bool IsKind(this SyntaxNode node, SyntaxKind kind1, SyntaxKind kind2, SyntaxKind kind3, SyntaxKind kind4) { if (node == null) { return false; } var csharpKind = node.Kind(); return csharpKind == kind1 || csharpKind == kind2 || csharpKind == kind3 || csharpKind == kind4; } public static bool IsKind(this SyntaxNode node, SyntaxKind kind1, SyntaxKind kind2, SyntaxKind kind3, SyntaxKind kind4, SyntaxKind kind5) { if (node == null) { return false; } var csharpKind = node.Kind(); return csharpKind == kind1 || csharpKind == kind2 || csharpKind == kind3 || csharpKind == kind4 || csharpKind == kind5; } /// <summary> /// Returns the list of using directives that affect <paramref name="node"/>. The list will be returned in /// top down order. /// </summary> public static IEnumerable<UsingDirectiveSyntax> GetEnclosingUsingDirectives(this SyntaxNode node) { return node.GetAncestorOrThis<CompilationUnitSyntax>().Usings .Concat(node.GetAncestorsOrThis<NamespaceDeclarationSyntax>() .Reverse() .SelectMany(n => n.Usings)); } public static bool IsUnsafeContext(this SyntaxNode node) { if (node.GetAncestor<UnsafeStatementSyntax>() != null) { return true; } return node.GetAncestors<MemberDeclarationSyntax>().Any( m => m.GetModifiers().Any(SyntaxKind.UnsafeKeyword)); } public static bool IsInStaticContext(this SyntaxNode node) { // this/base calls are always static. if (node.FirstAncestorOrSelf<ConstructorInitializerSyntax>() != null) { return true; } var memberDeclaration = node.FirstAncestorOrSelf<MemberDeclarationSyntax>(); if (memberDeclaration == null) { return false; } switch (memberDeclaration.Kind()) { case SyntaxKind.MethodDeclaration: case SyntaxKind.ConstructorDeclaration: case SyntaxKind.EventDeclaration: case SyntaxKind.IndexerDeclaration: return memberDeclaration.GetModifiers().Any(SyntaxKind.StaticKeyword); case SyntaxKind.PropertyDeclaration: return memberDeclaration.GetModifiers().Any(SyntaxKind.StaticKeyword) || node.IsFoundUnder((PropertyDeclarationSyntax p) => p.Initializer); case SyntaxKind.FieldDeclaration: case SyntaxKind.EventFieldDeclaration: // Inside a field one can only access static members of a type (unless it's top-level). return !memberDeclaration.Parent.IsKind(SyntaxKind.CompilationUnit); case SyntaxKind.DestructorDeclaration: return false; } // Global statements are not a static context. if (node.FirstAncestorOrSelf<GlobalStatementSyntax>() != null) { return false; } // any other location is considered static return true; } public static NamespaceDeclarationSyntax GetInnermostNamespaceDeclarationWithUsings(this SyntaxNode contextNode) { var usingDirectiveAncestor = contextNode.GetAncestor<UsingDirectiveSyntax>(); if (usingDirectiveAncestor == null) { return contextNode.GetAncestorsOrThis<NamespaceDeclarationSyntax>().FirstOrDefault(n => n.Usings.Count > 0); } else { // We are inside a using directive. In this case, we should find and return the first 'parent' namespace with usings. var containingNamespace = usingDirectiveAncestor.GetAncestor<NamespaceDeclarationSyntax>(); if (containingNamespace == null) { // We are inside a top level using directive (i.e. one that's directly in the compilation unit). return null; } else { return containingNamespace.GetAncestors<NamespaceDeclarationSyntax>().FirstOrDefault(n => n.Usings.Count > 0); } } } // Matches the following: // // (whitespace* newline)+ private static readonly Matcher<SyntaxTrivia> s_oneOrMoreBlankLines; // Matches the following: // // (whitespace* (single-comment|multi-comment) whitespace* newline)+ OneOrMoreBlankLines private static readonly Matcher<SyntaxTrivia> s_bannerMatcher; // Used to match the following: // // <start-of-file> (whitespace* (single-comment|multi-comment) whitespace* newline)+ blankLine* private static readonly Matcher<SyntaxTrivia> s_fileBannerMatcher; static SyntaxNodeExtensions() { var whitespace = Matcher.Repeat(Match(SyntaxKind.WhitespaceTrivia, "\\b")); var endOfLine = Match(SyntaxKind.EndOfLineTrivia, "\\n"); var singleBlankLine = Matcher.Sequence(whitespace, endOfLine); var shebangComment = Match(SyntaxKind.ShebangDirectiveTrivia, "#!"); var singleLineComment = Match(SyntaxKind.SingleLineCommentTrivia, "//"); var multiLineComment = Match(SyntaxKind.MultiLineCommentTrivia, "/**/"); var anyCommentMatcher = Matcher.Choice(shebangComment, singleLineComment, multiLineComment); var commentLine = Matcher.Sequence(whitespace, anyCommentMatcher, whitespace, endOfLine); s_oneOrMoreBlankLines = Matcher.OneOrMore(singleBlankLine); s_bannerMatcher = Matcher.Sequence( Matcher.OneOrMore(commentLine), s_oneOrMoreBlankLines); s_fileBannerMatcher = Matcher.Sequence( Matcher.OneOrMore(commentLine), Matcher.Repeat(singleBlankLine)); } private static Matcher<SyntaxTrivia> Match(SyntaxKind kind, string description) { return Matcher.Single<SyntaxTrivia>(t => t.Kind() == kind, description); } /// <summary> /// Returns all of the trivia to the left of this token up to the previous token (concatenates /// the previous token's trailing trivia and this token's leading trivia). /// </summary> public static IEnumerable<SyntaxTrivia> GetAllPrecedingTriviaToPreviousToken(this SyntaxToken token) { var prevToken = token.GetPreviousToken(includeSkipped: true); if (prevToken.Kind() == SyntaxKind.None) { return token.LeadingTrivia; } return prevToken.TrailingTrivia.Concat(token.LeadingTrivia); } public static bool IsBreakableConstruct(this SyntaxNode node) { switch (node.Kind()) { case SyntaxKind.DoStatement: case SyntaxKind.WhileStatement: case SyntaxKind.SwitchStatement: case SyntaxKind.ForStatement: case SyntaxKind.ForEachStatement: return true; } return false; } public static bool IsContinuableConstruct(this SyntaxNode node) { switch (node.Kind()) { case SyntaxKind.DoStatement: case SyntaxKind.WhileStatement: case SyntaxKind.ForStatement: case SyntaxKind.ForEachStatement: return true; } return false; } public static bool IsReturnableConstruct(this SyntaxNode node) { switch (node.Kind()) { case SyntaxKind.AnonymousMethodExpression: case SyntaxKind.SimpleLambdaExpression: case SyntaxKind.ParenthesizedLambdaExpression: case SyntaxKind.MethodDeclaration: case SyntaxKind.ConstructorDeclaration: case SyntaxKind.DestructorDeclaration: case SyntaxKind.GetAccessorDeclaration: case SyntaxKind.SetAccessorDeclaration: case SyntaxKind.OperatorDeclaration: case SyntaxKind.AddAccessorDeclaration: case SyntaxKind.RemoveAccessorDeclaration: return true; } return false; } public static bool SpansPreprocessorDirective<TSyntaxNode>( this IEnumerable<TSyntaxNode> list) where TSyntaxNode : SyntaxNode { if (list == null || list.IsEmpty()) { return false; } var tokens = list.SelectMany(n => n.DescendantTokens()); // todo: we need to dive into trivia here. return tokens.SpansPreprocessorDirective(); } public static T WithPrependedLeadingTrivia<T>( this T node, params SyntaxTrivia[] trivia) where T : SyntaxNode { if (trivia.Length == 0) { return node; } return node.WithPrependedLeadingTrivia((IEnumerable<SyntaxTrivia>)trivia); } public static T WithPrependedLeadingTrivia<T>( this T node, SyntaxTriviaList trivia) where T : SyntaxNode { if (trivia.Count == 0) { return node; } return node.WithLeadingTrivia(trivia.Concat(node.GetLeadingTrivia())); } public static T WithPrependedLeadingTrivia<T>( this T node, IEnumerable<SyntaxTrivia> trivia) where T : SyntaxNode { return node.WithPrependedLeadingTrivia(trivia.ToSyntaxTriviaList()); } public static T WithAppendedTrailingTrivia<T>( this T node, params SyntaxTrivia[] trivia) where T : SyntaxNode { if (trivia.Length == 0) { return node; } return node.WithAppendedTrailingTrivia((IEnumerable<SyntaxTrivia>)trivia); } public static T WithAppendedTrailingTrivia<T>( this T node, SyntaxTriviaList trivia) where T : SyntaxNode { if (trivia.Count == 0) { return node; } return node.WithTrailingTrivia(node.GetTrailingTrivia().Concat(trivia)); } public static T WithAppendedTrailingTrivia<T>( this T node, IEnumerable<SyntaxTrivia> trivia) where T : SyntaxNode { return node.WithAppendedTrailingTrivia(trivia.ToSyntaxTriviaList()); } public static T With<T>( this T node, IEnumerable<SyntaxTrivia> leadingTrivia, IEnumerable<SyntaxTrivia> trailingTrivia) where T : SyntaxNode { return node.WithLeadingTrivia(leadingTrivia).WithTrailingTrivia(trailingTrivia); } public static TNode ConvertToSingleLine<TNode>(this TNode node) where TNode : SyntaxNode { if (node == null) { return node; } var rewriter = new SingleLineRewriter(); return (TNode)rewriter.Visit(node); } public static bool IsAnyArgumentList(this SyntaxNode node) { return node.IsKind(SyntaxKind.ArgumentList) || node.IsKind(SyntaxKind.AttributeArgumentList) || node.IsKind(SyntaxKind.BracketedArgumentList) || node.IsKind(SyntaxKind.TypeArgumentList); } public static bool IsAnyLambda(this SyntaxNode node) { return node.IsKind(SyntaxKind.ParenthesizedLambdaExpression) || node.IsKind(SyntaxKind.SimpleLambdaExpression); } public static bool IsAnyLambdaOrAnonymousMethod(this SyntaxNode node) { return node.IsAnyLambda() || node.IsKind(SyntaxKind.AnonymousMethodExpression); } /// <summary> /// Returns true if the passed in node contains an interleaved pp directive. /// /// i.e. The following returns false: /// /// void Foo() { /// #if true /// #endif /// } /// /// #if true /// void Foo() { /// } /// #endif /// /// but these return true: /// /// #if true /// void Foo() { /// #endif /// } /// /// void Foo() { /// #if true /// } /// #endif /// /// #if true /// void Foo() { /// #else /// } /// #endif /// /// i.e. the method returns true if it contains a PP directive that belongs to a grouping /// constructs (like #if/#endif or #region/#endregion), but the grouping construct isn't /// entirely contained within the span of the node. /// </summary> public static bool ContainsInterleavedDirective( this SyntaxNode syntaxNode, CancellationToken cancellationToken) { // Check if this node contains a start, middle or end pp construct whose matching construct is // not contained within this node. If so, this node must be pinned and cannot move. var span = syntaxNode.Span; foreach (var token in syntaxNode.DescendantTokens()) { if (ContainsInterleavedDirective(span, token, cancellationToken)) { return true; } } return false; } private static bool ContainsInterleavedDirective( TextSpan textSpan, SyntaxToken token, CancellationToken cancellationToken) { return ContainsInterleavedDirective(textSpan, token.LeadingTrivia, cancellationToken) || ContainsInterleavedDirective(textSpan, token.TrailingTrivia, cancellationToken); } private static bool ContainsInterleavedDirective( TextSpan textSpan, SyntaxTriviaList list, CancellationToken cancellationToken) { foreach (var trivia in list) { if (textSpan.Contains(trivia.Span)) { if (ContainsInterleavedDirective(textSpan, trivia, cancellationToken)) { return true; } } } return false; } private static bool ContainsInterleavedDirective( TextSpan textSpan, SyntaxTrivia trivia, CancellationToken cancellationToken) { if (trivia.HasStructure) { var structure = trivia.GetStructure(); var parentSpan = structure.Span; if (trivia.GetStructure().IsKind(SyntaxKind.RegionDirectiveTrivia, SyntaxKind.EndRegionDirectiveTrivia, SyntaxKind.IfDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia)) { var match = ((DirectiveTriviaSyntax)structure).GetMatchingDirective(cancellationToken); if (match != null) { var matchSpan = match.Span; if (!textSpan.Contains(matchSpan.Start)) { // The match for this pp directive is outside // this node. return true; } } } else if (trivia.GetStructure().IsKind(SyntaxKind.ElseDirectiveTrivia, SyntaxKind.ElifDirectiveTrivia)) { var directives = ((DirectiveTriviaSyntax)structure).GetMatchingConditionalDirectives(cancellationToken); if (directives != null && directives.Count > 0) { if (!textSpan.Contains(directives[0].SpanStart) || !textSpan.Contains(directives[directives.Count - 1].SpanStart)) { // This else/elif belongs to a pp span that isn't // entirely within this node. return true; } } } } return false; } /// <summary> /// Breaks up the list of provided nodes, based on how they are interspersed with pp /// directives, into groups. Within these groups nodes can be moved around safely, without /// breaking any pp constructs. /// </summary> public static IList<IList<TSyntaxNode>> SplitNodesOnPreprocessorBoundaries<TSyntaxNode>( this IEnumerable<TSyntaxNode> nodes, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode { var result = new List<IList<TSyntaxNode>>(); var currentGroup = new List<TSyntaxNode>(); foreach (var node in nodes) { var hasUnmatchedInteriorDirective = node.ContainsInterleavedDirective(cancellationToken); var hasLeadingDirective = node.GetLeadingTrivia().Any(t => SyntaxFacts.IsPreprocessorDirective(t.Kind())); if (hasUnmatchedInteriorDirective) { // we have a #if/#endif/#region/#endregion/#else/#elif in // this node that belongs to a span of pp directives that // is not entirely contained within the node. i.e.: // // void Foo() { // #if ... // } // // This node cannot be moved at all. It is in a group that // only contains itself (and thus can never be moved). // add whatever group we've built up to now. And reset the // next group to empty. result.Add(currentGroup); currentGroup = new List<TSyntaxNode>(); result.Add(new List<TSyntaxNode> { node }); } else if (hasLeadingDirective) { // We have a PP directive before us. i.e.: // // #if ... // void Foo() { // // That means we start a new group that is contained between // the above directive and the following directive. // add whatever group we've built up to now. And reset the // next group to empty. result.Add(currentGroup); currentGroup = new List<TSyntaxNode>(); currentGroup.Add(node); } else { // simple case. just add ourselves to the current group currentGroup.Add(node); } } // add the remainder of the final group. result.Add(currentGroup); // Now, filter out any empty groups. result = result.Where(group => !group.IsEmpty()).ToList(); return result; } public static IEnumerable<SyntaxTrivia> GetLeadingBlankLines<TSyntaxNode>( this TSyntaxNode node) where TSyntaxNode : SyntaxNode { IEnumerable<SyntaxTrivia> blankLines; node.GetNodeWithoutLeadingBlankLines(out blankLines); return blankLines; } public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>( this TSyntaxNode node) where TSyntaxNode : SyntaxNode { IEnumerable<SyntaxTrivia> blankLines; return node.GetNodeWithoutLeadingBlankLines(out blankLines); } public static TSyntaxNode GetNodeWithoutLeadingBlankLines<TSyntaxNode>( this TSyntaxNode node, out IEnumerable<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode { var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); var index = 0; s_oneOrMoreBlankLines.TryMatch(leadingTriviaToKeep, ref index); strippedTrivia = new List<SyntaxTrivia>(leadingTriviaToKeep.Take(index)); return node.WithLeadingTrivia(leadingTriviaToKeep.Skip(index)); } public static IEnumerable<SyntaxTrivia> GetLeadingBannerAndPreprocessorDirectives<TSyntaxNode>( this TSyntaxNode node) where TSyntaxNode : SyntaxNode { IEnumerable<SyntaxTrivia> leadingTrivia; node.GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out leadingTrivia); return leadingTrivia; } public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>( this TSyntaxNode node) where TSyntaxNode : SyntaxNode { IEnumerable<SyntaxTrivia> strippedTrivia; return node.GetNodeWithoutLeadingBannerAndPreprocessorDirectives(out strippedTrivia); } public static TSyntaxNode GetNodeWithoutLeadingBannerAndPreprocessorDirectives<TSyntaxNode>( this TSyntaxNode node, out IEnumerable<SyntaxTrivia> strippedTrivia) where TSyntaxNode : SyntaxNode { var leadingTrivia = node.GetLeadingTrivia(); // Rules for stripping trivia: // 1) If there is a pp directive, then it (and all preceding trivia) *must* be stripped. // This rule supersedes all other rules. // 2) If there is a doc comment, it cannot be stripped. Even if there is a doc comment, // followed by 5 new lines, then the doc comment still must stay with the node. This // rule does *not* supersede rule 1. // 3) Single line comments in a group (i.e. with no blank lines between them) belong to // the node *iff* there is no blank line between it and the following trivia. List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep; int ppIndex = -1; for (int i = leadingTrivia.Count - 1; i >= 0; i--) { if (SyntaxFacts.IsPreprocessorDirective(leadingTrivia[i].Kind())) { ppIndex = i; break; } } if (ppIndex != -1) { // We have a pp directive. it (and all previous trivia) must be stripped. leadingTriviaToStrip = new List<SyntaxTrivia>(leadingTrivia.Take(ppIndex + 1)); leadingTriviaToKeep = new List<SyntaxTrivia>(leadingTrivia.Skip(ppIndex + 1)); } else { leadingTriviaToKeep = new List<SyntaxTrivia>(leadingTrivia); leadingTriviaToStrip = new List<SyntaxTrivia>(); } // Now, consume as many banners as we can. s_fileBannerMatcher will only be matched at // the start of the file. var index = 0; while ( s_oneOrMoreBlankLines.TryMatch(leadingTriviaToKeep, ref index) || s_bannerMatcher.TryMatch(leadingTriviaToKeep, ref index) || (node.FullSpan.Start == 0 && s_fileBannerMatcher.TryMatch(leadingTriviaToKeep, ref index))) { } leadingTriviaToStrip.AddRange(leadingTriviaToKeep.Take(index)); strippedTrivia = leadingTriviaToStrip; return node.WithLeadingTrivia(leadingTriviaToKeep.Skip(index)); } public static bool IsAnyAssignExpression(this SyntaxNode node) { return SyntaxFacts.IsAssignmentExpression(node.Kind()); } public static bool IsCompoundAssignExpression(this SyntaxNode node) { switch (node.Kind()) { case SyntaxKind.AddAssignmentExpression: case SyntaxKind.SubtractAssignmentExpression: case SyntaxKind.MultiplyAssignmentExpression: case SyntaxKind.DivideAssignmentExpression: case SyntaxKind.ModuloAssignmentExpression: case SyntaxKind.AndAssignmentExpression: case SyntaxKind.ExclusiveOrAssignmentExpression: case SyntaxKind.OrAssignmentExpression: case SyntaxKind.LeftShiftAssignmentExpression: case SyntaxKind.RightShiftAssignmentExpression: return true; } return false; } public static bool IsLeftSideOfAssignExpression(this SyntaxNode node) { return node.IsParentKind(SyntaxKind.SimpleAssignmentExpression) && ((AssignmentExpressionSyntax)node.Parent).Left == node; } public static bool IsLeftSideOfAnyAssignExpression(this SyntaxNode node) { return node.Parent.IsAnyAssignExpression() && ((AssignmentExpressionSyntax)node.Parent).Left == node; } public static bool IsRightSideOfAnyAssignExpression(this SyntaxNode node) { return node.Parent.IsAnyAssignExpression() && ((AssignmentExpressionSyntax)node.Parent).Right == node; } public static bool IsVariableDeclaratorValue(this SyntaxNode node) { return node.IsParentKind(SyntaxKind.EqualsValueClause) && node.Parent.IsParentKind(SyntaxKind.VariableDeclarator) && ((EqualsValueClauseSyntax)node.Parent).Value == node; } public static BlockSyntax FindInnermostCommonBlock(this IEnumerable<SyntaxNode> nodes) { return nodes.FindInnermostCommonNode<BlockSyntax>(); } public static IEnumerable<SyntaxNode> GetAncestorsOrThis(this SyntaxNode node, Func<SyntaxNode, bool> predicate) { var current = node; while (current != null) { if (predicate(current)) { yield return current; } current = current.Parent; } } /// <summary> /// Returns child node or token that contains given position. /// </summary> /// <remarks> /// This is a copy of <see cref="SyntaxNode.ChildThatContainsPosition"/> that also returns the index of the child node. /// </remarks> internal static SyntaxNodeOrToken ChildThatContainsPosition(this SyntaxNode self, int position, out int childIndex) { var childList = self.ChildNodesAndTokens(); int left = 0; int right = childList.Count - 1; while (left <= right) { int middle = left + ((right - left) / 2); SyntaxNodeOrToken node = childList[middle]; var span = node.FullSpan; if (position < span.Start) { right = middle - 1; } else if (position >= span.End) { left = middle + 1; } else { childIndex = middle; return node; } } // we could check up front that index is within FullSpan, // but we wan to optimize for the common case where position is valid. Debug.Assert(!self.FullSpan.Contains(position), "Position is valid. How could we not find a child?"); throw new ArgumentOutOfRangeException(nameof(position)); } public static SyntaxNode GetParent(this SyntaxNode node) { return node != null ? node.Parent : null; } public static ValueTuple<SyntaxToken, SyntaxToken> GetBraces(this SyntaxNode node) { var namespaceNode = node as NamespaceDeclarationSyntax; if (namespaceNode != null) { return ValueTuple.Create(namespaceNode.OpenBraceToken, namespaceNode.CloseBraceToken); } var baseTypeNode = node as BaseTypeDeclarationSyntax; if (baseTypeNode != null) { return ValueTuple.Create(baseTypeNode.OpenBraceToken, baseTypeNode.CloseBraceToken); } var accessorListNode = node as AccessorListSyntax; if (accessorListNode != null) { return ValueTuple.Create(accessorListNode.OpenBraceToken, accessorListNode.CloseBraceToken); } var blockNode = node as BlockSyntax; if (blockNode != null) { return ValueTuple.Create(blockNode.OpenBraceToken, blockNode.CloseBraceToken); } var switchStatementNode = node as SwitchStatementSyntax; if (switchStatementNode != null) { return ValueTuple.Create(switchStatementNode.OpenBraceToken, switchStatementNode.CloseBraceToken); } var anonymousObjectCreationExpression = node as AnonymousObjectCreationExpressionSyntax; if (anonymousObjectCreationExpression != null) { return ValueTuple.Create(anonymousObjectCreationExpression.OpenBraceToken, anonymousObjectCreationExpression.CloseBraceToken); } var initializeExpressionNode = node as InitializerExpressionSyntax; if (initializeExpressionNode != null) { return ValueTuple.Create(initializeExpressionNode.OpenBraceToken, initializeExpressionNode.CloseBraceToken); } return new ValueTuple<SyntaxToken, SyntaxToken>(); } public static ValueTuple<SyntaxToken, SyntaxToken> GetParentheses(this SyntaxNode node) { return node.TypeSwitch( (ParenthesizedExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (MakeRefExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (RefTypeExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (RefValueExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (CheckedExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (DefaultExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (TypeOfExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (SizeOfExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (ArgumentListSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (CastExpressionSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (WhileStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (DoStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (ForStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (ForEachStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (UsingStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (FixedStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (LockStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (IfStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (SwitchStatementSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (CatchDeclarationSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (AttributeArgumentListSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (ConstructorConstraintSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (ParameterListSyntax n) => ValueTuple.Create(n.OpenParenToken, n.CloseParenToken), (SyntaxNode n) => default(ValueTuple<SyntaxToken, SyntaxToken>)); } public static ValueTuple<SyntaxToken, SyntaxToken> GetBrackets(this SyntaxNode node) { return node.TypeSwitch( (ArrayRankSpecifierSyntax n) => ValueTuple.Create(n.OpenBracketToken, n.CloseBracketToken), (BracketedArgumentListSyntax n) => ValueTuple.Create(n.OpenBracketToken, n.CloseBracketToken), (ImplicitArrayCreationExpressionSyntax n) => ValueTuple.Create(n.OpenBracketToken, n.CloseBracketToken), (AttributeListSyntax n) => ValueTuple.Create(n.OpenBracketToken, n.CloseBracketToken), (BracketedParameterListSyntax n) => ValueTuple.Create(n.OpenBracketToken, n.CloseBracketToken), (SyntaxNode n) => default(ValueTuple<SyntaxToken, SyntaxToken>)); } public static bool IsEmbeddedStatementOwner(this SyntaxNode node) { return node is DoStatementSyntax || node is ElseClauseSyntax || node is FixedStatementSyntax || node is ForEachStatementSyntax || node is ForStatementSyntax || node is IfStatementSyntax || node is LabeledStatementSyntax || node is LockStatementSyntax || node is UsingStatementSyntax || node is WhileStatementSyntax; } public static StatementSyntax GetEmbeddedStatement(this SyntaxNode node) { return node.TypeSwitch( (DoStatementSyntax n) => n.Statement, (ElseClauseSyntax n) => n.Statement, (FixedStatementSyntax n) => n.Statement, (ForEachStatementSyntax n) => n.Statement, (ForStatementSyntax n) => n.Statement, (IfStatementSyntax n) => n.Statement, (LabeledStatementSyntax n) => n.Statement, (LockStatementSyntax n) => n.Statement, (UsingStatementSyntax n) => n.Statement, (WhileStatementSyntax n) => n.Statement, (SyntaxNode n) => null); } public static SyntaxTokenList GetModifiers(this SyntaxNode member) { if (member != null) { switch (member.Kind()) { case SyntaxKind.EnumDeclaration: return ((EnumDeclarationSyntax)member).Modifiers; case SyntaxKind.ClassDeclaration: case SyntaxKind.InterfaceDeclaration: case SyntaxKind.StructDeclaration: return ((TypeDeclarationSyntax)member).Modifiers; case SyntaxKind.DelegateDeclaration: return ((DelegateDeclarationSyntax)member).Modifiers; case SyntaxKind.FieldDeclaration: return ((FieldDeclarationSyntax)member).Modifiers; case SyntaxKind.EventFieldDeclaration: return ((EventFieldDeclarationSyntax)member).Modifiers; case SyntaxKind.ConstructorDeclaration: return ((ConstructorDeclarationSyntax)member).Modifiers; case SyntaxKind.DestructorDeclaration: return ((DestructorDeclarationSyntax)member).Modifiers; case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)member).Modifiers; case SyntaxKind.EventDeclaration: return ((EventDeclarationSyntax)member).Modifiers; case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)member).Modifiers; case SyntaxKind.OperatorDeclaration: return ((OperatorDeclarationSyntax)member).Modifiers; case SyntaxKind.ConversionOperatorDeclaration: return ((ConversionOperatorDeclarationSyntax)member).Modifiers; case SyntaxKind.MethodDeclaration: return ((MethodDeclarationSyntax)member).Modifiers; case SyntaxKind.GetAccessorDeclaration: case SyntaxKind.SetAccessorDeclaration: case SyntaxKind.AddAccessorDeclaration: case SyntaxKind.RemoveAccessorDeclaration: return ((AccessorDeclarationSyntax)member).Modifiers; } } return default(SyntaxTokenList); } public static SyntaxNode WithModifiers(this SyntaxNode member, SyntaxTokenList modifiers) { if (member != null) { switch (member.Kind()) { case SyntaxKind.EnumDeclaration: return ((EnumDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.ClassDeclaration: case SyntaxKind.InterfaceDeclaration: case SyntaxKind.StructDeclaration: return ((TypeDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.DelegateDeclaration: return ((DelegateDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.FieldDeclaration: return ((FieldDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.EventFieldDeclaration: return ((EventFieldDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.ConstructorDeclaration: return ((ConstructorDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.DestructorDeclaration: return ((DestructorDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.EventDeclaration: return ((EventDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.OperatorDeclaration: return ((OperatorDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.ConversionOperatorDeclaration: return ((ConversionOperatorDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.MethodDeclaration: return ((MethodDeclarationSyntax)member).WithModifiers(modifiers); case SyntaxKind.GetAccessorDeclaration: case SyntaxKind.SetAccessorDeclaration: case SyntaxKind.AddAccessorDeclaration: case SyntaxKind.RemoveAccessorDeclaration: return ((AccessorDeclarationSyntax)member).WithModifiers(modifiers); } } return null; } public static bool CheckTopLevel(this SyntaxNode node, TextSpan span) { var block = node as BlockSyntax; if (block != null) { return block.ContainsInBlockBody(span); } var expressionBodiedMember = node as ArrowExpressionClauseSyntax; if (expressionBodiedMember != null) { return expressionBodiedMember.ContainsInExpressionBodiedMemberBody(span); } var field = node as FieldDeclarationSyntax; if (field != null) { foreach (var variable in field.Declaration.Variables) { if (variable.Initializer != null && variable.Initializer.Span.Contains(span)) { return true; } } } var global = node as GlobalStatementSyntax; if (global != null) { return true; } var constructorInitializer = node as ConstructorInitializerSyntax; if (constructorInitializer != null) { return constructorInitializer.ContainsInArgument(span); } return false; } public static bool ContainsInArgument(this ConstructorInitializerSyntax initializer, TextSpan textSpan) { if (initializer == null) { return false; } return initializer.ArgumentList.Arguments.Any(a => a.Span.Contains(textSpan)); } public static bool ContainsInBlockBody(this BlockSyntax block, TextSpan textSpan) { if (block == null) { return false; } var blockSpan = TextSpan.FromBounds(block.OpenBraceToken.Span.End, block.CloseBraceToken.SpanStart); return blockSpan.Contains(textSpan); } public static bool ContainsInExpressionBodiedMemberBody(this ArrowExpressionClauseSyntax expressionBodiedMember, TextSpan textSpan) { if (expressionBodiedMember == null) { return false; } var expressionBodiedMemberBody = TextSpan.FromBounds(expressionBodiedMember.Expression.SpanStart, expressionBodiedMember.Expression.Span.End); return expressionBodiedMemberBody.Contains(textSpan); } public static IEnumerable<MemberDeclarationSyntax> GetMembers(this SyntaxNode node) { var compilation = node as CompilationUnitSyntax; if (compilation != null) { return compilation.Members; } var @namespace = node as NamespaceDeclarationSyntax; if (@namespace != null) { return @namespace.Members; } var type = node as TypeDeclarationSyntax; if (type != null) { return type.Members; } var @enum = node as EnumDeclarationSyntax; if (@enum != null) { return @enum.Members; } return SpecializedCollections.EmptyEnumerable<MemberDeclarationSyntax>(); } public static IEnumerable<SyntaxNode> GetBodies(this SyntaxNode node) { var constructor = node as ConstructorDeclarationSyntax; if (constructor != null) { var result = SpecializedCollections.SingletonEnumerable<SyntaxNode>(constructor.Body).WhereNotNull(); var initializer = constructor.Initializer; if (initializer != null) { result = result.Concat(initializer.ArgumentList.Arguments.Select(a => (SyntaxNode)a.Expression).WhereNotNull()); } return result; } var method = node as BaseMethodDeclarationSyntax; if (method != null) { return SpecializedCollections.SingletonEnumerable<SyntaxNode>(method.Body).WhereNotNull(); } var property = node as BasePropertyDeclarationSyntax; if (property != null && property.AccessorList != null) { return property.AccessorList.Accessors.Select(a => a.Body).WhereNotNull(); } var @enum = node as EnumMemberDeclarationSyntax; if (@enum != null) { if (@enum.EqualsValue != null) { return SpecializedCollections.SingletonEnumerable(@enum.EqualsValue.Value).WhereNotNull(); } } var field = node as BaseFieldDeclarationSyntax; if (field != null) { return field.Declaration.Variables.Where(v => v.Initializer != null).Select(v => v.Initializer.Value).WhereNotNull(); } return SpecializedCollections.EmptyEnumerable<SyntaxNode>(); } public static ConditionalAccessExpressionSyntax GetParentConditionalAccessExpression(this SyntaxNode node) { var parent = node.Parent; while (parent != null) { // Because the syntax for conditional access is right associate, we cannot // simply take the first ancestor ConditionalAccessExpression. Instead, we // must walk upward until we find the ConditionalAccessExpression whose // OperatorToken appears left of the MemberBinding. if (parent.IsKind(SyntaxKind.ConditionalAccessExpression) && ((ConditionalAccessExpressionSyntax)parent).OperatorToken.Span.End <= node.SpanStart) { return (ConditionalAccessExpressionSyntax)parent; } parent = parent.Parent; } return null; } public static ConditionalAccessExpressionSyntax GetInnerMostConditionalAccessExpression(this SyntaxNode node) { if (!(node is ConditionalAccessExpressionSyntax)) { return null; } var result = (ConditionalAccessExpressionSyntax)node; while (result.WhenNotNull is ConditionalAccessExpressionSyntax) { result = (ConditionalAccessExpressionSyntax)result.WhenNotNull; } return result; } } }
40.922241
161
0.570051
[ "Apache-2.0" ]
HaloFour/roslyn
src/Workspaces/CSharp/Portable/Extensions/SyntaxNodeExtensions.cs
48,945
C#
using System; namespace Hqv.Thermostat.Api.Domain.Entities { public class ClientAuthentication { public ClientAuthentication( string appApiKey, string appAuthorizationCode, string refreshToken = null, DateTime? refreshTokenExpiration = null, string accessToken = null, DateTime? accessTokenExpiration = null) { AppApiKey = appApiKey; AppAuthorizationCode = appAuthorizationCode; RefreshToken = refreshToken; RefreshTokenExpiration = refreshTokenExpiration; AccessToken = accessToken; AccessTokenExpiration = accessTokenExpiration; } public string AppApiKey { get; } public string AppAuthorizationCode { get; } public string RefreshToken { get; private set; } public DateTime? RefreshTokenExpiration { get; private set; } public string AccessToken { get; private set; } public DateTime? AccessTokenExpiration { get; private set; } public void SetRefreshToken(string refreshToken, DateTime refreshTokenExpiration) { RefreshToken = refreshToken; RefreshTokenExpiration = refreshTokenExpiration; } public void SetAccessToken(string accessToken, DateTime accessTokenExpiration) { AccessToken = accessToken; AccessTokenExpiration = accessTokenExpiration; } } }
36.45
89
0.652949
[ "Apache-2.0" ]
hqv1/home_automation
Thermostat/src/Api.Domain/Entities/ClientAuthentication.cs
1,460
C#
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on // an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the // specific language governing permissions and limitations under the License. //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by DAIMTO-Google-apis-Sample-generator 1.0.0 // Template File Name: methodTemplate.tt // Build date: 2017-10-08 // C# generater version: 1.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ // About // // Unoffical sample for the Dfareporting v2.8 API for C#. // This sample is designed to be used with the Google .Net client library. (https://github.com/google/google-api-dotnet-client) // // API Description: Manages your DoubleClick Campaign Manager ad campaigns and reports. // API Documentation Link https://developers.google.com/doubleclick-advertisers/ // // Discovery Doc https://www.googleapis.com/discovery/v1/apis/Dfareporting/v2_8/rest // //------------------------------------------------------------------------------ // Installation // // This sample code uses the Google .Net client library (https://github.com/google/google-api-dotnet-client) // // NuGet package: // // Location: https://www.nuget.org/packages/Google.Apis.Dfareporting.v2_8/ // Install Command: PM> Install-Package Google.Apis.Dfareporting.v2_8 // //------------------------------------------------------------------------------ using Google.Apis.Dfareporting.v2_8; using Google.Apis.Dfareporting.v2_8.Data; using System; namespace GoogleSamplecSharpSample.Dfareportingv2_8.Methods { public static class RemarketingListsSample { /// <summary> /// Gets one remarketing list by ID. /// Documentation https://developers.google.com/dfareporting/v2.8/reference/remarketingLists/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">Remarketing list ID.</param> /// <returns>RemarketingListResponse</returns> public static RemarketingList Get(DfareportingService service, string profileId, string id) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (profileId == null) throw new ArgumentNullException(profileId); if (id == null) throw new ArgumentNullException(id); // Make the request. return service.RemarketingLists.Get(profileId, id).Execute(); } catch (Exception ex) { throw new Exception("Request RemarketingLists.Get failed.", ex); } } /// <summary> /// Inserts a new remarketing list. /// Documentation https://developers.google.com/dfareporting/v2.8/reference/remarketingLists/insert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="body">A valid Dfareporting v2.8 body.</param> /// <returns>RemarketingListResponse</returns> public static RemarketingList Insert(DfareportingService service, string profileId, RemarketingList body) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (body == null) throw new ArgumentNullException("body"); if (profileId == null) throw new ArgumentNullException(profileId); // Make the request. return service.RemarketingLists.Insert(body, profileId).Execute(); } catch (Exception ex) { throw new Exception("Request RemarketingLists.Insert failed.", ex); } } public class RemarketingListsListOptionalParms { /// Select only active or only inactive remarketing lists. public bool? Active { get; set; } /// Select only remarketing lists that have this floodlight activity ID. public string FloodlightActivityId { get; set; } /// Maximum number of results to return. public int? MaxResults { get; set; } /// Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" will return objects with names like "remarketing list June 2015", "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "remarketing list" will match objects with name "my remarketing list", "remarketing list 2015", or simply "remarketing list". public string Name { get; set; } /// Value of the nextPageToken from the previous result page. public string PageToken { get; set; } /// Field by which to sort the list. public string SortField { get; set; } /// Order of sorted results. public string SortOrder { get; set; } } /// <summary> /// Retrieves a list of remarketing lists, possibly filtered. This method supports paging. /// Documentation https://developers.google.com/dfareporting/v2.8/reference/remarketingLists/list /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="advertiserId">Select only remarketing lists owned by this advertiser.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>RemarketingListsListResponseResponse</returns> public static RemarketingListsListResponse List(DfareportingService service, string profileId, string advertiserId, RemarketingListsListOptionalParms optional = null) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (profileId == null) throw new ArgumentNullException(profileId); if (advertiserId == null) throw new ArgumentNullException(advertiserId); // Building the initial request. var request = service.RemarketingLists.List(profileId, advertiserId); // Applying optional parameters to the request. request = (RemarketingListsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return request.Execute(); } catch (Exception ex) { throw new Exception("Request RemarketingLists.List failed.", ex); } } /// <summary> /// Updates an existing remarketing list. This method supports patch semantics. /// Documentation https://developers.google.com/dfareporting/v2.8/reference/remarketingLists/patch /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">Remarketing list ID.</param> /// <param name="body">A valid Dfareporting v2.8 body.</param> /// <returns>RemarketingListResponse</returns> public static RemarketingList Patch(DfareportingService service, string profileId, string id, RemarketingList body) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (body == null) throw new ArgumentNullException("body"); if (profileId == null) throw new ArgumentNullException(profileId); if (id == null) throw new ArgumentNullException(id); // Make the request. return service.RemarketingLists.Patch(body, profileId, id).Execute(); } catch (Exception ex) { throw new Exception("Request RemarketingLists.Patch failed.", ex); } } /// <summary> /// Updates an existing remarketing list. /// Documentation https://developers.google.com/dfareporting/v2.8/reference/remarketingLists/update /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="body">A valid Dfareporting v2.8 body.</param> /// <returns>RemarketingListResponse</returns> public static RemarketingList Update(DfareportingService service, string profileId, RemarketingList body) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (body == null) throw new ArgumentNullException("body"); if (profileId == null) throw new ArgumentNullException(profileId); // Make the request. return service.RemarketingLists.Update(body, profileId).Execute(); } catch (Exception ex) { throw new Exception("Request RemarketingLists.Update failed.", ex); } } } public static class SampleHelpers { /// <summary> /// Using reflection to apply optional parameters to the request. /// /// If the optonal parameters are null then we will just return the request as is. /// </summary> /// <param name="request">The request. </param> /// <param name="optional">The optional parameters. </param> /// <returns></returns> public static object ApplyOptionalParms(object request, object optional) { if (optional == null) return request; System.Reflection.PropertyInfo[] optionalProperties = (optional.GetType()).GetProperties(); foreach (System.Reflection.PropertyInfo property in optionalProperties) { // Copy value from optional parms to the request. They should have the same names and datatypes. System.Reflection.PropertyInfo piShared = (request.GetType()).GetProperty(property.Name); if (property.GetValue(optional, null) != null) // TODO Test that we do not add values for items that are null piShared.SetValue(request, property.GetValue(optional, null), null); } return request; } } }
48.448669
511
0.600691
[ "Apache-2.0" ]
AhmerRaza/Google-Dotnet-Samples
Samples/DCM/DFA Reporting And Trafficking API/v2.8/RemarketingListsSample.cs
12,744
C#
using BepuUtilities; using BepuUtilities.Memory; using DemoContentLoader; using DemoRenderer; using DemoRenderer.UI; using Demos.UI; using DemoUtilities; using System; using System.Numerics; using Quaternion = BepuUtilities.Quaternion; namespace Demos { public class DemoHarness : IDisposable { Window window; ContentArchive content; internal Input input; Camera camera; Grabber grabber; internal Controls controls; Font font; bool showControls; bool showConstraints = true; bool showContacts; bool showBoundingBoxes; int frameCount; enum TimingDisplayMode { Regular, Big, Minimized } TimingDisplayMode timingDisplayMode; Graph timingGraph; DemoSwapper swapper; internal DemoSet demoSet; Demo demo; internal void TryChangeToDemo(int demoIndex) { if (demoIndex >= 0 && demoIndex < demoSet.Count) { demo.Dispose(); demo = demoSet.Build(demoIndex, content, camera); //Forcing a full blocking collection makes it a little easier to distinguish some memory issues. GC.Collect(int.MaxValue, GCCollectionMode.Forced, true, true); } } SimulationTimeSamples timeSamples; public DemoHarness(GameLoop loop, ContentArchive content, Controls? controls = null) { this.window = loop.Window; this.input = loop.Input; this.camera = loop.Camera; this.content = content; timeSamples = new SimulationTimeSamples(512, loop.Pool); if (controls == null) this.controls = Controls.Default; var fontContent = content.Load<FontContent>(@"Content\Carlito-Regular.ttf"); font = new Font(loop.Surface.Device, loop.Surface.Context, fontContent); timingGraph = new Graph(new GraphDescription { BodyLineColor = new Vector3(1, 1, 1), AxisLabelHeight = 16, AxisLineRadius = 0.5f, HorizontalAxisLabel = "Frames", VerticalAxisLabel = "Time (ms)", VerticalIntervalValueScale = 1e3f, VerticalIntervalLabelRounding = 2, BackgroundLineRadius = 0.125f, IntervalTextHeight = 12, IntervalTickRadius = 0.25f, IntervalTickLength = 6f, TargetHorizontalTickCount = 5, HorizontalTickTextPadding = 0, VerticalTickTextPadding = 3, LegendMinimum = new Vector2(20, 200), LegendNameHeight = 12, LegendLineLength = 7, TextColor = new Vector3(1, 1, 1), Font = font, LineSpacingMultiplier = 1f, ForceVerticalAxisMinimumToZero = true }); timingGraph.AddSeries("Total", new Vector3(1, 1, 1), 0.75f, timeSamples.Simulation); timingGraph.AddSeries("Pose Integrator", new Vector3(0, 0, 1), 0.25f, timeSamples.PoseIntegrator); timingGraph.AddSeries("Sleeper", new Vector3(0.5f, 0, 1), 0.25f, timeSamples.Sleeper); timingGraph.AddSeries("Broad Update", new Vector3(1, 1, 0), 0.25f, timeSamples.BroadPhaseUpdate); timingGraph.AddSeries("Collision Test", new Vector3(0, 1, 0), 0.25f, timeSamples.CollisionTesting); timingGraph.AddSeries("Narrow Flush", new Vector3(1, 0, 1), 0.25f, timeSamples.NarrowPhaseFlush); timingGraph.AddSeries("Solver", new Vector3(1, 0, 0), 0.5f, timeSamples.Solver); timingGraph.AddSeries("Body Opt", new Vector3(1, 0.5f, 0), 0.125f, timeSamples.BodyOptimizer); timingGraph.AddSeries("Constraint Opt", new Vector3(0, 0.5f, 1), 0.125f, timeSamples.ConstraintOptimizer); timingGraph.AddSeries("Batch Compress", new Vector3(0, 0.5f, 0), 0.125f, timeSamples.BatchCompressor); demoSet = new DemoSet(); demo = demoSet.Build(0, content, camera); OnResize(window.Resolution); } private void UpdateTimingGraphForMode(TimingDisplayMode newDisplayMode) { timingDisplayMode = newDisplayMode; ref var description = ref timingGraph.Description; var resolution = window.Resolution; switch (timingDisplayMode) { case TimingDisplayMode.Big: { const float inset = 150; description.BodyMinimum = new Vector2(inset); description.BodySpan = new Vector2(resolution.X, resolution.Y) - description.BodyMinimum - new Vector2(inset); description.LegendMinimum = description.BodyMinimum - new Vector2(110, 0); description.TargetVerticalTickCount = 5; } break; case TimingDisplayMode.Regular: { const float inset = 50; var targetSpan = new Vector2(400, 150); description.BodyMinimum = new Vector2(resolution.X - targetSpan.X - inset, inset); description.BodySpan = targetSpan; description.LegendMinimum = description.BodyMinimum - new Vector2(130, 0); description.TargetVerticalTickCount = 3; } break; } //In a minimized state, the graph is just not drawn. } public void OnResize(Int2 resolution) { UpdateTimingGraphForMode(timingDisplayMode); } enum CameraMoveSpeedState { Regular, Slow, Fast } CameraMoveSpeedState cameraSpeedState; Int2? grabberCachedMousePosition; public void Update(float dt) { //Don't bother responding to input if the window isn't focused. if (window.Focused) { if (controls.Exit.WasTriggered(input)) { window.Close(); return; } if (controls.MoveFaster.WasTriggered(input)) { switch (cameraSpeedState) { case CameraMoveSpeedState.Slow: cameraSpeedState = CameraMoveSpeedState.Regular; break; case CameraMoveSpeedState.Regular: cameraSpeedState = CameraMoveSpeedState.Fast; break; } } if (controls.MoveSlower.WasTriggered(input)) { switch (cameraSpeedState) { case CameraMoveSpeedState.Regular: cameraSpeedState = CameraMoveSpeedState.Slow; break; case CameraMoveSpeedState.Fast: cameraSpeedState = CameraMoveSpeedState.Regular; break; } } var cameraOffset = new Vector3(); if (controls.MoveForward.IsDown(input)) cameraOffset += camera.Forward; if (controls.MoveBackward.IsDown(input)) cameraOffset += camera.Backward; if (controls.MoveLeft.IsDown(input)) cameraOffset += camera.Left; if (controls.MoveRight.IsDown(input)) cameraOffset += camera.Right; if (controls.MoveUp.IsDown(input)) cameraOffset += camera.Up; if (controls.MoveDown.IsDown(input)) cameraOffset += camera.Down; var length = cameraOffset.Length(); if (length > 1e-7f) { float cameraMoveSpeed; switch (cameraSpeedState) { case CameraMoveSpeedState.Slow: cameraMoveSpeed = controls.CameraSlowMoveSpeed; break; case CameraMoveSpeedState.Fast: cameraMoveSpeed = controls.CameraFastMoveSpeed; break; default: cameraMoveSpeed = controls.CameraMoveSpeed; break; } cameraOffset *= dt * cameraMoveSpeed / length; } else cameraOffset = new Vector3(); camera.Position += cameraOffset; var grabRotationIsActive = controls.Grab.IsDown(input) && controls.GrabRotate.IsDown(input); //Don't turn the camera while rotating a grabbed object. if (!grabRotationIsActive) { if (input.MouseLocked) { var delta = input.MouseDelta; if (delta.X != 0 || delta.Y != 0) { camera.Yaw += delta.X * controls.MouseSensitivity; camera.Pitch += delta.Y * controls.MouseSensitivity; } } } if (controls.LockMouse.WasTriggered(input)) { input.MouseLocked = !input.MouseLocked; } Quaternion incrementalGrabRotation; if (grabRotationIsActive) { if (grabberCachedMousePosition == null) grabberCachedMousePosition = input.MousePosition; var delta = input.MouseDelta; var yaw = delta.X * controls.MouseSensitivity; var pitch = delta.Y * controls.MouseSensitivity; incrementalGrabRotation = Quaternion.Concatenate(Quaternion.CreateFromAxisAngle(camera.Right, pitch), Quaternion.CreateFromAxisAngle(camera.Up, yaw)); if (!input.MouseLocked) { //Undo the mouse movement if we're in freemouse mode. input.MousePosition = grabberCachedMousePosition.Value; } } else { incrementalGrabRotation = Quaternion.Identity; grabberCachedMousePosition = null; } grabber.Update(demo.Simulation, camera, input.MouseLocked, controls.Grab.IsDown(input), incrementalGrabRotation, window.GetNormalizedMousePosition(input.MousePosition)); if (controls.ShowControls.WasTriggered(input)) { showControls = !showControls; } if (controls.ShowConstraints.WasTriggered(input)) { showConstraints = !showConstraints; } if (controls.ShowContacts.WasTriggered(input)) { showContacts = !showContacts; } if (controls.ShowBoundingBoxes.WasTriggered(input)) { showBoundingBoxes = !showBoundingBoxes; } if (controls.ChangeTimingDisplayMode.WasTriggered(input)) { var newDisplayMode = (int)timingDisplayMode + 1; if (newDisplayMode > 2) newDisplayMode = 0; UpdateTimingGraphForMode((TimingDisplayMode)newDisplayMode); } swapper.CheckForDemoSwap(this); } else { input.MouseLocked = false; } ++frameCount; if (!controls.SlowTimesteps.IsDown(input) || frameCount % 20 == 0) { demo.Update(window, camera, input, dt); } timeSamples.RecordFrame(demo.Simulation); } TextBuilder uiText = new TextBuilder(128); public void Render(Renderer renderer) { //Clear first so that any demo-specific logic doesn't get lost. renderer.Shapes.ClearInstances(); renderer.Lines.ClearInstances(); //Perform any demo-specific rendering first. demo.Render(renderer, camera, input, uiText, font); #if DEBUG float warningHeight = 15f; renderer.TextBatcher.Write(uiText.Clear().Append("Running in Debug configuration. Compile in Release or, better yet, ReleaseStrip configuration for performance testing."), new Vector2((window.Resolution.X - GlyphBatch.MeasureLength(uiText, font, warningHeight)) * 0.5f, warningHeight), warningHeight, new Vector3(1, 0, 0), font); #endif float textHeight = 16; float lineSpacing = textHeight * 1.0f; var textColor = new Vector3(1, 1, 1); if (showControls) { var penPosition = new Vector2(window.Resolution.X - textHeight * 6 - 25, window.Resolution.Y - 25); penPosition.Y -= 19 * lineSpacing; uiText.Clear().Append("Controls: "); var headerHeight = textHeight * 1.2f; renderer.TextBatcher.Write(uiText, penPosition - new Vector2(0.5f * GlyphBatch.MeasureLength(uiText, font, headerHeight), 0), headerHeight, textColor, font); penPosition.Y += lineSpacing; var controlPosition = penPosition; controlPosition.X += textHeight * 0.5f; void WriteName(string controlName, string control) { uiText.Clear().Append(controlName).Append(":"); renderer.TextBatcher.Write(uiText, penPosition - new Vector2(GlyphBatch.MeasureLength(uiText, font, textHeight), 0), textHeight, textColor, font); penPosition.Y += lineSpacing; uiText.Clear().Append(control); renderer.TextBatcher.Write(uiText, controlPosition, textHeight, textColor, font); controlPosition.Y += lineSpacing; } //Conveniently, enum strings are cached. Every (Key).ToString() returns the same reference for the same key, so no garbage worries. WriteName(nameof(controls.LockMouse), controls.LockMouse.ToString()); WriteName(nameof(controls.Grab), controls.Grab.ToString()); WriteName(nameof(controls.GrabRotate), controls.GrabRotate.ToString()); WriteName(nameof(controls.MoveForward), controls.MoveForward.ToString()); WriteName(nameof(controls.MoveBackward), controls.MoveBackward.ToString()); WriteName(nameof(controls.MoveLeft), controls.MoveLeft.ToString()); WriteName(nameof(controls.MoveRight), controls.MoveRight.ToString()); WriteName(nameof(controls.MoveUp), controls.MoveUp.ToString()); WriteName(nameof(controls.MoveDown), controls.MoveDown.ToString()); WriteName(nameof(controls.MoveSlower), controls.MoveSlower.ToString()); WriteName(nameof(controls.MoveFaster), controls.MoveFaster.ToString()); WriteName(nameof(controls.SlowTimesteps), controls.SlowTimesteps.ToString()); WriteName(nameof(controls.Exit), controls.Exit.ToString()); WriteName(nameof(controls.ShowConstraints), controls.ShowConstraints.ToString()); WriteName(nameof(controls.ShowContacts), controls.ShowContacts.ToString()); WriteName(nameof(controls.ShowBoundingBoxes), controls.ShowBoundingBoxes.ToString()); WriteName(nameof(controls.ChangeTimingDisplayMode), controls.ChangeTimingDisplayMode.ToString()); WriteName(nameof(controls.ChangeDemo), controls.ChangeDemo.ToString()); WriteName(nameof(controls.ShowControls), controls.ShowControls.ToString()); } else { uiText.Clear().Append("Press ").Append(controls.ShowControls.ToString()).Append(" for controls."); const float inset = 25; renderer.TextBatcher.Write(uiText, new Vector2(window.Resolution.X - inset - GlyphBatch.MeasureLength(uiText, font, textHeight), window.Resolution.Y - inset), textHeight, textColor, font); } swapper.Draw(uiText, renderer.TextBatcher, demoSet, new Vector2(16, 16), textHeight, textColor, font); if (timingDisplayMode != TimingDisplayMode.Minimized) { timingGraph.Draw(uiText, renderer.UILineBatcher, renderer.TextBatcher); } else { const float timingTextSize = 14; const float inset = 25; renderer.TextBatcher.Write( uiText.Clear().Append(1e3 * timeSamples.Simulation[timeSamples.Simulation.End - 1], timingGraph.Description.VerticalIntervalLabelRounding).Append(" ms/step"), new Vector2(window.Resolution.X - inset - GlyphBatch.MeasureLength(uiText, font, timingTextSize), inset), timingTextSize, timingGraph.Description.TextColor, font); } grabber.Draw(renderer.Lines, camera, input.MouseLocked, controls.Grab.IsDown(input), window.GetNormalizedMousePosition(input.MousePosition)); renderer.Shapes.AddInstances(demo.Simulation, demo.ThreadDispatcher); renderer.Lines.Extract(demo.Simulation.Bodies, demo.Simulation.Solver, demo.Simulation.BroadPhase, showConstraints, showContacts, showBoundingBoxes, demo.ThreadDispatcher); } bool disposed; public void Dispose() { if (!disposed) { disposed = true; demo?.Dispose(); timeSamples.Dispose(); } } #if DEBUG ~DemoHarness() { Helpers.CheckForUndisposed(disposed, this); } #endif } }
43.92217
185
0.547012
[ "Apache-2.0" ]
ValtoLibraries/BepuPhysics-2
Demos/DemoHarness.cs
18,625
C#
using System.Runtime.Serialization; namespace LogicMonitor.Api.LogicModules { /// <summary> /// An SNMP SysOID Map ID and Name for import /// </summary> [DataContract] public class SnmpSysOidMapImportItem { /// <summary> /// The Local ID /// </summary> [DataMember(Name = "id")] public int Id { get; set; } /// <summary> /// The OID /// </summary> [DataMember(Name = "oid")] public string Oid { get; set; } } }
18.375
46
0.623583
[ "MIT" ]
tdicks/LogicMonitor.Api
LogicMonitor.Api/LogicModules/SnmpSysOidMapImportItem.cs
443
C#
using DevExpress.XtraEditors; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TPV { public partial class Form1 : Form { private BBDD.GGarciaEntities contexto; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { generarTicket(); CarregaCategories(); } private void CarregaCategories() { flowLayoutPanel1.Controls.Clear(); BBDD.Categoria categoria = new BBDD.Categoria(); var x = (from y in contexto.Categoria where y.del == false select y).ToList(); foreach (var item in x) { SimpleButton b = new SimpleButton(); b.Text = item.nom; b.Click += new EventHandler(carregaProductes); //b.Tag = item.id; b.Tag = item; this.flowLayoutPanel1.Controls.Add(b); } } public void carregaProductes(object sender, EventArgs e) { this.flowLayoutPanel4.Controls.Clear(); SimpleButton sp = (SimpleButton)sender; BBDD.Producte productes = new BBDD.Producte(); BBDD.Categoria cat = (BBDD.Categoria)sp.Tag; var bbddproductes = (from y in contexto.Producte where y.del == false where y.Categoria.id == cat.id select y).ToList(); foreach (var item in bbddproductes) { SimpleButton b = new SimpleButton(); b.Text = item.nom; b.Tag = item; b.Click += new EventHandler(agregarLinea); this.flowLayoutPanel4.Controls.Add(b); } } public void agregarLinea(object sender, EventArgs e) { SimpleButton sp = (SimpleButton)sender; BBDD.Ticket t = (BBDD.Ticket)BSItem.Current; BBDD.TicketLin lin = new BBDD.TicketLin(/*false*/); BBDD.Producte productes = (BBDD.Producte)sp.Tag; lin.Producte = productes; lin.preu = productes.preu; lin.quantitat = 1; t.TicketLin.Add(lin); lin.Ticket = t; BSItem.ResetBindings(false); BSlinies.ResetBindings(false); } public void generarTicket(BBDD.Ticket ticket = null) { if (contexto != null) { contexto.Dispose(); //BSItem.DataSource = null; } contexto = new BBDD.GGarciaEntities(); BBDD.Ticket t = null; if (ticket == null) { t = new BBDD.Ticket(/*false*/); var z = (from y in contexto.Ticket where y.del == false orderby y.id descending select y.numeroticket).FirstOrDefault(); if (z == null) z = 0; t.numeroticket = z + 1; contexto.Ticket.Add(t); } else { t = contexto.Ticket.Find(ticket.id); } BSItem.DataSource = t; BSItem.ResetBindings(false); } private void btnNumerosClick(object sender, EventArgs e) { SimpleButton sp = (SimpleButton)sender; string strComprovacio = (string)textBox1.Text + (string)sp.Tag; if (decimal.TryParse(strComprovacio, out decimal result)) { textBox1.Text += (string)sp.Tag; } else { MessageBox.Show("Number not correct"); } } private void simpleButton15_Click(object sender, EventArgs e) { var txt = textBox1.Text; textBox1.Text = (string)txt.Remove(txt.Length - 1); } private void simpleButton13_Click(object sender, EventArgs e) { BBDD.TicketLin actual = (BBDD.TicketLin)BSlinies.Current; var txt = textBox1.Text; if (Decimal.TryParse(txt, out decimal de)) { actual.preu = (double)de; } textBox1.Clear(); BSlinies.ResetBindings(false); BSItem.ResetBindings(false); } private void simpleButton14_Click(object sender, EventArgs e) { BBDD.TicketLin actual = (BBDD.TicketLin)BSlinies.Current; var txt = textBox1.Text; if (Decimal.TryParse(txt, out decimal de)) { actual.quantitat = (int)de; } textBox1.Clear(); BSlinies.ResetBindings(false); BSItem.ResetBindings(false); } private void simpleButton1_Click(object sender, EventArgs e) { try { contexto.SaveChanges(); generarTicket(); resetForm(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void resetForm() { flowLayoutPanel4.Controls.Clear(); textBox1.Clear(); contexto.Dispose(); contexto = new BBDD.GGarciaEntities(); CarregaCategories(); generarTicket(); } private void simpleButton16_Click(object sender, EventArgs e) { Form2 form2 = new Form2(this); form2.ShowDialog(); } private void btnAfegirCategories_Click(object sender, EventArgs e) { } private void textEdit1_EditValueChanged(object sender, EventArgs e) { } } }
27.178899
136
0.515949
[ "MIT" ]
gabygarcia98/General-TPV
TPV/Form1.cs
5,927
C#
using System; using Microsoft.Extensions.DependencyInjection; namespace Shiny { public interface IPlatformBuilder { void Register(IServiceCollection services); } }
16.909091
51
0.736559
[ "MIT" ]
Codelisk/shiny
src/Shiny.Core/IPlatformBuilder.cs
188
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VEF.Interfaces.Base { public interface IToolBarTray { } }
15.230769
33
0.747475
[ "MIT" ]
devxkh/FrankE
Editor/VEF/VEF.Shared/PCL/Interfaces/Base/IToolBarTray.cs
200
C#
namespace Wolf { partial class GUI { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); this.comp.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GUI)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); this.lblVersion = new System.Windows.Forms.Label(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.mainToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.preferencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.shorcutsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.linksToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.lnkNFRT = new System.Windows.Forms.ToolStripMenuItem(); this.lnkWMIDU = new System.Windows.Forms.ToolStripMenuItem(); this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.flushDNSMenu = new System.Windows.Forms.ToolStripMenuItem(); this.mSTSCToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.releaseRenewIPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.repairVSSMenu = new System.Windows.Forms.ToolStripMenuItem(); this.launchCMDAsAdminToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.runOracleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sysfilecheckTSM = new System.Windows.Forms.ToolStripMenuItem(); this.sfcToolStrip = new System.Windows.Forms.ToolStripMenuItem(); this.openSFCLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.controlPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsAdminToolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.advFirewallToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.computerManagementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.deviceManagerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.eventViewerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.localSecurityPolicyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.servicesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.systemConfigurationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.taskSchedulerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsGeneralToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsNetworkSharingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsPowerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsUpdateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsUserAccountsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsSecurityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsDefenderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsFirewallToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.windowsHardwareToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.displayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.devicesPrintersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.keyboardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mouseMenu = new System.Windows.Forms.ToolStripMenuItem(); this.networkAdaptersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.soundToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.changeLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contributorsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.knownIssueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.linksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.linkToBYTEMeDevBlogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.linkToFacebookPageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.linkToOverclockNetThreadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.linkToSTEAMPageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.updatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.WolfToolTips = new System.Windows.Forms.ToolTip(this.components); this.btnRepairVSS = new System.Windows.Forms.Button(); this.lblIntelHTTBrake = new System.Windows.Forms.Label(); this.lblUAC = new System.Windows.Forms.Label(); this.btnSFCLog = new System.Windows.Forms.Button(); this.btnHPETD = new System.Windows.Forms.Button(); this.btnHPETE = new System.Windows.Forms.Button(); this.lblHPET = new System.Windows.Forms.Label(); this.btnCheckDrive = new System.Windows.Forms.Button(); this.label5 = new System.Windows.Forms.Label(); this.btnAdvCleanupSet = new System.Windows.Forms.Button(); this.btnAdvCleanupRun = new System.Windows.Forms.Button(); this.btnRestartWMI = new System.Windows.Forms.Button(); this.btnStartWinMemTest = new System.Windows.Forms.Button(); this.btnStartFileSigVer = new System.Windows.Forms.Button(); this.btnDriverQuery = new System.Windows.Forms.Button(); this.btnDriverQueryVerbose = new System.Windows.Forms.Button(); this.btnOpenFiles = new System.Windows.Forms.Button(); this.btnOpenFilesDisabled = new System.Windows.Forms.Button(); this.btnResetCMDSize = new System.Windows.Forms.Button(); this.btnDisableDEP = new System.Windows.Forms.Button(); this.btnEnableDEP = new System.Windows.Forms.Button(); this.label48 = new System.Windows.Forms.Label(); this.btnOpenFileSig = new System.Windows.Forms.Button(); this.btnDxDiag = new System.Windows.Forms.Button(); this.btnDxCpl = new System.Windows.Forms.Button(); this.btnSharedFolderMan = new System.Windows.Forms.Button(); this.btnPolicyEditor = new System.Windows.Forms.Button(); this.btnGPUpdate = new System.Windows.Forms.Button(); this.btnManageLUGs = new System.Windows.Forms.Button(); this.btnMSINFO32 = new System.Windows.Forms.Button(); this.btnODBCA = new System.Windows.Forms.Button(); this.btnPerfMon = new System.Windows.Forms.Button(); this.btnPrintManager = new System.Windows.Forms.Button(); this.btnResMon = new System.Windows.Forms.Button(); this.btnRSOP = new System.Windows.Forms.Button(); this.btnLocalSec = new System.Windows.Forms.Button(); this.btnWinRemote = new System.Windows.Forms.Button(); this.btnQuickConfigRM = new System.Windows.Forms.Button(); this.btnWMIMgmt = new System.Windows.Forms.Button(); this.btnPrintMigration = new System.Windows.Forms.Button(); this.btnWindowsFeatures = new System.Windows.Forms.Button(); this.btnMSTSC = new System.Windows.Forms.Button(); this.btnRemoteAssistance = new System.Windows.Forms.Button(); this.btnMSCONFIG = new System.Windows.Forms.Button(); this.btnWMSRT = new System.Windows.Forms.Button(); this.btnRepairWMI = new System.Windows.Forms.Button(); this.tbxCPUL3 = new System.Windows.Forms.TextBox(); this.btnStopLogging = new System.Windows.Forms.Button(); this.btnDisableTelemetry = new System.Windows.Forms.Button(); this.btnDeleteTrackingLog = new System.Windows.Forms.Button(); this.btnDisableDiagnosticTracking = new System.Windows.Forms.Button(); this.btnStopDiagnosticTracking = new System.Windows.Forms.Button(); this.btnDisableLocationUsage = new System.Windows.Forms.Button(); this.btnDisableLocationSensor = new System.Windows.Forms.Button(); this.btnOwnsLog = new System.Windows.Forms.Button(); this.tabLog = new System.Windows.Forms.TabPage(); this.tbxLog = new System.Windows.Forms.TextBox(); this.tabTools = new System.Windows.Forms.TabPage(); this.tabToolGroups = new System.Windows.Forms.TabControl(); this.toolsPage1 = new System.Windows.Forms.TabPage(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.btnACI = new System.Windows.Forms.Button(); this.tbxDEPStatus = new System.Windows.Forms.TextBox(); this.tbxHPETStatus = new System.Windows.Forms.TextBox(); this.btnSNR = new System.Windows.Forms.Button(); this.btnOracle = new System.Windows.Forms.Button(); this.groupBox18 = new System.Windows.Forms.GroupBox(); this.btnRegEdit = new System.Windows.Forms.Button(); this.btnSysFileCheck = new System.Windows.Forms.Button(); this.btnHiberDisable = new System.Windows.Forms.Button(); this.btnHiberEnable = new System.Windows.Forms.Button(); this.tbxHiberSize = new System.Windows.Forms.TextBox(); this.lblHiberFile = new System.Windows.Forms.Label(); this.btnCMDAdmin = new System.Windows.Forms.Button(); this.toolsPage2 = new System.Windows.Forms.TabPage(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.label4 = new System.Windows.Forms.Label(); this.tbxFirewallEnabled = new System.Windows.Forms.TextBox(); this.btnEnableFire = new System.Windows.Forms.Button(); this.btnDisableFire = new System.Windows.Forms.Button(); this.btnFlushDNS = new System.Windows.Forms.Button(); this.btnIPREN = new System.Windows.Forms.Button(); this.toolsPage3 = new System.Windows.Forms.TabPage(); this.groupBox7 = new System.Windows.Forms.GroupBox(); this.btnDefenderDisable = new System.Windows.Forms.Button(); this.btnDefenderEnable = new System.Windows.Forms.Button(); this.tbxDefenderStatus = new System.Windows.Forms.TextBox(); this.label47 = new System.Windows.Forms.Label(); this.btnUACRemoteDisable = new System.Windows.Forms.Button(); this.tbxUACRemoteStatus = new System.Windows.Forms.TextBox(); this.btnUACRemoteEnable = new System.Windows.Forms.Button(); this.btnUACD = new System.Windows.Forms.Button(); this.tbxUAC = new System.Windows.Forms.TextBox(); this.btnUACE = new System.Windows.Forms.Button(); this.lblRegNote = new System.Windows.Forms.Label(); this.btnCPD = new System.Windows.Forms.Button(); this.tbxCoreParking = new System.Windows.Forms.TextBox(); this.btnCPE = new System.Windows.Forms.Button(); this.toolsPage4 = new System.Windows.Forms.TabPage(); this.drvBox = new System.Windows.Forms.ComboBox(); this.lblDrive = new System.Windows.Forms.Label(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.groupBox9 = new System.Windows.Forms.GroupBox(); this.checkedListBox1 = new System.Windows.Forms.CheckedListBox(); this.otherOptions = new System.Windows.Forms.CheckedListBox(); this.btnDefrag = new System.Windows.Forms.Button(); this.lblChkOpt = new System.Windows.Forms.Label(); this.ntfsOptions = new System.Windows.Forms.CheckedListBox(); this.fsBox = new System.Windows.Forms.ComboBox(); this.toolsPage5 = new System.Windows.Forms.TabPage(); this.mtbxDomainUserPassword = new System.Windows.Forms.MaskedTextBox(); this.label28 = new System.Windows.Forms.Label(); this.label27 = new System.Windows.Forms.Label(); this.label26 = new System.Windows.Forms.Label(); this.tbxDomainUserName = new System.Windows.Forms.TextBox(); this.tbxDomainName2 = new System.Windows.Forms.TextBox(); this.tabDomain = new System.Windows.Forms.TabControl(); this.tabDomainWS = new System.Windows.Forms.TabPage(); this.cbxRGPU = new System.Windows.Forms.CheckBox(); this.btnRCLEAR = new System.Windows.Forms.Button(); this.cbxRBIOS = new System.Windows.Forms.CheckBox(); this.cbxRAUSERS = new System.Windows.Forms.CheckBox(); this.cbxRUSER = new System.Windows.Forms.CheckBox(); this.cbxRIP = new System.Windows.Forms.CheckBox(); this.cbxRCPU = new System.Windows.Forms.CheckBox(); this.cbxRMAC = new System.Windows.Forms.CheckBox(); this.cbxROS = new System.Windows.Forms.CheckBox(); this.label29 = new System.Windows.Forms.Label(); this.btnWSQuery = new System.Windows.Forms.Button(); this.tbxWSName = new System.Windows.Forms.TextBox(); this.treeWS = new System.Windows.Forms.TreeView(); this.tabDomainIPRQ = new System.Windows.Forms.TabPage(); this.lbRangeTotalTime = new System.Windows.Forms.Label(); this.lbRangePercent = new System.Windows.Forms.Label(); this.btnRangeExport = new System.Windows.Forms.Button(); this.label46 = new System.Windows.Forms.Label(); this.tbxIPEndFour = new System.Windows.Forms.TextBox(); this.tbxIPEndThree = new System.Windows.Forms.TextBox(); this.tbxIPEndTwo = new System.Windows.Forms.TextBox(); this.tbxIPEndOne = new System.Windows.Forms.TextBox(); this.tbxIPStartFour = new System.Windows.Forms.TextBox(); this.tbxIPStartThree = new System.Windows.Forms.TextBox(); this.tbxIPStartTwo = new System.Windows.Forms.TextBox(); this.cbxRangeGPU = new System.Windows.Forms.CheckBox(); this.btnRangeClear = new System.Windows.Forms.Button(); this.cbxRangeBIOS = new System.Windows.Forms.CheckBox(); this.cbxRangeUSERS = new System.Windows.Forms.CheckBox(); this.cbxRangeUSER = new System.Windows.Forms.CheckBox(); this.cbxRangeIP = new System.Windows.Forms.CheckBox(); this.cbxRangeCPU = new System.Windows.Forms.CheckBox(); this.cbxRangeMAC = new System.Windows.Forms.CheckBox(); this.cbxRangeOS = new System.Windows.Forms.CheckBox(); this.label45 = new System.Windows.Forms.Label(); this.btnRangeQuery = new System.Windows.Forms.Button(); this.tbxIPStartOne = new System.Windows.Forms.TextBox(); this.treeIPRange = new System.Windows.Forms.TreeView(); this.tabDomainLicensing = new System.Windows.Forms.TabPage(); this.btnExportLQs = new System.Windows.Forms.Button(); this.btnLicenseClear = new System.Windows.Forms.Button(); this.dgvLicenseQueries = new System.Windows.Forms.DataGridView(); this.col0 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.col1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.col2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.col4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.col5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.btnQueryLicense = new System.Windows.Forms.Button(); this.label6 = new System.Windows.Forms.Label(); this.tbxLMachineName = new System.Windows.Forms.TextBox(); this.tabSMTPTest = new System.Windows.Forms.TabPage(); this.groupBox20 = new System.Windows.Forms.GroupBox(); this.tbxRelay = new System.Windows.Forms.TextBox(); this.tbxSUser = new System.Windows.Forms.TextBox(); this.label17 = new System.Windows.Forms.Label(); this.label38 = new System.Windows.Forms.Label(); this.tbxSPassword = new System.Windows.Forms.MaskedTextBox(); this.checkCredentials = new System.Windows.Forms.CheckBox(); this.label58 = new System.Windows.Forms.Label(); this.tbxFrom = new System.Windows.Forms.TextBox(); this.checkExplicit = new System.Windows.Forms.CheckBox(); this.checkBypass = new System.Windows.Forms.CheckBox(); this.btnSendTest = new System.Windows.Forms.Button(); this.label59 = new System.Windows.Forms.Label(); this.label60 = new System.Windows.Forms.Label(); this.tbxBody = new System.Windows.Forms.TextBox(); this.label61 = new System.Windows.Forms.Label(); this.tbxSubject = new System.Windows.Forms.TextBox(); this.label62 = new System.Windows.Forms.Label(); this.label63 = new System.Windows.Forms.Label(); this.tbxTo = new System.Windows.Forms.TextBox(); this.tbxResponse = new System.Windows.Forms.TextBox(); this.toolsPage6 = new System.Windows.Forms.TabPage(); this.groupBox23 = new System.Windows.Forms.GroupBox(); this.btnOwnsHosts = new System.Windows.Forms.Button(); this.btnRestoreHosts = new System.Windows.Forms.Button(); this.btnBackupHosts = new System.Windows.Forms.Button(); this.btnModifyHosts = new System.Windows.Forms.Button(); this.groupBox22 = new System.Windows.Forms.GroupBox(); this.btnDisableLogging = new System.Windows.Forms.Button(); this.groupBox21 = new System.Windows.Forms.GroupBox(); this.gbxTelemetryStatus = new System.Windows.Forms.GroupBox(); this.tbxTrackingOwner = new System.Windows.Forms.TextBox(); this.tbxHostsOwner = new System.Windows.Forms.TextBox(); this.label72 = new System.Windows.Forms.Label(); this.tbxLocationSensor = new System.Windows.Forms.TextBox(); this.label71 = new System.Windows.Forms.Label(); this.tbxLocationUsage = new System.Windows.Forms.TextBox(); this.label70 = new System.Windows.Forms.Label(); this.tbxHostStatus = new System.Windows.Forms.TextBox(); this.label69 = new System.Windows.Forms.Label(); this.tbxTelemetryOSStatus = new System.Windows.Forms.TextBox(); this.label68 = new System.Windows.Forms.Label(); this.tbxTrackingLogStatus = new System.Windows.Forms.TextBox(); this.label67 = new System.Windows.Forms.Label(); this.tbxKeylogServiceStatus = new System.Windows.Forms.TextBox(); this.tbxKeylogServiceStartup = new System.Windows.Forms.TextBox(); this.btnTelemetryRefresh = new System.Windows.Forms.Button(); this.label66 = new System.Windows.Forms.Label(); this.label64 = new System.Windows.Forms.Label(); this.label65 = new System.Windows.Forms.Label(); this.tbxDiagnosticTrackingStatus = new System.Windows.Forms.TextBox(); this.tbxDiagnosticTrackingStartup = new System.Windows.Forms.TextBox(); this.toolsPage7 = new System.Windows.Forms.TabPage(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.rtbPOSH_ConsoleInput = new System.Windows.Forms.RichTextBox(); this.rtbPOSH_ConsoleDisplay = new System.Windows.Forms.RichTextBox(); this.btnLaunchVanillaPOSH = new System.Windows.Forms.Button(); this.btnLaunchWindowsPOSH = new System.Windows.Forms.Button(); this.btnLaunchRC1POSH = new System.Windows.Forms.Button(); this.btnLaunchRC2POSH = new System.Windows.Forms.Button(); this.btnRemoteSigned = new System.Windows.Forms.Button(); this.tabHard = new System.Windows.Forms.TabPage(); this.tabHW = new System.Windows.Forms.TabControl(); this.tabHW_CPU = new System.Windows.Forms.TabPage(); this.groupBox11 = new System.Windows.Forms.GroupBox(); this.label2 = new System.Windows.Forms.Label(); this.tbxCPUSocket = new System.Windows.Forms.TextBox(); this.tbxCPURole = new System.Windows.Forms.TextBox(); this.lblRole = new System.Windows.Forms.Label(); this.tbxCPURevision = new System.Windows.Forms.TextBox(); this.lblCPURevision = new System.Windows.Forms.Label(); this.tbxCPUL2 = new System.Windows.Forms.TextBox(); this.tbxCPUAddWidth = new System.Windows.Forms.TextBox(); this.tbxCPUArch = new System.Windows.Forms.TextBox(); this.tbxCPUFreq = new System.Windows.Forms.TextBox(); this.tbxCPULP = new System.Windows.Forms.TextBox(); this.tbxCPUCores = new System.Windows.Forms.TextBox(); this.tbxCPUStatus = new System.Windows.Forms.TextBox(); this.tbxCPUCaption = new System.Windows.Forms.TextBox(); this.tbxCPUFamily = new System.Windows.Forms.TextBox(); this.tbxCPUManufacturer = new System.Windows.Forms.TextBox(); this.tbxCPUName = new System.Windows.Forms.TextBox(); this.lblCPUL3 = new System.Windows.Forms.Label(); this.lblCPUL2 = new System.Windows.Forms.Label(); this.lblCPUFreq = new System.Windows.Forms.Label(); this.lblCPUName = new System.Windows.Forms.Label(); this.lblCPUMan = new System.Windows.Forms.Label(); this.lblCPULP = new System.Windows.Forms.Label(); this.lblCPUFam = new System.Windows.Forms.Label(); this.lblCPUCaption = new System.Windows.Forms.Label(); this.lblCPUCores = new System.Windows.Forms.Label(); this.lblCPUArch = new System.Windows.Forms.Label(); this.lblCPUAddressWidth = new System.Windows.Forms.Label(); this.lblCPUStatus = new System.Windows.Forms.Label(); this.lblCPUTI = new System.Windows.Forms.Label(); this.treePROCS = new System.Windows.Forms.TreeView(); this.tabHW_MEM = new System.Windows.Forms.TabPage(); this.groupBox13 = new System.Windows.Forms.GroupBox(); this.tbxVIRTAvail = new System.Windows.Forms.TextBox(); this.tbxPAGEAvailPerc = new System.Windows.Forms.TextBox(); this.tbxVIRTAvailPerc = new System.Windows.Forms.TextBox(); this.tbxMEMAvailPerc = new System.Windows.Forms.TextBox(); this.tbxMEMTotal = new System.Windows.Forms.TextBox(); this.tbxMEMAvail = new System.Windows.Forms.TextBox(); this.tbxMaxProcessSize = new System.Windows.Forms.TextBox(); this.tbxPageFileSize = new System.Windows.Forms.TextBox(); this.tbxPageFileFree = new System.Windows.Forms.TextBox(); this.tbxVIRTTotal = new System.Windows.Forms.TextBox(); this.lblMaxProcess = new System.Windows.Forms.Label(); this.lblMEMTotSize = new System.Windows.Forms.Label(); this.lblPageFileUsed = new System.Windows.Forms.Label(); this.lblMEMAvail = new System.Windows.Forms.Label(); this.lblPageFileSize = new System.Windows.Forms.Label(); this.lblVirtAvail = new System.Windows.Forms.Label(); this.lblTotVirt = new System.Windows.Forms.Label(); this.groupBox12 = new System.Windows.Forms.GroupBox(); this.tbxMEMManu = new System.Windows.Forms.TextBox(); this.tbxMEMSpeed = new System.Windows.Forms.TextBox(); this.lblMEMMan = new System.Windows.Forms.Label(); this.lblMEMSpeed = new System.Windows.Forms.Label(); this.treeMEM = new System.Windows.Forms.TreeView(); this.lblMEM = new System.Windows.Forms.Label(); this.tabHW_MB = new System.Windows.Forms.TabPage(); this.groupBox19 = new System.Windows.Forms.GroupBox(); this.label56 = new System.Windows.Forms.Label(); this.tbxMBPID = new System.Windows.Forms.TextBox(); this.label55 = new System.Windows.Forms.Label(); this.label54 = new System.Windows.Forms.Label(); this.label53 = new System.Windows.Forms.Label(); this.label52 = new System.Windows.Forms.Label(); this.tbxMBSerial = new System.Windows.Forms.TextBox(); this.tbxMBManu = new System.Windows.Forms.TextBox(); this.tbxMBVersion = new System.Windows.Forms.TextBox(); this.tbxMBName = new System.Windows.Forms.TextBox(); this.treeMB = new System.Windows.Forms.TreeView(); this.tabHW_DRIVES = new System.Windows.Forms.TabPage(); this.tlpDrives = new System.Windows.Forms.TableLayoutPanel(); this.lblLog = new System.Windows.Forms.Label(); this.lblPhys = new System.Windows.Forms.Label(); this.lblPart = new System.Windows.Forms.Label(); this.treePARTs = new System.Windows.Forms.TreeView(); this.treePDRVs = new System.Windows.Forms.TreeView(); this.treeLDRVs = new System.Windows.Forms.TreeView(); this.tabHW_GPU = new System.Windows.Forms.TabPage(); this.treeGPUs = new System.Windows.Forms.TreeView(); this.groupBox10 = new System.Windows.Forms.GroupBox(); this.label37 = new System.Windows.Forms.Label(); this.tbxGOUT = new System.Windows.Forms.TextBox(); this.label36 = new System.Windows.Forms.Label(); this.tbxGINFSEC = new System.Windows.Forms.TextBox(); this.label35 = new System.Windows.Forms.Label(); this.tbxGINF = new System.Windows.Forms.TextBox(); this.label32 = new System.Windows.Forms.Label(); this.tbxGDRIVERFILES = new System.Windows.Forms.TextBox(); this.label34 = new System.Windows.Forms.Label(); this.tbxGDRIVER = new System.Windows.Forms.TextBox(); this.label33 = new System.Windows.Forms.Label(); this.tbxGVRAM = new System.Windows.Forms.TextBox(); this.label31 = new System.Windows.Forms.Label(); this.tbxGMODEL = new System.Windows.Forms.TextBox(); this.label30 = new System.Windows.Forms.Label(); this.tbxGVEND = new System.Windows.Forms.TextBox(); this.tabHW_SND = new System.Windows.Forms.TabPage(); this.label44 = new System.Windows.Forms.Label(); this.treeSDs = new System.Windows.Forms.TreeView(); this.groupBox17 = new System.Windows.Forms.GroupBox(); this.label49 = new System.Windows.Forms.Label(); this.tbxSMANU = new System.Windows.Forms.TextBox(); this.label50 = new System.Windows.Forms.Label(); this.tbxSPROC = new System.Windows.Forms.TextBox(); this.label51 = new System.Windows.Forms.Label(); this.tbxSVEN = new System.Windows.Forms.TextBox(); this.tabHW_NIC = new System.Windows.Forms.TabPage(); this.tlpNICs = new System.Windows.Forms.TableLayoutPanel(); this.lblVirtualAdapters = new System.Windows.Forms.Label(); this.lblPhysicalAdapters = new System.Windows.Forms.Label(); this.treeVNICS = new System.Windows.Forms.TreeView(); this.treeNICS = new System.Windows.Forms.TreeView(); this.tabHW_DISPS = new System.Windows.Forms.TabPage(); this.groupBox16 = new System.Windows.Forms.GroupBox(); this.lbl1 = new System.Windows.Forms.Label(); this.tbxDPNP = new System.Windows.Forms.TextBox(); this.tbxDSTATS = new System.Windows.Forms.TextBox(); this.label43 = new System.Windows.Forms.Label(); this.tbxDID = new System.Windows.Forms.TextBox(); this.label42 = new System.Windows.Forms.Label(); this.tbxDTYPE = new System.Windows.Forms.TextBox(); this.label41 = new System.Windows.Forms.Label(); this.tbxDMAN = new System.Windows.Forms.TextBox(); this.label40 = new System.Windows.Forms.Label(); this.tbxDMON = new System.Windows.Forms.TextBox(); this.label39 = new System.Windows.Forms.Label(); this.treeDISPS = new System.Windows.Forms.TreeView(); this.tabMain = new System.Windows.Forms.TabPage(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.lblLocal = new System.Windows.Forms.Label(); this.tbxLocalization = new System.Windows.Forms.TextBox(); this.tbxGenDrive = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.lblNetVersion = new System.Windows.Forms.Label(); this.tbxNetVersion = new System.Windows.Forms.TextBox(); this.tbxLastBootUp = new System.Windows.Forms.TextBox(); this.tbxOSInstallDate = new System.Windows.Forms.TextBox(); this.tbxOSVersion = new System.Windows.Forms.TextBox(); this.tbxOSName = new System.Windows.Forms.TextBox(); this.lblLastBootUp = new System.Windows.Forms.Label(); this.lblOSInstallDate = new System.Windows.Forms.Label(); this.lblOSVersion = new System.Windows.Forms.Label(); this.lblOSName = new System.Windows.Forms.Label(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.tbxGenRAM = new System.Windows.Forms.TextBox(); this.tbxGenCPU = new System.Windows.Forms.TextBox(); this.lblRAM = new System.Windows.Forms.Label(); this.lblCPU = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.tbxCompanyName = new System.Windows.Forms.TextBox(); this.tbxCompName = new System.Windows.Forms.TextBox(); this.tbxUserName = new System.Windows.Forms.TextBox(); this.lblCompanyName = new System.Windows.Forms.Label(); this.lblCompName = new System.Windows.Forms.Label(); this.lblUserName = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.lblActCon = new System.Windows.Forms.Label(); this.tbxExtIP = new System.Windows.Forms.TextBox(); this.tbxIPv6 = new System.Windows.Forms.TextBox(); this.tbxIPv4 = new System.Windows.Forms.TextBox(); this.tbxDomainName = new System.Windows.Forms.TextBox(); this.btnGrabExternal = new System.Windows.Forms.Button(); this.treeCONs = new System.Windows.Forms.TreeView(); this.lblExtIP = new System.Windows.Forms.Label(); this.lblIPv6 = new System.Windows.Forms.Label(); this.lblIPv4 = new System.Windows.Forms.Label(); this.lblDomainName = new System.Windows.Forms.Label(); this.tabMainTab = new System.Windows.Forms.TabControl(); this.tabSoft = new System.Windows.Forms.TabPage(); this.tabSoftControl = new System.Windows.Forms.TabControl(); this.tabOSInfo = new System.Windows.Forms.TabPage(); this.label1 = new System.Windows.Forms.Label(); this.cbxMicrosoftKeys = new System.Windows.Forms.ComboBox(); this.groupBox14 = new System.Windows.Forms.GroupBox(); this.label19 = new System.Windows.Forms.Label(); this.tbxOpersInstall = new System.Windows.Forms.TextBox(); this.label20 = new System.Windows.Forms.Label(); this.tbxOpersDir = new System.Windows.Forms.TextBox(); this.label21 = new System.Windows.Forms.Label(); this.tbxOpersRegistered = new System.Windows.Forms.TextBox(); this.label22 = new System.Windows.Forms.Label(); this.tbxOpersSP = new System.Windows.Forms.TextBox(); this.label23 = new System.Windows.Forms.Label(); this.label24 = new System.Windows.Forms.Label(); this.tbxOpersVersion = new System.Windows.Forms.TextBox(); this.tbxOpersName = new System.Windows.Forms.TextBox(); this.btnShowHideProductKey = new System.Windows.Forms.Button(); this.treeOS = new System.Windows.Forms.TreeView(); this.label16 = new System.Windows.Forms.Label(); this.tbxOSProductKey = new System.Windows.Forms.TextBox(); this.tabBIOS = new System.Windows.Forms.TabPage(); this.groupBox15 = new System.Windows.Forms.GroupBox(); this.label12 = new System.Windows.Forms.Label(); this.tbxBIOSDate = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.tbxBIOSSerial = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.tbxPBIOS = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); this.tbxBIOSSMV = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.tbxBIOSName = new System.Windows.Forms.TextBox(); this.tbxBIOSManufacturer = new System.Windows.Forms.TextBox(); this.btnShowHideEmbeddedKey = new System.Windows.Forms.Button(); this.label15 = new System.Windows.Forms.Label(); this.tbxOemId = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.tbxEmbeddedKey = new System.Windows.Forms.TextBox(); this.treeBIOS = new System.Windows.Forms.TreeView(); this.tabPrograms = new System.Windows.Forms.TabPage(); this.label25 = new System.Windows.Forms.Label(); this.btnIPLRefresh = new System.Windows.Forms.Button(); this.dgvInstalledProgs = new System.Windows.Forms.DataGridView(); this.tabDrivers = new System.Windows.Forms.TabPage(); this.btnDriverRefresh = new System.Windows.Forms.Button(); this.dgvDrivers = new System.Windows.Forms.DataGridView(); this.tabNetPorts = new System.Windows.Forms.TabPage(); this.btnNetExport = new System.Windows.Forms.Button(); this.btnNetRefresh = new System.Windows.Forms.Button(); this.cbxNPAutoRefresh = new System.Windows.Forms.CheckBox(); this.label57 = new System.Windows.Forms.Label(); this.dgvNetPorts = new System.Windows.Forms.DataGridView(); this.tabAccount = new System.Windows.Forms.TabPage(); this.btnAccountExport = new System.Windows.Forms.Button(); this.treeACTs = new System.Windows.Forms.TreeView(); this.tabDMA = new System.Windows.Forms.TabPage(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.label18 = new System.Windows.Forms.Label(); this.treeIRQ = new System.Windows.Forms.TreeView(); this.treeTPs = new System.Windows.Forms.TreeView(); this.label13 = new System.Windows.Forms.Label(); this.menu_NetPort = new System.Windows.Forms.ContextMenuStrip(this.components); this.npKillProcess = new System.Windows.Forms.ToolStripMenuItem(); this.npKillProcessAndChildren = new System.Windows.Forms.ToolStripMenuItem(); this.menu_IPL = new System.Windows.Forms.ContextMenuStrip(this.components); this.iplUninstall = new System.Windows.Forms.ToolStripMenuItem(); this.llByteMeDev = new System.Windows.Forms.LinkLabel(); this.lbCPUUsage = new System.Windows.Forms.Label(); this.lbRamUsage = new System.Windows.Forms.Label(); this.lblLatestVersion = new System.Windows.Forms.LinkLabel(); this.menuStrip1.SuspendLayout(); this.tabLog.SuspendLayout(); this.tabTools.SuspendLayout(); this.tabToolGroups.SuspendLayout(); this.toolsPage1.SuspendLayout(); this.groupBox6.SuspendLayout(); this.groupBox18.SuspendLayout(); this.toolsPage2.SuspendLayout(); this.groupBox5.SuspendLayout(); this.toolsPage3.SuspendLayout(); this.groupBox7.SuspendLayout(); this.toolsPage4.SuspendLayout(); this.groupBox8.SuspendLayout(); this.groupBox9.SuspendLayout(); this.toolsPage5.SuspendLayout(); this.tabDomain.SuspendLayout(); this.tabDomainWS.SuspendLayout(); this.tabDomainIPRQ.SuspendLayout(); this.tabDomainLicensing.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvLicenseQueries)).BeginInit(); this.tabSMTPTest.SuspendLayout(); this.groupBox20.SuspendLayout(); this.toolsPage6.SuspendLayout(); this.groupBox23.SuspendLayout(); this.groupBox22.SuspendLayout(); this.groupBox21.SuspendLayout(); this.gbxTelemetryStatus.SuspendLayout(); this.toolsPage7.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); this.tabHard.SuspendLayout(); this.tabHW.SuspendLayout(); this.tabHW_CPU.SuspendLayout(); this.groupBox11.SuspendLayout(); this.tabHW_MEM.SuspendLayout(); this.groupBox13.SuspendLayout(); this.groupBox12.SuspendLayout(); this.tabHW_MB.SuspendLayout(); this.groupBox19.SuspendLayout(); this.tabHW_DRIVES.SuspendLayout(); this.tlpDrives.SuspendLayout(); this.tabHW_GPU.SuspendLayout(); this.groupBox10.SuspendLayout(); this.tabHW_SND.SuspendLayout(); this.groupBox17.SuspendLayout(); this.tabHW_NIC.SuspendLayout(); this.tlpNICs.SuspendLayout(); this.tabHW_DISPS.SuspendLayout(); this.groupBox16.SuspendLayout(); this.tabMain.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.tabMainTab.SuspendLayout(); this.tabSoft.SuspendLayout(); this.tabSoftControl.SuspendLayout(); this.tabOSInfo.SuspendLayout(); this.groupBox14.SuspendLayout(); this.tabBIOS.SuspendLayout(); this.groupBox15.SuspendLayout(); this.tabPrograms.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvInstalledProgs)).BeginInit(); this.tabDrivers.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvDrivers)).BeginInit(); this.tabNetPorts.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvNetPorts)).BeginInit(); this.tabAccount.SuspendLayout(); this.tabDMA.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.menu_NetPort.SuspendLayout(); this.menu_IPL.SuspendLayout(); this.SuspendLayout(); // // lblVersion // this.lblVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lblVersion.AutoSize = true; this.lblVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblVersion.ForeColor = System.Drawing.SystemColors.Control; this.lblVersion.Location = new System.Drawing.Point(637, 473); this.lblVersion.Name = "lblVersion"; this.lblVersion.Size = new System.Drawing.Size(14, 13); this.lblVersion.TabIndex = 2; this.lblVersion.Text = "v"; // // menuStrip1 // this.menuStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mainToolStripMenuItem, this.optionsToolStripMenuItem, this.shorcutsToolStripMenuItem, this.helpToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(796, 24); this.menuStrip1.TabIndex = 3; this.menuStrip1.Text = "menuStrip1"; // // mainToolStripMenuItem // this.mainToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exitToolStripMenuItem}); this.mainToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.mainToolStripMenuItem.Name = "mainToolStripMenuItem"; this.mainToolStripMenuItem.Size = new System.Drawing.Size(59, 20); this.mainToolStripMenuItem.Text = "Control"; // // exitToolStripMenuItem // this.exitToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.exitToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q))); this.exitToolStripMenuItem.Size = new System.Drawing.Size(140, 22); this.exitToolStripMenuItem.Text = "Quit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // optionsToolStripMenuItem // this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.preferencesToolStripMenuItem}); this.optionsToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); this.optionsToolStripMenuItem.Text = "Options"; // // preferencesToolStripMenuItem // this.preferencesToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.preferencesToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem"; this.preferencesToolStripMenuItem.Size = new System.Drawing.Size(135, 22); this.preferencesToolStripMenuItem.Text = "Preferences"; this.preferencesToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // shorcutsToolStripMenuItem // this.shorcutsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.linksToolStripMenuItem1, this.toolsToolStripMenuItem, this.windowsToolStripMenuItem}); this.shorcutsToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.shorcutsToolStripMenuItem.Name = "shorcutsToolStripMenuItem"; this.shorcutsToolStripMenuItem.Size = new System.Drawing.Size(69, 20); this.shorcutsToolStripMenuItem.Text = "Shortcuts"; // // linksToolStripMenuItem1 // this.linksToolStripMenuItem1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.linksToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lnkNFRT, this.lnkWMIDU}); this.linksToolStripMenuItem1.ForeColor = System.Drawing.Color.White; this.linksToolStripMenuItem1.Name = "linksToolStripMenuItem1"; this.linksToolStripMenuItem1.Size = new System.Drawing.Size(123, 22); this.linksToolStripMenuItem1.Text = "Links"; // // lnkNFRT // this.lnkNFRT.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.lnkNFRT.ForeColor = System.Drawing.Color.White; this.lnkNFRT.Name = "lnkNFRT"; this.lnkNFRT.Size = new System.Drawing.Size(243, 22); this.lnkNFRT.Text = "MS .NET Framework Repair Tool"; this.lnkNFRT.Click += new System.EventHandler(this.ClickEventHandler); // // lnkWMIDU // this.lnkWMIDU.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.lnkWMIDU.ForeColor = System.Drawing.Color.White; this.lnkWMIDU.Name = "lnkWMIDU"; this.lnkWMIDU.Size = new System.Drawing.Size(243, 22); this.lnkWMIDU.Text = "MS WMI Diagnostics Utility"; this.lnkWMIDU.Click += new System.EventHandler(this.ClickEventHandler); // // toolsToolStripMenuItem // this.toolsToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.flushDNSMenu, this.mSTSCToolStripMenuItem, this.releaseRenewIPToolStripMenuItem, this.repairVSSMenu, this.launchCMDAsAdminToolStripMenuItem, this.runOracleToolStripMenuItem, this.sysfilecheckTSM}); this.toolsToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; this.toolsToolStripMenuItem.Size = new System.Drawing.Size(123, 22); this.toolsToolStripMenuItem.Text = "Tools"; // // flushDNSMenu // this.flushDNSMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.flushDNSMenu.ForeColor = System.Drawing.Color.White; this.flushDNSMenu.Name = "flushDNSMenu"; this.flushDNSMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.D))); this.flushDNSMenu.Size = new System.Drawing.Size(216, 22); this.flushDNSMenu.Text = "Flush DNS"; this.flushDNSMenu.Click += new System.EventHandler(this.ClickEventHandler); // // mSTSCToolStripMenuItem // this.mSTSCToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.mSTSCToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.mSTSCToolStripMenuItem.Name = "mSTSCToolStripMenuItem"; this.mSTSCToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.R))); this.mSTSCToolStripMenuItem.Size = new System.Drawing.Size(216, 22); this.mSTSCToolStripMenuItem.Text = "MSTSC"; this.mSTSCToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // releaseRenewIPToolStripMenuItem // this.releaseRenewIPToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.releaseRenewIPToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.releaseRenewIPToolStripMenuItem.Name = "releaseRenewIPToolStripMenuItem"; this.releaseRenewIPToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.P))); this.releaseRenewIPToolStripMenuItem.Size = new System.Drawing.Size(216, 22); this.releaseRenewIPToolStripMenuItem.Text = "Release/Renew IP"; this.releaseRenewIPToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // repairVSSMenu // this.repairVSSMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.repairVSSMenu.ForeColor = System.Drawing.Color.White; this.repairVSSMenu.Name = "repairVSSMenu"; this.repairVSSMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.V))); this.repairVSSMenu.Size = new System.Drawing.Size(216, 22); this.repairVSSMenu.Text = "Repair VSS"; this.repairVSSMenu.Click += new System.EventHandler(this.ClickEventHandler); // // launchCMDAsAdminToolStripMenuItem // this.launchCMDAsAdminToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.launchCMDAsAdminToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.launchCMDAsAdminToolStripMenuItem.Name = "launchCMDAsAdminToolStripMenuItem"; this.launchCMDAsAdminToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.C))); this.launchCMDAsAdminToolStripMenuItem.Size = new System.Drawing.Size(216, 22); this.launchCMDAsAdminToolStripMenuItem.Text = "Run CMD as Admin"; this.launchCMDAsAdminToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // runOracleToolStripMenuItem // this.runOracleToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.runOracleToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.runOracleToolStripMenuItem.Name = "runOracleToolStripMenuItem"; this.runOracleToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.O))); this.runOracleToolStripMenuItem.Size = new System.Drawing.Size(216, 22); this.runOracleToolStripMenuItem.Text = "Run Oracle"; // // sysfilecheckTSM // this.sysfilecheckTSM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.sysfilecheckTSM.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.sfcToolStrip, this.openSFCLogToolStripMenuItem}); this.sysfilecheckTSM.ForeColor = System.Drawing.Color.White; this.sysfilecheckTSM.Name = "sysfilecheckTSM"; this.sysfilecheckTSM.Size = new System.Drawing.Size(216, 22); this.sysfilecheckTSM.Text = "System File Check"; // // sfcToolStrip // this.sfcToolStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.sfcToolStrip.ForeColor = System.Drawing.Color.White; this.sfcToolStrip.Name = "sfcToolStrip"; this.sfcToolStrip.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.S))); this.sfcToolStrip.Size = new System.Drawing.Size(154, 22); this.sfcToolStrip.Text = "Run SFC"; this.sfcToolStrip.Click += new System.EventHandler(this.ClickEventHandler); // // openSFCLogToolStripMenuItem // this.openSFCLogToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.openSFCLogToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.openSFCLogToolStripMenuItem.Name = "openSFCLogToolStripMenuItem"; this.openSFCLogToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.openSFCLogToolStripMenuItem.Text = "Open SFC Log"; this.openSFCLogToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsToolStripMenuItem // this.windowsToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.controlPanelToolStripMenuItem, this.windowsAdminToolsToolStripMenuItem, this.windowsGeneralToolStripMenuItem, this.windowsSecurityToolStripMenuItem, this.windowsHardwareToolStripMenuItem}); this.windowsToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsToolStripMenuItem.Name = "windowsToolStripMenuItem"; this.windowsToolStripMenuItem.Size = new System.Drawing.Size(123, 22); this.windowsToolStripMenuItem.Text = "Windows"; // // controlPanelToolStripMenuItem // this.controlPanelToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.controlPanelToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.controlPanelToolStripMenuItem.Name = "controlPanelToolStripMenuItem"; this.controlPanelToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.C))); this.controlPanelToolStripMenuItem.Size = new System.Drawing.Size(262, 22); this.controlPanelToolStripMenuItem.Text = "Control Panel"; this.controlPanelToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsAdminToolsToolStripMenuItem // this.windowsAdminToolsToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsAdminToolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.advFirewallToolStripMenuItem, this.computerManagementToolStripMenuItem, this.deviceManagerToolStripMenuItem, this.eventViewerToolStripMenuItem, this.localSecurityPolicyToolStripMenuItem, this.servicesToolStripMenuItem, this.systemConfigurationToolStripMenuItem, this.taskSchedulerToolStripMenuItem}); this.windowsAdminToolsToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsAdminToolsToolStripMenuItem.Name = "windowsAdminToolsToolStripMenuItem"; this.windowsAdminToolsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.T))); this.windowsAdminToolsToolStripMenuItem.Size = new System.Drawing.Size(262, 22); this.windowsAdminToolsToolStripMenuItem.Text = "Windows Admin Tools"; // // advFirewallToolStripMenuItem // this.advFirewallToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.advFirewallToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.advFirewallToolStripMenuItem.Name = "advFirewallToolStripMenuItem"; this.advFirewallToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.F))); this.advFirewallToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.advFirewallToolStripMenuItem.Text = "Adv. Firewall"; this.advFirewallToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // computerManagementToolStripMenuItem // this.computerManagementToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.computerManagementToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.computerManagementToolStripMenuItem.Name = "computerManagementToolStripMenuItem"; this.computerManagementToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.C))); this.computerManagementToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.computerManagementToolStripMenuItem.Text = "Computer Management"; this.computerManagementToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // deviceManagerToolStripMenuItem // this.deviceManagerToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.deviceManagerToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.deviceManagerToolStripMenuItem.Name = "deviceManagerToolStripMenuItem"; this.deviceManagerToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.D))); this.deviceManagerToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.deviceManagerToolStripMenuItem.Text = "Device Manager"; this.deviceManagerToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // eventViewerToolStripMenuItem // this.eventViewerToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.eventViewerToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.eventViewerToolStripMenuItem.Name = "eventViewerToolStripMenuItem"; this.eventViewerToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.E))); this.eventViewerToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.eventViewerToolStripMenuItem.Text = "Event Viewer"; this.eventViewerToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // localSecurityPolicyToolStripMenuItem // this.localSecurityPolicyToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.localSecurityPolicyToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.localSecurityPolicyToolStripMenuItem.Name = "localSecurityPolicyToolStripMenuItem"; this.localSecurityPolicyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.L))); this.localSecurityPolicyToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.localSecurityPolicyToolStripMenuItem.Text = "Local Security Policy"; this.localSecurityPolicyToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // servicesToolStripMenuItem // this.servicesToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.servicesToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.servicesToolStripMenuItem.Name = "servicesToolStripMenuItem"; this.servicesToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.V))); this.servicesToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.servicesToolStripMenuItem.Text = "Services"; this.servicesToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // systemConfigurationToolStripMenuItem // this.systemConfigurationToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.systemConfigurationToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.systemConfigurationToolStripMenuItem.Name = "systemConfigurationToolStripMenuItem"; this.systemConfigurationToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.S))); this.systemConfigurationToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.systemConfigurationToolStripMenuItem.Text = "System Configuration"; this.systemConfigurationToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // taskSchedulerToolStripMenuItem // this.taskSchedulerToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.taskSchedulerToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.taskSchedulerToolStripMenuItem.Name = "taskSchedulerToolStripMenuItem"; this.taskSchedulerToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.T))); this.taskSchedulerToolStripMenuItem.Size = new System.Drawing.Size(272, 22); this.taskSchedulerToolStripMenuItem.Text = "Task Scheduler"; this.taskSchedulerToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsGeneralToolStripMenuItem // this.windowsGeneralToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsGeneralToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.windowsNetworkSharingToolStripMenuItem, this.windowsPowerToolStripMenuItem, this.windowsUpdateToolStripMenuItem, this.windowsUserAccountsToolStripMenuItem}); this.windowsGeneralToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsGeneralToolStripMenuItem.Name = "windowsGeneralToolStripMenuItem"; this.windowsGeneralToolStripMenuItem.Size = new System.Drawing.Size(262, 22); this.windowsGeneralToolStripMenuItem.Text = "Windows General"; // // windowsNetworkSharingToolStripMenuItem // this.windowsNetworkSharingToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsNetworkSharingToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsNetworkSharingToolStripMenuItem.Name = "windowsNetworkSharingToolStripMenuItem"; this.windowsNetworkSharingToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.N))); this.windowsNetworkSharingToolStripMenuItem.Size = new System.Drawing.Size(291, 22); this.windowsNetworkSharingToolStripMenuItem.Text = "Windows Network/Sharing"; this.windowsNetworkSharingToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsPowerToolStripMenuItem // this.windowsPowerToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsPowerToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsPowerToolStripMenuItem.Name = "windowsPowerToolStripMenuItem"; this.windowsPowerToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.P))); this.windowsPowerToolStripMenuItem.Size = new System.Drawing.Size(291, 22); this.windowsPowerToolStripMenuItem.Text = "Windows Power"; this.windowsPowerToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsUpdateToolStripMenuItem // this.windowsUpdateToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsUpdateToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsUpdateToolStripMenuItem.Name = "windowsUpdateToolStripMenuItem"; this.windowsUpdateToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.U))); this.windowsUpdateToolStripMenuItem.Size = new System.Drawing.Size(291, 22); this.windowsUpdateToolStripMenuItem.Text = "Windows Update"; this.windowsUpdateToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsUserAccountsToolStripMenuItem // this.windowsUserAccountsToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsUserAccountsToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsUserAccountsToolStripMenuItem.Name = "windowsUserAccountsToolStripMenuItem"; this.windowsUserAccountsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.C))); this.windowsUserAccountsToolStripMenuItem.Size = new System.Drawing.Size(291, 22); this.windowsUserAccountsToolStripMenuItem.Text = "Windows User Accounts"; this.windowsUserAccountsToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsSecurityToolStripMenuItem // this.windowsSecurityToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsSecurityToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.windowsDefenderToolStripMenuItem, this.windowsFirewallToolStripMenuItem}); this.windowsSecurityToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsSecurityToolStripMenuItem.Name = "windowsSecurityToolStripMenuItem"; this.windowsSecurityToolStripMenuItem.Size = new System.Drawing.Size(262, 22); this.windowsSecurityToolStripMenuItem.Text = "Windows Security"; // // windowsDefenderToolStripMenuItem // this.windowsDefenderToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsDefenderToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsDefenderToolStripMenuItem.Name = "windowsDefenderToolStripMenuItem"; this.windowsDefenderToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.W))); this.windowsDefenderToolStripMenuItem.Size = new System.Drawing.Size(251, 22); this.windowsDefenderToolStripMenuItem.Text = "Windows Defender"; this.windowsDefenderToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsFirewallToolStripMenuItem // this.windowsFirewallToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsFirewallToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsFirewallToolStripMenuItem.Name = "windowsFirewallToolStripMenuItem"; this.windowsFirewallToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.F))); this.windowsFirewallToolStripMenuItem.Size = new System.Drawing.Size(251, 22); this.windowsFirewallToolStripMenuItem.Text = "Windows Firewall"; this.windowsFirewallToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // windowsHardwareToolStripMenuItem // this.windowsHardwareToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.windowsHardwareToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.displayToolStripMenuItem, this.devicesPrintersToolStripMenuItem, this.keyboardToolStripMenuItem, this.mouseMenu, this.networkAdaptersToolStripMenuItem, this.soundToolStripMenuItem}); this.windowsHardwareToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.windowsHardwareToolStripMenuItem.Name = "windowsHardwareToolStripMenuItem"; this.windowsHardwareToolStripMenuItem.Size = new System.Drawing.Size(262, 22); this.windowsHardwareToolStripMenuItem.Text = "Windows Hardware"; // // displayToolStripMenuItem // this.displayToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.displayToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.displayToolStripMenuItem.Name = "displayToolStripMenuItem"; this.displayToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.D))); this.displayToolStripMenuItem.Size = new System.Drawing.Size(243, 22); this.displayToolStripMenuItem.Text = "Display"; this.displayToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // devicesPrintersToolStripMenuItem // this.devicesPrintersToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.devicesPrintersToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.devicesPrintersToolStripMenuItem.Name = "devicesPrintersToolStripMenuItem"; this.devicesPrintersToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.P))); this.devicesPrintersToolStripMenuItem.Size = new System.Drawing.Size(243, 22); this.devicesPrintersToolStripMenuItem.Text = "Devices/Printers"; this.devicesPrintersToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // keyboardToolStripMenuItem // this.keyboardToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.keyboardToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.keyboardToolStripMenuItem.Name = "keyboardToolStripMenuItem"; this.keyboardToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.K))); this.keyboardToolStripMenuItem.Size = new System.Drawing.Size(243, 22); this.keyboardToolStripMenuItem.Text = "Keyboard"; this.keyboardToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // mouseMenu // this.mouseMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.mouseMenu.ForeColor = System.Drawing.Color.White; this.mouseMenu.Name = "mouseMenu"; this.mouseMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.M))); this.mouseMenu.Size = new System.Drawing.Size(243, 22); this.mouseMenu.Text = "Mouse"; this.mouseMenu.Click += new System.EventHandler(this.ClickEventHandler); // // networkAdaptersToolStripMenuItem // this.networkAdaptersToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.networkAdaptersToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.networkAdaptersToolStripMenuItem.Name = "networkAdaptersToolStripMenuItem"; this.networkAdaptersToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.A))); this.networkAdaptersToolStripMenuItem.Size = new System.Drawing.Size(243, 22); this.networkAdaptersToolStripMenuItem.Text = "Network Adapters"; this.networkAdaptersToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // soundToolStripMenuItem // this.soundToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.soundToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.soundToolStripMenuItem.Name = "soundToolStripMenuItem"; this.soundToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.S))); this.soundToolStripMenuItem.Size = new System.Drawing.Size(243, 22); this.soundToolStripMenuItem.Text = "Sound"; this.soundToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // helpToolStripMenuItem // this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.aboutToolStripMenuItem, this.changeLogToolStripMenuItem, this.contributorsToolStripMenuItem, this.knownIssueToolStripMenuItem, this.linksToolStripMenuItem, this.updatesToolStripMenuItem}); this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; this.helpToolStripMenuItem.Size = new System.Drawing.Size(40, 20); this.helpToolStripMenuItem.Text = "Info"; // // aboutToolStripMenuItem // this.aboutToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.aboutToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; this.aboutToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.aboutToolStripMenuItem.Text = "About WOLF"; this.aboutToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // changeLogToolStripMenuItem // this.changeLogToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.changeLogToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.changeLogToolStripMenuItem.Name = "changeLogToolStripMenuItem"; this.changeLogToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.changeLogToolStripMenuItem.Text = "Change Log"; this.changeLogToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // contributorsToolStripMenuItem // this.contributorsToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.contributorsToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.contributorsToolStripMenuItem.Name = "contributorsToolStripMenuItem"; this.contributorsToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.contributorsToolStripMenuItem.Text = "Contributors"; this.contributorsToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // knownIssueToolStripMenuItem // this.knownIssueToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.knownIssueToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.knownIssueToolStripMenuItem.Name = "knownIssueToolStripMenuItem"; this.knownIssueToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.knownIssueToolStripMenuItem.Text = "Known Issues"; this.knownIssueToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // linksToolStripMenuItem // this.linksToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.linksToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.linkToBYTEMeDevBlogToolStripMenuItem, this.linkToFacebookPageToolStripMenuItem, this.linkToOverclockNetThreadToolStripMenuItem, this.linkToSTEAMPageToolStripMenuItem}); this.linksToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.linksToolStripMenuItem.Name = "linksToolStripMenuItem"; this.linksToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.linksToolStripMenuItem.Text = "Links"; // // linkToBYTEMeDevBlogToolStripMenuItem // this.linkToBYTEMeDevBlogToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.linkToBYTEMeDevBlogToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.linkToBYTEMeDevBlogToolStripMenuItem.Name = "linkToBYTEMeDevBlogToolStripMenuItem"; this.linkToBYTEMeDevBlogToolStripMenuItem.Size = new System.Drawing.Size(229, 22); this.linkToBYTEMeDevBlogToolStripMenuItem.Text = "Link to BYTEMeDev.com"; this.linkToBYTEMeDevBlogToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // linkToFacebookPageToolStripMenuItem // this.linkToFacebookPageToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.linkToFacebookPageToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.linkToFacebookPageToolStripMenuItem.Name = "linkToFacebookPageToolStripMenuItem"; this.linkToFacebookPageToolStripMenuItem.Size = new System.Drawing.Size(229, 22); this.linkToFacebookPageToolStripMenuItem.Text = "Link to Facebook Page"; this.linkToFacebookPageToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // linkToOverclockNetThreadToolStripMenuItem // this.linkToOverclockNetThreadToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.linkToOverclockNetThreadToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.linkToOverclockNetThreadToolStripMenuItem.Name = "linkToOverclockNetThreadToolStripMenuItem"; this.linkToOverclockNetThreadToolStripMenuItem.Size = new System.Drawing.Size(229, 22); this.linkToOverclockNetThreadToolStripMenuItem.Text = "Link to Overclock.net Thread!"; this.linkToOverclockNetThreadToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // linkToSTEAMPageToolStripMenuItem // this.linkToSTEAMPageToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.linkToSTEAMPageToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.linkToSTEAMPageToolStripMenuItem.Name = "linkToSTEAMPageToolStripMenuItem"; this.linkToSTEAMPageToolStripMenuItem.Size = new System.Drawing.Size(229, 22); this.linkToSTEAMPageToolStripMenuItem.Text = "Link to STEAM Page"; this.linkToSTEAMPageToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // updatesToolStripMenuItem // this.updatesToolStripMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.updatesToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.updatesToolStripMenuItem.Name = "updatesToolStripMenuItem"; this.updatesToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.U))); this.updatesToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.updatesToolStripMenuItem.Text = "Updates"; this.updatesToolStripMenuItem.Click += new System.EventHandler(this.ClickEventHandler); // // WolfToolTips // this.WolfToolTips.AutoPopDelay = 7000; this.WolfToolTips.InitialDelay = 500; this.WolfToolTips.IsBalloon = true; this.WolfToolTips.ReshowDelay = 100; // // btnRepairVSS // this.btnRepairVSS.Location = new System.Drawing.Point(134, 46); this.btnRepairVSS.Name = "btnRepairVSS"; this.btnRepairVSS.Size = new System.Drawing.Size(127, 29); this.btnRepairVSS.TabIndex = 15; this.btnRepairVSS.Text = "Repair VSS"; this.WolfToolTips.SetToolTip(this.btnRepairVSS, "This will brute force (as recommended by MS) repair any and all things used by VS" + "S. It is best to verify it worked by utilizing VSSADMIN commands to add shadow " + "copy enablement of the C:\\."); this.btnRepairVSS.UseVisualStyleBackColor = true; this.btnRepairVSS.Click += new System.EventHandler(this.ClickEventHandler); // // lblIntelHTTBrake // this.lblIntelHTTBrake.AutoSize = true; this.lblIntelHTTBrake.Location = new System.Drawing.Point(24, 24); this.lblIntelHTTBrake.Name = "lblIntelHTTBrake"; this.lblIntelHTTBrake.Size = new System.Drawing.Size(118, 13); this.lblIntelHTTBrake.TabIndex = 8; this.lblIntelHTTBrake.Text = "Windows Core Parking:"; this.WolfToolTips.SetToolTip(this.lblIntelHTTBrake, "Recommended: Disabled on Systems with more than 4 logical threads."); // // lblUAC // this.lblUAC.AutoSize = true; this.lblUAC.Location = new System.Drawing.Point(81, 49); this.lblUAC.Name = "lblUAC"; this.lblUAC.Size = new System.Drawing.Size(62, 13); this.lblUAC.TabIndex = 13; this.lblUAC.Text = "UAC (LUA):"; this.WolfToolTips.SetToolTip(this.lblUAC, "Recommended: Disabled on Systems with more than 4 logical threads."); // // btnSFCLog // this.btnSFCLog.Location = new System.Drawing.Point(134, 17); this.btnSFCLog.Name = "btnSFCLog"; this.btnSFCLog.Size = new System.Drawing.Size(53, 29); this.btnSFCLog.TabIndex = 14; this.btnSFCLog.Text = "OSL"; this.WolfToolTips.SetToolTip(this.btnSFCLog, "Open up the SFC Log File."); this.btnSFCLog.UseVisualStyleBackColor = true; this.btnSFCLog.Click += new System.EventHandler(this.ClickEventHandler); // // btnHPETD // this.btnHPETD.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnHPETD.Location = new System.Drawing.Point(699, 92); this.btnHPETD.Name = "btnHPETD"; this.btnHPETD.Size = new System.Drawing.Size(51, 20); this.btnHPETD.TabIndex = 29; this.btnHPETD.Text = "Disable"; this.WolfToolTips.SetToolTip(this.btnHPETD, "This disables the use of HPET in Windows, HOWEVER, the BIOS may still need HPET d" + "isabled. Requires Reboot."); this.btnHPETD.UseVisualStyleBackColor = true; this.btnHPETD.Click += new System.EventHandler(this.ClickEventHandler); // // btnHPETE // this.btnHPETE.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnHPETE.Location = new System.Drawing.Point(638, 92); this.btnHPETE.Name = "btnHPETE"; this.btnHPETE.Size = new System.Drawing.Size(54, 20); this.btnHPETE.TabIndex = 28; this.btnHPETE.Text = "Enable"; this.WolfToolTips.SetToolTip(this.btnHPETE, "This enables Windows to use HPET, HOWEVER, the system has to have HPET Enabled vi" + "a BIOS. Requires Reboot."); this.btnHPETE.UseVisualStyleBackColor = true; this.btnHPETE.Click += new System.EventHandler(this.ClickEventHandler); // // lblHPET // this.lblHPET.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblHPET.AutoSize = true; this.lblHPET.Location = new System.Drawing.Point(597, 73); this.lblHPET.Name = "lblHPET"; this.lblHPET.Size = new System.Drawing.Size(39, 13); this.lblHPET.TabIndex = 26; this.lblHPET.Text = "HPET:"; this.WolfToolTips.SetToolTip(this.lblHPET, "Note: Enabling HPET may indeed speed up gaming performance on multi-GPU systems, " + "although in some cases DPC Latency shows that HPET is bugged on that system."); // // btnCheckDrive // this.btnCheckDrive.Location = new System.Drawing.Point(5, 29); this.btnCheckDrive.Name = "btnCheckDrive"; this.btnCheckDrive.Size = new System.Drawing.Size(116, 24); this.btnCheckDrive.TabIndex = 25; this.btnCheckDrive.Text = "Check Disk"; this.WolfToolTips.SetToolTip(this.btnCheckDrive, "Executes a ChkDsk Command, with no options below it automatically executes in Rea" + "d-Only, allowing the System drive to be scanned while mounted."); this.btnCheckDrive.UseVisualStyleBackColor = true; this.btnCheckDrive.Click += new System.EventHandler(this.ClickEventHandler); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(13, 75); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(130, 13); this.label5.TabIndex = 17; this.label5.Text = "UAC Remote Restrictions:"; this.WolfToolTips.SetToolTip(this.label5, "Strips admin credentials from remote commands if Enabled (even if primary UAC is " + "Disabled.)"); // // btnAdvCleanupSet // this.btnAdvCleanupSet.Location = new System.Drawing.Point(6, 13); this.btnAdvCleanupSet.Name = "btnAdvCleanupSet"; this.btnAdvCleanupSet.Size = new System.Drawing.Size(118, 24); this.btnAdvCleanupSet.TabIndex = 31; this.btnAdvCleanupSet.Text = "Set Adv Options"; this.WolfToolTips.SetToolTip(this.btnAdvCleanupSet, "Provides user with the advanced Disk Cleanup options, must be set before running." + ""); this.btnAdvCleanupSet.UseVisualStyleBackColor = true; this.btnAdvCleanupSet.Click += new System.EventHandler(this.ClickEventHandler); // // btnAdvCleanupRun // this.btnAdvCleanupRun.Location = new System.Drawing.Point(6, 40); this.btnAdvCleanupRun.Name = "btnAdvCleanupRun"; this.btnAdvCleanupRun.Size = new System.Drawing.Size(118, 24); this.btnAdvCleanupRun.TabIndex = 32; this.btnAdvCleanupRun.Text = "Run Adv Cleanup"; this.WolfToolTips.SetToolTip(this.btnAdvCleanupRun, "Executes disk cleanup using the options set above."); this.btnAdvCleanupRun.UseVisualStyleBackColor = true; this.btnAdvCleanupRun.Click += new System.EventHandler(this.ClickEventHandler); // // btnRestartWMI // this.btnRestartWMI.Location = new System.Drawing.Point(6, 46); this.btnRestartWMI.Name = "btnRestartWMI"; this.btnRestartWMI.Size = new System.Drawing.Size(122, 29); this.btnRestartWMI.TabIndex = 31; this.btnRestartWMI.Text = "Restart WMI Services"; this.WolfToolTips.SetToolTip(this.btnRestartWMI, "This will stop/start the WMI based services."); this.btnRestartWMI.UseVisualStyleBackColor = true; this.btnRestartWMI.Click += new System.EventHandler(this.ClickEventHandler); // // btnStartWinMemTest // this.btnStartWinMemTest.Location = new System.Drawing.Point(190, 87); this.btnStartWinMemTest.Name = "btnStartWinMemTest"; this.btnStartWinMemTest.Size = new System.Drawing.Size(127, 29); this.btnStartWinMemTest.TabIndex = 32; this.btnStartWinMemTest.Text = "Windows Mem Test"; this.WolfToolTips.SetToolTip(this.btnStartWinMemTest, "This will give the user the option to restart and conduct a Windows Memory Test."); this.btnStartWinMemTest.UseVisualStyleBackColor = true; this.btnStartWinMemTest.Click += new System.EventHandler(this.ClickEventHandler); // // btnStartFileSigVer // this.btnStartFileSigVer.Location = new System.Drawing.Point(10, 87); this.btnStartFileSigVer.Name = "btnStartFileSigVer"; this.btnStartFileSigVer.Size = new System.Drawing.Size(122, 29); this.btnStartFileSigVer.TabIndex = 37; this.btnStartFileSigVer.Text = "File Sig Verification"; this.WolfToolTips.SetToolTip(this.btnStartFileSigVer, "This will launch Windows File Signature Verification."); this.btnStartFileSigVer.UseVisualStyleBackColor = true; this.btnStartFileSigVer.Click += new System.EventHandler(this.ClickEventHandler); // // btnDriverQuery // this.btnDriverQuery.Location = new System.Drawing.Point(10, 52); this.btnDriverQuery.Name = "btnDriverQuery"; this.btnDriverQuery.Size = new System.Drawing.Size(122, 29); this.btnDriverQuery.TabIndex = 38; this.btnDriverQuery.Text = "Driver Query"; this.WolfToolTips.SetToolTip(this.btnDriverQuery, "This will display all installed Drivers."); this.btnDriverQuery.UseVisualStyleBackColor = true; this.btnDriverQuery.Click += new System.EventHandler(this.ClickEventHandler); // // btnDriverQueryVerbose // this.btnDriverQueryVerbose.Location = new System.Drawing.Point(134, 52); this.btnDriverQueryVerbose.Name = "btnDriverQueryVerbose"; this.btnDriverQueryVerbose.Size = new System.Drawing.Size(53, 29); this.btnDriverQueryVerbose.TabIndex = 39; this.btnDriverQueryVerbose.Text = "DQV"; this.WolfToolTips.SetToolTip(this.btnDriverQueryVerbose, "Run a verbose Driver Query."); this.btnDriverQueryVerbose.UseVisualStyleBackColor = true; this.btnDriverQueryVerbose.Click += new System.EventHandler(this.ClickEventHandler); // // btnOpenFiles // this.btnOpenFiles.Location = new System.Drawing.Point(267, 63); this.btnOpenFiles.Name = "btnOpenFiles"; this.btnOpenFiles.Size = new System.Drawing.Size(97, 42); this.btnOpenFiles.TabIndex = 40; this.btnOpenFiles.Text = "Open Files Query"; this.WolfToolTips.SetToolTip(this.btnOpenFiles, "Will display all files that are opened by users or system."); this.btnOpenFiles.UseVisualStyleBackColor = true; this.btnOpenFiles.Click += new System.EventHandler(this.ClickEventHandler); // // btnOpenFilesDisabled // this.btnOpenFilesDisabled.Location = new System.Drawing.Point(267, 16); this.btnOpenFilesDisabled.Name = "btnOpenFilesDisabled"; this.btnOpenFilesDisabled.Size = new System.Drawing.Size(97, 41); this.btnOpenFilesDisabled.TabIndex = 40; this.btnOpenFilesDisabled.Text = "Open Files Enable / Disable"; this.WolfToolTips.SetToolTip(this.btnOpenFilesDisabled, "Requires a reboot to take effect."); this.btnOpenFilesDisabled.UseVisualStyleBackColor = true; this.btnOpenFilesDisabled.Click += new System.EventHandler(this.ClickEventHandler); // // btnResetCMDSize // this.btnResetCMDSize.Location = new System.Drawing.Point(134, 16); this.btnResetCMDSize.Name = "btnResetCMDSize"; this.btnResetCMDSize.Size = new System.Drawing.Size(127, 29); this.btnResetCMDSize.TabIndex = 41; this.btnResetCMDSize.Text = "Reset CMD Size"; this.WolfToolTips.SetToolTip(this.btnResetCMDSize, "Sets CMD prompt to 80 columns, by 2000 lines/history."); this.btnResetCMDSize.UseVisualStyleBackColor = true; this.btnResetCMDSize.Click += new System.EventHandler(this.ClickEventHandler); // // btnDisableDEP // this.btnDisableDEP.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnDisableDEP.Location = new System.Drawing.Point(699, 141); this.btnDisableDEP.Name = "btnDisableDEP"; this.btnDisableDEP.Size = new System.Drawing.Size(51, 20); this.btnDisableDEP.TabIndex = 44; this.btnDisableDEP.Text = "Disable"; this.WolfToolTips.SetToolTip(this.btnDisableDEP, "This disables DEP. Requires Reboot."); this.btnDisableDEP.UseVisualStyleBackColor = true; this.btnDisableDEP.Click += new System.EventHandler(this.ClickEventHandler); // // btnEnableDEP // this.btnEnableDEP.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnEnableDEP.Location = new System.Drawing.Point(639, 141); this.btnEnableDEP.Name = "btnEnableDEP"; this.btnEnableDEP.Size = new System.Drawing.Size(54, 20); this.btnEnableDEP.TabIndex = 43; this.btnEnableDEP.Text = "Enable"; this.WolfToolTips.SetToolTip(this.btnEnableDEP, "This enables DEP. Requires Reboot."); this.btnEnableDEP.UseVisualStyleBackColor = true; this.btnEnableDEP.Click += new System.EventHandler(this.ClickEventHandler); // // label48 // this.label48.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label48.AutoSize = true; this.label48.Location = new System.Drawing.Point(604, 125); this.label48.Name = "label48"; this.label48.Size = new System.Drawing.Size(32, 13); this.label48.TabIndex = 45; this.label48.Text = "DEP:"; this.WolfToolTips.SetToolTip(this.label48, "This allows you to disable or enable DEP for all applications."); // // btnOpenFileSig // this.btnOpenFileSig.Location = new System.Drawing.Point(134, 87); this.btnOpenFileSig.Name = "btnOpenFileSig"; this.btnOpenFileSig.Size = new System.Drawing.Size(53, 29); this.btnOpenFileSig.TabIndex = 43; this.btnOpenFileSig.Text = "OFSV"; this.WolfToolTips.SetToolTip(this.btnOpenFileSig, "Opens the file signature verification file, if it exists."); this.btnOpenFileSig.UseVisualStyleBackColor = true; this.btnOpenFileSig.Click += new System.EventHandler(this.ClickEventHandler); // // btnDxDiag // this.btnDxDiag.Location = new System.Drawing.Point(190, 17); this.btnDxDiag.Name = "btnDxDiag"; this.btnDxDiag.Size = new System.Drawing.Size(127, 29); this.btnDxDiag.TabIndex = 46; this.btnDxDiag.Text = "DirectX Diagnostic Tool"; this.WolfToolTips.SetToolTip(this.btnDxDiag, "Launches the DirectX Diagnostic Tool."); this.btnDxDiag.UseVisualStyleBackColor = true; this.btnDxDiag.Click += new System.EventHandler(this.ClickEventHandler); // // btnDxCpl // this.btnDxCpl.Location = new System.Drawing.Point(190, 52); this.btnDxCpl.Name = "btnDxCpl"; this.btnDxCpl.Size = new System.Drawing.Size(127, 29); this.btnDxCpl.TabIndex = 47; this.btnDxCpl.Text = "DirectX Control Panel"; this.WolfToolTips.SetToolTip(this.btnDxCpl, "Opens up a control panel so that you may debug Dx10/11 titles or force versions o" + "f DX to be used."); this.btnDxCpl.UseVisualStyleBackColor = true; this.btnDxCpl.Click += new System.EventHandler(this.ClickEventHandler); // // btnSharedFolderMan // this.btnSharedFolderMan.Location = new System.Drawing.Point(6, 130); this.btnSharedFolderMan.Name = "btnSharedFolderMan"; this.btnSharedFolderMan.Size = new System.Drawing.Size(191, 29); this.btnSharedFolderMan.TabIndex = 7; this.btnSharedFolderMan.Text = "Shared Folder Management"; this.WolfToolTips.SetToolTip(this.btnSharedFolderMan, "Opens up the Share Folder Management to view sessions and open files."); this.btnSharedFolderMan.UseVisualStyleBackColor = true; this.btnSharedFolderMan.Click += new System.EventHandler(this.ClickEventHandler); // // btnPolicyEditor // this.btnPolicyEditor.Location = new System.Drawing.Point(320, 156); this.btnPolicyEditor.Name = "btnPolicyEditor"; this.btnPolicyEditor.Size = new System.Drawing.Size(127, 29); this.btnPolicyEditor.TabIndex = 48; this.btnPolicyEditor.Text = "Local Policy Editor"; this.WolfToolTips.SetToolTip(this.btnPolicyEditor, "Opens up the local policy editor. *Note: Global policies overwrite local policy " + "settings."); this.btnPolicyEditor.UseVisualStyleBackColor = true; this.btnPolicyEditor.Click += new System.EventHandler(this.ClickEventHandler); // // btnGPUpdate // this.btnGPUpdate.Location = new System.Drawing.Point(6, 76); this.btnGPUpdate.Name = "btnGPUpdate"; this.btnGPUpdate.Size = new System.Drawing.Size(122, 29); this.btnGPUpdate.TabIndex = 46; this.btnGPUpdate.Text = "Force GPUpdate"; this.WolfToolTips.SetToolTip(this.btnGPUpdate, "This will force a global policy refresh. May require a logoff/logon to complete." + ""); this.btnGPUpdate.UseVisualStyleBackColor = true; this.btnGPUpdate.Click += new System.EventHandler(this.ClickEventHandler); // // btnManageLUGs // this.btnManageLUGs.Location = new System.Drawing.Point(190, 122); this.btnManageLUGs.Name = "btnManageLUGs"; this.btnManageLUGs.Size = new System.Drawing.Size(127, 29); this.btnManageLUGs.TabIndex = 49; this.btnManageLUGs.Text = "Manage Users/Groups"; this.WolfToolTips.SetToolTip(this.btnManageLUGs, "Launches the detailed User and Group manager."); this.btnManageLUGs.UseVisualStyleBackColor = true; this.btnManageLUGs.Click += new System.EventHandler(this.ClickEventHandler); // // btnMSINFO32 // this.btnMSINFO32.Location = new System.Drawing.Point(630, 17); this.btnMSINFO32.Name = "btnMSINFO32"; this.btnMSINFO32.Size = new System.Drawing.Size(107, 29); this.btnMSINFO32.TabIndex = 50; this.btnMSINFO32.Text = "MSINFO32"; this.WolfToolTips.SetToolTip(this.btnMSINFO32, "If you don\'t find it in WOLF, it might be here."); this.btnMSINFO32.UseVisualStyleBackColor = true; this.btnMSINFO32.Click += new System.EventHandler(this.ClickEventHandler); // // btnODBCA // this.btnODBCA.Location = new System.Drawing.Point(320, 17); this.btnODBCA.Name = "btnODBCA"; this.btnODBCA.Size = new System.Drawing.Size(127, 29); this.btnODBCA.TabIndex = 51; this.btnODBCA.Text = "ODBC Control Panel"; this.WolfToolTips.SetToolTip(this.btnODBCA, "Launches the ODBC Administrative control panel."); this.btnODBCA.UseVisualStyleBackColor = true; this.btnODBCA.Click += new System.EventHandler(this.ClickEventHandler); // // btnPerfMon // this.btnPerfMon.Location = new System.Drawing.Point(320, 52); this.btnPerfMon.Name = "btnPerfMon"; this.btnPerfMon.Size = new System.Drawing.Size(127, 29); this.btnPerfMon.TabIndex = 52; this.btnPerfMon.Text = "Performance Monitor"; this.WolfToolTips.SetToolTip(this.btnPerfMon, "Launches the Windows Performance Monitor."); this.btnPerfMon.UseVisualStyleBackColor = true; this.btnPerfMon.Click += new System.EventHandler(this.ClickEventHandler); // // btnPrintManager // this.btnPrintManager.Location = new System.Drawing.Point(630, 52); this.btnPrintManager.Name = "btnPrintManager"; this.btnPrintManager.Size = new System.Drawing.Size(107, 29); this.btnPrintManager.TabIndex = 53; this.btnPrintManager.Text = "Print Manager"; this.WolfToolTips.SetToolTip(this.btnPrintManager, "Launches the master control panel for all things Print/Printer related."); this.btnPrintManager.UseVisualStyleBackColor = true; this.btnPrintManager.Click += new System.EventHandler(this.ClickEventHandler); // // btnResMon // this.btnResMon.Location = new System.Drawing.Point(320, 87); this.btnResMon.Name = "btnResMon"; this.btnResMon.Size = new System.Drawing.Size(127, 29); this.btnResMon.TabIndex = 54; this.btnResMon.Text = "Resource Monitor"; this.WolfToolTips.SetToolTip(this.btnResMon, "Launches the Windows Resource Monitor."); this.btnResMon.UseVisualStyleBackColor = true; this.btnResMon.Click += new System.EventHandler(this.ClickEventHandler); // // btnRSOP // this.btnRSOP.Location = new System.Drawing.Point(450, 156); this.btnRSOP.Name = "btnRSOP"; this.btnRSOP.Size = new System.Drawing.Size(177, 29); this.btnRSOP.TabIndex = 55; this.btnRSOP.Text = "Policies Applied (RSOP)"; this.WolfToolTips.SetToolTip(this.btnRSOP, "Opens up the policy window with only the currently applied policies showing. May" + " error out depending on permissions."); this.btnRSOP.UseVisualStyleBackColor = true; this.btnRSOP.Click += new System.EventHandler(this.ClickEventHandler); // // btnLocalSec // this.btnLocalSec.Location = new System.Drawing.Point(190, 156); this.btnLocalSec.Name = "btnLocalSec"; this.btnLocalSec.Size = new System.Drawing.Size(127, 29); this.btnLocalSec.TabIndex = 56; this.btnLocalSec.Text = "Local Security Editor"; this.WolfToolTips.SetToolTip(this.btnLocalSec, "Opens up the local security editor."); this.btnLocalSec.UseVisualStyleBackColor = true; this.btnLocalSec.Click += new System.EventHandler(this.ClickEventHandler); // // btnWinRemote // this.btnWinRemote.Location = new System.Drawing.Point(450, 52); this.btnWinRemote.Name = "btnWinRemote"; this.btnWinRemote.Size = new System.Drawing.Size(178, 29); this.btnWinRemote.TabIndex = 57; this.btnWinRemote.Text = "Windows Remote Manager CLI"; this.WolfToolTips.SetToolTip(this.btnWinRemote, "Opens the Windows Remote Management Command Line Interface."); this.btnWinRemote.UseVisualStyleBackColor = true; this.btnWinRemote.Click += new System.EventHandler(this.ClickEventHandler); // // btnQuickConfigRM // this.btnQuickConfigRM.Location = new System.Drawing.Point(450, 17); this.btnQuickConfigRM.Name = "btnQuickConfigRM"; this.btnQuickConfigRM.Size = new System.Drawing.Size(178, 29); this.btnQuickConfigRM.TabIndex = 58; this.btnQuickConfigRM.Text = "Configure Rem. Manage Request"; this.WolfToolTips.SetToolTip(this.btnQuickConfigRM, "This triggers the quick configuration of Windows Remote Management Command Line I" + "nterface."); this.btnQuickConfigRM.UseVisualStyleBackColor = true; this.btnQuickConfigRM.Click += new System.EventHandler(this.ClickEventHandler); // // btnWMIMgmt // this.btnWMIMgmt.Location = new System.Drawing.Point(320, 121); this.btnWMIMgmt.Name = "btnWMIMgmt"; this.btnWMIMgmt.Size = new System.Drawing.Size(127, 29); this.btnWMIMgmt.TabIndex = 59; this.btnWMIMgmt.Text = "WMI Management"; this.WolfToolTips.SetToolTip(this.btnWMIMgmt, "Launches WMI Management"); this.btnWMIMgmt.UseVisualStyleBackColor = true; this.btnWMIMgmt.Click += new System.EventHandler(this.ClickEventHandler); // // btnPrintMigration // this.btnPrintMigration.Location = new System.Drawing.Point(630, 87); this.btnPrintMigration.Name = "btnPrintMigration"; this.btnPrintMigration.Size = new System.Drawing.Size(107, 29); this.btnPrintMigration.TabIndex = 60; this.btnPrintMigration.Text = "Printer Migration"; this.WolfToolTips.SetToolTip(this.btnPrintMigration, "Allows print drivers and entire print queues to migrate!"); this.btnPrintMigration.UseVisualStyleBackColor = true; this.btnPrintMigration.Click += new System.EventHandler(this.ClickEventHandler); // // btnWindowsFeatures // this.btnWindowsFeatures.Location = new System.Drawing.Point(630, 122); this.btnWindowsFeatures.Name = "btnWindowsFeatures"; this.btnWindowsFeatures.Size = new System.Drawing.Size(107, 29); this.btnWindowsFeatures.TabIndex = 61; this.btnWindowsFeatures.Text = "Windows Features"; this.WolfToolTips.SetToolTip(this.btnWindowsFeatures, "Opens the Windows Feature menu for enabling and disabling software."); this.btnWindowsFeatures.UseVisualStyleBackColor = true; this.btnWindowsFeatures.Click += new System.EventHandler(this.ClickEventHandler); // // btnMSTSC // this.btnMSTSC.Location = new System.Drawing.Point(10, 121); this.btnMSTSC.Name = "btnMSTSC"; this.btnMSTSC.Size = new System.Drawing.Size(177, 29); this.btnMSTSC.TabIndex = 62; this.btnMSTSC.Text = "MSTSC"; this.WolfToolTips.SetToolTip(this.btnMSTSC, "Launches MSTSC/Remote Desktop."); this.btnMSTSC.UseVisualStyleBackColor = true; this.btnMSTSC.Click += new System.EventHandler(this.ClickEventHandler); // // btnRemoteAssistance // this.btnRemoteAssistance.Location = new System.Drawing.Point(630, 156); this.btnRemoteAssistance.Name = "btnRemoteAssistance"; this.btnRemoteAssistance.Size = new System.Drawing.Size(107, 29); this.btnRemoteAssistance.TabIndex = 63; this.btnRemoteAssistance.Text = "Remote Assistance"; this.WolfToolTips.SetToolTip(this.btnRemoteAssistance, "Opens the Remote Assistance Window"); this.btnRemoteAssistance.UseVisualStyleBackColor = true; this.btnRemoteAssistance.Click += new System.EventHandler(this.ClickEventHandler); // // btnMSCONFIG // this.btnMSCONFIG.Location = new System.Drawing.Point(10, 156); this.btnMSCONFIG.Name = "btnMSCONFIG"; this.btnMSCONFIG.Size = new System.Drawing.Size(178, 29); this.btnMSCONFIG.TabIndex = 64; this.btnMSCONFIG.Text = "MSCONFIG"; this.WolfToolTips.SetToolTip(this.btnMSCONFIG, "Launches MSCONFIG"); this.btnMSCONFIG.UseVisualStyleBackColor = true; this.btnMSCONFIG.Click += new System.EventHandler(this.ClickEventHandler); // // btnWMSRT // this.btnWMSRT.Location = new System.Drawing.Point(450, 87); this.btnWMSRT.Name = "btnWMSRT"; this.btnWMSRT.Size = new System.Drawing.Size(177, 29); this.btnWMSRT.TabIndex = 65; this.btnWMSRT.Text = "Malicious Software Removal Tool"; this.WolfToolTips.SetToolTip(this.btnWMSRT, "Launches the Windows Malicious Software Removal Tool."); this.btnWMSRT.UseVisualStyleBackColor = true; this.btnWMSRT.Click += new System.EventHandler(this.ClickEventHandler); // // btnRepairWMI // this.btnRepairWMI.Location = new System.Drawing.Point(134, 76); this.btnRepairWMI.Name = "btnRepairWMI"; this.btnRepairWMI.Size = new System.Drawing.Size(127, 29); this.btnRepairWMI.TabIndex = 48; this.btnRepairWMI.Text = "Repair WMI (Repo)"; this.WolfToolTips.SetToolTip(this.btnRepairWMI, "Verifies the current WMI repository."); this.btnRepairWMI.UseVisualStyleBackColor = true; this.btnRepairWMI.Click += new System.EventHandler(this.ClickEventHandler); // // tbxCPUL3 // this.tbxCPUL3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUL3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUL3.Location = new System.Drawing.Point(290, 324); this.tbxCPUL3.Name = "tbxCPUL3"; this.tbxCPUL3.ReadOnly = true; this.tbxCPUL3.Size = new System.Drawing.Size(76, 20); this.tbxCPUL3.TabIndex = 94; this.WolfToolTips.SetToolTip(this.tbxCPUL3, "Windows does not seem to give this data out very well."); // // btnStopLogging // this.btnStopLogging.Location = new System.Drawing.Point(6, 19); this.btnStopLogging.Name = "btnStopLogging"; this.btnStopLogging.Size = new System.Drawing.Size(91, 49); this.btnStopLogging.TabIndex = 9; this.btnStopLogging.Text = "Stop User Input Logging Service"; this.WolfToolTips.SetToolTip(this.btnStopLogging, "Stops the dmwappushservice service logs all manners of user inputs, whether it\'s " + "key logging, webcam, or voice input.\r\n\r\nIt\'s service display name is dmwappushsv" + "c."); this.btnStopLogging.UseVisualStyleBackColor = true; this.btnStopLogging.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnDisableTelemetry // this.btnDisableTelemetry.Location = new System.Drawing.Point(375, 19); this.btnDisableTelemetry.Name = "btnDisableTelemetry"; this.btnDisableTelemetry.Size = new System.Drawing.Size(91, 49); this.btnDisableTelemetry.TabIndex = 19; this.btnDisableTelemetry.Text = "Disable Telemetry"; this.WolfToolTips.SetToolTip(this.btnDisableTelemetry, "Sets the registry value for DataCollection\\Telemetry to 0."); this.btnDisableTelemetry.UseVisualStyleBackColor = true; this.btnDisableTelemetry.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnDeleteTrackingLog // this.btnDeleteTrackingLog.Enabled = false; this.btnDeleteTrackingLog.Location = new System.Drawing.Point(200, 19); this.btnDeleteTrackingLog.Name = "btnDeleteTrackingLog"; this.btnDeleteTrackingLog.Size = new System.Drawing.Size(68, 49); this.btnDeleteTrackingLog.TabIndex = 18; this.btnDeleteTrackingLog.Text = "Delete Tracking Log"; this.WolfToolTips.SetToolTip(this.btnDeleteTrackingLog, "This deletes the ETL file created by DiagTrack."); this.btnDeleteTrackingLog.UseVisualStyleBackColor = true; this.btnDeleteTrackingLog.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnDisableDiagnosticTracking // this.btnDisableDiagnosticTracking.Location = new System.Drawing.Point(103, 19); this.btnDisableDiagnosticTracking.Name = "btnDisableDiagnosticTracking"; this.btnDisableDiagnosticTracking.Size = new System.Drawing.Size(91, 49); this.btnDisableDiagnosticTracking.TabIndex = 17; this.btnDisableDiagnosticTracking.Text = "Disable Telemetry Service Startup"; this.WolfToolTips.SetToolTip(this.btnDisableDiagnosticTracking, "This changes the startup setting in registry for this service. This is the primar" + "y Telemetry service of Windows.\r\n\r\nIt\'s service display name though is \"Connecte" + "d Users Experience and Telemetry\"."); this.btnDisableDiagnosticTracking.UseVisualStyleBackColor = true; this.btnDisableDiagnosticTracking.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnStopDiagnosticTracking // this.btnStopDiagnosticTracking.Location = new System.Drawing.Point(6, 19); this.btnStopDiagnosticTracking.Name = "btnStopDiagnosticTracking"; this.btnStopDiagnosticTracking.Size = new System.Drawing.Size(91, 49); this.btnStopDiagnosticTracking.TabIndex = 16; this.btnStopDiagnosticTracking.Text = "Stop Telemetry Service"; this.WolfToolTips.SetToolTip(this.btnStopDiagnosticTracking, resources.GetString("btnStopDiagnosticTracking.ToolTip")); this.btnStopDiagnosticTracking.UseVisualStyleBackColor = true; this.btnStopDiagnosticTracking.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnDisableLocationUsage // this.btnDisableLocationUsage.Location = new System.Drawing.Point(200, 19); this.btnDisableLocationUsage.Name = "btnDisableLocationUsage"; this.btnDisableLocationUsage.Size = new System.Drawing.Size(123, 49); this.btnDisableLocationUsage.TabIndex = 11; this.btnDisableLocationUsage.Text = "Disable Location Usage (Current User)"; this.WolfToolTips.SetToolTip(this.btnDisableLocationUsage, "This sets a registry setting to turn off Location usage. Requires reboot."); this.btnDisableLocationUsage.UseVisualStyleBackColor = true; this.btnDisableLocationUsage.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnDisableLocationSensor // this.btnDisableLocationSensor.Location = new System.Drawing.Point(329, 19); this.btnDisableLocationSensor.Name = "btnDisableLocationSensor"; this.btnDisableLocationSensor.Size = new System.Drawing.Size(121, 49); this.btnDisableLocationSensor.TabIndex = 12; this.btnDisableLocationSensor.Text = "Disable Location Sensor (Current User)"; this.WolfToolTips.SetToolTip(this.btnDisableLocationSensor, "This sets a registry setting to turn off Location sensor. Requires reboot."); this.btnDisableLocationSensor.UseVisualStyleBackColor = true; this.btnDisableLocationSensor.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnOwnsLog // this.btnOwnsLog.Enabled = false; this.btnOwnsLog.Location = new System.Drawing.Point(274, 19); this.btnOwnsLog.Name = "btnOwnsLog"; this.btnOwnsLog.Size = new System.Drawing.Size(68, 49); this.btnOwnsLog.TabIndex = 20; this.btnOwnsLog.Text = "Take Ownership of Log"; this.WolfToolTips.SetToolTip(this.btnOwnsLog, "This takes Ownership of the ETL file created by DiagTrack."); this.btnOwnsLog.UseVisualStyleBackColor = true; this.btnOwnsLog.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // tabLog // this.tabLog.BackColor = System.Drawing.Color.Silver; this.tabLog.Controls.Add(this.tbxLog); this.tabLog.Location = new System.Drawing.Point(4, 22); this.tabLog.Name = "tabLog"; this.tabLog.Size = new System.Drawing.Size(764, 412); this.tabLog.TabIndex = 2; this.tabLog.Text = "Log"; // // tbxLog // this.tbxLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbxLog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxLog.ForeColor = System.Drawing.SystemColors.Window; this.tbxLog.Location = new System.Drawing.Point(-4, 0); this.tbxLog.Multiline = true; this.tbxLog.Name = "tbxLog"; this.tbxLog.ReadOnly = true; this.tbxLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.tbxLog.Size = new System.Drawing.Size(771, 416); this.tbxLog.TabIndex = 1; // // tabTools // this.tabTools.BackColor = System.Drawing.Color.Silver; this.tabTools.Controls.Add(this.tabToolGroups); this.tabTools.Location = new System.Drawing.Point(4, 22); this.tabTools.Name = "tabTools"; this.tabTools.Size = new System.Drawing.Size(764, 412); this.tabTools.TabIndex = 3; this.tabTools.Text = "Tools"; // // tabToolGroups // this.tabToolGroups.Controls.Add(this.toolsPage1); this.tabToolGroups.Controls.Add(this.toolsPage2); this.tabToolGroups.Controls.Add(this.toolsPage3); this.tabToolGroups.Controls.Add(this.toolsPage4); this.tabToolGroups.Controls.Add(this.toolsPage5); this.tabToolGroups.Controls.Add(this.toolsPage6); this.tabToolGroups.Controls.Add(this.toolsPage7); this.tabToolGroups.Dock = System.Windows.Forms.DockStyle.Fill; this.tabToolGroups.Location = new System.Drawing.Point(0, 0); this.tabToolGroups.Name = "tabToolGroups"; this.tabToolGroups.SelectedIndex = 0; this.tabToolGroups.Size = new System.Drawing.Size(764, 412); this.tabToolGroups.TabIndex = 5; // // toolsPage1 // this.toolsPage1.BackColor = System.Drawing.Color.Silver; this.toolsPage1.Controls.Add(this.groupBox6); this.toolsPage1.Location = new System.Drawing.Point(4, 22); this.toolsPage1.Name = "toolsPage1"; this.toolsPage1.Padding = new System.Windows.Forms.Padding(3); this.toolsPage1.Size = new System.Drawing.Size(756, 386); this.toolsPage1.TabIndex = 0; this.toolsPage1.Text = "General"; // // groupBox6 // this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox6.BackColor = System.Drawing.Color.Silver; this.groupBox6.Controls.Add(this.btnACI); this.groupBox6.Controls.Add(this.tbxDEPStatus); this.groupBox6.Controls.Add(this.tbxHPETStatus); this.groupBox6.Controls.Add(this.btnSNR); this.groupBox6.Controls.Add(this.btnRepairWMI); this.groupBox6.Controls.Add(this.btnOracle); this.groupBox6.Controls.Add(this.btnGPUpdate); this.groupBox6.Controls.Add(this.label48); this.groupBox6.Controls.Add(this.btnDisableDEP); this.groupBox6.Controls.Add(this.btnEnableDEP); this.groupBox6.Controls.Add(this.btnResetCMDSize); this.groupBox6.Controls.Add(this.btnOpenFilesDisabled); this.groupBox6.Controls.Add(this.groupBox18); this.groupBox6.Controls.Add(this.btnOpenFiles); this.groupBox6.Controls.Add(this.btnRestartWMI); this.groupBox6.Controls.Add(this.btnHPETD); this.groupBox6.Controls.Add(this.btnHPETE); this.groupBox6.Controls.Add(this.lblHPET); this.groupBox6.Controls.Add(this.btnRepairVSS); this.groupBox6.Controls.Add(this.btnHiberDisable); this.groupBox6.Controls.Add(this.btnHiberEnable); this.groupBox6.Controls.Add(this.tbxHiberSize); this.groupBox6.Controls.Add(this.lblHiberFile); this.groupBox6.Controls.Add(this.btnCMDAdmin); this.groupBox6.Location = new System.Drawing.Point(0, 0); this.groupBox6.Name = "groupBox6"; this.groupBox6.Size = new System.Drawing.Size(756, 386); this.groupBox6.TabIndex = 4; this.groupBox6.TabStop = false; this.groupBox6.Text = "General Tools"; // // btnACI // this.btnACI.Location = new System.Drawing.Point(370, 113); this.btnACI.Name = "btnACI"; this.btnACI.Size = new System.Drawing.Size(158, 41); this.btnACI.TabIndex = 52; this.btnACI.Text = "Computer Info v0.001"; this.btnACI.UseVisualStyleBackColor = true; this.btnACI.Click += new System.EventHandler(this.ClickEventHandler); // // tbxDEPStatus // this.tbxDEPStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.tbxDEPStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDEPStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDEPStatus.Location = new System.Drawing.Point(639, 118); this.tbxDEPStatus.Name = "tbxDEPStatus"; this.tbxDEPStatus.ReadOnly = true; this.tbxDEPStatus.Size = new System.Drawing.Size(111, 20); this.tbxDEPStatus.TabIndex = 51; // // tbxHPETStatus // this.tbxHPETStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.tbxHPETStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxHPETStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxHPETStatus.Location = new System.Drawing.Point(639, 70); this.tbxHPETStatus.Name = "tbxHPETStatus"; this.tbxHPETStatus.ReadOnly = true; this.tbxHPETStatus.Size = new System.Drawing.Size(111, 20); this.tbxHPETStatus.TabIndex = 50; // // btnSNR // this.btnSNR.Location = new System.Drawing.Point(370, 64); this.btnSNR.Name = "btnSNR"; this.btnSNR.Size = new System.Drawing.Size(158, 41); this.btnSNR.TabIndex = 49; this.btnSNR.Text = "Search && Rename v0.001"; this.btnSNR.UseVisualStyleBackColor = true; this.btnSNR.Click += new System.EventHandler(this.ClickEventHandler); // // btnOracle // this.btnOracle.Location = new System.Drawing.Point(370, 16); this.btnOracle.Name = "btnOracle"; this.btnOracle.Size = new System.Drawing.Size(158, 41); this.btnOracle.TabIndex = 47; this.btnOracle.Text = "Oracle v0.003"; this.btnOracle.UseVisualStyleBackColor = true; this.btnOracle.Click += new System.EventHandler(this.ClickEventHandler); // // groupBox18 // this.groupBox18.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox18.Controls.Add(this.btnWMSRT); this.groupBox18.Controls.Add(this.btnMSCONFIG); this.groupBox18.Controls.Add(this.btnRemoteAssistance); this.groupBox18.Controls.Add(this.btnMSTSC); this.groupBox18.Controls.Add(this.btnWindowsFeatures); this.groupBox18.Controls.Add(this.btnPrintMigration); this.groupBox18.Controls.Add(this.btnWMIMgmt); this.groupBox18.Controls.Add(this.btnQuickConfigRM); this.groupBox18.Controls.Add(this.btnWinRemote); this.groupBox18.Controls.Add(this.btnLocalSec); this.groupBox18.Controls.Add(this.btnRSOP); this.groupBox18.Controls.Add(this.btnResMon); this.groupBox18.Controls.Add(this.btnPrintManager); this.groupBox18.Controls.Add(this.btnPerfMon); this.groupBox18.Controls.Add(this.btnODBCA); this.groupBox18.Controls.Add(this.btnMSINFO32); this.groupBox18.Controls.Add(this.btnManageLUGs); this.groupBox18.Controls.Add(this.btnPolicyEditor); this.groupBox18.Controls.Add(this.btnDxCpl); this.groupBox18.Controls.Add(this.btnOpenFileSig); this.groupBox18.Controls.Add(this.btnDxDiag); this.groupBox18.Controls.Add(this.btnRegEdit); this.groupBox18.Controls.Add(this.btnDriverQueryVerbose); this.groupBox18.Controls.Add(this.btnDriverQuery); this.groupBox18.Controls.Add(this.btnSysFileCheck); this.groupBox18.Controls.Add(this.btnStartFileSigVer); this.groupBox18.Controls.Add(this.btnSFCLog); this.groupBox18.Controls.Add(this.btnStartWinMemTest); this.groupBox18.Location = new System.Drawing.Point(3, 170); this.groupBox18.Name = "groupBox18"; this.groupBox18.Size = new System.Drawing.Size(750, 214); this.groupBox18.TabIndex = 38; this.groupBox18.TabStop = false; this.groupBox18.Text = "Windows Tools Built-In"; // // btnRegEdit // this.btnRegEdit.Location = new System.Drawing.Point(450, 122); this.btnRegEdit.Name = "btnRegEdit"; this.btnRegEdit.Size = new System.Drawing.Size(177, 29); this.btnRegEdit.TabIndex = 42; this.btnRegEdit.Text = "Registry Editor"; this.btnRegEdit.UseVisualStyleBackColor = true; this.btnRegEdit.Click += new System.EventHandler(this.ClickEventHandler); // // btnSysFileCheck // this.btnSysFileCheck.Location = new System.Drawing.Point(10, 17); this.btnSysFileCheck.Name = "btnSysFileCheck"; this.btnSysFileCheck.Size = new System.Drawing.Size(122, 29); this.btnSysFileCheck.TabIndex = 8; this.btnSysFileCheck.Text = "System File Check"; this.btnSysFileCheck.UseVisualStyleBackColor = true; this.btnSysFileCheck.Click += new System.EventHandler(this.ClickEventHandler); // // btnHiberDisable // this.btnHiberDisable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnHiberDisable.Location = new System.Drawing.Point(699, 38); this.btnHiberDisable.Name = "btnHiberDisable"; this.btnHiberDisable.Size = new System.Drawing.Size(51, 20); this.btnHiberDisable.TabIndex = 13; this.btnHiberDisable.Text = "Disable"; this.btnHiberDisable.UseVisualStyleBackColor = true; this.btnHiberDisable.Click += new System.EventHandler(this.ClickEventHandler); // // btnHiberEnable // this.btnHiberEnable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnHiberEnable.Location = new System.Drawing.Point(638, 38); this.btnHiberEnable.Name = "btnHiberEnable"; this.btnHiberEnable.Size = new System.Drawing.Size(54, 20); this.btnHiberEnable.TabIndex = 12; this.btnHiberEnable.Text = "Enable"; this.btnHiberEnable.UseVisualStyleBackColor = true; this.btnHiberEnable.Click += new System.EventHandler(this.ClickEventHandler); // // tbxHiberSize // this.tbxHiberSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.tbxHiberSize.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxHiberSize.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxHiberSize.Location = new System.Drawing.Point(639, 16); this.tbxHiberSize.Name = "tbxHiberSize"; this.tbxHiberSize.ReadOnly = true; this.tbxHiberSize.Size = new System.Drawing.Size(111, 20); this.tbxHiberSize.TabIndex = 11; // // lblHiberFile // this.lblHiberFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblHiberFile.AutoSize = true; this.lblHiberFile.Location = new System.Drawing.Point(540, 19); this.lblHiberFile.Name = "lblHiberFile"; this.lblHiberFile.Size = new System.Drawing.Size(98, 13); this.lblHiberFile.TabIndex = 10; this.lblHiberFile.Text = "Hibernate File Size:"; // // btnCMDAdmin // this.btnCMDAdmin.Location = new System.Drawing.Point(6, 16); this.btnCMDAdmin.Name = "btnCMDAdmin"; this.btnCMDAdmin.Size = new System.Drawing.Size(122, 29); this.btnCMDAdmin.TabIndex = 0; this.btnCMDAdmin.Text = "CMD Prompt as Admin"; this.btnCMDAdmin.UseVisualStyleBackColor = true; this.btnCMDAdmin.Click += new System.EventHandler(this.ClickEventHandler); // // toolsPage2 // this.toolsPage2.BackColor = System.Drawing.Color.Silver; this.toolsPage2.Controls.Add(this.groupBox5); this.toolsPage2.Location = new System.Drawing.Point(4, 22); this.toolsPage2.Name = "toolsPage2"; this.toolsPage2.Padding = new System.Windows.Forms.Padding(3); this.toolsPage2.Size = new System.Drawing.Size(756, 386); this.toolsPage2.TabIndex = 1; this.toolsPage2.Text = "Network"; // // groupBox5 // this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox5.BackColor = System.Drawing.Color.Silver; this.groupBox5.Controls.Add(this.btnSharedFolderMan); this.groupBox5.Controls.Add(this.label4); this.groupBox5.Controls.Add(this.tbxFirewallEnabled); this.groupBox5.Controls.Add(this.btnEnableFire); this.groupBox5.Controls.Add(this.btnDisableFire); this.groupBox5.Controls.Add(this.btnFlushDNS); this.groupBox5.Controls.Add(this.btnIPREN); this.groupBox5.Location = new System.Drawing.Point(0, 0); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(756, 386); this.groupBox5.TabIndex = 4; this.groupBox5.TabStop = false; this.groupBox5.Text = "Network Tools"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(3, 16); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(87, 13); this.label4.TabIndex = 6; this.label4.Text = "Firewall Enabled:"; // // tbxFirewallEnabled // this.tbxFirewallEnabled.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxFirewallEnabled.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxFirewallEnabled.Location = new System.Drawing.Point(6, 32); this.tbxFirewallEnabled.Name = "tbxFirewallEnabled"; this.tbxFirewallEnabled.ReadOnly = true; this.tbxFirewallEnabled.Size = new System.Drawing.Size(135, 20); this.tbxFirewallEnabled.TabIndex = 5; // // btnEnableFire // this.btnEnableFire.Location = new System.Drawing.Point(6, 56); this.btnEnableFire.Name = "btnEnableFire"; this.btnEnableFire.Size = new System.Drawing.Size(69, 23); this.btnEnableFire.TabIndex = 4; this.btnEnableFire.Text = "Enable"; this.btnEnableFire.UseVisualStyleBackColor = true; this.btnEnableFire.Click += new System.EventHandler(this.ClickEventHandler); // // btnDisableFire // this.btnDisableFire.Location = new System.Drawing.Point(74, 56); this.btnDisableFire.Name = "btnDisableFire"; this.btnDisableFire.Size = new System.Drawing.Size(67, 23); this.btnDisableFire.TabIndex = 3; this.btnDisableFire.Text = "Disable"; this.btnDisableFire.UseVisualStyleBackColor = true; this.btnDisableFire.Click += new System.EventHandler(this.ClickEventHandler); // // btnFlushDNS // this.btnFlushDNS.Location = new System.Drawing.Point(105, 95); this.btnFlushDNS.Name = "btnFlushDNS"; this.btnFlushDNS.Size = new System.Drawing.Size(92, 29); this.btnFlushDNS.TabIndex = 2; this.btnFlushDNS.Text = "Flush DNS"; this.btnFlushDNS.UseVisualStyleBackColor = true; this.btnFlushDNS.Click += new System.EventHandler(this.ClickEventHandler); // // btnIPREN // this.btnIPREN.Location = new System.Drawing.Point(6, 95); this.btnIPREN.Name = "btnIPREN"; this.btnIPREN.Size = new System.Drawing.Size(93, 29); this.btnIPREN.TabIndex = 1; this.btnIPREN.Text = "IPConfig Renew"; this.btnIPREN.UseVisualStyleBackColor = true; this.btnIPREN.Click += new System.EventHandler(this.ClickEventHandler); // // toolsPage3 // this.toolsPage3.BackColor = System.Drawing.Color.Silver; this.toolsPage3.Controls.Add(this.groupBox7); this.toolsPage3.Location = new System.Drawing.Point(4, 22); this.toolsPage3.Name = "toolsPage3"; this.toolsPage3.Size = new System.Drawing.Size(756, 386); this.toolsPage3.TabIndex = 2; this.toolsPage3.Text = "Registry"; // // groupBox7 // this.groupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox7.Controls.Add(this.btnDefenderDisable); this.groupBox7.Controls.Add(this.btnDefenderEnable); this.groupBox7.Controls.Add(this.tbxDefenderStatus); this.groupBox7.Controls.Add(this.label47); this.groupBox7.Controls.Add(this.btnUACRemoteDisable); this.groupBox7.Controls.Add(this.tbxUACRemoteStatus); this.groupBox7.Controls.Add(this.btnUACRemoteEnable); this.groupBox7.Controls.Add(this.label5); this.groupBox7.Controls.Add(this.btnUACD); this.groupBox7.Controls.Add(this.tbxUAC); this.groupBox7.Controls.Add(this.btnUACE); this.groupBox7.Controls.Add(this.lblUAC); this.groupBox7.Controls.Add(this.lblRegNote); this.groupBox7.Controls.Add(this.lblIntelHTTBrake); this.groupBox7.Controls.Add(this.btnCPD); this.groupBox7.Controls.Add(this.tbxCoreParking); this.groupBox7.Controls.Add(this.btnCPE); this.groupBox7.Location = new System.Drawing.Point(0, 0); this.groupBox7.Name = "groupBox7"; this.groupBox7.Size = new System.Drawing.Size(770, 386); this.groupBox7.TabIndex = 0; this.groupBox7.TabStop = false; this.groupBox7.Text = "Registry Tweaks and Tools"; // // btnDefenderDisable // this.btnDefenderDisable.Location = new System.Drawing.Point(309, 98); this.btnDefenderDisable.Name = "btnDefenderDisable"; this.btnDefenderDisable.Size = new System.Drawing.Size(54, 20); this.btnDefenderDisable.TabIndex = 40; this.btnDefenderDisable.Text = "Disable"; this.btnDefenderDisable.UseVisualStyleBackColor = true; this.btnDefenderDisable.Click += new System.EventHandler(this.ClickEventHandler); // // btnDefenderEnable // this.btnDefenderEnable.Location = new System.Drawing.Point(254, 98); this.btnDefenderEnable.Name = "btnDefenderEnable"; this.btnDefenderEnable.Size = new System.Drawing.Size(54, 20); this.btnDefenderEnable.TabIndex = 39; this.btnDefenderEnable.Text = "Enable"; this.btnDefenderEnable.UseVisualStyleBackColor = true; this.btnDefenderEnable.Click += new System.EventHandler(this.ClickEventHandler); // // tbxDefenderStatus // this.tbxDefenderStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDefenderStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDefenderStatus.Location = new System.Drawing.Point(143, 98); this.tbxDefenderStatus.Name = "tbxDefenderStatus"; this.tbxDefenderStatus.ReadOnly = true; this.tbxDefenderStatus.Size = new System.Drawing.Size(108, 20); this.tbxDefenderStatus.TabIndex = 38; // // label47 // this.label47.AutoSize = true; this.label47.Location = new System.Drawing.Point(42, 102); this.label47.Name = "label47"; this.label47.Size = new System.Drawing.Size(101, 13); this.label47.TabIndex = 37; this.label47.Text = "Windows Defender:"; // // btnUACRemoteDisable // this.btnUACRemoteDisable.Location = new System.Drawing.Point(309, 72); this.btnUACRemoteDisable.Name = "btnUACRemoteDisable"; this.btnUACRemoteDisable.Size = new System.Drawing.Size(54, 20); this.btnUACRemoteDisable.TabIndex = 20; this.btnUACRemoteDisable.Text = "Disable"; this.btnUACRemoteDisable.UseVisualStyleBackColor = true; this.btnUACRemoteDisable.Click += new System.EventHandler(this.ClickEventHandler); // // tbxUACRemoteStatus // this.tbxUACRemoteStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxUACRemoteStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxUACRemoteStatus.Location = new System.Drawing.Point(143, 72); this.tbxUACRemoteStatus.Name = "tbxUACRemoteStatus"; this.tbxUACRemoteStatus.ReadOnly = true; this.tbxUACRemoteStatus.Size = new System.Drawing.Size(108, 20); this.tbxUACRemoteStatus.TabIndex = 18; // // btnUACRemoteEnable // this.btnUACRemoteEnable.Location = new System.Drawing.Point(254, 72); this.btnUACRemoteEnable.Name = "btnUACRemoteEnable"; this.btnUACRemoteEnable.Size = new System.Drawing.Size(54, 20); this.btnUACRemoteEnable.TabIndex = 19; this.btnUACRemoteEnable.Text = "Enable"; this.btnUACRemoteEnable.UseVisualStyleBackColor = true; this.btnUACRemoteEnable.Click += new System.EventHandler(this.ClickEventHandler); // // btnUACD // this.btnUACD.Location = new System.Drawing.Point(309, 46); this.btnUACD.Name = "btnUACD"; this.btnUACD.Size = new System.Drawing.Size(54, 21); this.btnUACD.TabIndex = 16; this.btnUACD.Text = "Disable"; this.btnUACD.UseVisualStyleBackColor = true; this.btnUACD.Click += new System.EventHandler(this.ClickEventHandler); // // tbxUAC // this.tbxUAC.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxUAC.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxUAC.Location = new System.Drawing.Point(143, 46); this.tbxUAC.Name = "tbxUAC"; this.tbxUAC.ReadOnly = true; this.tbxUAC.Size = new System.Drawing.Size(108, 20); this.tbxUAC.TabIndex = 14; // // btnUACE // this.btnUACE.Location = new System.Drawing.Point(254, 46); this.btnUACE.Name = "btnUACE"; this.btnUACE.Size = new System.Drawing.Size(54, 21); this.btnUACE.TabIndex = 15; this.btnUACE.Text = "Enable"; this.btnUACE.UseVisualStyleBackColor = true; this.btnUACE.Click += new System.EventHandler(this.ClickEventHandler); // // lblRegNote // this.lblRegNote.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblRegNote.AutoSize = true; this.lblRegNote.Location = new System.Drawing.Point(6, 370); this.lblRegNote.Name = "lblRegNote"; this.lblRegNote.Size = new System.Drawing.Size(463, 13); this.lblRegNote.TabIndex = 12; this.lblRegNote.Text = "Note: Most of these changes only take effect after you have had a reboot (reloadi" + "ng the registry.)"; // // btnCPD // this.btnCPD.Location = new System.Drawing.Point(309, 21); this.btnCPD.Name = "btnCPD"; this.btnCPD.Size = new System.Drawing.Size(54, 20); this.btnCPD.TabIndex = 11; this.btnCPD.Text = "Disable"; this.btnCPD.UseVisualStyleBackColor = true; this.btnCPD.Click += new System.EventHandler(this.ClickEventHandler); // // tbxCoreParking // this.tbxCoreParking.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCoreParking.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCoreParking.Location = new System.Drawing.Point(143, 21); this.tbxCoreParking.Name = "tbxCoreParking"; this.tbxCoreParking.ReadOnly = true; this.tbxCoreParking.Size = new System.Drawing.Size(108, 20); this.tbxCoreParking.TabIndex = 9; // // btnCPE // this.btnCPE.Location = new System.Drawing.Point(254, 21); this.btnCPE.Name = "btnCPE"; this.btnCPE.Size = new System.Drawing.Size(54, 20); this.btnCPE.TabIndex = 10; this.btnCPE.Text = "Enable"; this.btnCPE.UseVisualStyleBackColor = true; this.btnCPE.Click += new System.EventHandler(this.ClickEventHandler); // // toolsPage4 // this.toolsPage4.BackColor = System.Drawing.Color.Silver; this.toolsPage4.Controls.Add(this.drvBox); this.toolsPage4.Controls.Add(this.lblDrive); this.toolsPage4.Controls.Add(this.groupBox8); this.toolsPage4.Location = new System.Drawing.Point(4, 22); this.toolsPage4.Name = "toolsPage4"; this.toolsPage4.Size = new System.Drawing.Size(756, 386); this.toolsPage4.TabIndex = 3; this.toolsPage4.Text = "Drive"; // // drvBox // this.drvBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.drvBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.drvBox.FormattingEnabled = true; this.drvBox.Location = new System.Drawing.Point(50, 6); this.drvBox.Name = "drvBox"; this.drvBox.Size = new System.Drawing.Size(110, 21); this.drvBox.TabIndex = 27; // // lblDrive // this.lblDrive.AutoSize = true; this.lblDrive.Location = new System.Drawing.Point(9, 9); this.lblDrive.Name = "lblDrive"; this.lblDrive.Size = new System.Drawing.Size(35, 13); this.lblDrive.TabIndex = 28; this.lblDrive.Text = "Drive:"; // // groupBox8 // this.groupBox8.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox8.BackColor = System.Drawing.Color.Silver; this.groupBox8.Controls.Add(this.groupBox9); this.groupBox8.Controls.Add(this.checkedListBox1); this.groupBox8.Controls.Add(this.otherOptions); this.groupBox8.Controls.Add(this.btnDefrag); this.groupBox8.Controls.Add(this.lblChkOpt); this.groupBox8.Controls.Add(this.ntfsOptions); this.groupBox8.Controls.Add(this.fsBox); this.groupBox8.Controls.Add(this.btnCheckDrive); this.groupBox8.Location = new System.Drawing.Point(0, 33); this.groupBox8.Name = "groupBox8"; this.groupBox8.Size = new System.Drawing.Size(753, 350); this.groupBox8.TabIndex = 26; this.groupBox8.TabStop = false; this.groupBox8.Text = "Drive Tools"; // // groupBox9 // this.groupBox9.Controls.Add(this.btnAdvCleanupSet); this.groupBox9.Controls.Add(this.btnAdvCleanupRun); this.groupBox9.Location = new System.Drawing.Point(268, 16); this.groupBox9.Name = "groupBox9"; this.groupBox9.Size = new System.Drawing.Size(130, 70); this.groupBox9.TabIndex = 33; this.groupBox9.TabStop = false; this.groupBox9.Text = "Advance Disk Cleanup"; // // checkedListBox1 // this.checkedListBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.checkedListBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.checkedListBox1.FormattingEnabled = true; this.checkedListBox1.Items.AddRange(new object[] { "Defrag All Local Volumes", "Defrag All Except Chosen One", "Display Fragment Analysis (No Defrag)", "Perform Free Space Consolidation", "Raise Priority Level", "Parallel Defrag", "Show Progress On Screen", "Verbose"}); this.checkedListBox1.Location = new System.Drawing.Point(5, 199); this.checkedListBox1.Name = "checkedListBox1"; this.checkedListBox1.Size = new System.Drawing.Size(257, 124); this.checkedListBox1.TabIndex = 30; // // otherOptions // this.otherOptions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.otherOptions.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.otherOptions.FormattingEnabled = true; this.otherOptions.Items.AddRange(new object[] { "Dismount First", "Fix Errors", "Fix Errors & Bad Sectors", "Verbose File Name/Paths"}); this.otherOptions.Location = new System.Drawing.Point(6, 59); this.otherOptions.Name = "otherOptions"; this.otherOptions.Size = new System.Drawing.Size(255, 94); this.otherOptions.TabIndex = 18; this.otherOptions.Visible = false; // // btnDefrag // this.btnDefrag.Location = new System.Drawing.Point(5, 161); this.btnDefrag.Name = "btnDefrag"; this.btnDefrag.Size = new System.Drawing.Size(257, 32); this.btnDefrag.TabIndex = 29; this.btnDefrag.Text = "Defrag Disk"; this.btnDefrag.UseVisualStyleBackColor = true; this.btnDefrag.Click += new System.EventHandler(this.ClickEventHandler); // // lblChkOpt // this.lblChkOpt.AutoSize = true; this.lblChkOpt.Location = new System.Drawing.Point(124, 16); this.lblChkOpt.Name = "lblChkOpt"; this.lblChkOpt.Size = new System.Drawing.Size(138, 13); this.lblChkOpt.TabIndex = 28; this.lblChkOpt.Text = "Specific Filesystem Options:"; // // ntfsOptions // this.ntfsOptions.Enabled = false; this.ntfsOptions.FormattingEnabled = true; this.ntfsOptions.Items.AddRange(new object[] { "Dismount First", "Fix Errors", "Fix Errors & Bad Sectors", "Less Vigorous Index Check", "Skip Checking Cycles Within Folders", "Re-Evaluates Bad Clusters"}); this.ntfsOptions.Location = new System.Drawing.Point(6, 59); this.ntfsOptions.Name = "ntfsOptions"; this.ntfsOptions.Size = new System.Drawing.Size(255, 94); this.ntfsOptions.TabIndex = 27; this.ntfsOptions.Visible = false; // // fsBox // this.fsBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.fsBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fsBox.FormattingEnabled = true; this.fsBox.Items.AddRange(new object[] { "FAT32", "NTFS", "OTHER"}); this.fsBox.Location = new System.Drawing.Point(141, 32); this.fsBox.Name = "fsBox"; this.fsBox.Size = new System.Drawing.Size(120, 21); this.fsBox.TabIndex = 26; this.fsBox.SelectedIndexChanged += new System.EventHandler(this.chkDskOptions_SelectionChange); // // toolsPage5 // this.toolsPage5.BackColor = System.Drawing.Color.Silver; this.toolsPage5.Controls.Add(this.mtbxDomainUserPassword); this.toolsPage5.Controls.Add(this.label28); this.toolsPage5.Controls.Add(this.label27); this.toolsPage5.Controls.Add(this.label26); this.toolsPage5.Controls.Add(this.tbxDomainUserName); this.toolsPage5.Controls.Add(this.tbxDomainName2); this.toolsPage5.Controls.Add(this.tabDomain); this.toolsPage5.Location = new System.Drawing.Point(4, 22); this.toolsPage5.Name = "toolsPage5"; this.toolsPage5.Size = new System.Drawing.Size(756, 386); this.toolsPage5.TabIndex = 4; this.toolsPage5.Text = "Domain"; // // mtbxDomainUserPassword // this.mtbxDomainUserPassword.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.mtbxDomainUserPassword.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.mtbxDomainUserPassword.Location = new System.Drawing.Point(418, 6); this.mtbxDomainUserPassword.Name = "mtbxDomainUserPassword"; this.mtbxDomainUserPassword.PasswordChar = '*'; this.mtbxDomainUserPassword.Size = new System.Drawing.Size(100, 20); this.mtbxDomainUserPassword.TabIndex = 7; this.mtbxDomainUserPassword.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals; // // label28 // this.label28.AutoSize = true; this.label28.Location = new System.Drawing.Point(356, 9); this.label28.Name = "label28"; this.label28.Size = new System.Drawing.Size(56, 13); this.label28.TabIndex = 6; this.label28.Text = "Password:"; // // label27 // this.label27.AutoSize = true; this.label27.Location = new System.Drawing.Point(172, 9); this.label27.Name = "label27"; this.label27.Size = new System.Drawing.Size(58, 13); this.label27.TabIndex = 5; this.label27.Text = "Username:"; // // label26 // this.label26.AutoSize = true; this.label26.Location = new System.Drawing.Point(4, 9); this.label26.Name = "label26"; this.label26.Size = new System.Drawing.Size(46, 13); this.label26.TabIndex = 4; this.label26.Text = "Domain:"; // // tbxDomainUserName // this.tbxDomainUserName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDomainUserName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDomainUserName.Location = new System.Drawing.Point(236, 6); this.tbxDomainUserName.Name = "tbxDomainUserName"; this.tbxDomainUserName.Size = new System.Drawing.Size(100, 20); this.tbxDomainUserName.TabIndex = 2; // // tbxDomainName2 // this.tbxDomainName2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDomainName2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDomainName2.Location = new System.Drawing.Point(56, 6); this.tbxDomainName2.Name = "tbxDomainName2"; this.tbxDomainName2.Size = new System.Drawing.Size(100, 20); this.tbxDomainName2.TabIndex = 1; // // tabDomain // this.tabDomain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabDomain.Controls.Add(this.tabDomainWS); this.tabDomain.Controls.Add(this.tabDomainIPRQ); this.tabDomain.Controls.Add(this.tabDomainLicensing); this.tabDomain.Controls.Add(this.tabSMTPTest); this.tabDomain.Location = new System.Drawing.Point(3, 32); this.tabDomain.Name = "tabDomain"; this.tabDomain.SelectedIndex = 0; this.tabDomain.Size = new System.Drawing.Size(750, 351); this.tabDomain.TabIndex = 0; // // tabDomainWS // this.tabDomainWS.BackColor = System.Drawing.Color.Silver; this.tabDomainWS.Controls.Add(this.cbxRGPU); this.tabDomainWS.Controls.Add(this.btnRCLEAR); this.tabDomainWS.Controls.Add(this.cbxRBIOS); this.tabDomainWS.Controls.Add(this.cbxRAUSERS); this.tabDomainWS.Controls.Add(this.cbxRUSER); this.tabDomainWS.Controls.Add(this.cbxRIP); this.tabDomainWS.Controls.Add(this.cbxRCPU); this.tabDomainWS.Controls.Add(this.cbxRMAC); this.tabDomainWS.Controls.Add(this.cbxROS); this.tabDomainWS.Controls.Add(this.label29); this.tabDomainWS.Controls.Add(this.btnWSQuery); this.tabDomainWS.Controls.Add(this.tbxWSName); this.tabDomainWS.Controls.Add(this.treeWS); this.tabDomainWS.Location = new System.Drawing.Point(4, 22); this.tabDomainWS.Name = "tabDomainWS"; this.tabDomainWS.Padding = new System.Windows.Forms.Padding(3); this.tabDomainWS.Size = new System.Drawing.Size(742, 325); this.tabDomainWS.TabIndex = 0; this.tabDomainWS.Text = "Workstation Query"; // // cbxRGPU // this.cbxRGPU.AutoSize = true; this.cbxRGPU.Checked = true; this.cbxRGPU.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRGPU.Location = new System.Drawing.Point(9, 113); this.cbxRGPU.Name = "cbxRGPU"; this.cbxRGPU.Size = new System.Drawing.Size(70, 17); this.cbxRGPU.TabIndex = 14; this.cbxRGPU.Text = "GPU Info"; this.cbxRGPU.UseVisualStyleBackColor = true; // // btnRCLEAR // this.btnRCLEAR.Location = new System.Drawing.Point(9, 228); this.btnRCLEAR.Name = "btnRCLEAR"; this.btnRCLEAR.Size = new System.Drawing.Size(243, 33); this.btnRCLEAR.TabIndex = 13; this.btnRCLEAR.Text = "Clear"; this.btnRCLEAR.UseVisualStyleBackColor = true; this.btnRCLEAR.Click += new System.EventHandler(this.ClickEventHandler); // // cbxRBIOS // this.cbxRBIOS.AutoSize = true; this.cbxRBIOS.Checked = true; this.cbxRBIOS.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRBIOS.Location = new System.Drawing.Point(9, 68); this.cbxRBIOS.Name = "cbxRBIOS"; this.cbxRBIOS.Size = new System.Drawing.Size(72, 17); this.cbxRBIOS.TabIndex = 12; this.cbxRBIOS.Text = "BIOS Info"; this.cbxRBIOS.UseVisualStyleBackColor = true; // // cbxRAUSERS // this.cbxRAUSERS.AutoSize = true; this.cbxRAUSERS.Checked = true; this.cbxRAUSERS.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRAUSERS.Location = new System.Drawing.Point(9, 205); this.cbxRAUSERS.Name = "cbxRAUSERS"; this.cbxRAUSERS.Size = new System.Drawing.Size(143, 17); this.cbxRAUSERS.TabIndex = 11; this.cbxRAUSERS.Text = "All Active User Accounts"; this.cbxRAUSERS.UseVisualStyleBackColor = true; // // cbxRUSER // this.cbxRUSER.AutoSize = true; this.cbxRUSER.Checked = true; this.cbxRUSER.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRUSER.Location = new System.Drawing.Point(9, 182); this.cbxRUSER.Name = "cbxRUSER"; this.cbxRUSER.Size = new System.Drawing.Size(104, 17); this.cbxRUSER.TabIndex = 10; this.cbxRUSER.Text = "User Logged On"; this.cbxRUSER.UseVisualStyleBackColor = true; // // cbxRIP // this.cbxRIP.AutoSize = true; this.cbxRIP.Checked = true; this.cbxRIP.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRIP.Location = new System.Drawing.Point(9, 159); this.cbxRIP.Name = "cbxRIP"; this.cbxRIP.Size = new System.Drawing.Size(77, 17); this.cbxRIP.TabIndex = 9; this.cbxRIP.Text = "IP Address"; this.cbxRIP.UseVisualStyleBackColor = true; // // cbxRCPU // this.cbxRCPU.AutoSize = true; this.cbxRCPU.Checked = true; this.cbxRCPU.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRCPU.Location = new System.Drawing.Point(9, 90); this.cbxRCPU.Name = "cbxRCPU"; this.cbxRCPU.Size = new System.Drawing.Size(69, 17); this.cbxRCPU.TabIndex = 8; this.cbxRCPU.Text = "CPU Info"; this.cbxRCPU.UseVisualStyleBackColor = true; // // cbxRMAC // this.cbxRMAC.AutoSize = true; this.cbxRMAC.Checked = true; this.cbxRMAC.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRMAC.Location = new System.Drawing.Point(9, 136); this.cbxRMAC.Name = "cbxRMAC"; this.cbxRMAC.Size = new System.Drawing.Size(90, 17); this.cbxRMAC.TabIndex = 7; this.cbxRMAC.Text = "MAC Address"; this.cbxRMAC.UseVisualStyleBackColor = true; // // cbxROS // this.cbxROS.AutoSize = true; this.cbxROS.Checked = true; this.cbxROS.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxROS.Location = new System.Drawing.Point(9, 45); this.cbxROS.Name = "cbxROS"; this.cbxROS.Size = new System.Drawing.Size(62, 17); this.cbxROS.TabIndex = 6; this.cbxROS.Text = "OS Info"; this.cbxROS.UseVisualStyleBackColor = true; // // label29 // this.label29.AutoSize = true; this.label29.Location = new System.Drawing.Point(6, 3); this.label29.Name = "label29"; this.label29.Size = new System.Drawing.Size(101, 13); this.label29.TabIndex = 3; this.label29.Text = "Computer Name/IP:"; // // btnWSQuery // this.btnWSQuery.Location = new System.Drawing.Point(158, 6); this.btnWSQuery.Name = "btnWSQuery"; this.btnWSQuery.Size = new System.Drawing.Size(94, 33); this.btnWSQuery.TabIndex = 5; this.btnWSQuery.Text = "Get Data ->"; this.btnWSQuery.UseVisualStyleBackColor = true; this.btnWSQuery.Click += new System.EventHandler(this.ClickEventHandler); // // tbxWSName // this.tbxWSName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxWSName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxWSName.Location = new System.Drawing.Point(9, 19); this.tbxWSName.Name = "tbxWSName"; this.tbxWSName.Size = new System.Drawing.Size(143, 20); this.tbxWSName.TabIndex = 4; // // treeWS // this.treeWS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeWS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeWS.ForeColor = System.Drawing.SystemColors.Window; this.treeWS.Location = new System.Drawing.Point(258, 3); this.treeWS.Name = "treeWS"; this.treeWS.Size = new System.Drawing.Size(481, 319); this.treeWS.TabIndex = 0; this.treeWS.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabDomainIPRQ // this.tabDomainIPRQ.BackColor = System.Drawing.Color.Silver; this.tabDomainIPRQ.Controls.Add(this.lbRangeTotalTime); this.tabDomainIPRQ.Controls.Add(this.lbRangePercent); this.tabDomainIPRQ.Controls.Add(this.btnRangeExport); this.tabDomainIPRQ.Controls.Add(this.label46); this.tabDomainIPRQ.Controls.Add(this.tbxIPEndFour); this.tabDomainIPRQ.Controls.Add(this.tbxIPEndThree); this.tabDomainIPRQ.Controls.Add(this.tbxIPEndTwo); this.tabDomainIPRQ.Controls.Add(this.tbxIPEndOne); this.tabDomainIPRQ.Controls.Add(this.tbxIPStartFour); this.tabDomainIPRQ.Controls.Add(this.tbxIPStartThree); this.tabDomainIPRQ.Controls.Add(this.tbxIPStartTwo); this.tabDomainIPRQ.Controls.Add(this.cbxRangeGPU); this.tabDomainIPRQ.Controls.Add(this.btnRangeClear); this.tabDomainIPRQ.Controls.Add(this.cbxRangeBIOS); this.tabDomainIPRQ.Controls.Add(this.cbxRangeUSERS); this.tabDomainIPRQ.Controls.Add(this.cbxRangeUSER); this.tabDomainIPRQ.Controls.Add(this.cbxRangeIP); this.tabDomainIPRQ.Controls.Add(this.cbxRangeCPU); this.tabDomainIPRQ.Controls.Add(this.cbxRangeMAC); this.tabDomainIPRQ.Controls.Add(this.cbxRangeOS); this.tabDomainIPRQ.Controls.Add(this.label45); this.tabDomainIPRQ.Controls.Add(this.btnRangeQuery); this.tabDomainIPRQ.Controls.Add(this.tbxIPStartOne); this.tabDomainIPRQ.Controls.Add(this.treeIPRange); this.tabDomainIPRQ.Location = new System.Drawing.Point(4, 22); this.tabDomainIPRQ.Name = "tabDomainIPRQ"; this.tabDomainIPRQ.Padding = new System.Windows.Forms.Padding(3); this.tabDomainIPRQ.Size = new System.Drawing.Size(742, 325); this.tabDomainIPRQ.TabIndex = 1; this.tabDomainIPRQ.Text = "IP Range Query"; // // lbRangeTotalTime // this.lbRangeTotalTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lbRangeTotalTime.AutoSize = true; this.lbRangeTotalTime.Location = new System.Drawing.Point(254, 303); this.lbRangeTotalTime.Name = "lbRangeTotalTime"; this.lbRangeTotalTime.Size = new System.Drawing.Size(101, 13); this.lbRangeTotalTime.TabIndex = 37; this.lbRangeTotalTime.Text = "Total Time Elapsed:"; // // lbRangePercent // this.lbRangePercent.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lbRangePercent.AutoSize = true; this.lbRangePercent.Location = new System.Drawing.Point(255, 290); this.lbRangePercent.Name = "lbRangePercent"; this.lbRangePercent.Size = new System.Drawing.Size(94, 13); this.lbRangePercent.TabIndex = 36; this.lbRangePercent.Text = "Precent Complete:"; // // btnRangeExport // this.btnRangeExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnRangeExport.Enabled = false; this.btnRangeExport.Location = new System.Drawing.Point(545, 290); this.btnRangeExport.Name = "btnRangeExport"; this.btnRangeExport.Size = new System.Drawing.Size(94, 27); this.btnRangeExport.TabIndex = 35; this.btnRangeExport.Text = "Export to CSV"; this.btnRangeExport.UseVisualStyleBackColor = true; this.btnRangeExport.Click += new System.EventHandler(this.IPRangeEventHandler); // // label46 // this.label46.AutoSize = true; this.label46.Location = new System.Drawing.Point(6, 42); this.label46.Name = "label46"; this.label46.Size = new System.Drawing.Size(45, 13); this.label46.TabIndex = 34; this.label46.Text = "IP Stop:"; // // tbxIPEndFour // this.tbxIPEndFour.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPEndFour.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPEndFour.Location = new System.Drawing.Point(129, 58); this.tbxIPEndFour.MaxLength = 3; this.tbxIPEndFour.Name = "tbxIPEndFour"; this.tbxIPEndFour.Size = new System.Drawing.Size(34, 20); this.tbxIPEndFour.TabIndex = 8; this.tbxIPEndFour.Text = "10"; this.tbxIPEndFour.KeyDown += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyDown); this.tbxIPEndFour.KeyUp += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyUp); // // tbxIPEndThree // this.tbxIPEndThree.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPEndThree.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPEndThree.Location = new System.Drawing.Point(89, 58); this.tbxIPEndThree.MaxLength = 3; this.tbxIPEndThree.Name = "tbxIPEndThree"; this.tbxIPEndThree.ReadOnly = true; this.tbxIPEndThree.Size = new System.Drawing.Size(34, 20); this.tbxIPEndThree.TabIndex = 32; this.tbxIPEndThree.Text = "0"; // // tbxIPEndTwo // this.tbxIPEndTwo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPEndTwo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPEndTwo.Location = new System.Drawing.Point(49, 58); this.tbxIPEndTwo.MaxLength = 3; this.tbxIPEndTwo.Name = "tbxIPEndTwo"; this.tbxIPEndTwo.ReadOnly = true; this.tbxIPEndTwo.Size = new System.Drawing.Size(34, 20); this.tbxIPEndTwo.TabIndex = 31; this.tbxIPEndTwo.Text = "168"; // // tbxIPEndOne // this.tbxIPEndOne.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPEndOne.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPEndOne.Location = new System.Drawing.Point(9, 58); this.tbxIPEndOne.MaxLength = 3; this.tbxIPEndOne.Name = "tbxIPEndOne"; this.tbxIPEndOne.ReadOnly = true; this.tbxIPEndOne.Size = new System.Drawing.Size(34, 20); this.tbxIPEndOne.TabIndex = 30; this.tbxIPEndOne.Text = "192"; // // tbxIPStartFour // this.tbxIPStartFour.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPStartFour.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPStartFour.Location = new System.Drawing.Point(129, 19); this.tbxIPStartFour.MaxLength = 3; this.tbxIPStartFour.Name = "tbxIPStartFour"; this.tbxIPStartFour.Size = new System.Drawing.Size(34, 20); this.tbxIPStartFour.TabIndex = 7; this.tbxIPStartFour.Text = "1"; this.tbxIPStartFour.KeyDown += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyDown); this.tbxIPStartFour.KeyUp += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyUp); // // tbxIPStartThree // this.tbxIPStartThree.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPStartThree.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPStartThree.Location = new System.Drawing.Point(89, 19); this.tbxIPStartThree.MaxLength = 3; this.tbxIPStartThree.Name = "tbxIPStartThree"; this.tbxIPStartThree.Size = new System.Drawing.Size(34, 20); this.tbxIPStartThree.TabIndex = 6; this.tbxIPStartThree.Text = "0"; this.tbxIPStartThree.KeyDown += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyDown); this.tbxIPStartThree.KeyUp += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyUp); // // tbxIPStartTwo // this.tbxIPStartTwo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPStartTwo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPStartTwo.Location = new System.Drawing.Point(49, 19); this.tbxIPStartTwo.MaxLength = 3; this.tbxIPStartTwo.Name = "tbxIPStartTwo"; this.tbxIPStartTwo.Size = new System.Drawing.Size(34, 20); this.tbxIPStartTwo.TabIndex = 5; this.tbxIPStartTwo.Text = "168"; this.tbxIPStartTwo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyDown); this.tbxIPStartTwo.KeyUp += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyUp); // // cbxRangeGPU // this.cbxRangeGPU.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeGPU.AutoSize = true; this.cbxRangeGPU.Location = new System.Drawing.Point(9, 204); this.cbxRangeGPU.Name = "cbxRangeGPU"; this.cbxRangeGPU.Size = new System.Drawing.Size(70, 17); this.cbxRangeGPU.TabIndex = 13; this.cbxRangeGPU.Text = "GPU Info"; this.cbxRangeGPU.UseVisualStyleBackColor = true; // // btnRangeClear // this.btnRangeClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnRangeClear.Location = new System.Drawing.Point(639, 290); this.btnRangeClear.Name = "btnRangeClear"; this.btnRangeClear.Size = new System.Drawing.Size(94, 27); this.btnRangeClear.TabIndex = 18; this.btnRangeClear.Text = "Clear"; this.btnRangeClear.UseVisualStyleBackColor = true; this.btnRangeClear.Click += new System.EventHandler(this.IPRangeEventHandler); // // cbxRangeBIOS // this.cbxRangeBIOS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeBIOS.AutoSize = true; this.cbxRangeBIOS.Location = new System.Drawing.Point(9, 159); this.cbxRangeBIOS.Name = "cbxRangeBIOS"; this.cbxRangeBIOS.Size = new System.Drawing.Size(72, 17); this.cbxRangeBIOS.TabIndex = 11; this.cbxRangeBIOS.Text = "BIOS Info"; this.cbxRangeBIOS.UseVisualStyleBackColor = true; // // cbxRangeUSERS // this.cbxRangeUSERS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeUSERS.AutoSize = true; this.cbxRangeUSERS.Location = new System.Drawing.Point(9, 296); this.cbxRangeUSERS.Name = "cbxRangeUSERS"; this.cbxRangeUSERS.Size = new System.Drawing.Size(143, 17); this.cbxRangeUSERS.TabIndex = 17; this.cbxRangeUSERS.Text = "All Active User Accounts"; this.cbxRangeUSERS.UseVisualStyleBackColor = true; // // cbxRangeUSER // this.cbxRangeUSER.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeUSER.AutoSize = true; this.cbxRangeUSER.Checked = true; this.cbxRangeUSER.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRangeUSER.Location = new System.Drawing.Point(9, 273); this.cbxRangeUSER.Name = "cbxRangeUSER"; this.cbxRangeUSER.Size = new System.Drawing.Size(104, 17); this.cbxRangeUSER.TabIndex = 16; this.cbxRangeUSER.Text = "User Logged On"; this.cbxRangeUSER.UseVisualStyleBackColor = true; // // cbxRangeIP // this.cbxRangeIP.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeIP.AutoSize = true; this.cbxRangeIP.Checked = true; this.cbxRangeIP.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRangeIP.Location = new System.Drawing.Point(9, 250); this.cbxRangeIP.Name = "cbxRangeIP"; this.cbxRangeIP.Size = new System.Drawing.Size(77, 17); this.cbxRangeIP.TabIndex = 15; this.cbxRangeIP.Text = "IP Address"; this.cbxRangeIP.UseVisualStyleBackColor = true; // // cbxRangeCPU // this.cbxRangeCPU.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeCPU.AutoSize = true; this.cbxRangeCPU.Location = new System.Drawing.Point(9, 181); this.cbxRangeCPU.Name = "cbxRangeCPU"; this.cbxRangeCPU.Size = new System.Drawing.Size(69, 17); this.cbxRangeCPU.TabIndex = 12; this.cbxRangeCPU.Text = "CPU Info"; this.cbxRangeCPU.UseVisualStyleBackColor = true; // // cbxRangeMAC // this.cbxRangeMAC.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeMAC.AutoSize = true; this.cbxRangeMAC.Checked = true; this.cbxRangeMAC.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRangeMAC.Location = new System.Drawing.Point(9, 227); this.cbxRangeMAC.Name = "cbxRangeMAC"; this.cbxRangeMAC.Size = new System.Drawing.Size(90, 17); this.cbxRangeMAC.TabIndex = 14; this.cbxRangeMAC.Text = "MAC Address"; this.cbxRangeMAC.UseVisualStyleBackColor = true; // // cbxRangeOS // this.cbxRangeOS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbxRangeOS.AutoSize = true; this.cbxRangeOS.Checked = true; this.cbxRangeOS.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxRangeOS.Location = new System.Drawing.Point(9, 136); this.cbxRangeOS.Name = "cbxRangeOS"; this.cbxRangeOS.Size = new System.Drawing.Size(62, 17); this.cbxRangeOS.TabIndex = 10; this.cbxRangeOS.Text = "OS Info"; this.cbxRangeOS.UseVisualStyleBackColor = true; // // label45 // this.label45.AutoSize = true; this.label45.Location = new System.Drawing.Point(6, 3); this.label45.Name = "label45"; this.label45.Size = new System.Drawing.Size(45, 13); this.label45.TabIndex = 15; this.label45.Text = "IP Start:"; // // btnRangeQuery // this.btnRangeQuery.Location = new System.Drawing.Point(9, 84); this.btnRangeQuery.Name = "btnRangeQuery"; this.btnRangeQuery.Size = new System.Drawing.Size(154, 46); this.btnRangeQuery.TabIndex = 9; this.btnRangeQuery.Text = "Get Data ->"; this.btnRangeQuery.UseVisualStyleBackColor = true; this.btnRangeQuery.Click += new System.EventHandler(this.IPRangeEventHandler); // // tbxIPStartOne // this.tbxIPStartOne.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPStartOne.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPStartOne.Location = new System.Drawing.Point(9, 19); this.tbxIPStartOne.MaxLength = 3; this.tbxIPStartOne.Name = "tbxIPStartOne"; this.tbxIPStartOne.Size = new System.Drawing.Size(34, 20); this.tbxIPStartOne.TabIndex = 4; this.tbxIPStartOne.Text = "192"; this.tbxIPStartOne.KeyDown += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyDown); this.tbxIPStartOne.KeyUp += new System.Windows.Forms.KeyEventHandler(this.IPR_KeyUp); // // treeIPRange // this.treeIPRange.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeIPRange.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeIPRange.ForeColor = System.Drawing.SystemColors.Window; this.treeIPRange.Location = new System.Drawing.Point(258, 3); this.treeIPRange.Name = "treeIPRange"; this.treeIPRange.Size = new System.Drawing.Size(475, 287); this.treeIPRange.TabIndex = 1; this.treeIPRange.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabDomainLicensing // this.tabDomainLicensing.BackColor = System.Drawing.Color.Silver; this.tabDomainLicensing.Controls.Add(this.btnExportLQs); this.tabDomainLicensing.Controls.Add(this.btnLicenseClear); this.tabDomainLicensing.Controls.Add(this.dgvLicenseQueries); this.tabDomainLicensing.Controls.Add(this.btnQueryLicense); this.tabDomainLicensing.Controls.Add(this.label6); this.tabDomainLicensing.Controls.Add(this.tbxLMachineName); this.tabDomainLicensing.Location = new System.Drawing.Point(4, 22); this.tabDomainLicensing.Name = "tabDomainLicensing"; this.tabDomainLicensing.Padding = new System.Windows.Forms.Padding(3); this.tabDomainLicensing.Size = new System.Drawing.Size(742, 325); this.tabDomainLicensing.TabIndex = 2; this.tabDomainLicensing.Text = "Licensing"; // // btnExportLQs // this.btnExportLQs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnExportLQs.Location = new System.Drawing.Point(591, 12); this.btnExportLQs.Name = "btnExportLQs"; this.btnExportLQs.Size = new System.Drawing.Size(68, 23); this.btnExportLQs.TabIndex = 10; this.btnExportLQs.Text = "Export All"; this.btnExportLQs.UseVisualStyleBackColor = true; this.btnExportLQs.Click += new System.EventHandler(this.LicenseExport); // // btnLicenseClear // this.btnLicenseClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnLicenseClear.Location = new System.Drawing.Point(665, 12); this.btnLicenseClear.Name = "btnLicenseClear"; this.btnLicenseClear.Size = new System.Drawing.Size(68, 23); this.btnLicenseClear.TabIndex = 9; this.btnLicenseClear.Text = "Clear All"; this.btnLicenseClear.UseVisualStyleBackColor = true; this.btnLicenseClear.Click += new System.EventHandler(this.LicenseClearAll); // // dgvLicenseQueries // this.dgvLicenseQueries.AllowUserToAddRows = false; this.dgvLicenseQueries.AllowUserToDeleteRows = false; this.dgvLicenseQueries.AllowUserToOrderColumns = true; this.dgvLicenseQueries.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dgvLicenseQueries.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells; this.dgvLicenseQueries.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvLicenseQueries.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.col0, this.col1, this.col2, this.col4, this.col5}); this.dgvLicenseQueries.Location = new System.Drawing.Point(6, 41); this.dgvLicenseQueries.Name = "dgvLicenseQueries"; this.dgvLicenseQueries.ReadOnly = true; this.dgvLicenseQueries.RowHeadersVisible = false; this.dgvLicenseQueries.Size = new System.Drawing.Size(730, 281); this.dgvLicenseQueries.TabIndex = 8; // // col0 // this.col0.HeaderText = "Machine Name"; this.col0.Name = "col0"; this.col0.ReadOnly = true; this.col0.Width = 96; // // col1 // this.col1.HeaderText = "OS"; this.col1.Name = "col1"; this.col1.ReadOnly = true; this.col1.Width = 47; // // col2 // this.col2.HeaderText = "OS Key"; this.col2.Name = "col2"; this.col2.ReadOnly = true; this.col2.Width = 63; // // col4 // this.col4.HeaderText = "Office"; this.col4.Name = "col4"; this.col4.ReadOnly = true; this.col4.Width = 60; // // col5 // this.col5.HeaderText = "Office Key"; this.col5.Name = "col5"; this.col5.ReadOnly = true; this.col5.Width = 75; // // btnQueryLicense // this.btnQueryLicense.Location = new System.Drawing.Point(268, 12); this.btnQueryLicense.Name = "btnQueryLicense"; this.btnQueryLicense.Size = new System.Drawing.Size(95, 23); this.btnQueryLicense.TabIndex = 2; this.btnQueryLicense.Text = "Query License"; this.btnQueryLicense.UseVisualStyleBackColor = true; this.btnQueryLicense.Click += new System.EventHandler(this.Licensing_Click); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(3, 17); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(82, 13); this.label6.TabIndex = 1; this.label6.Text = "Machine Name:"; // // tbxLMachineName // this.tbxLMachineName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxLMachineName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxLMachineName.Location = new System.Drawing.Point(91, 14); this.tbxLMachineName.Name = "tbxLMachineName"; this.tbxLMachineName.Size = new System.Drawing.Size(171, 20); this.tbxLMachineName.TabIndex = 0; // // tabSMTPTest // this.tabSMTPTest.BackColor = System.Drawing.Color.Silver; this.tabSMTPTest.Controls.Add(this.groupBox20); this.tabSMTPTest.Location = new System.Drawing.Point(4, 22); this.tabSMTPTest.Name = "tabSMTPTest"; this.tabSMTPTest.Padding = new System.Windows.Forms.Padding(3); this.tabSMTPTest.Size = new System.Drawing.Size(742, 325); this.tabSMTPTest.TabIndex = 3; this.tabSMTPTest.Text = "SMTP Tester"; // // groupBox20 // this.groupBox20.Controls.Add(this.tbxRelay); this.groupBox20.Controls.Add(this.tbxSUser); this.groupBox20.Controls.Add(this.label17); this.groupBox20.Controls.Add(this.label38); this.groupBox20.Controls.Add(this.tbxSPassword); this.groupBox20.Controls.Add(this.checkCredentials); this.groupBox20.Controls.Add(this.label58); this.groupBox20.Controls.Add(this.tbxFrom); this.groupBox20.Controls.Add(this.checkExplicit); this.groupBox20.Controls.Add(this.checkBypass); this.groupBox20.Controls.Add(this.btnSendTest); this.groupBox20.Controls.Add(this.label59); this.groupBox20.Controls.Add(this.label60); this.groupBox20.Controls.Add(this.tbxBody); this.groupBox20.Controls.Add(this.label61); this.groupBox20.Controls.Add(this.tbxSubject); this.groupBox20.Controls.Add(this.label62); this.groupBox20.Controls.Add(this.label63); this.groupBox20.Controls.Add(this.tbxTo); this.groupBox20.Controls.Add(this.tbxResponse); this.groupBox20.ForeColor = System.Drawing.Color.Black; this.groupBox20.Location = new System.Drawing.Point(6, 3); this.groupBox20.Name = "groupBox20"; this.groupBox20.Size = new System.Drawing.Size(730, 319); this.groupBox20.TabIndex = 138; this.groupBox20.TabStop = false; this.groupBox20.Text = "SMTP Settings"; // // tbxRelay // this.tbxRelay.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxRelay.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxRelay.Location = new System.Drawing.Point(307, 26); this.tbxRelay.Name = "tbxRelay"; this.tbxRelay.Size = new System.Drawing.Size(189, 20); this.tbxRelay.TabIndex = 159; // // tbxSUser // this.tbxSUser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxSUser.Enabled = false; this.tbxSUser.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxSUser.Location = new System.Drawing.Point(359, 133); this.tbxSUser.Name = "tbxSUser"; this.tbxSUser.Size = new System.Drawing.Size(137, 20); this.tbxSUser.TabIndex = 145; // // label17 // this.label17.AutoSize = true; this.label17.Location = new System.Drawing.Point(342, 162); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(17, 13); this.label17.TabIndex = 158; this.label17.Text = "P:"; // // label38 // this.label38.AutoSize = true; this.label38.Location = new System.Drawing.Point(342, 136); this.label38.Name = "label38"; this.label38.Size = new System.Drawing.Size(18, 13); this.label38.TabIndex = 157; this.label38.Text = "U:"; // // tbxSPassword // this.tbxSPassword.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxSPassword.Enabled = false; this.tbxSPassword.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxSPassword.Location = new System.Drawing.Point(359, 159); this.tbxSPassword.Name = "tbxSPassword"; this.tbxSPassword.PasswordChar = '*'; this.tbxSPassword.PromptChar = '#'; this.tbxSPassword.Size = new System.Drawing.Size(137, 20); this.tbxSPassword.TabIndex = 146; // // checkCredentials // this.checkCredentials.AutoSize = true; this.checkCredentials.Location = new System.Drawing.Point(359, 109); this.checkCredentials.Name = "checkCredentials"; this.checkCredentials.Size = new System.Drawing.Size(116, 17); this.checkCredentials.TabIndex = 144; this.checkCredentials.Text = "Custom Credentials"; this.checkCredentials.UseVisualStyleBackColor = true; this.checkCredentials.Click += new System.EventHandler(this.CredentialsClicked); // // label58 // this.label58.AutoSize = true; this.label58.Location = new System.Drawing.Point(19, 19); this.label58.Name = "label58"; this.label58.Size = new System.Drawing.Size(33, 13); this.label58.TabIndex = 155; this.label58.Text = "From:"; // // tbxFrom // this.tbxFrom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxFrom.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxFrom.Location = new System.Drawing.Point(58, 16); this.tbxFrom.Name = "tbxFrom"; this.tbxFrom.Size = new System.Drawing.Size(189, 20); this.tbxFrom.TabIndex = 137; // // checkExplicit // this.checkExplicit.AutoSize = true; this.checkExplicit.Location = new System.Drawing.Point(359, 57); this.checkExplicit.Name = "checkExplicit"; this.checkExplicit.Size = new System.Drawing.Size(124, 17); this.checkExplicit.TabIndex = 142; this.checkExplicit.Text = "Explicitly Anonymous"; this.checkExplicit.UseVisualStyleBackColor = true; this.checkExplicit.Click += new System.EventHandler(this.ExplicitlyClicked); // // checkBypass // this.checkBypass.AutoSize = true; this.checkBypass.Location = new System.Drawing.Point(359, 83); this.checkBypass.Name = "checkBypass"; this.checkBypass.Size = new System.Drawing.Size(137, 17); this.checkBypass.TabIndex = 143; this.checkBypass.Text = "Use Current Credentials"; this.checkBypass.UseVisualStyleBackColor = true; this.checkBypass.Click += new System.EventHandler(this.BypassClicked); // // btnSendTest // this.btnSendTest.ForeColor = System.Drawing.Color.Black; this.btnSendTest.Location = new System.Drawing.Point(254, 95); this.btnSendTest.Name = "btnSendTest"; this.btnSendTest.Size = new System.Drawing.Size(68, 81); this.btnSendTest.TabIndex = 147; this.btnSendTest.Text = "Send Test"; this.btnSendTest.UseVisualStyleBackColor = true; // // label59 // this.label59.AutoSize = true; this.label59.Location = new System.Drawing.Point(3, 183); this.label59.Name = "label59"; this.label59.Size = new System.Drawing.Size(82, 13); this.label59.TabIndex = 154; this.label59.Text = "Test Response:"; // // label60 // this.label60.AutoSize = true; this.label60.Location = new System.Drawing.Point(18, 98); this.label60.Name = "label60"; this.label60.Size = new System.Drawing.Size(34, 13); this.label60.TabIndex = 153; this.label60.Text = "Body:"; // // tbxBody // this.tbxBody.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxBody.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxBody.Location = new System.Drawing.Point(58, 95); this.tbxBody.Multiline = true; this.tbxBody.Name = "tbxBody"; this.tbxBody.Size = new System.Drawing.Size(189, 78); this.tbxBody.TabIndex = 140; this.tbxBody.Text = "SMTP Message"; // // label61 // this.label61.AutoSize = true; this.label61.Location = new System.Drawing.Point(6, 72); this.label61.Name = "label61"; this.label61.Size = new System.Drawing.Size(46, 13); this.label61.TabIndex = 152; this.label61.Text = "Subject:"; // // tbxSubject // this.tbxSubject.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxSubject.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxSubject.Location = new System.Drawing.Point(58, 69); this.tbxSubject.Name = "tbxSubject"; this.tbxSubject.Size = new System.Drawing.Size(189, 20); this.tbxSubject.TabIndex = 139; this.tbxSubject.Text = "SMTP Test"; // // label62 // this.label62.AutoSize = true; this.label62.Location = new System.Drawing.Point(304, 10); this.label62.Name = "label62"; this.label62.Size = new System.Drawing.Size(64, 13); this.label62.TabIndex = 151; this.label62.Text = "Relay/Host:"; // // label63 // this.label63.AutoSize = true; this.label63.Location = new System.Drawing.Point(29, 46); this.label63.Name = "label63"; this.label63.Size = new System.Drawing.Size(23, 13); this.label63.TabIndex = 150; this.label63.Text = "To:"; // // tbxTo // this.tbxTo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxTo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxTo.Location = new System.Drawing.Point(58, 43); this.tbxTo.Name = "tbxTo"; this.tbxTo.Size = new System.Drawing.Size(189, 20); this.tbxTo.TabIndex = 138; // // tbxResponse // this.tbxResponse.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxResponse.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxResponse.Location = new System.Drawing.Point(6, 199); this.tbxResponse.Multiline = true; this.tbxResponse.Name = "tbxResponse"; this.tbxResponse.ReadOnly = true; this.tbxResponse.Size = new System.Drawing.Size(718, 114); this.tbxResponse.TabIndex = 156; this.tbxResponse.TabStop = false; // // toolsPage6 // this.toolsPage6.BackColor = System.Drawing.Color.Silver; this.toolsPage6.Controls.Add(this.groupBox23); this.toolsPage6.Controls.Add(this.groupBox22); this.toolsPage6.Controls.Add(this.groupBox21); this.toolsPage6.Controls.Add(this.gbxTelemetryStatus); this.toolsPage6.Location = new System.Drawing.Point(4, 22); this.toolsPage6.Name = "toolsPage6"; this.toolsPage6.Padding = new System.Windows.Forms.Padding(3); this.toolsPage6.Size = new System.Drawing.Size(756, 386); this.toolsPage6.TabIndex = 6; this.toolsPage6.Text = "Privacy"; // // groupBox23 // this.groupBox23.Controls.Add(this.btnOwnsHosts); this.groupBox23.Controls.Add(this.btnRestoreHosts); this.groupBox23.Controls.Add(this.btnBackupHosts); this.groupBox23.Controls.Add(this.btnModifyHosts); this.groupBox23.Location = new System.Drawing.Point(6, 178); this.groupBox23.Name = "groupBox23"; this.groupBox23.Size = new System.Drawing.Size(472, 80); this.groupBox23.TabIndex = 18; this.groupBox23.TabStop = false; this.groupBox23.Text = "Modifying Hosts"; // // btnOwnsHosts // this.btnOwnsHosts.Enabled = false; this.btnOwnsHosts.Location = new System.Drawing.Point(222, 19); this.btnOwnsHosts.Name = "btnOwnsHosts"; this.btnOwnsHosts.Size = new System.Drawing.Size(68, 50); this.btnOwnsHosts.TabIndex = 14; this.btnOwnsHosts.Text = "Take Ownership of Hosts"; this.btnOwnsHosts.UseVisualStyleBackColor = true; // // btnRestoreHosts // this.btnRestoreHosts.Location = new System.Drawing.Point(77, 19); this.btnRestoreHosts.Name = "btnRestoreHosts"; this.btnRestoreHosts.Size = new System.Drawing.Size(65, 50); this.btnRestoreHosts.TabIndex = 13; this.btnRestoreHosts.Text = "Restore Hosts"; this.btnRestoreHosts.UseVisualStyleBackColor = true; this.btnRestoreHosts.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnBackupHosts // this.btnBackupHosts.Location = new System.Drawing.Point(6, 19); this.btnBackupHosts.Name = "btnBackupHosts"; this.btnBackupHosts.Size = new System.Drawing.Size(65, 50); this.btnBackupHosts.TabIndex = 11; this.btnBackupHosts.Text = "Backup Hosts"; this.btnBackupHosts.UseVisualStyleBackColor = true; this.btnBackupHosts.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // btnModifyHosts // this.btnModifyHosts.Enabled = false; this.btnModifyHosts.Location = new System.Drawing.Point(148, 19); this.btnModifyHosts.Name = "btnModifyHosts"; this.btnModifyHosts.Size = new System.Drawing.Size(68, 50); this.btnModifyHosts.TabIndex = 12; this.btnModifyHosts.Text = "Modify Hosts"; this.btnModifyHosts.UseVisualStyleBackColor = true; this.btnModifyHosts.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // groupBox22 // this.groupBox22.Controls.Add(this.btnDisableLocationSensor); this.groupBox22.Controls.Add(this.btnDisableLocationUsage); this.groupBox22.Controls.Add(this.btnStopLogging); this.groupBox22.Controls.Add(this.btnDisableLogging); this.groupBox22.Location = new System.Drawing.Point(6, 92); this.groupBox22.Name = "groupBox22"; this.groupBox22.Size = new System.Drawing.Size(472, 80); this.groupBox22.TabIndex = 17; this.groupBox22.TabStop = false; this.groupBox22.Text = "Keylogging && Location Services"; // // btnDisableLogging // this.btnDisableLogging.Location = new System.Drawing.Point(103, 19); this.btnDisableLogging.Name = "btnDisableLogging"; this.btnDisableLogging.Size = new System.Drawing.Size(91, 49); this.btnDisableLogging.TabIndex = 10; this.btnDisableLogging.Text = "Disable User Input Logging Service Startup"; this.btnDisableLogging.UseVisualStyleBackColor = true; this.btnDisableLogging.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // groupBox21 // this.groupBox21.Controls.Add(this.btnOwnsLog); this.groupBox21.Controls.Add(this.btnDisableTelemetry); this.groupBox21.Controls.Add(this.btnDeleteTrackingLog); this.groupBox21.Controls.Add(this.btnDisableDiagnosticTracking); this.groupBox21.Controls.Add(this.btnStopDiagnosticTracking); this.groupBox21.Location = new System.Drawing.Point(6, 6); this.groupBox21.Name = "groupBox21"; this.groupBox21.Size = new System.Drawing.Size(472, 80); this.groupBox21.TabIndex = 16; this.groupBox21.TabStop = false; this.groupBox21.Text = "Telemetry"; // // gbxTelemetryStatus // this.gbxTelemetryStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxTelemetryStatus.Controls.Add(this.tbxTrackingOwner); this.gbxTelemetryStatus.Controls.Add(this.tbxHostsOwner); this.gbxTelemetryStatus.Controls.Add(this.label72); this.gbxTelemetryStatus.Controls.Add(this.tbxLocationSensor); this.gbxTelemetryStatus.Controls.Add(this.label71); this.gbxTelemetryStatus.Controls.Add(this.tbxLocationUsage); this.gbxTelemetryStatus.Controls.Add(this.label70); this.gbxTelemetryStatus.Controls.Add(this.tbxHostStatus); this.gbxTelemetryStatus.Controls.Add(this.label69); this.gbxTelemetryStatus.Controls.Add(this.tbxTelemetryOSStatus); this.gbxTelemetryStatus.Controls.Add(this.label68); this.gbxTelemetryStatus.Controls.Add(this.tbxTrackingLogStatus); this.gbxTelemetryStatus.Controls.Add(this.label67); this.gbxTelemetryStatus.Controls.Add(this.tbxKeylogServiceStatus); this.gbxTelemetryStatus.Controls.Add(this.tbxKeylogServiceStartup); this.gbxTelemetryStatus.Controls.Add(this.btnTelemetryRefresh); this.gbxTelemetryStatus.Controls.Add(this.label66); this.gbxTelemetryStatus.Controls.Add(this.label64); this.gbxTelemetryStatus.Controls.Add(this.label65); this.gbxTelemetryStatus.Controls.Add(this.tbxDiagnosticTrackingStatus); this.gbxTelemetryStatus.Controls.Add(this.tbxDiagnosticTrackingStartup); this.gbxTelemetryStatus.Location = new System.Drawing.Point(484, 6); this.gbxTelemetryStatus.Name = "gbxTelemetryStatus"; this.gbxTelemetryStatus.Size = new System.Drawing.Size(266, 374); this.gbxTelemetryStatus.TabIndex = 8; this.gbxTelemetryStatus.TabStop = false; this.gbxTelemetryStatus.Text = "Privacy Status"; // // tbxTrackingOwner // this.tbxTrackingOwner.Location = new System.Drawing.Point(189, 90); this.tbxTrackingOwner.Name = "tbxTrackingOwner"; this.tbxTrackingOwner.ReadOnly = true; this.tbxTrackingOwner.Size = new System.Drawing.Size(70, 20); this.tbxTrackingOwner.TabIndex = 22; this.tbxTrackingOwner.Text = "Not Owner"; this.tbxTrackingOwner.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // tbxHostsOwner // this.tbxHostsOwner.Location = new System.Drawing.Point(189, 195); this.tbxHostsOwner.Name = "tbxHostsOwner"; this.tbxHostsOwner.ReadOnly = true; this.tbxHostsOwner.Size = new System.Drawing.Size(70, 20); this.tbxHostsOwner.TabIndex = 21; this.tbxHostsOwner.Text = "Not Owner"; this.tbxHostsOwner.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label72 // this.label72.AutoSize = true; this.label72.Location = new System.Drawing.Point(20, 172); this.label72.Name = "label72"; this.label72.Size = new System.Drawing.Size(87, 13); this.label72.TabIndex = 19; this.label72.Text = "Location Sensor:"; // // tbxLocationSensor // this.tbxLocationSensor.Location = new System.Drawing.Point(189, 169); this.tbxLocationSensor.Name = "tbxLocationSensor"; this.tbxLocationSensor.ReadOnly = true; this.tbxLocationSensor.Size = new System.Drawing.Size(70, 20); this.tbxLocationSensor.TabIndex = 20; this.tbxLocationSensor.Text = "Disabled"; this.tbxLocationSensor.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label71 // this.label71.AutoSize = true; this.label71.Location = new System.Drawing.Point(22, 145); this.label71.Name = "label71"; this.label71.Size = new System.Drawing.Size(85, 13); this.label71.TabIndex = 17; this.label71.Text = "Location Usage:"; // // tbxLocationUsage // this.tbxLocationUsage.Location = new System.Drawing.Point(189, 142); this.tbxLocationUsage.Name = "tbxLocationUsage"; this.tbxLocationUsage.ReadOnly = true; this.tbxLocationUsage.Size = new System.Drawing.Size(70, 20); this.tbxLocationUsage.TabIndex = 18; this.tbxLocationUsage.Text = "Disabled"; this.tbxLocationUsage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label70 // this.label70.AutoSize = true; this.label70.Location = new System.Drawing.Point(56, 198); this.label70.Name = "label70"; this.label70.Size = new System.Drawing.Size(51, 13); this.label70.TabIndex = 15; this.label70.Text = "Host File:"; // // tbxHostStatus // this.tbxHostStatus.Location = new System.Drawing.Point(113, 195); this.tbxHostStatus.Name = "tbxHostStatus"; this.tbxHostStatus.ReadOnly = true; this.tbxHostStatus.Size = new System.Drawing.Size(70, 20); this.tbxHostStatus.TabIndex = 16; this.tbxHostStatus.Text = "Not Modified"; this.tbxHostStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label69 // this.label69.AutoSize = true; this.label69.Location = new System.Drawing.Point(15, 119); this.label69.Name = "label69"; this.label69.Size = new System.Drawing.Size(92, 13); this.label69.TabIndex = 13; this.label69.Text = "Telemetry Setting:"; // // tbxTelemetryOSStatus // this.tbxTelemetryOSStatus.Location = new System.Drawing.Point(189, 116); this.tbxTelemetryOSStatus.Name = "tbxTelemetryOSStatus"; this.tbxTelemetryOSStatus.ReadOnly = true; this.tbxTelemetryOSStatus.Size = new System.Drawing.Size(70, 20); this.tbxTelemetryOSStatus.TabIndex = 14; this.tbxTelemetryOSStatus.Text = "Disabled"; this.tbxTelemetryOSStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label68 // this.label68.AutoSize = true; this.label68.Location = new System.Drawing.Point(34, 93); this.label68.Name = "label68"; this.label68.Size = new System.Drawing.Size(73, 13); this.label68.TabIndex = 11; this.label68.Text = "Tracking Log:"; // // tbxTrackingLogStatus // this.tbxTrackingLogStatus.Location = new System.Drawing.Point(113, 90); this.tbxTrackingLogStatus.Name = "tbxTrackingLogStatus"; this.tbxTrackingLogStatus.ReadOnly = true; this.tbxTrackingLogStatus.Size = new System.Drawing.Size(70, 20); this.tbxTrackingLogStatus.TabIndex = 12; this.tbxTrackingLogStatus.Text = "Exists"; this.tbxTrackingLogStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label67 // this.label67.AutoSize = true; this.label67.Location = new System.Drawing.Point(9, 67); this.label67.Name = "label67"; this.label67.Size = new System.Drawing.Size(98, 13); this.label67.TabIndex = 8; this.label67.Text = "User Input Service:"; // // tbxKeylogServiceStatus // this.tbxKeylogServiceStatus.Location = new System.Drawing.Point(113, 64); this.tbxKeylogServiceStatus.Name = "tbxKeylogServiceStatus"; this.tbxKeylogServiceStatus.ReadOnly = true; this.tbxKeylogServiceStatus.Size = new System.Drawing.Size(70, 20); this.tbxKeylogServiceStatus.TabIndex = 9; this.tbxKeylogServiceStatus.Text = "Not Running"; this.tbxKeylogServiceStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // tbxKeylogServiceStartup // this.tbxKeylogServiceStartup.Location = new System.Drawing.Point(189, 64); this.tbxKeylogServiceStartup.Name = "tbxKeylogServiceStartup"; this.tbxKeylogServiceStartup.ReadOnly = true; this.tbxKeylogServiceStartup.Size = new System.Drawing.Size(70, 20); this.tbxKeylogServiceStartup.TabIndex = 10; this.tbxKeylogServiceStartup.Text = "Disabled"; this.tbxKeylogServiceStartup.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // btnTelemetryRefresh // this.btnTelemetryRefresh.Location = new System.Drawing.Point(188, 342); this.btnTelemetryRefresh.Name = "btnTelemetryRefresh"; this.btnTelemetryRefresh.Size = new System.Drawing.Size(71, 26); this.btnTelemetryRefresh.TabIndex = 7; this.btnTelemetryRefresh.Text = "Refresh"; this.btnTelemetryRefresh.UseVisualStyleBackColor = true; this.btnTelemetryRefresh.Click += new System.EventHandler(this.evt_WindowsTelemetry); // // label66 // this.label66.AutoSize = true; this.label66.Location = new System.Drawing.Point(202, 22); this.label66.Name = "label66"; this.label66.Size = new System.Drawing.Size(41, 13); this.label66.TabIndex = 6; this.label66.Text = "Startup"; // // label64 // this.label64.AutoSize = true; this.label64.Location = new System.Drawing.Point(12, 41); this.label64.Name = "label64"; this.label64.Size = new System.Drawing.Size(95, 13); this.label64.TabIndex = 1; this.label64.Text = "Telemetry Service:"; // // label65 // this.label65.AutoSize = true; this.label65.Location = new System.Drawing.Point(131, 22); this.label65.Name = "label65"; this.label65.Size = new System.Drawing.Size(37, 13); this.label65.TabIndex = 5; this.label65.Text = "Status"; // // tbxDiagnosticTrackingStatus // this.tbxDiagnosticTrackingStatus.Location = new System.Drawing.Point(113, 38); this.tbxDiagnosticTrackingStatus.Name = "tbxDiagnosticTrackingStatus"; this.tbxDiagnosticTrackingStatus.ReadOnly = true; this.tbxDiagnosticTrackingStatus.Size = new System.Drawing.Size(70, 20); this.tbxDiagnosticTrackingStatus.TabIndex = 2; this.tbxDiagnosticTrackingStatus.Text = "Not Running"; this.tbxDiagnosticTrackingStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // tbxDiagnosticTrackingStartup // this.tbxDiagnosticTrackingStartup.Location = new System.Drawing.Point(189, 38); this.tbxDiagnosticTrackingStartup.Name = "tbxDiagnosticTrackingStartup"; this.tbxDiagnosticTrackingStartup.ReadOnly = true; this.tbxDiagnosticTrackingStartup.Size = new System.Drawing.Size(70, 20); this.tbxDiagnosticTrackingStartup.TabIndex = 4; this.tbxDiagnosticTrackingStartup.Text = "Disabled"; this.tbxDiagnosticTrackingStartup.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // toolsPage7 // this.toolsPage7.BackColor = System.Drawing.Color.Silver; this.toolsPage7.Controls.Add(this.tableLayoutPanel2); this.toolsPage7.Location = new System.Drawing.Point(4, 22); this.toolsPage7.Name = "toolsPage7"; this.toolsPage7.Padding = new System.Windows.Forms.Padding(3); this.toolsPage7.Size = new System.Drawing.Size(756, 386); this.toolsPage7.TabIndex = 5; this.toolsPage7.Text = "POSH"; // // tableLayoutPanel2 // this.tableLayoutPanel2.ColumnCount = 5; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel2.Controls.Add(this.rtbPOSH_ConsoleInput, 0, 2); this.tableLayoutPanel2.Controls.Add(this.rtbPOSH_ConsoleDisplay, 0, 1); this.tableLayoutPanel2.Controls.Add(this.btnLaunchVanillaPOSH, 0, 0); this.tableLayoutPanel2.Controls.Add(this.btnLaunchWindowsPOSH, 1, 0); this.tableLayoutPanel2.Controls.Add(this.btnLaunchRC1POSH, 2, 0); this.tableLayoutPanel2.Controls.Add(this.btnLaunchRC2POSH, 3, 0); this.tableLayoutPanel2.Controls.Add(this.btnRemoteSigned, 4, 0); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 3; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 83.42105F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.57895F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(750, 380); this.tableLayoutPanel2.TabIndex = 0; // // rtbPOSH_ConsoleInput // this.rtbPOSH_ConsoleInput.BackColor = System.Drawing.Color.Black; this.tableLayoutPanel2.SetColumnSpan(this.rtbPOSH_ConsoleInput, 5); this.rtbPOSH_ConsoleInput.DetectUrls = false; this.rtbPOSH_ConsoleInput.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbPOSH_ConsoleInput.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rtbPOSH_ConsoleInput.ForeColor = System.Drawing.Color.Lime; this.rtbPOSH_ConsoleInput.Location = new System.Drawing.Point(3, 324); this.rtbPOSH_ConsoleInput.Name = "rtbPOSH_ConsoleInput"; this.rtbPOSH_ConsoleInput.Size = new System.Drawing.Size(744, 53); this.rtbPOSH_ConsoleInput.TabIndex = 0; this.rtbPOSH_ConsoleInput.Text = ""; this.rtbPOSH_ConsoleInput.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PS_TryCommand); // // rtbPOSH_ConsoleDisplay // this.rtbPOSH_ConsoleDisplay.BackColor = System.Drawing.Color.Black; this.tableLayoutPanel2.SetColumnSpan(this.rtbPOSH_ConsoleDisplay, 5); this.rtbPOSH_ConsoleDisplay.DetectUrls = false; this.rtbPOSH_ConsoleDisplay.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbPOSH_ConsoleDisplay.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rtbPOSH_ConsoleDisplay.ForeColor = System.Drawing.Color.Lime; this.rtbPOSH_ConsoleDisplay.Location = new System.Drawing.Point(3, 32); this.rtbPOSH_ConsoleDisplay.Name = "rtbPOSH_ConsoleDisplay"; this.rtbPOSH_ConsoleDisplay.ReadOnly = true; this.rtbPOSH_ConsoleDisplay.Size = new System.Drawing.Size(744, 286); this.rtbPOSH_ConsoleDisplay.TabIndex = 1; this.rtbPOSH_ConsoleDisplay.Text = ""; // // btnLaunchVanillaPOSH // this.btnLaunchVanillaPOSH.Location = new System.Drawing.Point(3, 3); this.btnLaunchVanillaPOSH.Name = "btnLaunchVanillaPOSH"; this.btnLaunchVanillaPOSH.Size = new System.Drawing.Size(144, 23); this.btnLaunchVanillaPOSH.TabIndex = 2; this.btnLaunchVanillaPOSH.Text = "PS: Vanilla Session"; this.btnLaunchVanillaPOSH.UseVisualStyleBackColor = true; this.btnLaunchVanillaPOSH.Click += new System.EventHandler(this.PS_LaunchPSSession); // // btnLaunchWindowsPOSH // this.btnLaunchWindowsPOSH.Location = new System.Drawing.Point(153, 3); this.btnLaunchWindowsPOSH.Name = "btnLaunchWindowsPOSH"; this.btnLaunchWindowsPOSH.Size = new System.Drawing.Size(144, 23); this.btnLaunchWindowsPOSH.TabIndex = 3; this.btnLaunchWindowsPOSH.Text = "PS: Windows Session"; this.btnLaunchWindowsPOSH.UseVisualStyleBackColor = true; this.btnLaunchWindowsPOSH.Click += new System.EventHandler(this.PS_LaunchPSSession); // // btnLaunchRC1POSH // this.btnLaunchRC1POSH.Location = new System.Drawing.Point(303, 3); this.btnLaunchRC1POSH.Name = "btnLaunchRC1POSH"; this.btnLaunchRC1POSH.Size = new System.Drawing.Size(144, 23); this.btnLaunchRC1POSH.TabIndex = 4; this.btnLaunchRC1POSH.Text = "PS: RagingCain Special #1"; this.btnLaunchRC1POSH.UseVisualStyleBackColor = true; this.btnLaunchRC1POSH.Click += new System.EventHandler(this.PS_LaunchPSSession); // // btnLaunchRC2POSH // this.btnLaunchRC2POSH.Location = new System.Drawing.Point(453, 3); this.btnLaunchRC2POSH.Name = "btnLaunchRC2POSH"; this.btnLaunchRC2POSH.Size = new System.Drawing.Size(144, 23); this.btnLaunchRC2POSH.TabIndex = 5; this.btnLaunchRC2POSH.Text = "PS: RagingCain Special #2"; this.btnLaunchRC2POSH.UseVisualStyleBackColor = true; this.btnLaunchRC2POSH.Click += new System.EventHandler(this.PS_LaunchPSSession); // // btnRemoteSigned // this.btnRemoteSigned.Location = new System.Drawing.Point(603, 3); this.btnRemoteSigned.Name = "btnRemoteSigned"; this.btnRemoteSigned.Size = new System.Drawing.Size(144, 23); this.btnRemoteSigned.TabIndex = 6; this.btnRemoteSigned.Text = "PS: Set ExecutionPolicy"; this.btnRemoteSigned.UseVisualStyleBackColor = true; this.btnRemoteSigned.Click += new System.EventHandler(this.PS_LaunchPSSession); // // tabHard // this.tabHard.BackColor = System.Drawing.Color.Silver; this.tabHard.Controls.Add(this.tabHW); this.tabHard.Location = new System.Drawing.Point(4, 22); this.tabHard.Name = "tabHard"; this.tabHard.Size = new System.Drawing.Size(764, 412); this.tabHard.TabIndex = 1; this.tabHard.Text = "Hardware"; // // tabHW // this.tabHW.Controls.Add(this.tabHW_CPU); this.tabHW.Controls.Add(this.tabHW_MEM); this.tabHW.Controls.Add(this.tabHW_MB); this.tabHW.Controls.Add(this.tabHW_DRIVES); this.tabHW.Controls.Add(this.tabHW_GPU); this.tabHW.Controls.Add(this.tabHW_SND); this.tabHW.Controls.Add(this.tabHW_NIC); this.tabHW.Controls.Add(this.tabHW_DISPS); this.tabHW.Dock = System.Windows.Forms.DockStyle.Fill; this.tabHW.Location = new System.Drawing.Point(0, 0); this.tabHW.Name = "tabHW"; this.tabHW.SelectedIndex = 0; this.tabHW.Size = new System.Drawing.Size(764, 412); this.tabHW.TabIndex = 60; // // tabHW_CPU // this.tabHW_CPU.BackColor = System.Drawing.Color.Silver; this.tabHW_CPU.Controls.Add(this.groupBox11); this.tabHW_CPU.Controls.Add(this.treePROCS); this.tabHW_CPU.Location = new System.Drawing.Point(4, 22); this.tabHW_CPU.Name = "tabHW_CPU"; this.tabHW_CPU.Padding = new System.Windows.Forms.Padding(3); this.tabHW_CPU.Size = new System.Drawing.Size(756, 386); this.tabHW_CPU.TabIndex = 0; this.tabHW_CPU.Text = "Processors"; // // groupBox11 // this.groupBox11.Controls.Add(this.label2); this.groupBox11.Controls.Add(this.tbxCPUSocket); this.groupBox11.Controls.Add(this.tbxCPURole); this.groupBox11.Controls.Add(this.lblRole); this.groupBox11.Controls.Add(this.tbxCPURevision); this.groupBox11.Controls.Add(this.lblCPURevision); this.groupBox11.Controls.Add(this.tbxCPUL2); this.groupBox11.Controls.Add(this.tbxCPUL3); this.groupBox11.Controls.Add(this.tbxCPUAddWidth); this.groupBox11.Controls.Add(this.tbxCPUArch); this.groupBox11.Controls.Add(this.tbxCPUFreq); this.groupBox11.Controls.Add(this.tbxCPULP); this.groupBox11.Controls.Add(this.tbxCPUCores); this.groupBox11.Controls.Add(this.tbxCPUStatus); this.groupBox11.Controls.Add(this.tbxCPUCaption); this.groupBox11.Controls.Add(this.tbxCPUFamily); this.groupBox11.Controls.Add(this.tbxCPUManufacturer); this.groupBox11.Controls.Add(this.tbxCPUName); this.groupBox11.Controls.Add(this.lblCPUL3); this.groupBox11.Controls.Add(this.lblCPUL2); this.groupBox11.Controls.Add(this.lblCPUFreq); this.groupBox11.Controls.Add(this.lblCPUName); this.groupBox11.Controls.Add(this.lblCPUMan); this.groupBox11.Controls.Add(this.lblCPULP); this.groupBox11.Controls.Add(this.lblCPUFam); this.groupBox11.Controls.Add(this.lblCPUCaption); this.groupBox11.Controls.Add(this.lblCPUCores); this.groupBox11.Controls.Add(this.lblCPUArch); this.groupBox11.Controls.Add(this.lblCPUAddressWidth); this.groupBox11.Controls.Add(this.lblCPUStatus); this.groupBox11.Controls.Add(this.lblCPUTI); this.groupBox11.Location = new System.Drawing.Point(6, 3); this.groupBox11.Name = "groupBox11"; this.groupBox11.Size = new System.Drawing.Size(375, 356); this.groupBox11.TabIndex = 73; this.groupBox11.TabStop = false; this.groupBox11.Text = "First CPU Detected"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(59, 205); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(44, 13); this.label2.TabIndex = 101; this.label2.Text = "Socket:"; // // tbxCPUSocket // this.tbxCPUSocket.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUSocket.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUSocket.Location = new System.Drawing.Point(109, 198); this.tbxCPUSocket.Name = "tbxCPUSocket"; this.tbxCPUSocket.ReadOnly = true; this.tbxCPUSocket.Size = new System.Drawing.Size(225, 20); this.tbxCPUSocket.TabIndex = 100; // // tbxCPURole // this.tbxCPURole.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPURole.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPURole.Location = new System.Drawing.Point(109, 172); this.tbxCPURole.Name = "tbxCPURole"; this.tbxCPURole.ReadOnly = true; this.tbxCPURole.Size = new System.Drawing.Size(225, 20); this.tbxCPURole.TabIndex = 99; // // lblRole // this.lblRole.AutoSize = true; this.lblRole.Location = new System.Drawing.Point(71, 179); this.lblRole.Name = "lblRole"; this.lblRole.Size = new System.Drawing.Size(32, 13); this.lblRole.TabIndex = 98; this.lblRole.Text = "Role:"; // // tbxCPURevision // this.tbxCPURevision.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPURevision.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPURevision.Location = new System.Drawing.Point(109, 146); this.tbxCPURevision.Name = "tbxCPURevision"; this.tbxCPURevision.ReadOnly = true; this.tbxCPURevision.Size = new System.Drawing.Size(225, 20); this.tbxCPURevision.TabIndex = 97; // // lblCPURevision // this.lblCPURevision.AutoSize = true; this.lblCPURevision.Location = new System.Drawing.Point(52, 153); this.lblCPURevision.Name = "lblCPURevision"; this.lblCPURevision.Size = new System.Drawing.Size(51, 13); this.lblCPURevision.TabIndex = 96; this.lblCPURevision.Text = "Revision:"; // // tbxCPUL2 // this.tbxCPUL2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUL2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUL2.Location = new System.Drawing.Point(290, 298); this.tbxCPUL2.Name = "tbxCPUL2"; this.tbxCPUL2.ReadOnly = true; this.tbxCPUL2.Size = new System.Drawing.Size(76, 20); this.tbxCPUL2.TabIndex = 95; // // tbxCPUAddWidth // this.tbxCPUAddWidth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUAddWidth.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUAddWidth.Location = new System.Drawing.Point(290, 272); this.tbxCPUAddWidth.Name = "tbxCPUAddWidth"; this.tbxCPUAddWidth.ReadOnly = true; this.tbxCPUAddWidth.Size = new System.Drawing.Size(76, 20); this.tbxCPUAddWidth.TabIndex = 93; // // tbxCPUArch // this.tbxCPUArch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUArch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUArch.Location = new System.Drawing.Point(290, 246); this.tbxCPUArch.Name = "tbxCPUArch"; this.tbxCPUArch.ReadOnly = true; this.tbxCPUArch.Size = new System.Drawing.Size(76, 20); this.tbxCPUArch.TabIndex = 92; // // tbxCPUFreq // this.tbxCPUFreq.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUFreq.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUFreq.Location = new System.Drawing.Point(109, 315); this.tbxCPUFreq.Name = "tbxCPUFreq"; this.tbxCPUFreq.ReadOnly = true; this.tbxCPUFreq.Size = new System.Drawing.Size(76, 20); this.tbxCPUFreq.TabIndex = 91; // // tbxCPULP // this.tbxCPULP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPULP.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPULP.Location = new System.Drawing.Point(109, 289); this.tbxCPULP.Name = "tbxCPULP"; this.tbxCPULP.ReadOnly = true; this.tbxCPULP.Size = new System.Drawing.Size(76, 20); this.tbxCPULP.TabIndex = 90; // // tbxCPUCores // this.tbxCPUCores.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUCores.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUCores.Location = new System.Drawing.Point(109, 263); this.tbxCPUCores.Name = "tbxCPUCores"; this.tbxCPUCores.ReadOnly = true; this.tbxCPUCores.Size = new System.Drawing.Size(76, 20); this.tbxCPUCores.TabIndex = 89; // // tbxCPUStatus // this.tbxCPUStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUStatus.Location = new System.Drawing.Point(109, 120); this.tbxCPUStatus.Name = "tbxCPUStatus"; this.tbxCPUStatus.ReadOnly = true; this.tbxCPUStatus.Size = new System.Drawing.Size(225, 20); this.tbxCPUStatus.TabIndex = 88; // // tbxCPUCaption // this.tbxCPUCaption.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUCaption.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUCaption.Location = new System.Drawing.Point(109, 94); this.tbxCPUCaption.Name = "tbxCPUCaption"; this.tbxCPUCaption.ReadOnly = true; this.tbxCPUCaption.Size = new System.Drawing.Size(225, 20); this.tbxCPUCaption.TabIndex = 87; // // tbxCPUFamily // this.tbxCPUFamily.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUFamily.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUFamily.Location = new System.Drawing.Point(109, 68); this.tbxCPUFamily.Name = "tbxCPUFamily"; this.tbxCPUFamily.ReadOnly = true; this.tbxCPUFamily.Size = new System.Drawing.Size(225, 20); this.tbxCPUFamily.TabIndex = 86; // // tbxCPUManufacturer // this.tbxCPUManufacturer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUManufacturer.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUManufacturer.Location = new System.Drawing.Point(109, 42); this.tbxCPUManufacturer.Name = "tbxCPUManufacturer"; this.tbxCPUManufacturer.ReadOnly = true; this.tbxCPUManufacturer.Size = new System.Drawing.Size(225, 20); this.tbxCPUManufacturer.TabIndex = 85; // // tbxCPUName // this.tbxCPUName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCPUName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCPUName.Location = new System.Drawing.Point(109, 16); this.tbxCPUName.Name = "tbxCPUName"; this.tbxCPUName.ReadOnly = true; this.tbxCPUName.Size = new System.Drawing.Size(225, 20); this.tbxCPUName.TabIndex = 84; // // lblCPUL3 // this.lblCPUL3.AutoSize = true; this.lblCPUL3.Location = new System.Drawing.Point(211, 327); this.lblCPUL3.Name = "lblCPUL3"; this.lblCPUL3.Size = new System.Drawing.Size(79, 13); this.lblCPUL3.TabIndex = 83; this.lblCPUL3.Text = "L3 Cache Size:"; // // lblCPUL2 // this.lblCPUL2.AutoSize = true; this.lblCPUL2.Location = new System.Drawing.Point(211, 301); this.lblCPUL2.Name = "lblCPUL2"; this.lblCPUL2.Size = new System.Drawing.Size(79, 13); this.lblCPUL2.TabIndex = 82; this.lblCPUL2.Text = "L2 Cache Size:"; // // lblCPUFreq // this.lblCPUFreq.AutoSize = true; this.lblCPUFreq.Location = new System.Drawing.Point(49, 318); this.lblCPUFreq.Name = "lblCPUFreq"; this.lblCPUFreq.Size = new System.Drawing.Size(60, 13); this.lblCPUFreq.TabIndex = 81; this.lblCPUFreq.Text = "Frequency:"; // // lblCPUName // this.lblCPUName.AutoSize = true; this.lblCPUName.Location = new System.Drawing.Point(65, 23); this.lblCPUName.Name = "lblCPUName"; this.lblCPUName.Size = new System.Drawing.Size(38, 13); this.lblCPUName.TabIndex = 71; this.lblCPUName.Text = "Name:"; // // lblCPUMan // this.lblCPUMan.AutoSize = true; this.lblCPUMan.Location = new System.Drawing.Point(30, 49); this.lblCPUMan.Name = "lblCPUMan"; this.lblCPUMan.Size = new System.Drawing.Size(73, 13); this.lblCPUMan.TabIndex = 72; this.lblCPUMan.Text = "Manufacturer:"; // // lblCPULP // this.lblCPULP.AutoSize = true; this.lblCPULP.Location = new System.Drawing.Point(23, 292); this.lblCPULP.Name = "lblCPULP"; this.lblCPULP.Size = new System.Drawing.Size(86, 13); this.lblCPULP.TabIndex = 80; this.lblCPULP.Text = "Log. Processors:"; // // lblCPUFam // this.lblCPUFam.AutoSize = true; this.lblCPUFam.Location = new System.Drawing.Point(64, 75); this.lblCPUFam.Name = "lblCPUFam"; this.lblCPUFam.Size = new System.Drawing.Size(39, 13); this.lblCPUFam.TabIndex = 73; this.lblCPUFam.Text = "Family:"; // // lblCPUCaption // this.lblCPUCaption.AutoSize = true; this.lblCPUCaption.Location = new System.Drawing.Point(57, 101); this.lblCPUCaption.Name = "lblCPUCaption"; this.lblCPUCaption.Size = new System.Drawing.Size(46, 13); this.lblCPUCaption.TabIndex = 74; this.lblCPUCaption.Text = "Caption:"; // // lblCPUCores // this.lblCPUCores.AutoSize = true; this.lblCPUCores.Location = new System.Drawing.Point(72, 266); this.lblCPUCores.Name = "lblCPUCores"; this.lblCPUCores.Size = new System.Drawing.Size(37, 13); this.lblCPUCores.TabIndex = 79; this.lblCPUCores.Text = "Cores:"; // // lblCPUArch // this.lblCPUArch.AutoSize = true; this.lblCPUArch.Location = new System.Drawing.Point(223, 249); this.lblCPUArch.Name = "lblCPUArch"; this.lblCPUArch.Size = new System.Drawing.Size(67, 13); this.lblCPUArch.TabIndex = 75; this.lblCPUArch.Text = "Architecture:"; // // lblCPUAddressWidth // this.lblCPUAddressWidth.AutoSize = true; this.lblCPUAddressWidth.Location = new System.Drawing.Point(211, 275); this.lblCPUAddressWidth.Name = "lblCPUAddressWidth"; this.lblCPUAddressWidth.Size = new System.Drawing.Size(79, 13); this.lblCPUAddressWidth.TabIndex = 76; this.lblCPUAddressWidth.Text = "Address Width:"; // // lblCPUStatus // this.lblCPUStatus.AutoSize = true; this.lblCPUStatus.Location = new System.Drawing.Point(63, 127); this.lblCPUStatus.Name = "lblCPUStatus"; this.lblCPUStatus.Size = new System.Drawing.Size(40, 13); this.lblCPUStatus.TabIndex = 78; this.lblCPUStatus.Text = "Status:"; // // lblCPUTI // this.lblCPUTI.AutoSize = true; this.lblCPUTI.Location = new System.Drawing.Point(43, 246); this.lblCPUTI.Name = "lblCPUTI"; this.lblCPUTI.Size = new System.Drawing.Size(128, 13); this.lblCPUTI.TabIndex = 77; this.lblCPUTI.Text = "Processor Technical Info:"; // // treePROCS // this.treePROCS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treePROCS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treePROCS.ForeColor = System.Drawing.SystemColors.Window; this.treePROCS.Location = new System.Drawing.Point(387, 3); this.treePROCS.Name = "treePROCS"; this.treePROCS.Size = new System.Drawing.Size(369, 380); this.treePROCS.TabIndex = 71; this.treePROCS.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabHW_MEM // this.tabHW_MEM.BackColor = System.Drawing.Color.Silver; this.tabHW_MEM.Controls.Add(this.groupBox13); this.tabHW_MEM.Controls.Add(this.groupBox12); this.tabHW_MEM.Controls.Add(this.treeMEM); this.tabHW_MEM.Controls.Add(this.lblMEM); this.tabHW_MEM.Location = new System.Drawing.Point(4, 22); this.tabHW_MEM.Name = "tabHW_MEM"; this.tabHW_MEM.Padding = new System.Windows.Forms.Padding(3); this.tabHW_MEM.Size = new System.Drawing.Size(756, 386); this.tabHW_MEM.TabIndex = 1; this.tabHW_MEM.Text = "Memory"; // // groupBox13 // this.groupBox13.Controls.Add(this.tbxVIRTAvail); this.groupBox13.Controls.Add(this.tbxPAGEAvailPerc); this.groupBox13.Controls.Add(this.tbxVIRTAvailPerc); this.groupBox13.Controls.Add(this.tbxMEMAvailPerc); this.groupBox13.Controls.Add(this.tbxMEMTotal); this.groupBox13.Controls.Add(this.tbxMEMAvail); this.groupBox13.Controls.Add(this.tbxMaxProcessSize); this.groupBox13.Controls.Add(this.tbxPageFileSize); this.groupBox13.Controls.Add(this.tbxPageFileFree); this.groupBox13.Controls.Add(this.tbxVIRTTotal); this.groupBox13.Controls.Add(this.lblMaxProcess); this.groupBox13.Controls.Add(this.lblMEMTotSize); this.groupBox13.Controls.Add(this.lblPageFileUsed); this.groupBox13.Controls.Add(this.lblMEMAvail); this.groupBox13.Controls.Add(this.lblPageFileSize); this.groupBox13.Controls.Add(this.lblVirtAvail); this.groupBox13.Controls.Add(this.lblTotVirt); this.groupBox13.Location = new System.Drawing.Point(6, 84); this.groupBox13.Name = "groupBox13"; this.groupBox13.Size = new System.Drawing.Size(375, 250); this.groupBox13.TabIndex = 63; this.groupBox13.TabStop = false; this.groupBox13.Text = "System Memory Info"; // // tbxVIRTAvail // this.tbxVIRTAvail.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxVIRTAvail.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxVIRTAvail.Location = new System.Drawing.Point(141, 85); this.tbxVIRTAvail.Name = "tbxVIRTAvail"; this.tbxVIRTAvail.ReadOnly = true; this.tbxVIRTAvail.Size = new System.Drawing.Size(100, 20); this.tbxVIRTAvail.TabIndex = 66; // // tbxPAGEAvailPerc // this.tbxPAGEAvailPerc.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxPAGEAvailPerc.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxPAGEAvailPerc.Location = new System.Drawing.Point(252, 146); this.tbxPAGEAvailPerc.Name = "tbxPAGEAvailPerc"; this.tbxPAGEAvailPerc.ReadOnly = true; this.tbxPAGEAvailPerc.Size = new System.Drawing.Size(47, 20); this.tbxPAGEAvailPerc.TabIndex = 76; // // tbxVIRTAvailPerc // this.tbxVIRTAvailPerc.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxVIRTAvailPerc.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxVIRTAvailPerc.Location = new System.Drawing.Point(252, 85); this.tbxVIRTAvailPerc.Name = "tbxVIRTAvailPerc"; this.tbxVIRTAvailPerc.ReadOnly = true; this.tbxVIRTAvailPerc.Size = new System.Drawing.Size(47, 20); this.tbxVIRTAvailPerc.TabIndex = 75; // // tbxMEMAvailPerc // this.tbxMEMAvailPerc.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMEMAvailPerc.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMEMAvailPerc.Location = new System.Drawing.Point(252, 21); this.tbxMEMAvailPerc.Name = "tbxMEMAvailPerc"; this.tbxMEMAvailPerc.ReadOnly = true; this.tbxMEMAvailPerc.Size = new System.Drawing.Size(47, 20); this.tbxMEMAvailPerc.TabIndex = 74; // // tbxMEMTotal // this.tbxMEMTotal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMEMTotal.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMEMTotal.Location = new System.Drawing.Point(141, 47); this.tbxMEMTotal.Name = "tbxMEMTotal"; this.tbxMEMTotal.ReadOnly = true; this.tbxMEMTotal.Size = new System.Drawing.Size(100, 20); this.tbxMEMTotal.TabIndex = 60; // // tbxMEMAvail // this.tbxMEMAvail.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMEMAvail.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMEMAvail.Location = new System.Drawing.Point(141, 21); this.tbxMEMAvail.Name = "tbxMEMAvail"; this.tbxMEMAvail.ReadOnly = true; this.tbxMEMAvail.Size = new System.Drawing.Size(100, 20); this.tbxMEMAvail.TabIndex = 61; // // tbxMaxProcessSize // this.tbxMaxProcessSize.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMaxProcessSize.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMaxProcessSize.Location = new System.Drawing.Point(141, 216); this.tbxMaxProcessSize.Name = "tbxMaxProcessSize"; this.tbxMaxProcessSize.ReadOnly = true; this.tbxMaxProcessSize.Size = new System.Drawing.Size(100, 20); this.tbxMaxProcessSize.TabIndex = 72; // // tbxPageFileSize // this.tbxPageFileSize.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxPageFileSize.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxPageFileSize.Location = new System.Drawing.Point(141, 173); this.tbxPageFileSize.Name = "tbxPageFileSize"; this.tbxPageFileSize.ReadOnly = true; this.tbxPageFileSize.Size = new System.Drawing.Size(100, 20); this.tbxPageFileSize.TabIndex = 71; // // tbxPageFileFree // this.tbxPageFileFree.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxPageFileFree.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxPageFileFree.Location = new System.Drawing.Point(141, 146); this.tbxPageFileFree.Name = "tbxPageFileFree"; this.tbxPageFileFree.ReadOnly = true; this.tbxPageFileFree.Size = new System.Drawing.Size(100, 20); this.tbxPageFileFree.TabIndex = 69; // // tbxVIRTTotal // this.tbxVIRTTotal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxVIRTTotal.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxVIRTTotal.Location = new System.Drawing.Point(141, 111); this.tbxVIRTTotal.Name = "tbxVIRTTotal"; this.tbxVIRTTotal.ReadOnly = true; this.tbxVIRTTotal.Size = new System.Drawing.Size(100, 20); this.tbxVIRTTotal.TabIndex = 64; // // lblMaxProcess // this.lblMaxProcess.AutoSize = true; this.lblMaxProcess.Location = new System.Drawing.Point(41, 219); this.lblMaxProcess.Name = "lblMaxProcess"; this.lblMaxProcess.Size = new System.Drawing.Size(94, 13); this.lblMaxProcess.TabIndex = 73; this.lblMaxProcess.Text = "Max Process Size:"; // // lblMEMTotSize // this.lblMEMTotSize.AutoSize = true; this.lblMEMTotSize.Location = new System.Drawing.Point(19, 50); this.lblMEMTotSize.Name = "lblMEMTotSize"; this.lblMEMTotSize.Size = new System.Drawing.Size(116, 13); this.lblMEMTotSize.TabIndex = 62; this.lblMEMTotSize.Text = "Total Physical Memory:"; // // lblPageFileUsed // this.lblPageFileUsed.AutoSize = true; this.lblPageFileUsed.Location = new System.Drawing.Point(58, 176); this.lblPageFileUsed.Name = "lblPageFileUsed"; this.lblPageFileUsed.Size = new System.Drawing.Size(77, 13); this.lblPageFileUsed.TabIndex = 70; this.lblPageFileUsed.Text = "Page File Size:"; // // lblMEMAvail // this.lblMEMAvail.AutoSize = true; this.lblMEMAvail.Location = new System.Drawing.Point(42, 24); this.lblMEMAvail.Name = "lblMEMAvail"; this.lblMEMAvail.Size = new System.Drawing.Size(93, 13); this.lblMEMAvail.TabIndex = 63; this.lblMEMAvail.Text = "Available Memory:"; // // lblPageFileSize // this.lblPageFileSize.AutoSize = true; this.lblPageFileSize.Location = new System.Drawing.Point(57, 149); this.lblPageFileSize.Name = "lblPageFileSize"; this.lblPageFileSize.Size = new System.Drawing.Size(78, 13); this.lblPageFileSize.TabIndex = 68; this.lblPageFileSize.Text = "Page File Free:"; // // lblVirtAvail // this.lblVirtAvail.AutoSize = true; this.lblVirtAvail.Location = new System.Drawing.Point(10, 88); this.lblVirtAvail.Name = "lblVirtAvail"; this.lblVirtAvail.Size = new System.Drawing.Size(125, 13); this.lblVirtAvail.TabIndex = 67; this.lblVirtAvail.Text = "Available Virtual Memory:"; // // lblTotVirt // this.lblTotVirt.AutoSize = true; this.lblTotVirt.Location = new System.Drawing.Point(29, 114); this.lblTotVirt.Name = "lblTotVirt"; this.lblTotVirt.Size = new System.Drawing.Size(106, 13); this.lblTotVirt.TabIndex = 65; this.lblTotVirt.Text = "Total Virtual Memory:"; // // groupBox12 // this.groupBox12.Controls.Add(this.tbxMEMManu); this.groupBox12.Controls.Add(this.tbxMEMSpeed); this.groupBox12.Controls.Add(this.lblMEMMan); this.groupBox12.Controls.Add(this.lblMEMSpeed); this.groupBox12.Location = new System.Drawing.Point(6, 3); this.groupBox12.Name = "groupBox12"; this.groupBox12.Size = new System.Drawing.Size(375, 75); this.groupBox12.TabIndex = 62; this.groupBox12.TabStop = false; this.groupBox12.Text = "First DIMM Info"; // // tbxMEMManu // this.tbxMEMManu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMEMManu.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMEMManu.Location = new System.Drawing.Point(89, 17); this.tbxMEMManu.Name = "tbxMEMManu"; this.tbxMEMManu.ReadOnly = true; this.tbxMEMManu.Size = new System.Drawing.Size(152, 20); this.tbxMEMManu.TabIndex = 46; // // tbxMEMSpeed // this.tbxMEMSpeed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMEMSpeed.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMEMSpeed.Location = new System.Drawing.Point(89, 40); this.tbxMEMSpeed.Name = "tbxMEMSpeed"; this.tbxMEMSpeed.ReadOnly = true; this.tbxMEMSpeed.Size = new System.Drawing.Size(152, 20); this.tbxMEMSpeed.TabIndex = 47; // // lblMEMMan // this.lblMEMMan.AutoSize = true; this.lblMEMMan.Location = new System.Drawing.Point(10, 20); this.lblMEMMan.Name = "lblMEMMan"; this.lblMEMMan.Size = new System.Drawing.Size(73, 13); this.lblMEMMan.TabIndex = 48; this.lblMEMMan.Text = "Manufacturer:"; // // lblMEMSpeed // this.lblMEMSpeed.AutoSize = true; this.lblMEMSpeed.Location = new System.Drawing.Point(42, 43); this.lblMEMSpeed.Name = "lblMEMSpeed"; this.lblMEMSpeed.Size = new System.Drawing.Size(41, 13); this.lblMEMSpeed.TabIndex = 49; this.lblMEMSpeed.Text = "Speed:"; // // treeMEM // this.treeMEM.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeMEM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeMEM.ForeColor = System.Drawing.SystemColors.Window; this.treeMEM.Location = new System.Drawing.Point(387, 3); this.treeMEM.Name = "treeMEM"; this.treeMEM.Size = new System.Drawing.Size(369, 380); this.treeMEM.TabIndex = 60; this.treeMEM.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // lblMEM // this.lblMEM.AutoSize = true; this.lblMEM.Location = new System.Drawing.Point(3, 0); this.lblMEM.Name = "lblMEM"; this.lblMEM.Size = new System.Drawing.Size(0, 13); this.lblMEM.TabIndex = 0; // // tabHW_MB // this.tabHW_MB.BackColor = System.Drawing.Color.Silver; this.tabHW_MB.Controls.Add(this.groupBox19); this.tabHW_MB.Controls.Add(this.treeMB); this.tabHW_MB.Location = new System.Drawing.Point(4, 22); this.tabHW_MB.Name = "tabHW_MB"; this.tabHW_MB.Size = new System.Drawing.Size(756, 386); this.tabHW_MB.TabIndex = 7; this.tabHW_MB.Text = "MB/Chipset"; // // groupBox19 // this.groupBox19.Controls.Add(this.label56); this.groupBox19.Controls.Add(this.tbxMBPID); this.groupBox19.Controls.Add(this.label55); this.groupBox19.Controls.Add(this.label54); this.groupBox19.Controls.Add(this.label53); this.groupBox19.Controls.Add(this.label52); this.groupBox19.Controls.Add(this.tbxMBSerial); this.groupBox19.Controls.Add(this.tbxMBManu); this.groupBox19.Controls.Add(this.tbxMBVersion); this.groupBox19.Controls.Add(this.tbxMBName); this.groupBox19.Location = new System.Drawing.Point(6, 3); this.groupBox19.Name = "groupBox19"; this.groupBox19.Size = new System.Drawing.Size(375, 160); this.groupBox19.TabIndex = 1; this.groupBox19.TabStop = false; this.groupBox19.Text = "Motherboard / Chipset"; // // label56 // this.label56.AutoSize = true; this.label56.Location = new System.Drawing.Point(4, 47); this.label56.Name = "label56"; this.label56.Size = new System.Drawing.Size(73, 13); this.label56.TabIndex = 8; this.label56.Text = "Manufacturer:"; // // tbxMBPID // this.tbxMBPID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMBPID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMBPID.Location = new System.Drawing.Point(77, 122); this.tbxMBPID.Name = "tbxMBPID"; this.tbxMBPID.ReadOnly = true; this.tbxMBPID.Size = new System.Drawing.Size(159, 20); this.tbxMBPID.TabIndex = 7; // // label55 // this.label55.AutoSize = true; this.label55.Location = new System.Drawing.Point(18, 125); this.label55.Name = "label55"; this.label55.Size = new System.Drawing.Size(59, 13); this.label55.TabIndex = 6; this.label55.Text = "Product Id:"; // // label54 // this.label54.AutoSize = true; this.label54.Location = new System.Drawing.Point(41, 99); this.label54.Name = "label54"; this.label54.Size = new System.Drawing.Size(36, 13); this.label54.TabIndex = 5; this.label54.Text = "Serial:"; // // label53 // this.label53.AutoSize = true; this.label53.Location = new System.Drawing.Point(32, 73); this.label53.Name = "label53"; this.label53.Size = new System.Drawing.Size(45, 13); this.label53.TabIndex = 4; this.label53.Text = "Version:"; // // label52 // this.label52.AutoSize = true; this.label52.Location = new System.Drawing.Point(39, 21); this.label52.Name = "label52"; this.label52.Size = new System.Drawing.Size(38, 13); this.label52.TabIndex = 3; this.label52.Text = "Name:"; // // tbxMBSerial // this.tbxMBSerial.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMBSerial.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMBSerial.Location = new System.Drawing.Point(77, 96); this.tbxMBSerial.Name = "tbxMBSerial"; this.tbxMBSerial.ReadOnly = true; this.tbxMBSerial.Size = new System.Drawing.Size(159, 20); this.tbxMBSerial.TabIndex = 2; // // tbxMBManu // this.tbxMBManu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMBManu.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMBManu.Location = new System.Drawing.Point(77, 44); this.tbxMBManu.Name = "tbxMBManu"; this.tbxMBManu.ReadOnly = true; this.tbxMBManu.Size = new System.Drawing.Size(159, 20); this.tbxMBManu.TabIndex = 1; // // tbxMBVersion // this.tbxMBVersion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMBVersion.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMBVersion.Location = new System.Drawing.Point(77, 70); this.tbxMBVersion.Name = "tbxMBVersion"; this.tbxMBVersion.ReadOnly = true; this.tbxMBVersion.Size = new System.Drawing.Size(159, 20); this.tbxMBVersion.TabIndex = 1; // // tbxMBName // this.tbxMBName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxMBName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxMBName.Location = new System.Drawing.Point(77, 18); this.tbxMBName.Name = "tbxMBName"; this.tbxMBName.ReadOnly = true; this.tbxMBName.Size = new System.Drawing.Size(159, 20); this.tbxMBName.TabIndex = 0; // // treeMB // this.treeMB.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeMB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeMB.ForeColor = System.Drawing.SystemColors.Window; this.treeMB.Location = new System.Drawing.Point(387, 3); this.treeMB.Name = "treeMB"; this.treeMB.Size = new System.Drawing.Size(369, 380); this.treeMB.TabIndex = 0; this.treeMB.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabHW_DRIVES // this.tabHW_DRIVES.BackColor = System.Drawing.Color.Silver; this.tabHW_DRIVES.Controls.Add(this.tlpDrives); this.tabHW_DRIVES.Location = new System.Drawing.Point(4, 22); this.tabHW_DRIVES.Name = "tabHW_DRIVES"; this.tabHW_DRIVES.Size = new System.Drawing.Size(756, 386); this.tabHW_DRIVES.TabIndex = 8; this.tabHW_DRIVES.Text = "Drives"; // // tlpDrives // this.tlpDrives.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tlpDrives.ColumnCount = 3; this.tlpDrives.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tlpDrives.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tlpDrives.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tlpDrives.Controls.Add(this.lblLog, 0, 0); this.tlpDrives.Controls.Add(this.lblPhys, 1, 0); this.tlpDrives.Controls.Add(this.lblPart, 2, 0); this.tlpDrives.Controls.Add(this.treePARTs, 0, 1); this.tlpDrives.Controls.Add(this.treePDRVs, 0, 1); this.tlpDrives.Controls.Add(this.treeLDRVs, 0, 1); this.tlpDrives.Location = new System.Drawing.Point(0, 3); this.tlpDrives.Name = "tlpDrives"; this.tlpDrives.RowCount = 2; this.tlpDrives.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F)); this.tlpDrives.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 355F)); this.tlpDrives.Size = new System.Drawing.Size(756, 383); this.tlpDrives.TabIndex = 0; // // lblLog // this.lblLog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblLog.AutoSize = true; this.lblLog.Location = new System.Drawing.Point(3, 2); this.lblLog.Name = "lblLog"; this.lblLog.Size = new System.Drawing.Size(77, 13); this.lblLog.TabIndex = 1; this.lblLog.Text = "Logical Drives:"; // // lblPhys // this.lblPhys.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblPhys.Location = new System.Drawing.Point(255, 2); this.lblPhys.Name = "lblPhys"; this.lblPhys.Size = new System.Drawing.Size(82, 13); this.lblPhys.TabIndex = 2; this.lblPhys.Text = "Physical Drives:"; // // lblPart // this.lblPart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblPart.AutoSize = true; this.lblPart.Location = new System.Drawing.Point(507, 2); this.lblPart.Name = "lblPart"; this.lblPart.Size = new System.Drawing.Size(53, 13); this.lblPart.TabIndex = 3; this.lblPart.Text = "Partitions:"; // // treePARTs // this.treePARTs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treePARTs.Dock = System.Windows.Forms.DockStyle.Fill; this.treePARTs.ForeColor = System.Drawing.SystemColors.Window; this.treePARTs.Location = new System.Drawing.Point(507, 18); this.treePARTs.Name = "treePARTs"; this.treePARTs.Size = new System.Drawing.Size(246, 362); this.treePARTs.TabIndex = 9; // // treePDRVs // this.treePDRVs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treePDRVs.Dock = System.Windows.Forms.DockStyle.Fill; this.treePDRVs.ForeColor = System.Drawing.SystemColors.Window; this.treePDRVs.Location = new System.Drawing.Point(255, 18); this.treePDRVs.Name = "treePDRVs"; this.treePDRVs.Size = new System.Drawing.Size(246, 362); this.treePDRVs.TabIndex = 8; // // treeLDRVs // this.treeLDRVs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeLDRVs.Dock = System.Windows.Forms.DockStyle.Fill; this.treeLDRVs.ForeColor = System.Drawing.SystemColors.Window; this.treeLDRVs.Location = new System.Drawing.Point(3, 18); this.treeLDRVs.Name = "treeLDRVs"; this.treeLDRVs.Size = new System.Drawing.Size(246, 362); this.treeLDRVs.TabIndex = 7; // // tabHW_GPU // this.tabHW_GPU.BackColor = System.Drawing.Color.Silver; this.tabHW_GPU.Controls.Add(this.treeGPUs); this.tabHW_GPU.Controls.Add(this.groupBox10); this.tabHW_GPU.Location = new System.Drawing.Point(4, 22); this.tabHW_GPU.Name = "tabHW_GPU"; this.tabHW_GPU.Size = new System.Drawing.Size(756, 386); this.tabHW_GPU.TabIndex = 4; this.tabHW_GPU.Text = "GPU"; // // treeGPUs // this.treeGPUs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeGPUs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeGPUs.ForeColor = System.Drawing.SystemColors.Window; this.treeGPUs.Location = new System.Drawing.Point(387, 3); this.treeGPUs.Name = "treeGPUs"; this.treeGPUs.Size = new System.Drawing.Size(369, 380); this.treeGPUs.TabIndex = 3; this.treeGPUs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // groupBox10 // this.groupBox10.Controls.Add(this.label37); this.groupBox10.Controls.Add(this.tbxGOUT); this.groupBox10.Controls.Add(this.label36); this.groupBox10.Controls.Add(this.tbxGINFSEC); this.groupBox10.Controls.Add(this.label35); this.groupBox10.Controls.Add(this.tbxGINF); this.groupBox10.Controls.Add(this.label32); this.groupBox10.Controls.Add(this.tbxGDRIVERFILES); this.groupBox10.Controls.Add(this.label34); this.groupBox10.Controls.Add(this.tbxGDRIVER); this.groupBox10.Controls.Add(this.label33); this.groupBox10.Controls.Add(this.tbxGVRAM); this.groupBox10.Controls.Add(this.label31); this.groupBox10.Controls.Add(this.tbxGMODEL); this.groupBox10.Controls.Add(this.label30); this.groupBox10.Controls.Add(this.tbxGVEND); this.groupBox10.Location = new System.Drawing.Point(6, 3); this.groupBox10.Name = "groupBox10"; this.groupBox10.Size = new System.Drawing.Size(375, 341); this.groupBox10.TabIndex = 2; this.groupBox10.TabStop = false; this.groupBox10.Text = "First Display Adapter Detected"; // // label37 // this.label37.AutoSize = true; this.label37.Location = new System.Drawing.Point(6, 289); this.label37.Name = "label37"; this.label37.Size = new System.Drawing.Size(116, 13); this.label37.TabIndex = 17; this.label37.Text = "Current Display Output:"; // // tbxGOUT // this.tbxGOUT.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGOUT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGOUT.Location = new System.Drawing.Point(9, 305); this.tbxGOUT.Name = "tbxGOUT"; this.tbxGOUT.ReadOnly = true; this.tbxGOUT.Size = new System.Drawing.Size(190, 20); this.tbxGOUT.TabIndex = 16; // // label36 // this.label36.AutoSize = true; this.label36.Location = new System.Drawing.Point(6, 250); this.label36.Name = "label36"; this.label36.Size = new System.Drawing.Size(66, 13); this.label36.TabIndex = 15; this.label36.Text = "INF Section:"; // // tbxGINFSEC // this.tbxGINFSEC.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGINFSEC.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGINFSEC.Location = new System.Drawing.Point(9, 266); this.tbxGINFSEC.Name = "tbxGINFSEC"; this.tbxGINFSEC.ReadOnly = true; this.tbxGINFSEC.Size = new System.Drawing.Size(190, 20); this.tbxGINFSEC.TabIndex = 14; // // label35 // this.label35.AutoSize = true; this.label35.Location = new System.Drawing.Point(6, 211); this.label35.Name = "label35"; this.label35.Size = new System.Drawing.Size(27, 13); this.label35.TabIndex = 13; this.label35.Text = "INF:"; // // tbxGINF // this.tbxGINF.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGINF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGINF.Location = new System.Drawing.Point(9, 227); this.tbxGINF.Name = "tbxGINF"; this.tbxGINF.ReadOnly = true; this.tbxGINF.Size = new System.Drawing.Size(190, 20); this.tbxGINF.TabIndex = 12; // // label32 // this.label32.AutoSize = true; this.label32.Location = new System.Drawing.Point(6, 172); this.label32.Name = "label32"; this.label32.Size = new System.Drawing.Size(75, 13); this.label32.TabIndex = 11; this.label32.Text = "Display Driver:"; // // tbxGDRIVERFILES // this.tbxGDRIVERFILES.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGDRIVERFILES.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGDRIVERFILES.Location = new System.Drawing.Point(9, 188); this.tbxGDRIVERFILES.Name = "tbxGDRIVERFILES"; this.tbxGDRIVERFILES.ReadOnly = true; this.tbxGDRIVERFILES.Size = new System.Drawing.Size(190, 20); this.tbxGDRIVERFILES.TabIndex = 10; // // label34 // this.label34.AutoSize = true; this.label34.Location = new System.Drawing.Point(6, 133); this.label34.Name = "label34"; this.label34.Size = new System.Drawing.Size(76, 13); this.label34.TabIndex = 9; this.label34.Text = "Driver Version:"; // // tbxGDRIVER // this.tbxGDRIVER.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGDRIVER.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGDRIVER.Location = new System.Drawing.Point(9, 149); this.tbxGDRIVER.Name = "tbxGDRIVER"; this.tbxGDRIVER.ReadOnly = true; this.tbxGDRIVER.Size = new System.Drawing.Size(190, 20); this.tbxGDRIVER.TabIndex = 8; // // label33 // this.label33.AutoSize = true; this.label33.Location = new System.Drawing.Point(6, 94); this.label33.Name = "label33"; this.label33.Size = new System.Drawing.Size(67, 13); this.label33.TabIndex = 7; this.label33.Text = "GPU VRAM:"; // // tbxGVRAM // this.tbxGVRAM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGVRAM.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGVRAM.Location = new System.Drawing.Point(9, 110); this.tbxGVRAM.Name = "tbxGVRAM"; this.tbxGVRAM.ReadOnly = true; this.tbxGVRAM.Size = new System.Drawing.Size(190, 20); this.tbxGVRAM.TabIndex = 6; // // label31 // this.label31.AutoSize = true; this.label31.Location = new System.Drawing.Point(6, 55); this.label31.Name = "label31"; this.label31.Size = new System.Drawing.Size(65, 13); this.label31.TabIndex = 3; this.label31.Text = "GPU Model:"; // // tbxGMODEL // this.tbxGMODEL.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGMODEL.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGMODEL.Location = new System.Drawing.Point(9, 71); this.tbxGMODEL.Name = "tbxGMODEL"; this.tbxGMODEL.ReadOnly = true; this.tbxGMODEL.Size = new System.Drawing.Size(190, 20); this.tbxGMODEL.TabIndex = 2; // // label30 // this.label30.AutoSize = true; this.label30.Location = new System.Drawing.Point(6, 16); this.label30.Name = "label30"; this.label30.Size = new System.Drawing.Size(70, 13); this.label30.TabIndex = 1; this.label30.Text = "GPU Vendor:"; // // tbxGVEND // this.tbxGVEND.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGVEND.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGVEND.Location = new System.Drawing.Point(9, 32); this.tbxGVEND.Name = "tbxGVEND"; this.tbxGVEND.ReadOnly = true; this.tbxGVEND.Size = new System.Drawing.Size(190, 20); this.tbxGVEND.TabIndex = 0; // // tabHW_SND // this.tabHW_SND.BackColor = System.Drawing.Color.Silver; this.tabHW_SND.Controls.Add(this.label44); this.tabHW_SND.Controls.Add(this.treeSDs); this.tabHW_SND.Controls.Add(this.groupBox17); this.tabHW_SND.Location = new System.Drawing.Point(4, 22); this.tabHW_SND.Name = "tabHW_SND"; this.tabHW_SND.Size = new System.Drawing.Size(756, 386); this.tabHW_SND.TabIndex = 6; this.tabHW_SND.Text = "Sound"; // // label44 // this.label44.AutoSize = true; this.label44.Location = new System.Drawing.Point(9, 149); this.label44.Name = "label44"; this.label44.Size = new System.Drawing.Size(129, 13); this.label44.TabIndex = 8; this.label44.Text = "*May be the driver author."; // // treeSDs // this.treeSDs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeSDs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeSDs.ForeColor = System.Drawing.SystemColors.Window; this.treeSDs.Location = new System.Drawing.Point(387, 3); this.treeSDs.Name = "treeSDs"; this.treeSDs.Size = new System.Drawing.Size(370, 380); this.treeSDs.TabIndex = 4; this.treeSDs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // groupBox17 // this.groupBox17.Controls.Add(this.label49); this.groupBox17.Controls.Add(this.tbxSMANU); this.groupBox17.Controls.Add(this.label50); this.groupBox17.Controls.Add(this.tbxSPROC); this.groupBox17.Controls.Add(this.label51); this.groupBox17.Controls.Add(this.tbxSVEN); this.groupBox17.Location = new System.Drawing.Point(6, 3); this.groupBox17.Name = "groupBox17"; this.groupBox17.Size = new System.Drawing.Size(375, 143); this.groupBox17.TabIndex = 3; this.groupBox17.TabStop = false; this.groupBox17.Text = "First Audio Device Detected"; // // label49 // this.label49.AutoSize = true; this.label49.Location = new System.Drawing.Point(6, 94); this.label49.Name = "label49"; this.label49.Size = new System.Drawing.Size(77, 13); this.label49.TabIndex = 7; this.label49.Text = "*Manufacturer:"; // // tbxSMANU // this.tbxSMANU.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxSMANU.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxSMANU.Location = new System.Drawing.Point(9, 110); this.tbxSMANU.Name = "tbxSMANU"; this.tbxSMANU.ReadOnly = true; this.tbxSMANU.Size = new System.Drawing.Size(190, 20); this.tbxSMANU.TabIndex = 6; // // label50 // this.label50.AutoSize = true; this.label50.Location = new System.Drawing.Point(6, 55); this.label50.Name = "label50"; this.label50.Size = new System.Drawing.Size(119, 13); this.label50.TabIndex = 3; this.label50.Text = "Audio Processor Model:"; // // tbxSPROC // this.tbxSPROC.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxSPROC.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxSPROC.Location = new System.Drawing.Point(9, 71); this.tbxSPROC.Name = "tbxSPROC"; this.tbxSPROC.ReadOnly = true; this.tbxSPROC.Size = new System.Drawing.Size(190, 20); this.tbxSPROC.TabIndex = 2; // // label51 // this.label51.AutoSize = true; this.label51.Location = new System.Drawing.Point(6, 16); this.label51.Name = "label51"; this.label51.Size = new System.Drawing.Size(74, 13); this.label51.TabIndex = 1; this.label51.Text = "Audio Vendor:"; // // tbxSVEN // this.tbxSVEN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxSVEN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxSVEN.Location = new System.Drawing.Point(9, 32); this.tbxSVEN.Name = "tbxSVEN"; this.tbxSVEN.ReadOnly = true; this.tbxSVEN.Size = new System.Drawing.Size(190, 20); this.tbxSVEN.TabIndex = 0; // // tabHW_NIC // this.tabHW_NIC.BackColor = System.Drawing.Color.Silver; this.tabHW_NIC.Controls.Add(this.tlpNICs); this.tabHW_NIC.Location = new System.Drawing.Point(4, 22); this.tabHW_NIC.Name = "tabHW_NIC"; this.tabHW_NIC.Size = new System.Drawing.Size(756, 386); this.tabHW_NIC.TabIndex = 2; this.tabHW_NIC.Text = "NICs"; // // tlpNICs // this.tlpNICs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tlpNICs.ColumnCount = 2; this.tlpNICs.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tlpNICs.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tlpNICs.Controls.Add(this.lblVirtualAdapters, 1, 0); this.tlpNICs.Controls.Add(this.lblPhysicalAdapters, 0, 0); this.tlpNICs.Controls.Add(this.treeVNICS, 1, 1); this.tlpNICs.Controls.Add(this.treeNICS, 0, 1); this.tlpNICs.Location = new System.Drawing.Point(3, 3); this.tlpNICs.Name = "tlpNICs"; this.tlpNICs.RowCount = 2; this.tlpNICs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F)); this.tlpNICs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 363F)); this.tlpNICs.Size = new System.Drawing.Size(750, 380); this.tlpNICs.TabIndex = 0; // // lblVirtualAdapters // this.lblVirtualAdapters.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblVirtualAdapters.AutoSize = true; this.lblVirtualAdapters.Location = new System.Drawing.Point(378, 2); this.lblVirtualAdapters.Name = "lblVirtualAdapters"; this.lblVirtualAdapters.Size = new System.Drawing.Size(132, 13); this.lblVirtualAdapters.TabIndex = 10; this.lblVirtualAdapters.Text = "Virtual Network Interfaces:"; // // lblPhysicalAdapters // this.lblPhysicalAdapters.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblPhysicalAdapters.AutoSize = true; this.lblPhysicalAdapters.Location = new System.Drawing.Point(3, 2); this.lblPhysicalAdapters.Name = "lblPhysicalAdapters"; this.lblPhysicalAdapters.Size = new System.Drawing.Size(204, 13); this.lblPhysicalAdapters.TabIndex = 8; this.lblPhysicalAdapters.Text = "Physical Adapters + Active Tunnels/VPN:"; // // treeVNICS // this.treeVNICS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeVNICS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeVNICS.ForeColor = System.Drawing.SystemColors.Window; this.treeVNICS.Location = new System.Drawing.Point(378, 18); this.treeVNICS.Name = "treeVNICS"; this.treeVNICS.Size = new System.Drawing.Size(369, 359); this.treeVNICS.TabIndex = 9; // // treeNICS // this.treeNICS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeNICS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeNICS.ForeColor = System.Drawing.SystemColors.Window; this.treeNICS.Location = new System.Drawing.Point(3, 18); this.treeNICS.Name = "treeNICS"; this.treeNICS.Size = new System.Drawing.Size(369, 359); this.treeNICS.TabIndex = 7; // // tabHW_DISPS // this.tabHW_DISPS.BackColor = System.Drawing.Color.Silver; this.tabHW_DISPS.Controls.Add(this.groupBox16); this.tabHW_DISPS.Controls.Add(this.treeDISPS); this.tabHW_DISPS.Location = new System.Drawing.Point(4, 22); this.tabHW_DISPS.Name = "tabHW_DISPS"; this.tabHW_DISPS.Size = new System.Drawing.Size(756, 386); this.tabHW_DISPS.TabIndex = 5; this.tabHW_DISPS.Text = "Displays"; // // groupBox16 // this.groupBox16.Controls.Add(this.lbl1); this.groupBox16.Controls.Add(this.tbxDPNP); this.groupBox16.Controls.Add(this.tbxDSTATS); this.groupBox16.Controls.Add(this.label43); this.groupBox16.Controls.Add(this.tbxDID); this.groupBox16.Controls.Add(this.label42); this.groupBox16.Controls.Add(this.tbxDTYPE); this.groupBox16.Controls.Add(this.label41); this.groupBox16.Controls.Add(this.tbxDMAN); this.groupBox16.Controls.Add(this.label40); this.groupBox16.Controls.Add(this.tbxDMON); this.groupBox16.Controls.Add(this.label39); this.groupBox16.Location = new System.Drawing.Point(6, 3); this.groupBox16.Name = "groupBox16"; this.groupBox16.Size = new System.Drawing.Size(375, 186); this.groupBox16.TabIndex = 3; this.groupBox16.TabStop = false; this.groupBox16.Text = "First Display Detected"; // // lbl1 // this.lbl1.AutoSize = true; this.lbl1.Location = new System.Drawing.Point(4, 153); this.lbl1.Name = "lbl1"; this.lbl1.Size = new System.Drawing.Size(46, 13); this.lbl1.TabIndex = 9; this.lbl1.Text = "PNP ID:"; // // tbxDPNP // this.tbxDPNP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDPNP.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDPNP.Location = new System.Drawing.Point(57, 150); this.tbxDPNP.Name = "tbxDPNP"; this.tbxDPNP.ReadOnly = true; this.tbxDPNP.Size = new System.Drawing.Size(288, 20); this.tbxDPNP.TabIndex = 10; // // tbxDSTATS // this.tbxDSTATS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDSTATS.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDSTATS.Location = new System.Drawing.Point(80, 123); this.tbxDSTATS.Name = "tbxDSTATS"; this.tbxDSTATS.ReadOnly = true; this.tbxDSTATS.Size = new System.Drawing.Size(213, 20); this.tbxDSTATS.TabIndex = 10; // // label43 // this.label43.AutoSize = true; this.label43.Location = new System.Drawing.Point(5, 126); this.label43.Name = "label43"; this.label43.Size = new System.Drawing.Size(40, 13); this.label43.TabIndex = 9; this.label43.Text = "Status:"; // // tbxDID // this.tbxDID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDID.Location = new System.Drawing.Point(80, 97); this.tbxDID.Name = "tbxDID"; this.tbxDID.ReadOnly = true; this.tbxDID.Size = new System.Drawing.Size(213, 20); this.tbxDID.TabIndex = 8; // // label42 // this.label42.AutoSize = true; this.label42.Location = new System.Drawing.Point(5, 100); this.label42.Name = "label42"; this.label42.Size = new System.Drawing.Size(58, 13); this.label42.TabIndex = 7; this.label42.Text = "Device ID:"; // // tbxDTYPE // this.tbxDTYPE.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDTYPE.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDTYPE.Location = new System.Drawing.Point(80, 71); this.tbxDTYPE.Name = "tbxDTYPE"; this.tbxDTYPE.ReadOnly = true; this.tbxDTYPE.Size = new System.Drawing.Size(213, 20); this.tbxDTYPE.TabIndex = 6; // // label41 // this.label41.AutoSize = true; this.label41.Location = new System.Drawing.Point(5, 74); this.label41.Name = "label41"; this.label41.Size = new System.Drawing.Size(34, 13); this.label41.TabIndex = 5; this.label41.Text = "Type:"; // // tbxDMAN // this.tbxDMAN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDMAN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDMAN.Location = new System.Drawing.Point(80, 45); this.tbxDMAN.Name = "tbxDMAN"; this.tbxDMAN.ReadOnly = true; this.tbxDMAN.Size = new System.Drawing.Size(213, 20); this.tbxDMAN.TabIndex = 4; // // label40 // this.label40.AutoSize = true; this.label40.Location = new System.Drawing.Point(5, 48); this.label40.Name = "label40"; this.label40.Size = new System.Drawing.Size(73, 13); this.label40.TabIndex = 3; this.label40.Text = "Manufacturer:"; // // tbxDMON // this.tbxDMON.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDMON.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDMON.Location = new System.Drawing.Point(80, 19); this.tbxDMON.Name = "tbxDMON"; this.tbxDMON.ReadOnly = true; this.tbxDMON.Size = new System.Drawing.Size(213, 20); this.tbxDMON.TabIndex = 1; // // label39 // this.label39.AutoSize = true; this.label39.Location = new System.Drawing.Point(5, 22); this.label39.Name = "label39"; this.label39.Size = new System.Drawing.Size(45, 13); this.label39.TabIndex = 2; this.label39.Text = "Monitor:"; // // treeDISPS // this.treeDISPS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeDISPS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeDISPS.ForeColor = System.Drawing.SystemColors.Window; this.treeDISPS.Location = new System.Drawing.Point(387, 3); this.treeDISPS.Name = "treeDISPS"; this.treeDISPS.Size = new System.Drawing.Size(369, 380); this.treeDISPS.TabIndex = 0; this.treeDISPS.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabMain // this.tabMain.BackColor = System.Drawing.Color.Silver; this.tabMain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tabMain.Controls.Add(this.groupBox4); this.tabMain.Controls.Add(this.groupBox3); this.tabMain.Controls.Add(this.groupBox1); this.tabMain.Controls.Add(this.groupBox2); this.tabMain.Location = new System.Drawing.Point(4, 22); this.tabMain.Name = "tabMain"; this.tabMain.Padding = new System.Windows.Forms.Padding(3); this.tabMain.Size = new System.Drawing.Size(764, 412); this.tabMain.TabIndex = 0; this.tabMain.Text = "Main"; // // groupBox4 // this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupBox4.Controls.Add(this.lblLocal); this.groupBox4.Controls.Add(this.tbxLocalization); this.groupBox4.Controls.Add(this.tbxGenDrive); this.groupBox4.Controls.Add(this.label3); this.groupBox4.Controls.Add(this.lblNetVersion); this.groupBox4.Controls.Add(this.tbxNetVersion); this.groupBox4.Controls.Add(this.tbxLastBootUp); this.groupBox4.Controls.Add(this.tbxOSInstallDate); this.groupBox4.Controls.Add(this.tbxOSVersion); this.groupBox4.Controls.Add(this.tbxOSName); this.groupBox4.Controls.Add(this.lblLastBootUp); this.groupBox4.Controls.Add(this.lblOSInstallDate); this.groupBox4.Controls.Add(this.lblOSVersion); this.groupBox4.Controls.Add(this.lblOSName); this.groupBox4.Location = new System.Drawing.Point(3, 178); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(376, 230); this.groupBox4.TabIndex = 35; this.groupBox4.TabStop = false; this.groupBox4.Text = "OS Environment"; // // lblLocal // this.lblLocal.AutoSize = true; this.lblLocal.Location = new System.Drawing.Point(32, 178); this.lblLocal.Name = "lblLocal"; this.lblLocal.Size = new System.Drawing.Size(66, 13); this.lblLocal.TabIndex = 38; this.lblLocal.Text = "Localization:"; // // tbxLocalization // this.tbxLocalization.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxLocalization.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxLocalization.Location = new System.Drawing.Point(104, 175); this.tbxLocalization.Name = "tbxLocalization"; this.tbxLocalization.ReadOnly = true; this.tbxLocalization.Size = new System.Drawing.Size(257, 20); this.tbxLocalization.TabIndex = 37; // // tbxGenDrive // this.tbxGenDrive.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGenDrive.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGenDrive.Location = new System.Drawing.Point(105, 149); this.tbxGenDrive.Name = "tbxGenDrive"; this.tbxGenDrive.ReadOnly = true; this.tbxGenDrive.Size = new System.Drawing.Size(257, 20); this.tbxGenDrive.TabIndex = 36; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(27, 152); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(72, 13); this.label3.TabIndex = 35; this.label3.Text = "System32 Dir:"; // // lblNetVersion // this.lblNetVersion.AutoSize = true; this.lblNetVersion.Location = new System.Drawing.Point(25, 126); this.lblNetVersion.Name = "lblNetVersion"; this.lblNetVersion.Size = new System.Drawing.Size(73, 13); this.lblNetVersion.TabIndex = 34; this.lblNetVersion.Text = ".NET Version:"; // // tbxNetVersion // this.tbxNetVersion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxNetVersion.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxNetVersion.Location = new System.Drawing.Point(105, 123); this.tbxNetVersion.Name = "tbxNetVersion"; this.tbxNetVersion.ReadOnly = true; this.tbxNetVersion.Size = new System.Drawing.Size(257, 20); this.tbxNetVersion.TabIndex = 33; // // tbxLastBootUp // this.tbxLastBootUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxLastBootUp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxLastBootUp.Location = new System.Drawing.Point(105, 97); this.tbxLastBootUp.Name = "tbxLastBootUp"; this.tbxLastBootUp.ReadOnly = true; this.tbxLastBootUp.Size = new System.Drawing.Size(257, 20); this.tbxLastBootUp.TabIndex = 32; // // tbxOSInstallDate // this.tbxOSInstallDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOSInstallDate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOSInstallDate.Location = new System.Drawing.Point(105, 71); this.tbxOSInstallDate.Name = "tbxOSInstallDate"; this.tbxOSInstallDate.ReadOnly = true; this.tbxOSInstallDate.Size = new System.Drawing.Size(257, 20); this.tbxOSInstallDate.TabIndex = 31; // // tbxOSVersion // this.tbxOSVersion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOSVersion.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOSVersion.Location = new System.Drawing.Point(105, 45); this.tbxOSVersion.Name = "tbxOSVersion"; this.tbxOSVersion.ReadOnly = true; this.tbxOSVersion.Size = new System.Drawing.Size(257, 20); this.tbxOSVersion.TabIndex = 30; // // tbxOSName // this.tbxOSName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOSName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOSName.Location = new System.Drawing.Point(105, 19); this.tbxOSName.Name = "tbxOSName"; this.tbxOSName.ReadOnly = true; this.tbxOSName.Size = new System.Drawing.Size(257, 20); this.tbxOSName.TabIndex = 29; // // lblLastBootUp // this.lblLastBootUp.AutoSize = true; this.lblLastBootUp.Location = new System.Drawing.Point(30, 100); this.lblLastBootUp.Name = "lblLastBootUp"; this.lblLastBootUp.Size = new System.Drawing.Size(68, 13); this.lblLastBootUp.TabIndex = 28; this.lblLastBootUp.Text = "Last Reboot:"; // // lblOSInstallDate // this.lblOSInstallDate.AutoSize = true; this.lblOSInstallDate.Location = new System.Drawing.Point(36, 74); this.lblOSInstallDate.Name = "lblOSInstallDate"; this.lblOSInstallDate.Size = new System.Drawing.Size(63, 13); this.lblOSInstallDate.TabIndex = 27; this.lblOSInstallDate.Text = "Install Date:"; // // lblOSVersion // this.lblOSVersion.AutoSize = true; this.lblOSVersion.Location = new System.Drawing.Point(35, 48); this.lblOSVersion.Name = "lblOSVersion"; this.lblOSVersion.Size = new System.Drawing.Size(63, 13); this.lblOSVersion.TabIndex = 26; this.lblOSVersion.Text = "OS Version:"; // // lblOSName // this.lblOSName.AutoSize = true; this.lblOSName.Location = new System.Drawing.Point(43, 22); this.lblOSName.Name = "lblOSName"; this.lblOSName.Size = new System.Drawing.Size(56, 13); this.lblOSName.TabIndex = 25; this.lblOSName.Text = "OS Name:"; // // groupBox3 // this.groupBox3.Controls.Add(this.tbxGenRAM); this.groupBox3.Controls.Add(this.tbxGenCPU); this.groupBox3.Controls.Add(this.lblRAM); this.groupBox3.Controls.Add(this.lblCPU); this.groupBox3.Location = new System.Drawing.Point(2, 104); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(377, 74); this.groupBox3.TabIndex = 24; this.groupBox3.TabStop = false; this.groupBox3.Text = "General Hardware"; // // tbxGenRAM // this.tbxGenRAM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGenRAM.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGenRAM.Location = new System.Drawing.Point(105, 45); this.tbxGenRAM.Name = "tbxGenRAM"; this.tbxGenRAM.ReadOnly = true; this.tbxGenRAM.Size = new System.Drawing.Size(257, 20); this.tbxGenRAM.TabIndex = 21; // // tbxGenCPU // this.tbxGenCPU.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxGenCPU.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxGenCPU.Location = new System.Drawing.Point(105, 19); this.tbxGenCPU.Name = "tbxGenCPU"; this.tbxGenCPU.ReadOnly = true; this.tbxGenCPU.Size = new System.Drawing.Size(257, 20); this.tbxGenCPU.TabIndex = 20; // // lblRAM // this.lblRAM.AutoSize = true; this.lblRAM.Location = new System.Drawing.Point(26, 48); this.lblRAM.Name = "lblRAM"; this.lblRAM.Size = new System.Drawing.Size(73, 13); this.lblRAM.TabIndex = 1; this.lblRAM.Text = "Main Memory:"; // // lblCPU // this.lblCPU.AutoSize = true; this.lblCPU.Location = new System.Drawing.Point(16, 22); this.lblCPU.Name = "lblCPU"; this.lblCPU.Size = new System.Drawing.Size(83, 13); this.lblCPU.TabIndex = 0; this.lblCPU.Text = "Main Processor:"; // // groupBox1 // this.groupBox1.Controls.Add(this.tbxCompanyName); this.groupBox1.Controls.Add(this.tbxCompName); this.groupBox1.Controls.Add(this.tbxUserName); this.groupBox1.Controls.Add(this.lblCompanyName); this.groupBox1.Controls.Add(this.lblCompName); this.groupBox1.Controls.Add(this.lblUserName); this.groupBox1.Location = new System.Drawing.Point(2, 2); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(377, 102); this.groupBox1.TabIndex = 21; this.groupBox1.TabStop = false; this.groupBox1.Text = "User / Machine Name"; // // tbxCompanyName // this.tbxCompanyName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCompanyName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCompanyName.Location = new System.Drawing.Point(105, 70); this.tbxCompanyName.Name = "tbxCompanyName"; this.tbxCompanyName.ReadOnly = true; this.tbxCompanyName.Size = new System.Drawing.Size(257, 20); this.tbxCompanyName.TabIndex = 18; // // tbxCompName // this.tbxCompName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxCompName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxCompName.Location = new System.Drawing.Point(105, 44); this.tbxCompName.Name = "tbxCompName"; this.tbxCompName.ReadOnly = true; this.tbxCompName.Size = new System.Drawing.Size(257, 20); this.tbxCompName.TabIndex = 17; // // tbxUserName // this.tbxUserName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxUserName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxUserName.Location = new System.Drawing.Point(105, 18); this.tbxUserName.Name = "tbxUserName"; this.tbxUserName.ReadOnly = true; this.tbxUserName.Size = new System.Drawing.Size(257, 20); this.tbxUserName.TabIndex = 16; // // lblCompanyName // this.lblCompanyName.AutoSize = true; this.lblCompanyName.Location = new System.Drawing.Point(14, 77); this.lblCompanyName.Name = "lblCompanyName"; this.lblCompanyName.Size = new System.Drawing.Size(85, 13); this.lblCompanyName.TabIndex = 12; this.lblCompanyName.Text = "Company Name:"; // // lblCompName // this.lblCompName.AutoSize = true; this.lblCompName.Location = new System.Drawing.Point(13, 51); this.lblCompName.Name = "lblCompName"; this.lblCompName.Size = new System.Drawing.Size(86, 13); this.lblCompName.TabIndex = 1; this.lblCompName.Text = "Computer Name:"; // // lblUserName // this.lblUserName.AutoSize = true; this.lblUserName.Location = new System.Drawing.Point(36, 25); this.lblUserName.Name = "lblUserName"; this.lblUserName.Size = new System.Drawing.Size(63, 13); this.lblUserName.TabIndex = 0; this.lblUserName.Text = "User Name:"; // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox2.Controls.Add(this.lblActCon); this.groupBox2.Controls.Add(this.tbxExtIP); this.groupBox2.Controls.Add(this.tbxIPv6); this.groupBox2.Controls.Add(this.tbxIPv4); this.groupBox2.Controls.Add(this.tbxDomainName); this.groupBox2.Controls.Add(this.btnGrabExternal); this.groupBox2.Controls.Add(this.treeCONs); this.groupBox2.Controls.Add(this.lblExtIP); this.groupBox2.Controls.Add(this.lblIPv6); this.groupBox2.Controls.Add(this.lblIPv4); this.groupBox2.Controls.Add(this.lblDomainName); this.groupBox2.Location = new System.Drawing.Point(385, 2); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(374, 406); this.groupBox2.TabIndex = 20; this.groupBox2.TabStop = false; this.groupBox2.Text = "Network Information"; // // lblActCon // this.lblActCon.AutoSize = true; this.lblActCon.Location = new System.Drawing.Point(9, 160); this.lblActCon.Name = "lblActCon"; this.lblActCon.Size = new System.Drawing.Size(145, 13); this.lblActCon.TabIndex = 27; this.lblActCon.Text = "Active Network Connections:"; // // tbxExtIP // this.tbxExtIP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxExtIP.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxExtIP.Location = new System.Drawing.Point(115, 96); this.tbxExtIP.Name = "tbxExtIP"; this.tbxExtIP.ReadOnly = true; this.tbxExtIP.Size = new System.Drawing.Size(191, 20); this.tbxExtIP.TabIndex = 26; // // tbxIPv6 // this.tbxIPv6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPv6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPv6.Location = new System.Drawing.Point(115, 70); this.tbxIPv6.Name = "tbxIPv6"; this.tbxIPv6.ReadOnly = true; this.tbxIPv6.Size = new System.Drawing.Size(191, 20); this.tbxIPv6.TabIndex = 25; // // tbxIPv4 // this.tbxIPv4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxIPv4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxIPv4.Location = new System.Drawing.Point(115, 44); this.tbxIPv4.Name = "tbxIPv4"; this.tbxIPv4.ReadOnly = true; this.tbxIPv4.Size = new System.Drawing.Size(191, 20); this.tbxIPv4.TabIndex = 24; // // tbxDomainName // this.tbxDomainName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxDomainName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxDomainName.Location = new System.Drawing.Point(115, 18); this.tbxDomainName.Name = "tbxDomainName"; this.tbxDomainName.ReadOnly = true; this.tbxDomainName.Size = new System.Drawing.Size(191, 20); this.tbxDomainName.TabIndex = 23; // // btnGrabExternal // this.btnGrabExternal.Location = new System.Drawing.Point(312, 96); this.btnGrabExternal.Name = "btnGrabExternal"; this.btnGrabExternal.Size = new System.Drawing.Size(52, 20); this.btnGrabExternal.TabIndex = 18; this.btnGrabExternal.Text = "Refresh"; this.btnGrabExternal.UseVisualStyleBackColor = true; this.btnGrabExternal.Click += new System.EventHandler(this.btnGrabExternal_Click); // // treeCONs // this.treeCONs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeCONs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeCONs.ForeColor = System.Drawing.SystemColors.Window; this.treeCONs.Location = new System.Drawing.Point(9, 179); this.treeCONs.Name = "treeCONs"; this.treeCONs.RightToLeft = System.Windows.Forms.RightToLeft.No; this.treeCONs.Size = new System.Drawing.Size(355, 217); this.treeCONs.TabIndex = 19; this.treeCONs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // lblExtIP // this.lblExtIP.AutoSize = true; this.lblExtIP.Location = new System.Drawing.Point(30, 99); this.lblExtIP.Name = "lblExtIP"; this.lblExtIP.Size = new System.Drawing.Size(61, 13); this.lblExtIP.TabIndex = 16; this.lblExtIP.Text = "External IP:"; // // lblIPv6 // this.lblIPv6.AutoSize = true; this.lblIPv6.Location = new System.Drawing.Point(59, 73); this.lblIPv6.Name = "lblIPv6"; this.lblIPv6.Size = new System.Drawing.Size(32, 13); this.lblIPv6.TabIndex = 15; this.lblIPv6.Text = "IPv6:"; // // lblIPv4 // this.lblIPv4.AutoSize = true; this.lblIPv4.Location = new System.Drawing.Point(59, 47); this.lblIPv4.Name = "lblIPv4"; this.lblIPv4.Size = new System.Drawing.Size(32, 13); this.lblIPv4.TabIndex = 12; this.lblIPv4.Text = "IPv4:"; // // lblDomainName // this.lblDomainName.AutoSize = true; this.lblDomainName.Location = new System.Drawing.Point(14, 21); this.lblDomainName.Name = "lblDomainName"; this.lblDomainName.Size = new System.Drawing.Size(77, 13); this.lblDomainName.TabIndex = 10; this.lblDomainName.Text = "Domain Name:"; // // tabMainTab // this.tabMainTab.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabMainTab.Controls.Add(this.tabMain); this.tabMainTab.Controls.Add(this.tabHard); this.tabMainTab.Controls.Add(this.tabSoft); this.tabMainTab.Controls.Add(this.tabTools); this.tabMainTab.Controls.Add(this.tabLog); this.tabMainTab.Cursor = System.Windows.Forms.Cursors.Default; this.tabMainTab.Location = new System.Drawing.Point(12, 27); this.tabMainTab.Name = "tabMainTab"; this.tabMainTab.SelectedIndex = 0; this.tabMainTab.Size = new System.Drawing.Size(772, 438); this.tabMainTab.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight; this.tabMainTab.TabIndex = 0; this.tabMainTab.Click += new System.EventHandler(this.ScrollLogDown); // // tabSoft // this.tabSoft.BackColor = System.Drawing.Color.Silver; this.tabSoft.Controls.Add(this.tabSoftControl); this.tabSoft.Location = new System.Drawing.Point(4, 22); this.tabSoft.Name = "tabSoft"; this.tabSoft.Size = new System.Drawing.Size(764, 412); this.tabSoft.TabIndex = 4; this.tabSoft.Text = "Software"; // // tabSoftControl // this.tabSoftControl.Controls.Add(this.tabOSInfo); this.tabSoftControl.Controls.Add(this.tabBIOS); this.tabSoftControl.Controls.Add(this.tabPrograms); this.tabSoftControl.Controls.Add(this.tabDrivers); this.tabSoftControl.Controls.Add(this.tabNetPorts); this.tabSoftControl.Controls.Add(this.tabAccount); this.tabSoftControl.Controls.Add(this.tabDMA); this.tabSoftControl.Dock = System.Windows.Forms.DockStyle.Fill; this.tabSoftControl.Location = new System.Drawing.Point(0, 0); this.tabSoftControl.Name = "tabSoftControl"; this.tabSoftControl.SelectedIndex = 0; this.tabSoftControl.Size = new System.Drawing.Size(764, 412); this.tabSoftControl.TabIndex = 0; // // tabOSInfo // this.tabOSInfo.BackColor = System.Drawing.Color.Silver; this.tabOSInfo.Controls.Add(this.label1); this.tabOSInfo.Controls.Add(this.cbxMicrosoftKeys); this.tabOSInfo.Controls.Add(this.groupBox14); this.tabOSInfo.Controls.Add(this.btnShowHideProductKey); this.tabOSInfo.Controls.Add(this.treeOS); this.tabOSInfo.Controls.Add(this.label16); this.tabOSInfo.Controls.Add(this.tbxOSProductKey); this.tabOSInfo.Location = new System.Drawing.Point(4, 22); this.tabOSInfo.Name = "tabOSInfo"; this.tabOSInfo.Padding = new System.Windows.Forms.Padding(3); this.tabOSInfo.Size = new System.Drawing.Size(756, 386); this.tabOSInfo.TabIndex = 0; this.tabOSInfo.Text = "OS"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(3, 251); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(119, 13); this.label1.TabIndex = 37; this.label1.Text = "Microsoft Product Keys:"; // // cbxMicrosoftKeys // this.cbxMicrosoftKeys.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxMicrosoftKeys.FormattingEnabled = true; this.cbxMicrosoftKeys.Items.AddRange(new object[] { "N/A"}); this.cbxMicrosoftKeys.Location = new System.Drawing.Point(6, 267); this.cbxMicrosoftKeys.Name = "cbxMicrosoftKeys"; this.cbxMicrosoftKeys.Size = new System.Drawing.Size(330, 21); this.cbxMicrosoftKeys.TabIndex = 36; this.cbxMicrosoftKeys.SelectedIndexChanged += new System.EventHandler(this.CopyProductKeys); // // groupBox14 // this.groupBox14.Controls.Add(this.label19); this.groupBox14.Controls.Add(this.tbxOpersInstall); this.groupBox14.Controls.Add(this.label20); this.groupBox14.Controls.Add(this.tbxOpersDir); this.groupBox14.Controls.Add(this.label21); this.groupBox14.Controls.Add(this.tbxOpersRegistered); this.groupBox14.Controls.Add(this.label22); this.groupBox14.Controls.Add(this.tbxOpersSP); this.groupBox14.Controls.Add(this.label23); this.groupBox14.Controls.Add(this.label24); this.groupBox14.Controls.Add(this.tbxOpersVersion); this.groupBox14.Controls.Add(this.tbxOpersName); this.groupBox14.Location = new System.Drawing.Point(6, 3); this.groupBox14.Name = "groupBox14"; this.groupBox14.Size = new System.Drawing.Size(330, 189); this.groupBox14.TabIndex = 35; this.groupBox14.TabStop = false; this.groupBox14.Text = "Primary OS Info"; // // label19 // this.label19.AutoSize = true; this.label19.Location = new System.Drawing.Point(30, 152); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(63, 13); this.label19.TabIndex = 46; this.label19.Text = "Install Date:"; // // tbxOpersInstall // this.tbxOpersInstall.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOpersInstall.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOpersInstall.Location = new System.Drawing.Point(99, 149); this.tbxOpersInstall.Name = "tbxOpersInstall"; this.tbxOpersInstall.ReadOnly = true; this.tbxOpersInstall.Size = new System.Drawing.Size(161, 20); this.tbxOpersInstall.TabIndex = 45; // // label20 // this.label20.AutoSize = true; this.label20.Location = new System.Drawing.Point(23, 126); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(70, 13); this.label20.TabIndex = 44; this.label20.Text = "Windows Dir:"; // // tbxOpersDir // this.tbxOpersDir.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOpersDir.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOpersDir.Location = new System.Drawing.Point(99, 123); this.tbxOpersDir.Name = "tbxOpersDir"; this.tbxOpersDir.ReadOnly = true; this.tbxOpersDir.Size = new System.Drawing.Size(161, 20); this.tbxOpersDir.TabIndex = 43; // // label21 // this.label21.AutoSize = true; this.label21.Location = new System.Drawing.Point(7, 100); this.label21.Name = "label21"; this.label21.Size = new System.Drawing.Size(86, 13); this.label21.TabIndex = 42; this.label21.Text = "Registered User:"; // // tbxOpersRegistered // this.tbxOpersRegistered.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOpersRegistered.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOpersRegistered.Location = new System.Drawing.Point(99, 97); this.tbxOpersRegistered.Name = "tbxOpersRegistered"; this.tbxOpersRegistered.ReadOnly = true; this.tbxOpersRegistered.Size = new System.Drawing.Size(161, 20); this.tbxOpersRegistered.TabIndex = 41; // // label22 // this.label22.AutoSize = true; this.label22.Location = new System.Drawing.Point(19, 74); this.label22.Name = "label22"; this.label22.Size = new System.Drawing.Size(74, 13); this.label22.TabIndex = 40; this.label22.Text = "Service Pack:"; // // tbxOpersSP // this.tbxOpersSP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOpersSP.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOpersSP.Location = new System.Drawing.Point(99, 71); this.tbxOpersSP.Name = "tbxOpersSP"; this.tbxOpersSP.ReadOnly = true; this.tbxOpersSP.Size = new System.Drawing.Size(78, 20); this.tbxOpersSP.TabIndex = 39; // // label23 // this.label23.AutoSize = true; this.label23.Location = new System.Drawing.Point(48, 48); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(45, 13); this.label23.TabIndex = 38; this.label23.Text = "Version:"; // // label24 // this.label24.AutoSize = true; this.label24.Location = new System.Drawing.Point(55, 22); this.label24.Name = "label24"; this.label24.Size = new System.Drawing.Size(38, 13); this.label24.TabIndex = 37; this.label24.Text = "Name:"; // // tbxOpersVersion // this.tbxOpersVersion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOpersVersion.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOpersVersion.Location = new System.Drawing.Point(99, 45); this.tbxOpersVersion.Name = "tbxOpersVersion"; this.tbxOpersVersion.ReadOnly = true; this.tbxOpersVersion.Size = new System.Drawing.Size(78, 20); this.tbxOpersVersion.TabIndex = 36; // // tbxOpersName // this.tbxOpersName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOpersName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOpersName.Location = new System.Drawing.Point(99, 19); this.tbxOpersName.Name = "tbxOpersName"; this.tbxOpersName.ReadOnly = true; this.tbxOpersName.Size = new System.Drawing.Size(215, 20); this.tbxOpersName.TabIndex = 35; // // btnShowHideProductKey // this.btnShowHideProductKey.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.btnShowHideProductKey.Location = new System.Drawing.Point(241, 220); this.btnShowHideProductKey.Name = "btnShowHideProductKey"; this.btnShowHideProductKey.Size = new System.Drawing.Size(80, 23); this.btnShowHideProductKey.TabIndex = 21; this.btnShowHideProductKey.Text = "Show/Hide"; this.btnShowHideProductKey.UseVisualStyleBackColor = true; this.btnShowHideProductKey.Click += new System.EventHandler(this.ClickEventHandler); // // treeOS // this.treeOS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeOS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeOS.ForeColor = System.Drawing.SystemColors.Window; this.treeOS.Location = new System.Drawing.Point(342, 3); this.treeOS.Name = "treeOS"; this.treeOS.Size = new System.Drawing.Size(411, 380); this.treeOS.TabIndex = 19; this.treeOS.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // label16 // this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(3, 207); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(75, 13); this.label16.TabIndex = 18; this.label16.Text = "Windows Key:"; // // tbxOSProductKey // this.tbxOSProductKey.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOSProductKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOSProductKey.Location = new System.Drawing.Point(6, 223); this.tbxOSProductKey.Name = "tbxOSProductKey"; this.tbxOSProductKey.ReadOnly = true; this.tbxOSProductKey.Size = new System.Drawing.Size(229, 20); this.tbxOSProductKey.TabIndex = 17; this.tbxOSProductKey.Text = "Click Show to display."; // // tabBIOS // this.tabBIOS.BackColor = System.Drawing.Color.Silver; this.tabBIOS.Controls.Add(this.groupBox15); this.tabBIOS.Controls.Add(this.btnShowHideEmbeddedKey); this.tabBIOS.Controls.Add(this.label15); this.tabBIOS.Controls.Add(this.tbxOemId); this.tabBIOS.Controls.Add(this.label14); this.tabBIOS.Controls.Add(this.tbxEmbeddedKey); this.tabBIOS.Controls.Add(this.treeBIOS); this.tabBIOS.Location = new System.Drawing.Point(4, 22); this.tabBIOS.Name = "tabBIOS"; this.tabBIOS.Padding = new System.Windows.Forms.Padding(3); this.tabBIOS.Size = new System.Drawing.Size(756, 386); this.tabBIOS.TabIndex = 1; this.tabBIOS.Text = "BIOS"; // // groupBox15 // this.groupBox15.Controls.Add(this.label12); this.groupBox15.Controls.Add(this.tbxBIOSDate); this.groupBox15.Controls.Add(this.label11); this.groupBox15.Controls.Add(this.tbxBIOSSerial); this.groupBox15.Controls.Add(this.label10); this.groupBox15.Controls.Add(this.tbxPBIOS); this.groupBox15.Controls.Add(this.label9); this.groupBox15.Controls.Add(this.tbxBIOSSMV); this.groupBox15.Controls.Add(this.label8); this.groupBox15.Controls.Add(this.label7); this.groupBox15.Controls.Add(this.tbxBIOSName); this.groupBox15.Controls.Add(this.tbxBIOSManufacturer); this.groupBox15.Location = new System.Drawing.Point(6, 3); this.groupBox15.Name = "groupBox15"; this.groupBox15.Size = new System.Drawing.Size(330, 184); this.groupBox15.TabIndex = 23; this.groupBox15.TabStop = false; this.groupBox15.Text = "Primary BIOS Info"; // // label12 // this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(72, 152); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(33, 13); this.label12.TabIndex = 25; this.label12.Text = "Date:"; // // tbxBIOSDate // this.tbxBIOSDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxBIOSDate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxBIOSDate.Location = new System.Drawing.Point(111, 149); this.tbxBIOSDate.Name = "tbxBIOSDate"; this.tbxBIOSDate.ReadOnly = true; this.tbxBIOSDate.Size = new System.Drawing.Size(161, 20); this.tbxBIOSDate.TabIndex = 24; // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(6, 126); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(99, 13); this.label11.TabIndex = 23; this.label11.Text = "Serial/Service Tag:"; // // tbxBIOSSerial // this.tbxBIOSSerial.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxBIOSSerial.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxBIOSSerial.Location = new System.Drawing.Point(111, 123); this.tbxBIOSSerial.Name = "tbxBIOSSerial"; this.tbxBIOSSerial.ReadOnly = true; this.tbxBIOSSerial.Size = new System.Drawing.Size(161, 20); this.tbxBIOSSerial.TabIndex = 22; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(33, 100); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(72, 13); this.label10.TabIndex = 21; this.label10.Text = "Primary BIOS:"; // // tbxPBIOS // this.tbxPBIOS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxPBIOS.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxPBIOS.Location = new System.Drawing.Point(111, 97); this.tbxPBIOS.Name = "tbxPBIOS"; this.tbxPBIOS.ReadOnly = true; this.tbxPBIOS.Size = new System.Drawing.Size(75, 20); this.tbxPBIOS.TabIndex = 20; // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(54, 74); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(51, 13); this.label9.TabIndex = 19; this.label9.Text = "SMBIOS:"; // // tbxBIOSSMV // this.tbxBIOSSMV.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxBIOSSMV.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxBIOSSMV.Location = new System.Drawing.Point(111, 71); this.tbxBIOSSMV.Name = "tbxBIOSSMV"; this.tbxBIOSSMV.ReadOnly = true; this.tbxBIOSSMV.Size = new System.Drawing.Size(161, 20); this.tbxBIOSSMV.TabIndex = 18; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(67, 48); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(38, 13); this.label8.TabIndex = 17; this.label8.Text = "Name:"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(33, 22); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(73, 13); this.label7.TabIndex = 16; this.label7.Text = "Manufacturer:"; // // tbxBIOSName // this.tbxBIOSName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxBIOSName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxBIOSName.Location = new System.Drawing.Point(111, 45); this.tbxBIOSName.Name = "tbxBIOSName"; this.tbxBIOSName.ReadOnly = true; this.tbxBIOSName.Size = new System.Drawing.Size(161, 20); this.tbxBIOSName.TabIndex = 15; // // tbxBIOSManufacturer // this.tbxBIOSManufacturer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxBIOSManufacturer.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxBIOSManufacturer.Location = new System.Drawing.Point(111, 19); this.tbxBIOSManufacturer.Name = "tbxBIOSManufacturer"; this.tbxBIOSManufacturer.ReadOnly = true; this.tbxBIOSManufacturer.Size = new System.Drawing.Size(161, 20); this.tbxBIOSManufacturer.TabIndex = 14; // // btnShowHideEmbeddedKey // this.btnShowHideEmbeddedKey.Location = new System.Drawing.Point(155, 222); this.btnShowHideEmbeddedKey.Name = "btnShowHideEmbeddedKey"; this.btnShowHideEmbeddedKey.Size = new System.Drawing.Size(80, 23); this.btnShowHideEmbeddedKey.TabIndex = 22; this.btnShowHideEmbeddedKey.Text = "Show/Hide"; this.btnShowHideEmbeddedKey.UseVisualStyleBackColor = true; this.btnShowHideEmbeddedKey.Click += new System.EventHandler(this.ClickEventHandler); // // label15 // this.label15.AutoSize = true; this.label15.Location = new System.Drawing.Point(3, 192); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(97, 13); this.label15.TabIndex = 18; this.label15.Text = "OEM Identification:"; // // tbxOemId // this.tbxOemId.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxOemId.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxOemId.Location = new System.Drawing.Point(6, 208); this.tbxOemId.Name = "tbxOemId"; this.tbxOemId.ReadOnly = true; this.tbxOemId.Size = new System.Drawing.Size(132, 20); this.tbxOemId.TabIndex = 17; // // label14 // this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(3, 232); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(122, 13); this.label14.TabIndex = 16; this.label14.Text = "Embedded Product Key:"; // // tbxEmbeddedKey // this.tbxEmbeddedKey.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbxEmbeddedKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tbxEmbeddedKey.Location = new System.Drawing.Point(6, 248); this.tbxEmbeddedKey.Name = "tbxEmbeddedKey"; this.tbxEmbeddedKey.ReadOnly = true; this.tbxEmbeddedKey.Size = new System.Drawing.Size(229, 20); this.tbxEmbeddedKey.TabIndex = 15; this.tbxEmbeddedKey.Text = "Click Show to display."; // // treeBIOS // this.treeBIOS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeBIOS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeBIOS.ForeColor = System.Drawing.SystemColors.Window; this.treeBIOS.Location = new System.Drawing.Point(342, 3); this.treeBIOS.Name = "treeBIOS"; this.treeBIOS.Size = new System.Drawing.Size(411, 380); this.treeBIOS.TabIndex = 0; this.treeBIOS.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabPrograms // this.tabPrograms.BackColor = System.Drawing.Color.Silver; this.tabPrograms.Controls.Add(this.label25); this.tabPrograms.Controls.Add(this.btnIPLRefresh); this.tabPrograms.Controls.Add(this.dgvInstalledProgs); this.tabPrograms.Location = new System.Drawing.Point(4, 22); this.tabPrograms.Name = "tabPrograms"; this.tabPrograms.Size = new System.Drawing.Size(756, 386); this.tabPrograms.TabIndex = 2; this.tabPrograms.Text = "Programs"; // // label25 // this.label25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label25.AutoSize = true; this.label25.Location = new System.Drawing.Point(146, 14); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(607, 13); this.label25.TabIndex = 2; this.label25.Text = "Note: These programs only represent what is visible in both the 32-bit and 64-bit" + " registry locations for properly installed programs."; // // btnIPLRefresh // this.btnIPLRefresh.Location = new System.Drawing.Point(3, 3); this.btnIPLRefresh.Name = "btnIPLRefresh"; this.btnIPLRefresh.Size = new System.Drawing.Size(75, 23); this.btnIPLRefresh.TabIndex = 1; this.btnIPLRefresh.Text = "Refresh"; this.btnIPLRefresh.UseVisualStyleBackColor = true; this.btnIPLRefresh.Click += new System.EventHandler(this.iplRefresh_Click); // // dgvInstalledProgs // this.dgvInstalledProgs.AllowUserToAddRows = false; this.dgvInstalledProgs.AllowUserToDeleteRows = false; this.dgvInstalledProgs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dgvInstalledProgs.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dgvInstalledProgs.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvInstalledProgs.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; this.dgvInstalledProgs.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgvInstalledProgs.DefaultCellStyle = dataGridViewCellStyle11; this.dgvInstalledProgs.Location = new System.Drawing.Point(3, 30); this.dgvInstalledProgs.MultiSelect = false; this.dgvInstalledProgs.Name = "dgvInstalledProgs"; this.dgvInstalledProgs.ReadOnly = true; dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvInstalledProgs.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; this.dgvInstalledProgs.RowHeadersVisible = false; this.dgvInstalledProgs.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvInstalledProgs.Size = new System.Drawing.Size(750, 353); this.dgvInstalledProgs.TabIndex = 0; this.dgvInstalledProgs.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dgvIPL_MouseClick); // // tabDrivers // this.tabDrivers.BackColor = System.Drawing.Color.Silver; this.tabDrivers.Controls.Add(this.btnDriverRefresh); this.tabDrivers.Controls.Add(this.dgvDrivers); this.tabDrivers.Location = new System.Drawing.Point(4, 22); this.tabDrivers.Name = "tabDrivers"; this.tabDrivers.Size = new System.Drawing.Size(756, 386); this.tabDrivers.TabIndex = 5; this.tabDrivers.Text = "Drivers"; // // btnDriverRefresh // this.btnDriverRefresh.Location = new System.Drawing.Point(3, 3); this.btnDriverRefresh.Name = "btnDriverRefresh"; this.btnDriverRefresh.Size = new System.Drawing.Size(75, 23); this.btnDriverRefresh.TabIndex = 2; this.btnDriverRefresh.Text = "Refresh"; this.btnDriverRefresh.UseVisualStyleBackColor = true; this.btnDriverRefresh.Click += new System.EventHandler(this.ClickEventHandler); // // dgvDrivers // this.dgvDrivers.AllowUserToAddRows = false; this.dgvDrivers.AllowUserToDeleteRows = false; this.dgvDrivers.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dgvDrivers.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dgvDrivers.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvDrivers.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; this.dgvDrivers.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgvDrivers.DefaultCellStyle = dataGridViewCellStyle14; this.dgvDrivers.Location = new System.Drawing.Point(3, 30); this.dgvDrivers.Name = "dgvDrivers"; this.dgvDrivers.ReadOnly = true; dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvDrivers.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; this.dgvDrivers.RowHeadersVisible = false; this.dgvDrivers.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgvDrivers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvDrivers.Size = new System.Drawing.Size(750, 353); this.dgvDrivers.TabIndex = 0; // // tabNetPorts // this.tabNetPorts.BackColor = System.Drawing.Color.Silver; this.tabNetPorts.Controls.Add(this.btnNetExport); this.tabNetPorts.Controls.Add(this.btnNetRefresh); this.tabNetPorts.Controls.Add(this.cbxNPAutoRefresh); this.tabNetPorts.Controls.Add(this.label57); this.tabNetPorts.Controls.Add(this.dgvNetPorts); this.tabNetPorts.Location = new System.Drawing.Point(4, 22); this.tabNetPorts.Name = "tabNetPorts"; this.tabNetPorts.Size = new System.Drawing.Size(756, 386); this.tabNetPorts.TabIndex = 7; this.tabNetPorts.Text = "Network Ports"; // // btnNetExport // this.btnNetExport.Location = new System.Drawing.Point(3, 3); this.btnNetExport.Name = "btnNetExport"; this.btnNetExport.Size = new System.Drawing.Size(75, 23); this.btnNetExport.TabIndex = 10; this.btnNetExport.Text = "Export"; this.btnNetExport.UseVisualStyleBackColor = true; this.btnNetExport.Click += new System.EventHandler(this.ClickEventHandler); // // btnNetRefresh // this.btnNetRefresh.Location = new System.Drawing.Point(81, 3); this.btnNetRefresh.Name = "btnNetRefresh"; this.btnNetRefresh.Size = new System.Drawing.Size(75, 23); this.btnNetRefresh.TabIndex = 9; this.btnNetRefresh.Text = "Refresh"; this.btnNetRefresh.UseVisualStyleBackColor = true; this.btnNetRefresh.Click += new System.EventHandler(this.ClickEventHandler); // // cbxNPAutoRefresh // this.cbxNPAutoRefresh.AutoSize = true; this.cbxNPAutoRefresh.Location = new System.Drawing.Point(162, 7); this.cbxNPAutoRefresh.Name = "cbxNPAutoRefresh"; this.cbxNPAutoRefresh.Size = new System.Drawing.Size(94, 17); this.cbxNPAutoRefresh.TabIndex = 8; this.cbxNPAutoRefresh.Text = "Auto Refresh?"; this.cbxNPAutoRefresh.UseVisualStyleBackColor = true; this.cbxNPAutoRefresh.CheckedChanged += new System.EventHandler(this.NetPortAutoRefresh); // // label57 // this.label57.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label57.AutoSize = true; this.label57.Location = new System.Drawing.Point(546, 13); this.label57.Name = "label57"; this.label57.Size = new System.Drawing.Size(207, 13); this.label57.TabIndex = 7; this.label57.Text = "Note: If nothing is visible, just click refresh."; // // dgvNetPorts // this.dgvNetPorts.AllowUserToAddRows = false; this.dgvNetPorts.AllowUserToDeleteRows = false; this.dgvNetPorts.AllowUserToResizeRows = false; this.dgvNetPorts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dgvNetPorts.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dgvNetPorts.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvNetPorts.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16; this.dgvNetPorts.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgvNetPorts.DefaultCellStyle = dataGridViewCellStyle17; this.dgvNetPorts.Location = new System.Drawing.Point(3, 30); this.dgvNetPorts.Name = "dgvNetPorts"; this.dgvNetPorts.ReadOnly = true; dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvNetPorts.RowHeadersDefaultCellStyle = dataGridViewCellStyle18; this.dgvNetPorts.RowHeadersVisible = false; this.dgvNetPorts.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgvNetPorts.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvNetPorts.Size = new System.Drawing.Size(750, 353); this.dgvNetPorts.TabIndex = 1; this.dgvNetPorts.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dgvNetPort_MouseClick); // // tabAccount // this.tabAccount.BackColor = System.Drawing.Color.Silver; this.tabAccount.Controls.Add(this.btnAccountExport); this.tabAccount.Controls.Add(this.treeACTs); this.tabAccount.Location = new System.Drawing.Point(4, 22); this.tabAccount.Name = "tabAccount"; this.tabAccount.Size = new System.Drawing.Size(756, 386); this.tabAccount.TabIndex = 4; this.tabAccount.Text = "User Accounts"; // // btnAccountExport // this.btnAccountExport.Location = new System.Drawing.Point(3, 3); this.btnAccountExport.Name = "btnAccountExport"; this.btnAccountExport.Size = new System.Drawing.Size(96, 23); this.btnAccountExport.TabIndex = 1; this.btnAccountExport.Text = "Export To CSV"; this.btnAccountExport.UseVisualStyleBackColor = true; this.btnAccountExport.Click += new System.EventHandler(this.ClickEventHandler); // // treeACTs // this.treeACTs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.treeACTs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeACTs.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.treeACTs.ForeColor = System.Drawing.Color.White; this.treeACTs.Location = new System.Drawing.Point(3, 30); this.treeACTs.Name = "treeACTs"; this.treeACTs.Size = new System.Drawing.Size(750, 353); this.treeACTs.TabIndex = 0; this.treeACTs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.NodeClicks); // // tabDMA // this.tabDMA.BackColor = System.Drawing.Color.Silver; this.tabDMA.Controls.Add(this.tableLayoutPanel1); this.tabDMA.Location = new System.Drawing.Point(4, 22); this.tabDMA.Name = "tabDMA"; this.tabDMA.Size = new System.Drawing.Size(756, 386); this.tabDMA.TabIndex = 3; this.tabDMA.Text = "DMA / IRQs / TPs"; // // tableLayoutPanel1 // this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Controls.Add(this.label18, 0, 0); this.tableLayoutPanel1.Controls.Add(this.treeIRQ, 0, 1); this.tableLayoutPanel1.Controls.Add(this.treeTPs, 1, 1); this.tableLayoutPanel1.Controls.Add(this.label13, 1, 0); this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(749, 379); this.tableLayoutPanel1.TabIndex = 5; // // label18 // this.label18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(3, 7); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(34, 13); this.label18.TabIndex = 5; this.label18.Text = "IRQs:"; // // treeIRQ // this.treeIRQ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeIRQ.Dock = System.Windows.Forms.DockStyle.Fill; this.treeIRQ.ForeColor = System.Drawing.SystemColors.Window; this.treeIRQ.Location = new System.Drawing.Point(3, 23); this.treeIRQ.Name = "treeIRQ"; this.treeIRQ.Size = new System.Drawing.Size(368, 353); this.treeIRQ.TabIndex = 6; // // treeTPs // this.treeTPs.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.treeTPs.Dock = System.Windows.Forms.DockStyle.Fill; this.treeTPs.ForeColor = System.Drawing.SystemColors.Window; this.treeTPs.Location = new System.Drawing.Point(377, 23); this.treeTPs.Name = "treeTPs"; this.treeTPs.Size = new System.Drawing.Size(369, 353); this.treeTPs.TabIndex = 7; // // label13 // this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(377, 7); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(340, 13); this.label13.TabIndex = 3; this.label13.Text = "Thermal Probes - Readings only appear if your motherboard supports it."; // // menu_NetPort // this.menu_NetPort.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.npKillProcess, this.npKillProcessAndChildren}); this.menu_NetPort.Name = "menu_NetPort"; this.menu_NetPort.Size = new System.Drawing.Size(193, 48); // // npKillProcess // this.npKillProcess.Name = "npKillProcess"; this.npKillProcess.Size = new System.Drawing.Size(192, 22); this.npKillProcess.Text = "Kill Process"; this.npKillProcess.Click += new System.EventHandler(this.npKillProcess_Click); // // npKillProcessAndChildren // this.npKillProcessAndChildren.Name = "npKillProcessAndChildren"; this.npKillProcessAndChildren.Size = new System.Drawing.Size(192, 22); this.npKillProcessAndChildren.Text = "Kill Process + Children"; this.npKillProcessAndChildren.Click += new System.EventHandler(this.npKillProcessAndChildren_Click); // // menu_IPL // this.menu_IPL.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.iplUninstall}); this.menu_IPL.Name = "contextMenuStrip1"; this.menu_IPL.Size = new System.Drawing.Size(154, 26); // // iplUninstall // this.iplUninstall.Name = "iplUninstall"; this.iplUninstall.Size = new System.Drawing.Size(153, 22); this.iplUninstall.Text = "Try to Uninstall"; this.iplUninstall.Click += new System.EventHandler(this.iplUninstall_Click); // // llByteMeDev // this.llByteMeDev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.llByteMeDev.AutoSize = true; this.llByteMeDev.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.llByteMeDev.LinkColor = System.Drawing.Color.White; this.llByteMeDev.Location = new System.Drawing.Point(697, 472); this.llByteMeDev.Name = "llByteMeDev"; this.llByteMeDev.Size = new System.Drawing.Size(87, 13); this.llByteMeDev.TabIndex = 4; this.llByteMeDev.TabStop = true; this.llByteMeDev.Text = "HouseofCat.io"; this.llByteMeDev.Click += new System.EventHandler(this.ClickEventHandler); // // lbCPUUsage // this.lbCPUUsage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lbCPUUsage.AutoSize = true; this.lbCPUUsage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbCPUUsage.ForeColor = System.Drawing.SystemColors.Control; this.lbCPUUsage.Location = new System.Drawing.Point(13, 473); this.lbCPUUsage.Name = "lbCPUUsage"; this.lbCPUUsage.Size = new System.Drawing.Size(56, 13); this.lbCPUUsage.TabIndex = 5; this.lbCPUUsage.Text = "CPU: 0%"; // // lbRamUsage // this.lbRamUsage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lbRamUsage.AutoSize = true; this.lbRamUsage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbRamUsage.ForeColor = System.Drawing.SystemColors.Control; this.lbRamUsage.Location = new System.Drawing.Point(73, 473); this.lbRamUsage.Name = "lbRamUsage"; this.lbRamUsage.Size = new System.Drawing.Size(58, 13); this.lbRamUsage.TabIndex = 6; this.lbRamUsage.Text = "RAM: 0%"; // // lblLatestVersion // this.lblLatestVersion.ActiveLinkColor = System.Drawing.Color.Yellow; this.lblLatestVersion.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.lblLatestVersion.AutoSize = true; this.lblLatestVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblLatestVersion.LinkColor = System.Drawing.Color.White; this.lblLatestVersion.Location = new System.Drawing.Point(321, 472); this.lblLatestVersion.Name = "lblLatestVersion"; this.lblLatestVersion.Size = new System.Drawing.Size(108, 13); this.lblLatestVersion.TabIndex = 8; this.lblLatestVersion.TabStop = true; this.lblLatestVersion.Text = "Update Available!"; this.lblLatestVersion.Click += new System.EventHandler(this.ClickEventHandler); // // GUI // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.ClientSize = new System.Drawing.Size(796, 489); this.Controls.Add(this.lblLatestVersion); this.Controls.Add(this.lbRamUsage); this.Controls.Add(this.lbCPUUsage); this.Controls.Add(this.llByteMeDev); this.Controls.Add(this.lblVersion); this.Controls.Add(this.tabMainTab); this.Controls.Add(this.menuStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; this.Name = "GUI"; this.Text = "WOLF - Windows Operations & Library of Functions"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.cleanShutdown); this.Load += new System.EventHandler(this.GUI_Load); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.tabLog.ResumeLayout(false); this.tabLog.PerformLayout(); this.tabTools.ResumeLayout(false); this.tabToolGroups.ResumeLayout(false); this.toolsPage1.ResumeLayout(false); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); this.groupBox18.ResumeLayout(false); this.toolsPage2.ResumeLayout(false); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.toolsPage3.ResumeLayout(false); this.groupBox7.ResumeLayout(false); this.groupBox7.PerformLayout(); this.toolsPage4.ResumeLayout(false); this.toolsPage4.PerformLayout(); this.groupBox8.ResumeLayout(false); this.groupBox8.PerformLayout(); this.groupBox9.ResumeLayout(false); this.toolsPage5.ResumeLayout(false); this.toolsPage5.PerformLayout(); this.tabDomain.ResumeLayout(false); this.tabDomainWS.ResumeLayout(false); this.tabDomainWS.PerformLayout(); this.tabDomainIPRQ.ResumeLayout(false); this.tabDomainIPRQ.PerformLayout(); this.tabDomainLicensing.ResumeLayout(false); this.tabDomainLicensing.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvLicenseQueries)).EndInit(); this.tabSMTPTest.ResumeLayout(false); this.groupBox20.ResumeLayout(false); this.groupBox20.PerformLayout(); this.toolsPage6.ResumeLayout(false); this.groupBox23.ResumeLayout(false); this.groupBox22.ResumeLayout(false); this.groupBox21.ResumeLayout(false); this.gbxTelemetryStatus.ResumeLayout(false); this.gbxTelemetryStatus.PerformLayout(); this.toolsPage7.ResumeLayout(false); this.tableLayoutPanel2.ResumeLayout(false); this.tabHard.ResumeLayout(false); this.tabHW.ResumeLayout(false); this.tabHW_CPU.ResumeLayout(false); this.groupBox11.ResumeLayout(false); this.groupBox11.PerformLayout(); this.tabHW_MEM.ResumeLayout(false); this.tabHW_MEM.PerformLayout(); this.groupBox13.ResumeLayout(false); this.groupBox13.PerformLayout(); this.groupBox12.ResumeLayout(false); this.groupBox12.PerformLayout(); this.tabHW_MB.ResumeLayout(false); this.groupBox19.ResumeLayout(false); this.groupBox19.PerformLayout(); this.tabHW_DRIVES.ResumeLayout(false); this.tlpDrives.ResumeLayout(false); this.tlpDrives.PerformLayout(); this.tabHW_GPU.ResumeLayout(false); this.groupBox10.ResumeLayout(false); this.groupBox10.PerformLayout(); this.tabHW_SND.ResumeLayout(false); this.tabHW_SND.PerformLayout(); this.groupBox17.ResumeLayout(false); this.groupBox17.PerformLayout(); this.tabHW_NIC.ResumeLayout(false); this.tlpNICs.ResumeLayout(false); this.tlpNICs.PerformLayout(); this.tabHW_DISPS.ResumeLayout(false); this.groupBox16.ResumeLayout(false); this.groupBox16.PerformLayout(); this.tabMain.ResumeLayout(false); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.tabMainTab.ResumeLayout(false); this.tabSoft.ResumeLayout(false); this.tabSoftControl.ResumeLayout(false); this.tabOSInfo.ResumeLayout(false); this.tabOSInfo.PerformLayout(); this.groupBox14.ResumeLayout(false); this.groupBox14.PerformLayout(); this.tabBIOS.ResumeLayout(false); this.tabBIOS.PerformLayout(); this.groupBox15.ResumeLayout(false); this.groupBox15.PerformLayout(); this.tabPrograms.ResumeLayout(false); this.tabPrograms.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvInstalledProgs)).EndInit(); this.tabDrivers.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvDrivers)).EndInit(); this.tabNetPorts.ResumeLayout(false); this.tabNetPorts.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvNetPorts)).EndInit(); this.tabAccount.ResumeLayout(false); this.tabDMA.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.menu_NetPort.ResumeLayout(false); this.menu_IPL.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label lblVersion; private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem mainToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem preferencesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem shorcutsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem launchCMDAsAdminToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem releaseRenewIPToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem controlPanelToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsGeneralToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsUpdateToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsUserAccountsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsSecurityToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsDefenderToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsFirewallToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsAdminToolsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem computerManagementToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem deviceManagerToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem eventViewerToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem localSecurityPolicyToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem servicesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem taskSchedulerToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem advFirewallToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem systemConfigurationToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsNetworkSharingToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsHardwareToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem displayToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem devicesPrintersToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem keyboardToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem mouseMenu; private System.Windows.Forms.ToolStripMenuItem soundToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem windowsPowerToolStripMenuItem; private System.Windows.Forms.ToolTip WolfToolTips; private System.Windows.Forms.ToolStripMenuItem networkAdaptersToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem sysfilecheckTSM; private System.Windows.Forms.ToolStripMenuItem openSFCLogToolStripMenuItem; private System.Windows.Forms.TabPage tabLog; private System.Windows.Forms.TextBox tbxLog; private System.Windows.Forms.TabPage tabTools; private System.Windows.Forms.TabControl tabToolGroups; private System.Windows.Forms.TabPage toolsPage1; private System.Windows.Forms.GroupBox groupBox6; private System.Windows.Forms.Button btnRepairVSS; private System.Windows.Forms.Button btnSFCLog; private System.Windows.Forms.Button btnHiberDisable; private System.Windows.Forms.Button btnHiberEnable; private System.Windows.Forms.Label lblHiberFile; private System.Windows.Forms.Button btnSysFileCheck; private System.Windows.Forms.Button btnCMDAdmin; private System.Windows.Forms.TabPage toolsPage2; private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.Button btnFlushDNS; private System.Windows.Forms.Button btnIPREN; private System.Windows.Forms.TabPage tabHard; private System.Windows.Forms.TabControl tabHW; private System.Windows.Forms.TabPage tabHW_MEM; private System.Windows.Forms.TreeView treeMEM; private System.Windows.Forms.Label lblMEM; private System.Windows.Forms.TabPage tabHW_NIC; private System.Windows.Forms.TabPage tabMain; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.Label lblNetVersion; private System.Windows.Forms.TextBox tbxNetVersion; private System.Windows.Forms.TextBox tbxLastBootUp; private System.Windows.Forms.TextBox tbxOSInstallDate; private System.Windows.Forms.TextBox tbxOSVersion; private System.Windows.Forms.TextBox tbxOSName; private System.Windows.Forms.Label lblLastBootUp; private System.Windows.Forms.Label lblOSInstallDate; private System.Windows.Forms.Label lblOSVersion; private System.Windows.Forms.Label lblOSName; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.TextBox tbxCompanyName; private System.Windows.Forms.TextBox tbxCompName; private System.Windows.Forms.TextBox tbxUserName; private System.Windows.Forms.Label lblCompanyName; private System.Windows.Forms.Label lblCompName; private System.Windows.Forms.Label lblUserName; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.Label lblActCon; private System.Windows.Forms.TextBox tbxExtIP; private System.Windows.Forms.TextBox tbxIPv6; private System.Windows.Forms.TextBox tbxIPv4; private System.Windows.Forms.TextBox tbxDomainName; private System.Windows.Forms.Button btnGrabExternal; private System.Windows.Forms.TreeView treeCONs; private System.Windows.Forms.Label lblExtIP; private System.Windows.Forms.Label lblIPv6; private System.Windows.Forms.Label lblIPv4; private System.Windows.Forms.Label lblDomainName; private System.Windows.Forms.TabControl tabMainTab; private System.Windows.Forms.ToolStripMenuItem repairVSSMenu; private System.Windows.Forms.ToolStripMenuItem flushDNSMenu; private System.Windows.Forms.TabPage toolsPage3; private System.Windows.Forms.GroupBox groupBox7; private System.Windows.Forms.Label lblIntelHTTBrake; private System.Windows.Forms.Button btnCPD; private System.Windows.Forms.TextBox tbxCoreParking; private System.Windows.Forms.Button btnCPE; private System.Windows.Forms.Label lblRegNote; private System.Windows.Forms.Button btnUACD; private System.Windows.Forms.TextBox tbxUAC; private System.Windows.Forms.Button btnUACE; private System.Windows.Forms.Label lblUAC; private System.Windows.Forms.Button btnHPETD; private System.Windows.Forms.Button btnHPETE; private System.Windows.Forms.Label lblHPET; private System.Windows.Forms.TextBox tbxGenDrive; private System.Windows.Forms.Label label3; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.TextBox tbxGenRAM; private System.Windows.Forms.TextBox tbxGenCPU; private System.Windows.Forms.Label lblRAM; private System.Windows.Forms.Label lblCPU; private System.Windows.Forms.ToolStripMenuItem linksToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem knownIssueToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem linkToOverclockNetThreadToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem linkToFacebookPageToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem linkToSTEAMPageToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem linkToBYTEMeDevBlogToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem contributorsToolStripMenuItem; private System.Windows.Forms.TabPage toolsPage4; private System.Windows.Forms.GroupBox groupBox8; private System.Windows.Forms.CheckedListBox checkedListBox1; private System.Windows.Forms.CheckedListBox otherOptions; private System.Windows.Forms.Button btnDefrag; private System.Windows.Forms.Label lblChkOpt; private System.Windows.Forms.CheckedListBox ntfsOptions; private System.Windows.Forms.ComboBox fsBox; private System.Windows.Forms.Button btnCheckDrive; private System.Windows.Forms.TextBox tbxLocalization; private System.Windows.Forms.Label lblLocal; private System.Windows.Forms.Button btnDisableFire; private System.Windows.Forms.Button btnEnableFire; private System.Windows.Forms.Label label4; private System.Windows.Forms.TextBox tbxFirewallEnabled; private System.Windows.Forms.TabPage tabSoft; private System.Windows.Forms.TabControl tabSoftControl; private System.Windows.Forms.TabPage tabOSInfo; private System.Windows.Forms.TabPage tabBIOS; private System.Windows.Forms.TabPage toolsPage5; private System.Windows.Forms.Button btnUACRemoteDisable; private System.Windows.Forms.TextBox tbxUACRemoteStatus; private System.Windows.Forms.Button btnUACRemoteEnable; private System.Windows.Forms.Label label5; private System.Windows.Forms.Button btnAdvCleanupRun; private System.Windows.Forms.Button btnAdvCleanupSet; private System.Windows.Forms.ComboBox drvBox; private System.Windows.Forms.Label lblDrive; private System.Windows.Forms.GroupBox groupBox9; private System.Windows.Forms.TreeView treeBIOS; private System.Windows.Forms.Label label14; private System.Windows.Forms.TextBox tbxEmbeddedKey; private System.Windows.Forms.Label label15; private System.Windows.Forms.TextBox tbxOemId; private System.Windows.Forms.Label label16; private System.Windows.Forms.TextBox tbxOSProductKey; private System.Windows.Forms.TreeView treeOS; private System.Windows.Forms.Button btnShowHideProductKey; private System.Windows.Forms.Button btnShowHideEmbeddedKey; private System.Windows.Forms.TabPage tabPrograms; private System.Windows.Forms.DataGridView dgvInstalledProgs; private System.Windows.Forms.ContextMenuStrip menu_IPL; private System.Windows.Forms.ToolStripMenuItem iplUninstall; private System.Windows.Forms.Button btnIPLRefresh; private System.Windows.Forms.Label label25; private System.Windows.Forms.TabControl tabDomain; private System.Windows.Forms.TabPage tabDomainWS; private System.Windows.Forms.TabPage tabDomainIPRQ; private System.Windows.Forms.Label label28; private System.Windows.Forms.Label label27; private System.Windows.Forms.Label label26; private System.Windows.Forms.TextBox tbxDomainUserName; private System.Windows.Forms.TextBox tbxDomainName2; private System.Windows.Forms.LinkLabel llByteMeDev; private System.Windows.Forms.TextBox tbxWSName; private System.Windows.Forms.TreeView treeWS; private System.Windows.Forms.Button btnWSQuery; private System.Windows.Forms.Label label29; private System.Windows.Forms.CheckBox cbxROS; private System.Windows.Forms.CheckBox cbxRMAC; private System.Windows.Forms.CheckBox cbxRCPU; private System.Windows.Forms.CheckBox cbxRIP; private System.Windows.Forms.CheckBox cbxRAUSERS; private System.Windows.Forms.CheckBox cbxRUSER; private System.Windows.Forms.CheckBox cbxRBIOS; private System.Windows.Forms.Button btnRCLEAR; private System.Windows.Forms.ToolStripMenuItem sfcToolStrip; private System.Windows.Forms.TabPage tabHW_GPU; private System.Windows.Forms.GroupBox groupBox10; private System.Windows.Forms.Label label31; private System.Windows.Forms.TextBox tbxGMODEL; private System.Windows.Forms.Label label30; private System.Windows.Forms.TextBox tbxGVEND; private System.Windows.Forms.TreeView treeGPUs; private System.Windows.Forms.Label label34; private System.Windows.Forms.TextBox tbxGDRIVER; private System.Windows.Forms.Label label33; private System.Windows.Forms.TextBox tbxGVRAM; private System.Windows.Forms.Label label36; private System.Windows.Forms.TextBox tbxGINFSEC; private System.Windows.Forms.Label label35; private System.Windows.Forms.TextBox tbxGINF; private System.Windows.Forms.Label label32; private System.Windows.Forms.TextBox tbxGDRIVERFILES; private System.Windows.Forms.Label label37; private System.Windows.Forms.TextBox tbxGOUT; private System.Windows.Forms.CheckBox cbxRGPU; private System.Windows.Forms.TabPage tabDMA; private System.Windows.Forms.GroupBox groupBox13; private System.Windows.Forms.TextBox tbxVIRTAvail; private System.Windows.Forms.TextBox tbxPAGEAvailPerc; private System.Windows.Forms.TextBox tbxVIRTAvailPerc; private System.Windows.Forms.TextBox tbxMEMAvailPerc; private System.Windows.Forms.TextBox tbxMEMTotal; private System.Windows.Forms.TextBox tbxMEMAvail; private System.Windows.Forms.TextBox tbxMaxProcessSize; private System.Windows.Forms.TextBox tbxPageFileSize; private System.Windows.Forms.TextBox tbxPageFileFree; private System.Windows.Forms.TextBox tbxVIRTTotal; private System.Windows.Forms.Label lblMaxProcess; private System.Windows.Forms.Label lblMEMTotSize; private System.Windows.Forms.Label lblPageFileUsed; private System.Windows.Forms.Label lblMEMAvail; private System.Windows.Forms.Label lblPageFileSize; private System.Windows.Forms.Label lblVirtAvail; private System.Windows.Forms.Label lblTotVirt; private System.Windows.Forms.GroupBox groupBox12; private System.Windows.Forms.TextBox tbxMEMManu; private System.Windows.Forms.TextBox tbxMEMSpeed; private System.Windows.Forms.Label lblMEMMan; private System.Windows.Forms.Label lblMEMSpeed; private System.Windows.Forms.TabPage tabAccount; private System.Windows.Forms.GroupBox groupBox14; private System.Windows.Forms.Label label19; private System.Windows.Forms.TextBox tbxOpersInstall; private System.Windows.Forms.Label label20; private System.Windows.Forms.TextBox tbxOpersDir; private System.Windows.Forms.Label label21; private System.Windows.Forms.TextBox tbxOpersRegistered; private System.Windows.Forms.Label label22; private System.Windows.Forms.TextBox tbxOpersSP; private System.Windows.Forms.Label label23; private System.Windows.Forms.Label label24; private System.Windows.Forms.TextBox tbxOpersVersion; private System.Windows.Forms.TextBox tbxOpersName; private System.Windows.Forms.GroupBox groupBox15; private System.Windows.Forms.Label label12; private System.Windows.Forms.TextBox tbxBIOSDate; private System.Windows.Forms.Label label11; private System.Windows.Forms.TextBox tbxBIOSSerial; private System.Windows.Forms.Label label10; private System.Windows.Forms.TextBox tbxPBIOS; private System.Windows.Forms.Label label9; private System.Windows.Forms.TextBox tbxBIOSSMV; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label7; private System.Windows.Forms.TextBox tbxBIOSName; private System.Windows.Forms.TextBox tbxBIOSManufacturer; private System.Windows.Forms.TreeView treeACTs; private System.Windows.Forms.TabPage tabHW_DISPS; private System.Windows.Forms.TreeView treeDISPS; private System.Windows.Forms.Label label13; private System.Windows.Forms.GroupBox groupBox16; private System.Windows.Forms.Label lbl1; private System.Windows.Forms.TextBox tbxDPNP; private System.Windows.Forms.TextBox tbxDSTATS; private System.Windows.Forms.Label label43; private System.Windows.Forms.TextBox tbxDID; private System.Windows.Forms.Label label42; private System.Windows.Forms.TextBox tbxDTYPE; private System.Windows.Forms.Label label41; private System.Windows.Forms.TextBox tbxDMAN; private System.Windows.Forms.Label label40; private System.Windows.Forms.TextBox tbxDMON; private System.Windows.Forms.Label label39; private System.Windows.Forms.TabPage tabHW_SND; private System.Windows.Forms.GroupBox groupBox17; private System.Windows.Forms.Label label49; private System.Windows.Forms.TextBox tbxSMANU; private System.Windows.Forms.Label label50; private System.Windows.Forms.TextBox tbxSPROC; private System.Windows.Forms.Label label51; private System.Windows.Forms.TextBox tbxSVEN; private System.Windows.Forms.TreeView treeSDs; private System.Windows.Forms.Label label46; private System.Windows.Forms.TextBox tbxIPEndFour; private System.Windows.Forms.TextBox tbxIPEndThree; private System.Windows.Forms.TextBox tbxIPEndTwo; private System.Windows.Forms.TextBox tbxIPEndOne; private System.Windows.Forms.TextBox tbxIPStartFour; private System.Windows.Forms.TextBox tbxIPStartThree; private System.Windows.Forms.TextBox tbxIPStartTwo; private System.Windows.Forms.CheckBox cbxRangeGPU; private System.Windows.Forms.Button btnRangeClear; private System.Windows.Forms.CheckBox cbxRangeBIOS; private System.Windows.Forms.CheckBox cbxRangeUSERS; private System.Windows.Forms.CheckBox cbxRangeUSER; private System.Windows.Forms.CheckBox cbxRangeIP; private System.Windows.Forms.CheckBox cbxRangeCPU; private System.Windows.Forms.CheckBox cbxRangeMAC; private System.Windows.Forms.CheckBox cbxRangeOS; private System.Windows.Forms.Label label45; private System.Windows.Forms.Button btnRangeQuery; private System.Windows.Forms.TextBox tbxIPStartOne; private System.Windows.Forms.TreeView treeIPRange; private System.Windows.Forms.Label label44; private System.Windows.Forms.Button btnRestartWMI; private System.Windows.Forms.Button btnStartWinMemTest; private System.Windows.Forms.GroupBox groupBox18; private System.Windows.Forms.Button btnStartFileSigVer; private System.Windows.Forms.TabPage tabDrivers; private System.Windows.Forms.Button btnDriverQuery; private System.Windows.Forms.Button btnDriverQueryVerbose; private System.Windows.Forms.Button btnDriverRefresh; private System.Windows.Forms.DataGridView dgvDrivers; private System.Windows.Forms.Button btnOpenFilesDisabled; private System.Windows.Forms.Button btnOpenFiles; private System.Windows.Forms.Button btnResetCMDSize; private System.Windows.Forms.Button btnRegEdit; private System.Windows.Forms.Button btnDefenderDisable; private System.Windows.Forms.Button btnDefenderEnable; private System.Windows.Forms.TextBox tbxDefenderStatus; private System.Windows.Forms.Label label47; private System.Windows.Forms.Button btnDisableDEP; private System.Windows.Forms.Button btnEnableDEP; private System.Windows.Forms.Label label48; private System.Windows.Forms.Button btnOpenFileSig; private System.Windows.Forms.Button btnRangeExport; private System.Windows.Forms.Label lbRangeTotalTime; private System.Windows.Forms.Label lbRangePercent; private System.Windows.Forms.Button btnDxCpl; private System.Windows.Forms.Button btnDxDiag; private System.Windows.Forms.Button btnSharedFolderMan; private System.Windows.Forms.Button btnPolicyEditor; private System.Windows.Forms.Button btnGPUpdate; private System.Windows.Forms.Button btnManageLUGs; private System.Windows.Forms.Button btnMSINFO32; private System.Windows.Forms.Button btnODBCA; private System.Windows.Forms.Button btnPerfMon; private System.Windows.Forms.Button btnPrintManager; private System.Windows.Forms.Button btnResMon; private System.Windows.Forms.Button btnRSOP; private System.Windows.Forms.Button btnLocalSec; private System.Windows.Forms.Button btnQuickConfigRM; private System.Windows.Forms.Button btnWinRemote; private System.Windows.Forms.Button btnWMIMgmt; private System.Windows.Forms.Button btnPrintMigration; private System.Windows.Forms.Button btnWindowsFeatures; private System.Windows.Forms.ToolStripMenuItem mSTSCToolStripMenuItem; private System.Windows.Forms.Button btnMSTSC; private System.Windows.Forms.Button btnRemoteAssistance; private System.Windows.Forms.Button btnMSCONFIG; private System.Windows.Forms.Button btnWMSRT; private System.Windows.Forms.Label lbCPUUsage; private System.Windows.Forms.Label lbRamUsage; private System.Windows.Forms.ToolStripMenuItem changeLogToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem updatesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; private System.Windows.Forms.Button btnOracle; private System.Windows.Forms.TabPage tabHW_MB; private System.Windows.Forms.TreeView treeMB; private System.Windows.Forms.ToolStripMenuItem runOracleToolStripMenuItem; private System.Windows.Forms.Button btnRepairWMI; private System.Windows.Forms.ToolStripMenuItem linksToolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem lnkNFRT; private System.Windows.Forms.ToolStripMenuItem lnkWMIDU; private System.Windows.Forms.Button btnAccountExport; private System.Windows.Forms.GroupBox groupBox19; private System.Windows.Forms.Label label55; private System.Windows.Forms.Label label54; private System.Windows.Forms.Label label53; private System.Windows.Forms.Label label52; private System.Windows.Forms.TextBox tbxMBSerial; private System.Windows.Forms.TextBox tbxMBManu; private System.Windows.Forms.TextBox tbxMBVersion; private System.Windows.Forms.TextBox tbxMBName; private System.Windows.Forms.Label label56; private System.Windows.Forms.TextBox tbxMBPID; private System.Windows.Forms.TabPage tabNetPorts; private System.Windows.Forms.DataGridView dgvNetPorts; private System.Windows.Forms.ContextMenuStrip menu_NetPort; private System.Windows.Forms.ToolStripMenuItem npKillProcess; private System.Windows.Forms.ToolStripMenuItem npKillProcessAndChildren; private System.Windows.Forms.Label label57; private System.Windows.Forms.CheckBox cbxNPAutoRefresh; private System.Windows.Forms.Label label1; private System.Windows.Forms.ComboBox cbxMicrosoftKeys; private System.Windows.Forms.TabPage tabHW_DRIVES; private System.Windows.Forms.TableLayoutPanel tlpDrives; private System.Windows.Forms.Label lblPart; private System.Windows.Forms.Label lblPhys; private System.Windows.Forms.Label lblLog; private System.Windows.Forms.Button btnSNR; private System.Windows.Forms.TextBox tbxHPETStatus; private System.Windows.Forms.TextBox tbxHiberSize; private System.Windows.Forms.TextBox tbxDEPStatus; private System.Windows.Forms.Button btnNetRefresh; private System.Windows.Forms.Button btnNetExport; private System.Windows.Forms.LinkLabel lblLatestVersion; private System.Windows.Forms.TableLayoutPanel tlpNICs; private System.Windows.Forms.Label lblPhysicalAdapters; private System.Windows.Forms.TreeView treeVNICS; private System.Windows.Forms.TreeView treeNICS; private System.Windows.Forms.Label lblVirtualAdapters; private System.Windows.Forms.TabPage tabHW_CPU; private System.Windows.Forms.GroupBox groupBox11; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox tbxCPUSocket; private System.Windows.Forms.TextBox tbxCPURole; private System.Windows.Forms.Label lblRole; private System.Windows.Forms.TextBox tbxCPURevision; private System.Windows.Forms.Label lblCPURevision; private System.Windows.Forms.TextBox tbxCPUL2; private System.Windows.Forms.TextBox tbxCPUL3; private System.Windows.Forms.TextBox tbxCPUAddWidth; private System.Windows.Forms.TextBox tbxCPUArch; private System.Windows.Forms.TextBox tbxCPUFreq; private System.Windows.Forms.TextBox tbxCPULP; private System.Windows.Forms.TextBox tbxCPUCores; private System.Windows.Forms.TextBox tbxCPUStatus; private System.Windows.Forms.TextBox tbxCPUCaption; private System.Windows.Forms.TextBox tbxCPUFamily; private System.Windows.Forms.TextBox tbxCPUManufacturer; private System.Windows.Forms.TextBox tbxCPUName; private System.Windows.Forms.Label lblCPUL3; private System.Windows.Forms.Label lblCPUL2; private System.Windows.Forms.Label lblCPUFreq; private System.Windows.Forms.Label lblCPUName; private System.Windows.Forms.Label lblCPUMan; private System.Windows.Forms.Label lblCPULP; private System.Windows.Forms.Label lblCPUFam; private System.Windows.Forms.Label lblCPUCaption; private System.Windows.Forms.Label lblCPUCores; private System.Windows.Forms.Label lblCPUArch; private System.Windows.Forms.Label lblCPUAddressWidth; private System.Windows.Forms.Label lblCPUStatus; private System.Windows.Forms.Label lblCPUTI; private System.Windows.Forms.TreeView treePROCS; private System.Windows.Forms.TreeView treePARTs; private System.Windows.Forms.TreeView treePDRVs; private System.Windows.Forms.TreeView treeLDRVs; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.Label label18; private System.Windows.Forms.TreeView treeIRQ; private System.Windows.Forms.TreeView treeTPs; private System.Windows.Forms.Button btnACI; private System.Windows.Forms.TabPage toolsPage7; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; private System.Windows.Forms.RichTextBox rtbPOSH_ConsoleInput; private System.Windows.Forms.RichTextBox rtbPOSH_ConsoleDisplay; private System.Windows.Forms.Button btnLaunchVanillaPOSH; private System.Windows.Forms.Button btnLaunchWindowsPOSH; private System.Windows.Forms.Button btnLaunchRC1POSH; private System.Windows.Forms.Button btnLaunchRC2POSH; private System.Windows.Forms.Button btnRemoteSigned; private System.Windows.Forms.TabPage tabDomainLicensing; private System.Windows.Forms.Button btnQueryLicense; private System.Windows.Forms.Label label6; private System.Windows.Forms.TextBox tbxLMachineName; private System.Windows.Forms.DataGridView dgvLicenseQueries; private System.Windows.Forms.Button btnLicenseClear; private System.Windows.Forms.DataGridViewTextBoxColumn col0; private System.Windows.Forms.DataGridViewTextBoxColumn col1; private System.Windows.Forms.DataGridViewTextBoxColumn col2; private System.Windows.Forms.DataGridViewTextBoxColumn col4; private System.Windows.Forms.DataGridViewTextBoxColumn col5; private System.Windows.Forms.Button btnExportLQs; private System.Windows.Forms.TabPage tabSMTPTest; private System.Windows.Forms.GroupBox groupBox20; private System.Windows.Forms.TextBox tbxRelay; private System.Windows.Forms.TextBox tbxSUser; private System.Windows.Forms.Label label17; private System.Windows.Forms.Label label38; private System.Windows.Forms.MaskedTextBox tbxSPassword; private System.Windows.Forms.CheckBox checkCredentials; private System.Windows.Forms.Label label58; private System.Windows.Forms.TextBox tbxFrom; private System.Windows.Forms.CheckBox checkExplicit; private System.Windows.Forms.CheckBox checkBypass; private System.Windows.Forms.Button btnSendTest; private System.Windows.Forms.Label label59; private System.Windows.Forms.Label label60; private System.Windows.Forms.TextBox tbxBody; private System.Windows.Forms.Label label61; private System.Windows.Forms.TextBox tbxSubject; private System.Windows.Forms.Label label62; private System.Windows.Forms.Label label63; private System.Windows.Forms.TextBox tbxTo; private System.Windows.Forms.TextBox tbxResponse; private System.Windows.Forms.TabPage toolsPage6; private System.Windows.Forms.TextBox tbxDiagnosticTrackingStatus; private System.Windows.Forms.Label label64; private System.Windows.Forms.TextBox tbxDiagnosticTrackingStartup; private System.Windows.Forms.Label label65; private System.Windows.Forms.Label label66; private System.Windows.Forms.Button btnTelemetryRefresh; private System.Windows.Forms.GroupBox gbxTelemetryStatus; private System.Windows.Forms.Button btnDisableLogging; private System.Windows.Forms.Button btnStopLogging; private System.Windows.Forms.Label label67; private System.Windows.Forms.TextBox tbxKeylogServiceStatus; private System.Windows.Forms.TextBox tbxKeylogServiceStartup; private System.Windows.Forms.Button btnModifyHosts; private System.Windows.Forms.Button btnBackupHosts; private System.Windows.Forms.Button btnRestoreHosts; private System.Windows.Forms.GroupBox groupBox22; private System.Windows.Forms.GroupBox groupBox21; private System.Windows.Forms.Button btnDisableTelemetry; private System.Windows.Forms.Button btnDeleteTrackingLog; private System.Windows.Forms.Button btnDisableDiagnosticTracking; private System.Windows.Forms.Button btnStopDiagnosticTracking; private System.Windows.Forms.Label label70; private System.Windows.Forms.TextBox tbxHostStatus; private System.Windows.Forms.Label label69; private System.Windows.Forms.TextBox tbxTelemetryOSStatus; private System.Windows.Forms.Label label68; private System.Windows.Forms.TextBox tbxTrackingLogStatus; private System.Windows.Forms.Button btnDisableLocationSensor; private System.Windows.Forms.Button btnDisableLocationUsage; private System.Windows.Forms.GroupBox groupBox23; private System.Windows.Forms.Button btnOwnsHosts; private System.Windows.Forms.Label label72; private System.Windows.Forms.TextBox tbxLocationSensor; private System.Windows.Forms.Label label71; private System.Windows.Forms.TextBox tbxLocationUsage; private System.Windows.Forms.Button btnOwnsLog; private System.Windows.Forms.TextBox tbxHostsOwner; private System.Windows.Forms.TextBox tbxTrackingOwner; private System.Windows.Forms.MaskedTextBox mtbxDomainUserPassword; } }
58.413378
180
0.616933
[ "MIT" ]
Nomenator/WOLF
WolfSpec/MainGUI/GUI.Designer.cs
432,261
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using CalendarSkill; using Microsoft.Graph; namespace CalendarSkillTest.Flow.Fakes { public class MockCalendarService : ICalendar { public MockCalendarService() { this.UpcomingEvents = FakeGetUpcomingEvents(); } public List<EventModel> UpcomingEvents { get; set; } public async Task<EventModel> CreateEvent(EventModel newEvent) { return await Task.FromResult(newEvent); } public async Task<List<EventModel>> GetUpcomingEvents() { return await Task.FromResult(this.UpcomingEvents); } public async Task<List<EventModel>> GetEventsByTime(DateTime startTime, DateTime endTime) { return await Task.FromResult(this.UpcomingEvents); } public async Task<List<EventModel>> GetEventsByStartTime(DateTime startTime) { return await Task.FromResult(this.UpcomingEvents); } public async Task<List<EventModel>> GetEventsByTitle(string title) { return await Task.FromResult(this.UpcomingEvents); } public async Task<EventModel> UpdateEventById(EventModel updateEvent) { updateEvent.StartTime = DateTime.SpecifyKind(new DateTime(2018, 11, 9, 9, 0, 0), DateTimeKind.Utc); updateEvent.EndTime = DateTime.SpecifyKind(new DateTime(2018, 11, 9, 10, 0, 0), DateTimeKind.Utc); return await Task.FromResult(updateEvent); } public async Task DeleteEventById(string id) { await Task.CompletedTask; } private List<EventModel> FakeGetUpcomingEvents() { var eventList = new List<EventModel>(); var attendees = new List<Attendee>(); attendees.Add(new Attendee { EmailAddress = new EmailAddress { Address = "test1@outlook.com", }, Type = AttendeeType.Required, }); // Event Name string eventName = "test title"; // Event body var body = new ItemBody { Content = "test body", ContentType = BodyType.Text, }; // Event start and end time // Another example date format: `new DateTime(2017, 12, 1, 9, 30, 0).ToString("o")` var startTimeTimeZone = new DateTimeTimeZone { DateTime = new DateTime(2019, 11, 11, 9, 30, 0).ToString("o"), TimeZone = TimeZoneInfo.Local.Id, }; var endTimeTimeZone = new DateTimeTimeZone { DateTime = new DateTime(2019, 11, 11, 10, 30, 0).ToString("o"), TimeZone = TimeZoneInfo.Local.Id, }; // Event location var location = new Location { DisplayName = "office 12", }; // Add the event. // await _graphClient.Me.Events.Request().AddAsync var createdEvent = new Event { Subject = eventName, Location = location, Attendees = attendees, Body = body, Start = startTimeTimeZone, End = endTimeTimeZone, IsOrganizer = true, }; EventModel createdEventModel = new EventModel(createdEvent); eventList.Add(createdEventModel); return eventList; } } }
31.025424
111
0.547391
[ "MIT" ]
ClintFrancis/AI
solutions/Virtual-Assistant/src/csharp/skills/tests/calendarskilltest/Flow/Fakes/MockCalendarService.cs
3,663
C#
namespace Be.Vlaanderen.Basisregisters.Shaperon { using System; using System.IO; public class DbaseString : DbaseFieldValue { private string _value; public DbaseString(DbaseField field, string value = null) : base(field) { if (field == null) throw new ArgumentNullException(nameof(field)); if (field.FieldType != DbaseFieldType.Character) throw new ArgumentException( $"The field {field.Name} 's type must be character to use it as a string field.", nameof(field)); Value = value; } public bool AcceptsValue(string value) { if (value != null) return value.Length <= Field.Length.ToInt32(); return true; } public bool HasValue => _value != null; public string Value { get => _value; set { if (value != null && value.Length > Field.Length.ToInt32()) throw new ArgumentException( $"The value length {value.Length} of field {Field.Name} is greater than its field length {Field.Length}."); _value = value; } } public override void Reset() => _value = default; public override void Read(BinaryReader reader) { if (reader == null) throw new ArgumentNullException(nameof(reader)); Value = reader.ReadAsNullableString(Field); } public override void Write(BinaryWriter writer) { if (writer == null) throw new ArgumentNullException(nameof(writer)); writer.WriteAsNullableString(Field, Value); } public override void Accept(IDbaseFieldValueVisitor visitor) => (visitor as ITypedDbaseFieldValueVisitor)?.Visit(this); } }
29.19697
131
0.555267
[ "MIT" ]
Informatievlaanderen/shaperon
src/Be.Vlaanderen.Basisregisters.Shaperon/DbaseString.cs
1,927
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azure.Storage { /// <summary> /// Manages a Storage Object Replication. /// /// ## Example Usage /// /// ```csharp /// using Pulumi; /// using Azure = Pulumi.Azure; /// /// class MyStack : Stack /// { /// public MyStack() /// { /// var srcResourceGroup = new Azure.Core.ResourceGroup("srcResourceGroup", new Azure.Core.ResourceGroupArgs /// { /// Location = "West Europe", /// }); /// var srcAccount = new Azure.Storage.Account("srcAccount", new Azure.Storage.AccountArgs /// { /// ResourceGroupName = srcResourceGroup.Name, /// Location = srcResourceGroup.Location, /// AccountTier = "Standard", /// AccountReplicationType = "LRS", /// BlobProperties = new Azure.Storage.Inputs.AccountBlobPropertiesArgs /// { /// VersioningEnabled = true, /// ChangeFeedEnabled = true, /// }, /// }); /// var srcContainer = new Azure.Storage.Container("srcContainer", new Azure.Storage.ContainerArgs /// { /// StorageAccountName = srcAccount.Name, /// ContainerAccessType = "private", /// }); /// var dstResourceGroup = new Azure.Core.ResourceGroup("dstResourceGroup", new Azure.Core.ResourceGroupArgs /// { /// Location = "East US", /// }); /// var dstAccount = new Azure.Storage.Account("dstAccount", new Azure.Storage.AccountArgs /// { /// ResourceGroupName = dstResourceGroup.Name, /// Location = dstResourceGroup.Location, /// AccountTier = "Standard", /// AccountReplicationType = "LRS", /// BlobProperties = new Azure.Storage.Inputs.AccountBlobPropertiesArgs /// { /// VersioningEnabled = true, /// ChangeFeedEnabled = true, /// }, /// }); /// var dstContainer = new Azure.Storage.Container("dstContainer", new Azure.Storage.ContainerArgs /// { /// StorageAccountName = dstAccount.Name, /// ContainerAccessType = "private", /// }); /// var example = new Azure.Storage.ObjectReplication("example", new Azure.Storage.ObjectReplicationArgs /// { /// SourceStorageAccountId = srcAccount.Id, /// DestinationStorageAccountId = dstAccount.Id, /// Rules = /// { /// new Azure.Storage.Inputs.ObjectReplicationRuleArgs /// { /// SourceContainerName = srcContainer.Name, /// DestinationContainerName = dstContainer.Name, /// }, /// }, /// }); /// } /// /// } /// ``` /// /// ## Import /// /// Storage Object Replication Policys can be imported using the `resource id`, e.g. /// /// ```sh /// $ pulumi import azure:storage/objectReplication:ObjectReplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Storage/storageAccounts/storageAccount1/objectReplicationPolicies/objectReplicationPolicy1;/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group2/providers/Microsoft.Storage/storageAccounts/storageAccount2/objectReplicationPolicies/objectReplicationPolicy2 /// ``` /// </summary> [AzureResourceType("azure:storage/objectReplication:ObjectReplication")] public partial class ObjectReplication : Pulumi.CustomResource { /// <summary> /// The ID of the Object Replication in the destination storage account. /// </summary> [Output("destinationObjectReplicationId")] public Output<string> DestinationObjectReplicationId { get; private set; } = null!; /// <summary> /// The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created. /// </summary> [Output("destinationStorageAccountId")] public Output<string> DestinationStorageAccountId { get; private set; } = null!; /// <summary> /// One or more `rules` blocks as defined below. /// </summary> [Output("rules")] public Output<ImmutableArray<Outputs.ObjectReplicationRule>> Rules { get; private set; } = null!; /// <summary> /// The ID of the Object Replication in the source storage account. /// </summary> [Output("sourceObjectReplicationId")] public Output<string> SourceObjectReplicationId { get; private set; } = null!; /// <summary> /// The ID of the source storage account. Changing this forces a new Storage Object Replication to be created. /// </summary> [Output("sourceStorageAccountId")] public Output<string> SourceStorageAccountId { get; private set; } = null!; /// <summary> /// Create a ObjectReplication resource with the given unique name, arguments, and options. /// </summary> /// /// <param name="name">The unique name of the resource</param> /// <param name="args">The arguments used to populate this resource's properties</param> /// <param name="options">A bag of options that control this resource's behavior</param> public ObjectReplication(string name, ObjectReplicationArgs args, CustomResourceOptions? options = null) : base("azure:storage/objectReplication:ObjectReplication", name, args ?? new ObjectReplicationArgs(), MakeResourceOptions(options, "")) { } private ObjectReplication(string name, Input<string> id, ObjectReplicationState? state = null, CustomResourceOptions? options = null) : base("azure:storage/objectReplication:ObjectReplication", name, state, MakeResourceOptions(options, id)) { } private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; } /// <summary> /// Get an existing ObjectReplication resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// </summary> /// /// <param name="name">The unique name of the resulting resource.</param> /// <param name="id">The unique provider ID of the resource to lookup.</param> /// <param name="state">Any extra arguments used during the lookup.</param> /// <param name="options">A bag of options that control this resource's behavior</param> public static ObjectReplication Get(string name, Input<string> id, ObjectReplicationState? state = null, CustomResourceOptions? options = null) { return new ObjectReplication(name, id, state, options); } } public sealed class ObjectReplicationArgs : Pulumi.ResourceArgs { /// <summary> /// The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created. /// </summary> [Input("destinationStorageAccountId", required: true)] public Input<string> DestinationStorageAccountId { get; set; } = null!; [Input("rules", required: true)] private InputList<Inputs.ObjectReplicationRuleArgs>? _rules; /// <summary> /// One or more `rules` blocks as defined below. /// </summary> public InputList<Inputs.ObjectReplicationRuleArgs> Rules { get => _rules ?? (_rules = new InputList<Inputs.ObjectReplicationRuleArgs>()); set => _rules = value; } /// <summary> /// The ID of the source storage account. Changing this forces a new Storage Object Replication to be created. /// </summary> [Input("sourceStorageAccountId", required: true)] public Input<string> SourceStorageAccountId { get; set; } = null!; public ObjectReplicationArgs() { } } public sealed class ObjectReplicationState : Pulumi.ResourceArgs { /// <summary> /// The ID of the Object Replication in the destination storage account. /// </summary> [Input("destinationObjectReplicationId")] public Input<string>? DestinationObjectReplicationId { get; set; } /// <summary> /// The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created. /// </summary> [Input("destinationStorageAccountId")] public Input<string>? DestinationStorageAccountId { get; set; } [Input("rules")] private InputList<Inputs.ObjectReplicationRuleGetArgs>? _rules; /// <summary> /// One or more `rules` blocks as defined below. /// </summary> public InputList<Inputs.ObjectReplicationRuleGetArgs> Rules { get => _rules ?? (_rules = new InputList<Inputs.ObjectReplicationRuleGetArgs>()); set => _rules = value; } /// <summary> /// The ID of the Object Replication in the source storage account. /// </summary> [Input("sourceObjectReplicationId")] public Input<string>? SourceObjectReplicationId { get; set; } /// <summary> /// The ID of the source storage account. Changing this forces a new Storage Object Replication to be created. /// </summary> [Input("sourceStorageAccountId")] public Input<string>? SourceStorageAccountId { get; set; } public ObjectReplicationState() { } } }
43.627049
452
0.598591
[ "ECL-2.0", "Apache-2.0" ]
roderik/pulumi-azure
sdk/dotnet/Storage/ObjectReplication.cs
10,645
C#
using Catalog.API.Entities; using Catalog.API.Repositories.Interfaces; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; namespace Catalog.API.Controllers { [Route("api/v1/[controller]")] [ApiController] public class CatalogController : ControllerBase { private readonly IProductRepository _repository; private readonly ILogger<CatalogController> _logger; public CatalogController(IProductRepository repository, ILogger<CatalogController> logger) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); } [HttpGet] [ProducesResponseType(typeof(IEnumerable<Product>), (int)HttpStatusCode.OK)] public async Task<ActionResult<IEnumerable<Product>>> GetProducts() { var products = await _repository.GetProducts(); return Ok(products); } [HttpGet("{id:length(24)}", Name = "GetProduct")] [ProducesResponseType((int)HttpStatusCode.NotFound)] [ProducesResponseType(typeof(Product), (int)HttpStatusCode.OK)] public async Task<ActionResult<Product>> GetProduct(string id) { var product = await _repository.GetProduct(id); if (product == null) { _logger.LogError($"Product with id: {id}, hasn't been found in database."); return NotFound(); } return Ok(product); } [Route("[action]/{category}")] [HttpGet] [ProducesResponseType(typeof(Product), (int)HttpStatusCode.OK)] public async Task<ActionResult<IEnumerable<Product>>> GetProductByCategory(string category) { var product = await _repository.GetProductByCategory(category); return Ok(product); } [HttpPost] [ProducesResponseType(typeof(Product), (int)HttpStatusCode.Created)] public async Task<ActionResult<Product>> CreateProduct([FromBody] Product product) { await _repository.Create(product); return CreatedAtRoute("GetProduct", new { id = product.Id }, product); } [HttpPut] [ProducesResponseType(typeof(Product), (int)HttpStatusCode.OK)] public async Task<IActionResult> UpdateProduct([FromBody] Product value) { return Ok(await _repository.Update(value)); } [HttpDelete("{id:length(24)}")] [ProducesResponseType(typeof(void), (int)HttpStatusCode.OK)] public async Task<IActionResult> DeleteProductById(string id) { return Ok(await _repository.Delete(id)); } } }
35
99
0.639721
[ "MIT" ]
AJMalik007/run-aspnetcore-microservices
src/Catalog/Catalog.API/Controllers/CatalogController.cs
2,872
C#
using System; using System.Threading; using System.Threading.Tasks; using MassTransit; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Shared; namespace PickUpCounter { // ReSharper disable once ClassNeverInstantiated.Global public class Worker : IHostedService, IConsumer<Order> { private readonly ILogger<Worker> _logger; private readonly MessageBus _messageBus; public Worker(ILogger<Worker> logger, TransportSettings settings) { _logger = logger; _messageBus = new MessageBus(new Uri(settings.RabbitMqUrl), hostCfg => { }, endpointCfg => endpointCfg.Instance(this), settings.QueueName); } public Task StartAsync(CancellationToken cancellationToken) => Task.CompletedTask; public Task StopAsync(CancellationToken cancellationToken) => _messageBus.StopAsync(cancellationToken); public Task Consume(ConsumeContext<Order> context) { if (context.Message.IsComplete) { _logger.LogInformation($"Announcement: Order of {context.Message.CustomerName} for {context.Message.Type.Name} is complete!"); } return Task.CompletedTask; } } }
32.414634
142
0.647856
[ "MIT" ]
myarichuk/Samples.MSA
PickUpCounter/Worker.cs
1,329
C#
/**************************************************************************** * Copyright (c) 2017 liangxie * * http://qframework.io * https://github.com/liangxiegame/QFramework * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. ****************************************************************************/ using UnityEngine; namespace QFramework.Example { public class SequenceNodeExample : MonoBehaviour { private void Start() { this.Sequence() .Delay(1.0f) .Event(() => Log.I("Sequence1 延时了 1s")) .Begin() .OnDisposed(() => { Log.I("Sequence1 destroyed"); }); var sequenceNode2 = new SequenceNode(DelayAction.Allocate(1.5f)); sequenceNode2.Append(EventAction.Allocate(() => Log.I("Sequence2 延时 1.5s"))); sequenceNode2.Append(DelayAction.Allocate(0.5f)); sequenceNode2.Append(EventAction.Allocate(() => Log.I("Sequence2 延时 2.0s"))); this.ExecuteNode(sequenceNode2); /* 这种方式需要自己手动进行销毁 sequenceNode2.Dispose(); sequenceNode2 = null; */ // 或者 OnDestroy 触发时进行销毁 sequenceNode2.DisposeWhenGameObjectDestroyed(this); } void OnLoginSucceed() { } private SequenceNode mSequenceNodeNode3 = new SequenceNode( DelayAction.Allocate(3.0f), EventAction.Allocate(() => { Log.I("Sequence3 延时 3.0f"); })); private void Update() { if (mSequenceNodeNode3 != null && !mSequenceNodeNode3.Finished && mSequenceNodeNode3.Execute(Time.deltaTime)) { Log.I("SequenceNode3 执行完成"); } } private void OnDestroy() { mSequenceNodeNode3.Dispose(); mSequenceNodeNode3 = null; } } }
37.113924
89
0.597885
[ "MIT" ]
963148894/QFramework
Unity2017/Assets/QFramework/Framework/Examples/1.CoreExample/ActionKitExample/2.SequenceNode/SequenceNodeExample.cs
3,006
C#
using System.Threading.Tasks; using Dynamic.Json; using Netezos.Rpc; using Xunit; namespace Netezos.Tests.Rpc { public class TestVotesQueries : IClassFixture<SettingsFixture> { readonly TezosRpc Rpc; public TestVotesQueries(SettingsFixture settings) { Rpc = settings.Rpc; } [Fact] public async Task TestVotesBallotList() { var query = Rpc.Blocks.Head.Votes.BallotList; Assert.Equal("chains/main/blocks/head/votes/ballot_list/", query.ToString()); var res = await query.GetAsync(); Assert.True(res is DJsonArray); } [Fact] public async Task TestVotesBallots() { var query = Rpc.Blocks.Head.Votes.Ballots; Assert.Equal("chains/main/blocks/head/votes/ballots/", query.ToString()); var res = await query.GetAsync(); Assert.True(res is DJsonObject); } [Fact] public async Task TestVotesCurrentPeriodKind() { var query = Rpc.Blocks.Head.Votes.CurrentPeriodKind; Assert.Equal("chains/main/blocks/head/votes/current_period_kind/", query.ToString()); var res = await query.GetAsync(); Assert.True(res is DJsonValue); } [Fact] public void TestVotesCurrentProposal() { var query = Rpc.Blocks[123].Votes.CurrentProposals; // specific level is required Assert.Equal($"chains/main/blocks/123/votes/current_proposal/", query.ToString()); //var res = await query.GetAsync(); //Assert.True(res is DJsonValue); } [Fact] public async Task TestVotesCurrentQuorum() { var query = Rpc.Blocks.Head.Votes.CurrentQuorum; Assert.Equal("chains/main/blocks/head/votes/current_quorum/", query.ToString()); var res = await query.GetAsync(); Assert.True(res is DJsonValue); ; } [Fact] public async Task TestVotesListings() { var query = Rpc.Blocks.Head.Votes.Listings; Assert.Equal("chains/main/blocks/head/votes/listings/", query.ToString()); var res = await query.GetAsync(); Assert.True(res is DJsonArray); } [Fact] public async Task TestVotesProposals() { var query = Rpc.Blocks.Head.Votes.Proposals; Assert.Equal("chains/main/blocks/head/votes/proposals/", query.ToString()); var res = await query.GetAsync(); Assert.True(res is DJsonArray); } } }
30.170455
97
0.582674
[ "MIT" ]
dmirgaleev/netezos
Netezos.Tests/Rpc/TestVotesQueries.cs
2,657
C#
using System; using System.Diagnostics.Contracts; using System.Web; using Lpp.Auth; using Lpp.Composition; using Lpp.Mvc; namespace Lpp.Auth.Basic { public static class AuthenticationExtensions { public static bool IsInRole<TUser, TRolesEnum>( this TUser user, TRolesEnum role ) where TUser : class, IRoleBasedUser<TRolesEnum> { Contract.Requires( user != null ); return ( Convert.ToInt32( user.Roles ) & Convert.ToInt32( role ) ) != 0; } public static TUser CurrentUser<TUser>( this HttpContextBase ctx ) where TUser : class, IUser { Contract.Requires( ctx != null ); return ctx.Composition().Get<IAuthenticationService<TUser>>().CurrentUser; } } }
30.153846
90
0.632653
[ "Apache-2.0" ]
Missouri-BMI/popmednet
Lpp.Mvc.Composition/Lpp.Auth.UI/Basic/AuthenticationExtensions.cs
786
C#
namespace nyom.pushsender { public interface IEnviarMensagensPush { bool Envia(string campanha); } }
15.142857
38
0.764151
[ "MIT" ]
hdrezei/dotnetcore-rabbitmq
nyom/nyom.pushsender/IEnviarMensagensPush.cs
108
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Mailjet.SimpleClient; using Mailjet.SimpleClient.Core.Models.Emailing; using Mailjet.SimpleClient.Core.Models.Options; namespace MailjetEmailClientSample { class Program { private static async Task Main() { //Can also be through a configuration action, e.g. (opt) => { PrivateKey = "" } var client = new MailjetEmailClient(new MailjetSimpleClient(), new MailjetOptions { PrivateKey = Environment.GetEnvironmentVariable("MAILJET_PRIVATE_KEY"), PublicKey = Environment.GetEnvironmentVariable("MAILJET_PUBLIC_KEY"), EmailOptions = { SandboxMode = true } }); var message = new EmailMessage("Max Strålin", "max.stralin@devmasters.se") { To = new List<EmailEntity> { new EmailEntity("Max Strålin", "max.stralin@devmasters.se") }, HtmlBody = @"<div>Fantastic sample email. Need a job?</div>" }; //A successful message in sandbox mode var successful = await client.SendAsync(message); if (!successful.Successful) throw new Exception("This request should be successful"); //Send a template email var templateMessage = new TemplateEmailMessage(templateId: 711944, from: message.From) { To = message.To }; var successfulTemplate = await client.SendAsync(templateMessage); if (!successfulTemplate.Successful) throw new Exception("This request should be successful"); //Let's empty the recipients list, making the request invalid // ReSharper disable once RedundantEmptyObjectOrCollectionInitializer message.To = new List<EmailEntity> { }; //Will indicate an error var error = await client.SendAsync(message); if (error.Successful) throw new Exception("This request should be unsuccessful"); } } }
44.06383
107
0.631096
[ "MIT" ]
maxstralin/mailjet-simple-client
sample/MailjetEmailClientSample/Program.cs
2,075
C#
using UnityEditor; using UnityEngine; namespace CustomUnityEffects.Editor { [CustomEditor(typeof(VisualEffectBase), true)] public class SimpleVisualEffectEditor : UnityEditor.Editor { private Transform _previewPoint; private Vector3 _previewPosition; private Vector3 _previewDirection; private readonly string[] _popupStrings = {"Preview By Point", "Preview By Position"}; private int _selectedPopupIndex; public override void OnInspectorGUI() { DrawDefaultInspector(); EditorGUILayout.LabelField("", GUI.skin.horizontalSlider); _selectedPopupIndex = EditorGUILayout.Popup("Preview Mode", _selectedPopupIndex, _popupStrings); var position = Vector3.zero; var direction = Vector3.right; if (_selectedPopupIndex == 0) { _previewPoint = (Transform)EditorGUILayout.ObjectField("Preview position", _previewPoint, typeof (Transform), true); position = _previewPoint == null ? Vector3.zero : _previewPoint.position; } else { _previewPosition = EditorGUILayout.Vector3Field("Preview position", _previewPosition); position = _previewPosition; } _previewDirection = EditorGUILayout.Vector3Field("Preview direction", _previewDirection); direction = _previewDirection; EditorGUI.BeginDisabledGroup(serializedObject.isEditingMultipleObjects); if (GUILayout.Button("Preview")) { ((VisualEffectBase)target).Play(position, direction, null); } EditorGUI.EndDisabledGroup(); } } }
30.897959
121
0.732497
[ "MIT" ]
AlexanderYakshin/unityeffects
Sources/UnityEffects/Assets/CustomUnityEffects/Scripts/Visual/Editor/SimpleVisualEffectEditor.cs
1,516
C#
using System; namespace FluentCommand.Entities { public class UserRole { public Guid UserId { get; set; } public Guid RoleId { get; set; } public virtual User User { get; set; } public virtual Role Role { get; set; } } }
20.538462
46
0.59176
[ "MIT" ]
loresoft/FluentCommand
test/FluentCommand.Entities/UserRole.cs
269
C#
using UnityEngine; using UnityEditor; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Diagnostics; using System.Text.RegularExpressions; using Debug = UnityEngine.Debug; namespace Ink.UnityIntegration { [InitializeOnLoad] public static class InkCompiler { public static bool compiling { get { return InkLibrary.Instance.compilationStack.Count > 0; } } public delegate void OnCompileInkEvent (InkFile inkFile); public static event OnCompileInkEvent OnCompileInk; [Serializable] public class CompilationStackItem { public enum State { Idle, Compiling, Importing } public State state = State.Idle; public InkFile inkFile; public string inkAbsoluteFilePath; public string jsonAbsoluteFilePath; public string output; public string errorOutput; public DateTime startTime; public CompilationStackItem () { startTime = DateTime.Now; } } static InkCompiler () { EditorApplication.playmodeStateChanged += OnPlayModeChange; EditorApplication.update += Update; } private static void Update () { if(!InkLibrary.created) return; for (int i = InkLibrary.Instance.compilationStack.Count - 1; i >= 0; i--) { var compilingFile = InkLibrary.Instance.compilationStack [i]; if ((float)((DateTime.Now-compilingFile.startTime).TotalSeconds) > _timeout) { InkLibrary.Instance.compilationStack.RemoveAt(i); EditorUtility.ClearProgressBar(); Debug.LogError("Ink Compiler timed out for "+compilingFile.inkAbsoluteFilePath+".\n. Check an ink file exists at this path and try Assets/Recompile Ink, else please report as a bug with the following error log at this address: https://github.com/inkle/ink/issues\nError log:\n"+compilingFile.errorOutput); } } if(InkLibrary.Instance.compilationStack.Count > 0) { int numCompiling = InkLibrary.FilesInCompilingStackInState(CompilationStackItem.State.Compiling).Count; string message = "Compiling .Ink File "+(InkLibrary.Instance.compilationStack.Count-numCompiling)+" of "+InkLibrary.Instance.compilationStack.Count; EditorUtility.DisplayProgressBar("Compiling Ink...", message, (InkLibrary.Instance.compilationStack.Count-numCompiling)/InkLibrary.Instance.compilationStack.Count); } } private static void OnPlayModeChange () { if(EditorApplication.isPlayingOrWillChangePlaymode) { if(compiling) Debug.LogWarning("Entered Play Mode while Ink was still compiling. Recommend exiting and re-entering play mode."); } } [MenuItem("Assets/Recompile Ink", false, 60)] public static void RecompileAll() { InkLibrary.Rebuild(); List<InkFile> masterInkFiles = InkLibrary.GetMasterInkFiles (); foreach(InkFile masterInkFile in masterInkFiles) { if(InkSettings.Instance.compileAutomatically || masterInkFile.compileAutomatically) CompileInk(masterInkFile); } } /// <summary> /// Starts a System.Process that compiles a master ink file, creating a playable JSON file that can be parsed by the Ink.Story class /// </summary> /// <param name="inkFile">Ink file.</param> public static void CompileInk (InkFile inkFile) { if(inkFile == null) { Debug.LogError("Tried to compile ink file "+inkFile.filePath+", but input was null."); return; } if(!inkFile.metaInfo.isMaster) Debug.LogWarning("Compiling InkFile which is an include. Any file created is likely to be invalid. Did you mean to call CompileInk on inkFile.master?"); if(InkLibrary.GetCompilationStackItem(inkFile) != null) { UnityEngine.Debug.LogWarning("Tried compiling ink file, but file is already compiling. "+inkFile.filePath); return; } string inklecatePath = InkEditorUtils.GetInklecateFilePath(); if(inklecatePath == null) { UnityEngine.Debug.LogWarning("Inklecate (the ink compiler) not found in assets. This will prevent automatic building of JSON TextAsset files from ink story files."); return; } if(Application.platform == RuntimePlatform.OSXEditor) { SetInklecateFilePermissions(inklecatePath); } if(inklecatePath.Contains("'")){ Debug.LogError("Due to a Unity bug, Inklecate path cannot contain an apostrophe. Ink will not compile until this is resolved. Path is '"+inklecatePath+"'"); return; } // This hasn't been affecting us lately. Left it in so we can easily restore it in case of future bugs. /* else if(inklecatePath.Contains(" ")){ Debug.LogWarning("Inklecate path should not contain a space. This might lead to compilation failing. Path is '"+inklecatePath+"'. If you don't see any compilation errors, you can ignore this warning."); }*/ string inputPath = InkEditorUtils.CombinePaths(inkFile.absoluteFolderPath, Path.GetFileName(inkFile.filePath)); string outputPath = InkEditorUtils.CombinePaths(inkFile.absoluteFolderPath, Path.GetFileNameWithoutExtension(Path.GetFileName(inkFile.filePath))) + ".json"; string inkArguments = InkSettings.Instance.customInklecateOptions.additionalCompilerOptions + " -c -o " + "\"" + outputPath + "\" \"" + inputPath + "\""; CompilationStackItem pendingFile = new CompilationStackItem(); pendingFile.inkFile = InkLibrary.GetInkFileWithAbsolutePath(inputPath); pendingFile.inkAbsoluteFilePath = inputPath; pendingFile.jsonAbsoluteFilePath = outputPath; pendingFile.state = CompilationStackItem.State.Compiling; InkLibrary.Instance.compilationStack.Add(pendingFile); InkLibrary.Save(); Process process = new Process(); if( InkSettings.Instance.customInklecateOptions.runInklecateWithMono && Application.platform != RuntimePlatform.WindowsEditor ) { if(File.Exists(_libraryMono)) { process.StartInfo.FileName = _libraryMono; } else if(File.Exists(_usrMono)) { process.StartInfo.FileName = _usrMono; } else { Debug.LogError("Mono was not found on machine"); return; } process.StartInfo.Arguments = inklecatePath + " " + inkArguments; } else { process.StartInfo.FileName = inklecatePath; process.StartInfo.Arguments = inkArguments; } process.StartInfo.RedirectStandardError = true; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.UseShellExecute = false; process.EnableRaisingEvents = true; process.StartInfo.EnvironmentVariables["inkAbsoluteFilePath"] = inputPath; process.ErrorDataReceived += OnProcessError; process.Exited += OnCompileProcessComplete; process.Start(); } static void OnProcessError (object sender, DataReceivedEventArgs e) { Process process = (Process)sender; ProcessError(process, e.Data); } static void OnCompileProcessComplete(object sender, System.EventArgs e) { Process process = (Process)sender; string error = process.StandardError.ReadToEnd(); if(error != null) { ProcessError(process, error); } CompilationStackItem pendingFile = InkLibrary.GetCompilationStackItem(process.StartInfo.EnvironmentVariables["inkAbsoluteFilePath"]); pendingFile.state = CompilationStackItem.State.Importing; pendingFile.output = process.StandardOutput.ReadToEnd(); if(InkLibrary.FilesInCompilingStackInState(CompilationStackItem.State.Compiling).Count == 0) { // This event runs in another thread, preventing us from calling some UnityEditor functions directly. Instead, we delay till the next inspector update. EditorApplication.delayCall += Delay; } } private static void ProcessError (Process process, string error) { string inkFilePath = process.StartInfo.EnvironmentVariables["inkAbsoluteFilePath"]; CompilationStackItem compilingFile = InkLibrary.GetCompilationStackItem(inkFilePath); compilingFile.errorOutput = error; } private static void Delay () { if(InkLibrary.FilesInCompilingStackInState(CompilationStackItem.State.Compiling).Count > 0) { Debug.LogWarning("Delayed, but a file is now compiling! You can ignore this warning."); return; } bool errorsFound = false; string listOfFiles = "\nFiles compiled:"; foreach (var compilingFile in InkLibrary.Instance.compilationStack) { listOfFiles += "\n"; listOfFiles += compilingFile.inkFile.filePath; if(compilingFile.errorOutput != "") { listOfFiles += " (With unhandled error)"; Debug.LogError("Unhandled error occurred compiling Ink file "+compilingFile.inkFile+"! Please report following error as a bug:\n"+compilingFile.errorOutput); compilingFile.inkFile.metaInfo.compileErrors.Clear(); compilingFile.inkFile.metaInfo.compileErrors.Add(compilingFile.errorOutput); errorsFound = true; } else { SetOutputLog(compilingFile); bool errorsInEntireStory = false; bool warningsInEntireStory = false; foreach(var inkFile in compilingFile.inkFile.metaInfo.inkFilesInIncludeHierarchy) { if(inkFile.metaInfo.hasErrors) { errorsInEntireStory = true; } if(inkFile.metaInfo.hasWarnings) { warningsInEntireStory = true; } } if(errorsInEntireStory) { listOfFiles += " (With error)"; errorsFound = true; } else { string localJSONAssetPath = InkEditorUtils.AbsoluteToUnityRelativePath(compilingFile.jsonAbsoluteFilePath); AssetDatabase.ImportAsset (localJSONAssetPath); compilingFile.inkFile.jsonAsset = AssetDatabase.LoadAssetAtPath<TextAsset> (localJSONAssetPath); } if(warningsInEntireStory) { listOfFiles += " (With warning)"; } } } foreach (var compilingFile in InkLibrary.Instance.compilationStack) { if (OnCompileInk != null) { OnCompileInk (compilingFile.inkFile); } } if(errorsFound) { Debug.LogWarning("Ink compilation completed with errors at "+DateTime.Now.ToLongTimeString()+listOfFiles); } else { Debug.Log("Ink compilation completed at "+DateTime.Now.ToLongTimeString()+listOfFiles); } InkLibrary.Instance.compilationStack.Clear(); InkLibrary.Save(); InkMetaLibrary.Save(); EditorUtility.ClearProgressBar(); if(EditorApplication.isPlayingOrWillChangePlaymode) { Debug.LogWarning("Ink just finished recompiling while in play mode. Your runtime story may not be up to date."); } } private static void SetOutputLog (CompilationStackItem pendingFile) { pendingFile.inkFile.metaInfo.errors.Clear(); pendingFile.inkFile.metaInfo.warnings.Clear(); pendingFile.inkFile.metaInfo.todos.Clear(); // Todo - switch this to pendingFile.inkFile.includesInkFiles foreach(var childInkFile in pendingFile.inkFile.metaInfo.inkFilesInIncludeHierarchy) { childInkFile.metaInfo.compileErrors.Clear(); childInkFile.metaInfo.errors.Clear(); childInkFile.metaInfo.warnings.Clear(); childInkFile.metaInfo.todos.Clear(); } string[] splitOutput = pendingFile.output.Split(new string[]{"\n"}, StringSplitOptions.RemoveEmptyEntries); foreach(string output in splitOutput) { var match = _errorRegex.Match(output); if (match.Success) { string errorType = null; string filename = null; int lineNo = -1; string message = null; var errorTypeCapture = match.Groups["errorType"]; if( errorTypeCapture != null ) { errorType = errorTypeCapture.Value; } var filenameCapture = match.Groups["filename"]; if (filenameCapture != null) filename = filenameCapture.Value; var lineNoCapture = match.Groups["lineNo"]; if (lineNoCapture != null) lineNo = int.Parse (lineNoCapture.Value); var messageCapture = match.Groups["message"]; if (messageCapture != null) message = messageCapture.Value.Trim(); string logFilePath = InkEditorUtils.CombinePaths(Path.GetDirectoryName(pendingFile.inkFile.filePath), filename); InkFile inkFile = InkLibrary.GetInkFileWithPath(logFilePath); if(inkFile == null) inkFile = pendingFile.inkFile; string pathAndLineNumberString = "\n"+inkFile.filePath+"("+lineNo+")"; if(errorType == "ERROR") { inkFile.metaInfo.errors.Add(new InkMetaFile.InkFileLog(message, lineNo)); Debug.LogError("INK "+errorType+": "+message + pathAndLineNumberString); } else if (errorType == "WARNING") { inkFile.metaInfo.warnings.Add(new InkMetaFile.InkFileLog(message, lineNo)); Debug.LogWarning("INK "+errorType+": "+message + pathAndLineNumberString); } else if (errorType == "TODO") { inkFile.metaInfo.todos.Add(new InkMetaFile.InkFileLog(message, lineNo)); Debug.Log("INK "+errorType+": "+message + pathAndLineNumberString); } } } } private const float _timeout = 10; private const string _usrMono = "/usr/local/bin/mono"; private const string _libraryMono = "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono"; private static Regex _errorRegex = new Regex(@"(?<errorType>ERROR|WARNING|TODO|RUNTIME ERROR):(?:\s(?:'(?<filename>[^']*)'\s)?line (?<lineNo>\d+):)?(?<message>.*)"); // The asset store version of this plugin removes execute permissions. We can't run unless they're restored. private static void SetInklecateFilePermissions (string inklecatePath) { Process process = new Process(); process.StartInfo.WorkingDirectory = Path.GetDirectoryName(inklecatePath); process.StartInfo.FileName = "chmod"; process.StartInfo.Arguments = "+x "+ Path.GetFileName(inklecatePath); process.StartInfo.RedirectStandardError = true; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.UseShellExecute = false; process.EnableRaisingEvents = true; process.Start(); process.WaitForExit(); } } }
41.503049
310
0.730405
[ "Unlicense" ]
SandGardeners/Between-Stations
Assets/Plugins/Ink/Editor/Compiler/InkCompiler.cs
13,615
C#
// <copyright file="WaitingSteps.cs"> // Copyright © 2013 Dan Piessens. All rights reserved. // </copyright> namespace SpecBind { using System; using System.Threading; using SpecBind.ActionPipeline; using SpecBind.Actions; using SpecBind.BrowserSupport; using SpecBind.Helpers; using TechTalk.SpecFlow; /// <summary> /// A set of step definitions that allow the user to wait for a given condition. /// </summary> [Binding] public class WaitingSteps : PageStepBase { // Step regex values - in constants because they are shared. private const string WaitToSeeElementRegex = @"I wait to see (.+)"; private const string WaitToSeeElementWithTimeoutRegex = @"I wait for (\d+) seconds? to see (.+)"; private const string WaitToStillSeeElementRegex = @"I wait to still see (.+)"; private const string WaitToStillSeeElementWithTimeoutRegex = @"I wait for (\d+) seconds? to still see (.+)"; private const string WaitToNotSeeElementRegex = @"I wait to not see (.+)"; private const string WaitToNotSeeElementWithTimeoutRegex = @"I wait for (\d+) seconds? to not see (.+)"; private const string WaitToStillNotSeeElementRegex = @"I wait to still not see (.+)"; private const string WaitToStillNotSeeElementWithTimeoutRegex = @"I wait for (\d+) seconds? to still not see (.+)"; private const string WaitForElementEnabledRegex = @"I wait for (.+) to become enabled"; private const string WaitForElementEnabledWithTimeoutRegex = @"I wait (\d+) seconds? for (.+) to become enabled"; private const string WaitForElementStillEnabledRegex = @"I wait for (.+) to remain enabled"; private const string WaitForElementStillEnabledWithTimeoutRegex = @"I wait (\d+) seconds? for (.+) to remain enabled"; private const string WaitForElementNotEnabledRegex = @"I wait for (.+) to become disabled"; private const string WaitForElementNotEnabledWithTimeoutRegex = @"I wait (\d+) seconds? for (.+) to become disabled"; private const string WaitForElementStillNotEnabledRegex = @"I wait for (.+) to remain disabled"; private const string WaitForElementStillNotEnabledWithTimeoutRegex = @"I wait (\d+) seconds? for (.+) to remain disabled"; private const string WaitForElementNotMovingRegex = @"I wait for (.+) to stop moving"; private const string WaitForElementNotMovingWithTimeoutRegex = @"I wait (\d+) seconds? for (.+) to stop moving"; private const string WaitForListElementToContainItemsRegex = @"I wait for (.+) to contain items"; private const string WaitForListElementToContainItemsWithTimeoutRegex = @"I wait (\d+) seconds? for (.+) to contain items"; private const string WaitForActiveViewRegex = @"I wait for the view to become active"; private const string WaitForAngularRegex = @"I wait for (?i)angular ajax(?-i) calls to complete"; private const string WaitForjQueryRegex = @"I wait for (?i)jquery ajax(?-i) calls to complete"; // The following Regex items are for the given "past tense" form private const string GivenWaitToSeeElementRegex = @"I waited to see (.+)"; private const string GivenWaitToSeeElementWithTimeoutRegex = @"I waited for (\d+) seconds? to see (.+)"; private const string GivenWaitToNotSeeElementRegex = @"I waited to not see (.+)"; private const string GivenWaitToNotSeeElementWithTimeoutRegex = @"I waited for (\d+) seconds? to not see (.+)"; private const string GivenWaitForElementEnabledRegex = @"I waited for (.+) to become enabled"; private const string GivenWaitForElementEnabledWithTimeoutRegex = @"I waited (\d+) seconds? for (.+) to become enabled"; private const string GivenWaitForElementNotEnabledRegex = @"I waited for (.+) to become disabled"; private const string GivenWaitForElementNotEnabledWithTimeoutRegex = @"I waited (\d+) seconds? for (.+) to become disabled"; private const string GivenWaitForElementNotMovingRegex = @"I waited for (.+) to stop moving"; private const string GivenWaitForElementNotMovingWithTimeoutRegex = @"I waited (\d+) seconds? for (.+) to stop moving"; private const string GivenWaitForListElementToContainItemsRegex = @"I waited for (.+) to contain items"; private const string GivenWaitForListElementToContainItemsWithTimeoutRegex = @"I waited (\d+) seconds? for (.+) to contain items"; private const string GivenWaitForActiveViewRegex = @"I waited for the view to become active"; private const string GivenWaitForAngularRegex = @"I waited for (?i)angular ajax(?-i) calls to complete"; private const string GivenWaitForjQueryRegex = @"I waited for (?i)jquery ajax(?-i) calls to complete"; private readonly IActionPipelineService actionPipelineService; /// <summary> /// Initializes a new instance of the <see cref="WaitingSteps" /> class. /// </summary> /// <param name="actionPipelineService">The action pipeline service.</param> /// <param name="scenarioContext">The scenario context.</param> /// <param name="logger">The logger.</param> public WaitingSteps( IActionPipelineService actionPipelineService, IScenarioContextHelper scenarioContext, ILogger logger) : base(scenarioContext, logger) { this.actionPipelineService = actionPipelineService; } /// <summary> /// Gets the default timeout to wait, if none is specified. /// </summary> /// <value> /// The default wait, 30 seconds. /// </value> public static TimeSpan DefaultWait { get { return TimeSpan.FromSeconds(30); } } /// <summary> /// A step that waits for an element to match the specified criteria. /// </summary> /// <param name="criteriaTable">The criteria table.</param> [Given("I waited to see")] [When("I wait to see")] [Then("I wait to see")] public void WaitToSeeElement(Table criteriaTable) { var page = this.GetPageFromContext(); var validationTable = criteriaTable.ToValidationTable(); var context = new WaitForElementsAction.WaitForElementsContext(page, validationTable, null); this.actionPipelineService.PerformAction<WaitForElementsAction>(page, context).CheckResult(); } /// <summary> /// A step that waits to see an element. /// </summary> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitToSeeElementRegex)] [When(WaitToSeeElementRegex)] [Then(WaitToSeeElementRegex)] public void WaitToSeeElement(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.BecomesExistent, null); } /// <summary> /// A step that waits to see an element. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitToSeeElementWithTimeoutRegex)] [When(WaitToSeeElementWithTimeoutRegex)] [Then(WaitToSeeElementWithTimeoutRegex)] public void WaitToSeeElementWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.BecomesExistent, GetTimeSpan(timeout)); } /// <summary> /// A step that waits to still see an element. /// </summary> /// <param name="propertyName">Name of the property.</param> [When(WaitToStillSeeElementRegex)] [Then(WaitToStillSeeElementRegex)] public void WaitToStillSeeElement(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsExistent, null); } /// <summary> /// A step that waits to still see an element. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [When(WaitToStillSeeElementWithTimeoutRegex)] [Then(WaitToStillSeeElementWithTimeoutRegex)] public void WaitToStillSeeElementWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsExistent, GetTimeSpan(timeout)); } /// <summary> /// A step that waits to not see an element. /// </summary> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitToNotSeeElementRegex)] [When(WaitToNotSeeElementRegex)] [Then(WaitToNotSeeElementRegex)] public void WaitToNotSeeElement(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.BecomesNonExistent, null); } /// <summary> /// A step that waits to not see an element. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitToNotSeeElementWithTimeoutRegex)] [When(WaitToNotSeeElementWithTimeoutRegex)] [Then(WaitToNotSeeElementWithTimeoutRegex)] public void WaitToNotSeeElementWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.BecomesNonExistent, GetTimeSpan(timeout)); } /// <summary> /// A step that waits to still not see an element. /// </summary> /// <param name="propertyName">Name of the property.</param> [When(WaitToStillNotSeeElementRegex)] [Then(WaitToStillNotSeeElementRegex)] public void WaitToStillNotSeeElement(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsNonExistent, null); } /// <summary> /// A step that waits to still not see an element. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [When(WaitToStillNotSeeElementWithTimeoutRegex)] [Then(WaitToStillNotSeeElementWithTimeoutRegex)] public void WaitToStillNotSeeElementWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsNonExistent, GetTimeSpan(timeout)); } /// <summary> /// A step that waits for an element to become enabled. /// </summary> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForElementEnabledRegex)] [When(WaitForElementEnabledRegex)] [Then(WaitForElementEnabledRegex)] public void WaitForElementEnabled(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.Enabled, null); } /// <summary> /// A step that waits for an element to become enabled. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForElementEnabledWithTimeoutRegex)] [When(WaitForElementEnabledWithTimeoutRegex)] [Then(WaitForElementEnabledWithTimeoutRegex)] public void WaitForElementEnabledWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.Enabled, GetTimeSpan(timeout)); } /// <summary> /// A step that waits for an element to remain enabled. /// </summary> /// <param name="propertyName">Name of the property.</param> [When(WaitForElementStillEnabledRegex)] [Then(WaitForElementStillEnabledRegex)] public void WaitForElementStillEnabled(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsEnabled, null); } /// <summary> /// A step that waits for an element to remain enabled. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [When(WaitForElementStillEnabledWithTimeoutRegex)] [Then(WaitForElementStillEnabledWithTimeoutRegex)] public void WaitForElementStillEnabledWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsEnabled, GetTimeSpan(timeout)); } /// <summary> /// A step that waits for an element to become disabled. /// </summary> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForElementNotEnabledRegex)] [When(WaitForElementNotEnabledRegex)] [Then(WaitForElementNotEnabledRegex)] public void WaitForElementNotEnabled(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.BecomesDisabled, null); } /// <summary> /// A step that waits for an element to become disabled. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForElementNotEnabledWithTimeoutRegex)] [When(WaitForElementNotEnabledWithTimeoutRegex)] [Then(WaitForElementNotEnabledWithTimeoutRegex)] public void WaitForElementNotEnabledWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.BecomesDisabled, GetTimeSpan(timeout)); } /// <summary> /// A step that waits for an element to remain disabled. /// </summary> /// <param name="propertyName">Name of the property.</param> [When(WaitForElementStillNotEnabledRegex)] [Then(WaitForElementStillNotEnabledRegex)] public void WaitForElementStillNotEnabled(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsDisabled, null); } /// <summary> /// A step that waits for an element to remain disabled. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [When(WaitForElementStillNotEnabledWithTimeoutRegex)] [Then(WaitForElementStillNotEnabledWithTimeoutRegex)] public void WaitForElementStillNotEnabledWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.RemainsDisabled, GetTimeSpan(timeout)); } /// <summary> /// A step that waits for an element to stop moving. /// </summary> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForElementNotMovingRegex)] [When(WaitForElementNotMovingRegex)] [Then(WaitForElementNotMovingRegex)] public void WaitForElementNotMoving(string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.NotMoving, null); } /// <summary> /// A step that waits for an element to stop moving. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForElementNotMovingWithTimeoutRegex)] [When(WaitForElementNotMovingWithTimeoutRegex)] [Then(WaitForElementNotMovingWithTimeoutRegex)] public void WaitForElementNotMovingWithTimeout(int timeout, string propertyName) { this.CallPipelineAction(propertyName, WaitConditions.NotMoving, GetTimeSpan(timeout)); } /// <summary> /// A step that waits for a list element to contain children. /// </summary> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForListElementToContainItemsRegex)] [When(WaitForListElementToContainItemsRegex)] [Then(WaitForListElementToContainItemsRegex)] public void WaitForListElementToContainItems(string propertyName) { this.WaitForListElementToContainItemsWithTimeout(0, propertyName); } /// <summary> /// A step that waits for a list element to contain children. /// </summary> /// <param name="timeout">The timeout for waiting.</param> /// <param name="propertyName">Name of the property.</param> [Given(GivenWaitForListElementToContainItemsWithTimeoutRegex)] [When(WaitForListElementToContainItemsWithTimeoutRegex)] [Then(WaitForListElementToContainItemsWithTimeoutRegex)] public void WaitForListElementToContainItemsWithTimeout(int timeout, string propertyName) { var page = this.GetPageFromContext(); var context = new WaitForListItemsAction.WaitForListItemsContext(propertyName.ToLookupKey(), GetTimeSpan(timeout)); this.actionPipelineService.PerformAction<WaitForListItemsAction>(page, context).CheckResult(); } /// <summary> /// I wait for the view to be active step. /// </summary> [Given(GivenWaitForActiveViewRegex)] [When(WaitForActiveViewRegex)] public void WaitForTheViewToBeActive() { var page = this.GetPageFromContext(); page.WaitForPageToBeActive(); } /// <summary> /// A step that waits for any pending Angular AJAX calls to complete. /// </summary> [Given(GivenWaitForAngularRegex)] [When(WaitForAngularRegex)] [Then(WaitForAngularRegex)] public void WaitForAngular() { WebDriverSupport.WaitForAngular(); } /// <summary> /// A step that waits for any pending jQuery AJAX calls to complete. /// </summary> [Given(GivenWaitForjQueryRegex)] [When(WaitForjQueryRegex)] [Then(WaitForjQueryRegex)] public void WaitForjQuery() { WebDriverSupport.WaitForjQuery(expectedJQueryDefined: true); } /// <summary> /// Give I waited for x second(s). /// </summary> /// <param name="seconds">The seconds.</param> [Given(@"I waited for (.*) seconds?")] [When(@"I wait for (.*) seconds?")] public void GivenIWaitedForSeconds(int seconds) { int totalMilliseconds = (int)TimeSpan.FromSeconds(seconds).TotalMilliseconds; Thread.Sleep(totalMilliseconds); } /// <summary> /// Given I kept refreshing the page for up to x second(s) until the title contains "title". /// </summary> /// <param name="seconds">The seconds.</param> /// <param name="title">The title.</param> [Given(@"I kept refreshing the page for up to (.*) seconds? until the title contains ""(.*)""")] [When(@"I keep refreshing the page for up to (.*) seconds? until the title contains ""(.*)""")] public void GivenIKeepRefreshingThePageForUpToSecondsUntilTheTitleContain(int seconds, string title) { var page = this.GetPageFromContext(); var context = new WaitForPageTitleAction.WaitForPageTitleContext(title, GetTimeSpan(seconds)); this.actionPipelineService.PerformAction<WaitForPageTitleAction>(page, context).CheckResult(); } /// <summary> /// Gets the time span from the seconds value. /// </summary> /// <param name="seconds">The seconds.</param> /// <returns>The parsed time span.</returns> private static TimeSpan? GetTimeSpan(int seconds) { return seconds > 0 ? TimeSpan.FromSeconds(seconds) : (TimeSpan?)null; } /// <summary> /// Calls the pipeline action. /// </summary> /// <param name="propertyName">Name of the property.</param> /// <param name="expectedCondition">The expected condition.</param> /// <param name="timeout">The timeout for waiting.</param> private void CallPipelineAction(string propertyName, WaitConditions expectedCondition, TimeSpan? timeout) { var page = this.GetPageFromContext(); var context = new WaitForElementAction.WaitForElementContext(propertyName.ToLookupKey(), expectedCondition, timeout); this.actionPipelineService.PerformAction<WaitForElementAction>(page, context).CheckResult(); } } }
48.726651
139
0.638259
[ "MIT" ]
icnocop/specbind
src/SpecBind/WaitingSteps.cs
21,394
C#
using Clr2Ts.Transpiler.Configuration; using Clr2Ts.Transpiler.Logging; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace Clr2Ts.Transpiler.Input { /// <summary> /// Allows scanning of an assembly file for types that should be transpiled. /// </summary> public sealed class AssemblyScanner : IDisposable { private bool _disposed; private readonly IList<DirectoryInfo> _probingDirectories = new List<DirectoryInfo>(); private readonly ILogger _logger; /// <summary> /// Creates an <see cref="AssemblyScanner"/>. /// </summary> /// <param name="logger">Logger to use for writing log messages.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="logger"/> is null.</exception> public AssemblyScanner(ILogger logger) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); AppDomain.CurrentDomain.AssemblyResolve += ResolveWithProbingDirectories; } /// <summary> /// Gets all types that should be transpiled according to the specified configuration. /// </summary> /// <param name="configurationSource">Source for the configuration that should be used.</param> /// <returns>A sequence with the types that should be transpiled according to the specified configuration.</returns> public IEnumerable<Type> GetTypesByConfiguration(IConfigurationSource configurationSource) { if (configurationSource == null) throw new ArgumentNullException(nameof(configurationSource)); EnsureNotDisposed(); var configuration = configurationSource.GetRequiredSection<InputConfiguration>(); var assemblyFiles = configuration.AssemblyFiles .SelectMany(x => new DirectoryInfo(Environment.CurrentDirectory) .EnumerateFiles(x, SearchOption.AllDirectories) .Select(f => f.FullName)); return assemblyFiles.SelectMany(GetTypesFromAssembly) .Where(configuration.TypeFilter.IsMatch); } /// <summary> /// Scans the specified assembly file for types that should be transpiled. /// </summary> /// <param name="assemblyFile">Name of the assembly file.</param> /// <returns>A sequence with the types from the assembly that should be transpiled.</returns> public IEnumerable<Type> GetTypesFromAssembly(string assemblyFile) { EnsureNotDisposed(); // Support relative paths by resolving them first. var fileInfo = new FileInfo(assemblyFile); _probingDirectories.Add(fileInfo.Directory); // For now, just return all types of the assembly. _logger.WriteInformation($"Loading assembly for transpilation: {fileInfo.FullName}"); return Assembly.LoadFile(fileInfo.FullName).GetTypes(); } /// <summary> /// Disposes of this AssemblyScanner. /// </summary> public void Dispose() { _disposed = true; AppDomain.CurrentDomain.AssemblyResolve -= ResolveWithProbingDirectories; } private void EnsureNotDisposed() { if (_disposed) throw new ObjectDisposedException(nameof(AssemblyScanner)); } private Assembly ResolveWithProbingDirectories(object sender, ResolveEventArgs args) { var expectedFileName = $"{args.Name.Split(',').First()}.dll"; var files = _probingDirectories.Select(d => new FileInfo(Path.Combine(d.FullName, expectedFileName))); var matchingFile = files.FirstOrDefault(f => f.Exists); if (matchingFile != null) { _logger.WriteInformation($"Resolving dependency {args.Name} by loading assembly from file: {matchingFile.FullName}"); return Assembly.LoadFile(matchingFile.FullName); } _logger.WriteWarning($"Could not resolve dependency {args.Name}. " + $"Searched for files: {string.Join(", ", files.Select(f => f.FullName))}"); return null; } } }
42.425743
133
0.641774
[ "MIT" ]
Chips100/clr2ts
src/Clr2Ts.Transpiler/Input/AssemblyScanner.cs
4,287
C#
#pragma checksum "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\Shared\_Layout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8a6a0ec05d078ff454b183455bc6611d549990a1" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared__Layout), @"mvc.1.0.view", @"/Views/Shared/_Layout.cshtml")] namespace AspNetCore { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; #nullable restore #line 1 "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\_ViewImports.cshtml" using DebugSquadApp; #line default #line hidden #nullable disable #nullable restore #line 2 "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\_ViewImports.cshtml" using DebugSquadApp.Models; #line default #line hidden #nullable disable [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"8a6a0ec05d078ff454b183455bc6611d549990a1", @"/Views/Shared/_Layout.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"7cb92f70fd94d1fc3904f0c74ff38675032b11d9", @"/Views/_ViewImports.cshtml")] public class Views_Shared__Layout : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> { private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("rel", new global::Microsoft.AspNetCore.Html.HtmlString("stylesheet"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/lib/bootstrap/dist/css/bootstrap.min.css"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/css/site.css"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("navbar-brand"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-area", "", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Home", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("nav-link text-dark"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Privacy", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_9 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/lib/jquery/dist/jquery.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_10 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_11 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", "~/js/site.js", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line hidden #pragma warning disable 0649 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; #pragma warning restore 0649 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); #pragma warning disable 0169 private string __tagHelperStringValueBuffer; #pragma warning restore 0169 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager { get { if (__backed__tagHelperScopeManager == null) { __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); } return __backed__tagHelperScopeManager; } } private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper; private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper; private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper; private global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper; private global::Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper; #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { WriteLiteral("<!DOCTYPE html>\r\n<html lang=\"en\">\r\n"); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a17746", async() => { WriteLiteral("\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n <title>"); #nullable restore #line 6 "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\Shared\_Layout.cshtml" Write(ViewData["Title"]); #line default #line hidden #nullable disable WriteLiteral(" - DebugSquadApp</title>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "8a6a0ec05d078ff454b183455bc6611d549990a18397", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "8a6a0ec05d078ff454b183455bc6611d549990a19575", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n"); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n"); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a111457", async() => { WriteLiteral("\r\n <header>\r\n <nav class=\"navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3\">\r\n <div class=\"container\">\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a111913", async() => { WriteLiteral("DebugSquadApp"); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral(@" <button class=""navbar-toggler"" type=""button"" data-toggle=""collapse"" data-target="".navbar-collapse"" aria-controls=""navbarSupportedContent"" aria-expanded=""false"" aria-label=""Toggle navigation""> <span class=""navbar-toggler-icon""></span> </button> <div class=""navbar-collapse collapse d-sm-inline-flex justify-content-between""> <ul class=""navbar-nav flex-grow-1""> <li class=""nav-item""> "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a114223", async() => { WriteLiteral("Home"); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </li>\r\n <li class=\"nav-item\">\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a116062", async() => { WriteLiteral("Privacy"); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </nav>\r\n </header>\r\n <div class=\"container\">\r\n <main role=\"main\" class=\"pb-3\">\r\n "); #nullable restore #line 34 "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\Shared\_Layout.cshtml" Write(RenderBody()); #line default #line hidden #nullable disable WriteLiteral("\r\n </main>\r\n </div>\r\n\r\n <footer class=\"border-top footer text-muted\">\r\n <div class=\"container\">\r\n &copy; 2021 - DebugSquadApp - "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a118433", async() => { WriteLiteral("Privacy"); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n </footer>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a120115", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a121215", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8a6a0ec05d078ff454b183455bc6611d549990a122316", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper.Src = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); #nullable restore #line 45 "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\Shared\_Layout.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper.AppendVersion = true; #line default #line hidden #nullable disable __tagHelperExecutionContext.AddTagHelperAttribute("asp-append-version", __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper.AppendVersion, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n "); #nullable restore #line 46 "C:\Users\mtwil\source\repos\DebugSquadApp\DebugSquadApp\Views\Shared\_Layout.cshtml" Write(await RenderSectionAsync("Scripts", required: false)); #line default #line hidden #nullable disable WriteLiteral("\r\n"); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n</html>\r\n"); } #pragma warning restore 1998 [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } } } #pragma warning restore 1591
82.206349
384
0.724928
[ "MIT" ]
210215-USF-NET/MichaelTate-code
DebugSquadApp/DebugSquadApp/obj/Debug/net5.0/Razor/Views/Shared/_Layout.cshtml.g.cs
25,895
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Lpp.Dns.DTO.Enums { /// <summary> /// Types of Query composer operators /// </summary> [DataContract] public enum QueryComposerOperators { /// <summary> /// And /// </summary> [EnumMember] And = 0, /// <summary> /// Or /// </summary> [EnumMember] Or = 1, /// <summary> /// And Not /// </summary> [EnumMember, Description("And Not")] AndNot = 2, /// <summary> /// Or not /// </summary> [EnumMember, Description("Or Not")] OrNot = 3 } }
20.425
44
0.52142
[ "Apache-2.0" ]
Missouri-BMI/popmednet
Lpp.Dns.DTO/Enums/QueryComposerOperators.cs
819
C#
namespace Rocket { public enum RemoteUpdatePlayerResult { DoNotUpdate, UpdateAll, UpdateOthers, UpdateSelf, Failed } }
14.333333
40
0.563953
[ "MIT" ]
JanneMattila/Rocket
src/Rocket/RemoteUpdatePlayerResult.cs
174
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Practices.Unity; using TreeNodeSystem.System; using TreeNodeSystem.NodeUtilities; using TreeNodeSystem.NodeUtilities.Impl; namespace NodeSystemTests { class UnitySetup { public static void RegisterTypeMappings(IUnityContainer container) { container.RegisterType<INodeDescriber, NodeDescriber>(new InjectionConstructor(typeof(IndentedWriter))); container.RegisterType<INodeTransformer, NodeTransformer>(); container.RegisterType<INodeWriter, NodeWriter>(); } } }
29.043478
116
0.748503
[ "MIT" ]
zeeshanejaz/NodeSystemIoCExample
TreeNodeSystem/NodeSystemTests/UnitySetup.cs
670
C#
using PolymorphicWebAPI.Persistence.Repositories; using PolymorphicWebAPI.Service.Features.CommandQuerySegregation.Requests; using MediatR; using Microsoft.Extensions.DependencyInjection; using System.Reflection; namespace PolymorphicWebAPI.Service.Configs { public static class DependencyInjection { public static void AddServiceLayer(this IServiceCollection services) { services.AddMediatR(Assembly.GetExecutingAssembly()); services.AddGrpc(); } } }
22.166667
76
0.727444
[ "MIT" ]
ifeanyinwodo/PolymorphicWebAPI.OnionArchitecture.Template
PolymorphicWebAPI/PolymorphicWebAPI/PolymorphicWebAPI.Service/Configs/DependencyInjection.cs
534
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the iam-2010-05-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.IdentityManagement.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.IdentityManagement.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetSAMLProvider operation /// </summary> public class GetSAMLProviderResponseUnmarshaller : XmlResponseUnmarshaller { public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { GetSAMLProviderResponse response = new GetSAMLProviderResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("GetSAMLProviderResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, GetSAMLProviderResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("CreateDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreateDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SAMLMetadataDocument", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SAMLMetadataDocument = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidUntil", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ValidUntil = unmarshaller.Unmarshall(context); continue; } } } return; } public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidInput")) { return new InvalidInputException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } if (errorResponse.Code != null && errorResponse.Code.Equals("NoSuchEntity")) { return new NoSuchEntityException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailure")) { return new ServiceFailureException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } return new AmazonIdentityManagementServiceException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static GetSAMLProviderResponseUnmarshaller _instance = new GetSAMLProviderResponseUnmarshaller(); internal static GetSAMLProviderResponseUnmarshaller GetInstance() { return _instance; } public static GetSAMLProviderResponseUnmarshaller Instance { get { return _instance; } } } }
40.345588
180
0.605613
[ "Apache-2.0" ]
samritchie/aws-sdk-net
AWSSDK_DotNet35/Amazon.IdentityManagement/Model/Internal/MarshallTransformations/GetSAMLProviderResponseUnmarshaller.cs
5,487
C#
using System.Text; using Newtonsoft.Json; using Thalus.Forma.Formatter.Contracts; namespace Thalus.Forma.Formatter.Json { /// <summary> /// Implements the <see cref="CharFormatter"/> functionality /// </summary> public class CharFormatter : IFormatter<CharParam> { /// <inheritdoc> /// <cref>IFormatter</cref> /// </inheritdoc> public void Format(CharParam t, StringBuilder b) { b.Append(Format(t)); } /// <inheritdoc> /// <cref>IFormatter</cref> /// </inheritdoc> public string Format(CharParam p) { return JsonConvert.SerializeObject(p); } } }
25
64
0.564286
[ "MIT" ]
ThalusUlysses/Forma
src/Thalus.Forma/Formatter/Json/CharFormatter.cs
702
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace ExtractorSharp.Component.Properties { using System; /// <summary> /// 一个强类型的资源类,用于查找本地化的字符串等。 /// </summary> // 此类是由 StronglyTypedResourceBuilder // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // (以 /str 作为命令选项),或重新生成 VS 项目。 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// 返回此类使用的缓存的 ResourceManager 实例。 /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ExtractorSharp.Component.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// 重写当前线程的 CurrentUICulture 属性 /// 重写当前线程的 CurrentUICulture 属性。 /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// </summary> internal static System.Drawing.Bitmap errorIcon { get { object obj = ResourceManager.GetObject("errorIcon", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// 查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。 /// </summary> internal static System.Drawing.Icon logo { get { object obj = ResourceManager.GetObject("logo", resourceCulture); return ((System.Drawing.Icon)(obj)); } } /// <summary> /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// </summary> internal static System.Drawing.Bitmap successIcon { get { object obj = ResourceManager.GetObject("successIcon", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// </summary> internal static System.Drawing.Bitmap warnningIcon { get { object obj = ResourceManager.GetObject("warnningIcon", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } } }
37.173077
190
0.560269
[ "MIT" ]
Kritsu/ExtractorSharp
ExtractorSharp.Component/Properties/Resources.Designer.cs
4,300
C#
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. #endregion using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; namespace Exceptionless.Json { /// <summary> /// The exception thrown when an error occurs during JSON serialization or deserialization. /// </summary> #if !(DOTNET || PORTABLE40 || PORTABLE || NETSTANDARD1_0 || NETSTANDARD1_1 || NETSTANDARD1_2 || NETSTANDARD1_3 || NETSTANDARD1_4 || NETSTANDARD1_5) [Serializable] #endif public class JsonSerializationException : JsonException { /// <summary> /// Initializes a new instance of the <see cref="JsonSerializationException"/> class. /// </summary> public JsonSerializationException() { } /// <summary> /// Initializes a new instance of the <see cref="JsonSerializationException"/> class /// with a specified error message. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> public JsonSerializationException(string message) : base(message) { } /// <summary> /// Initializes a new instance of the <see cref="JsonSerializationException"/> class /// with a specified error message and a reference to the inner exception that is the cause of this exception. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> /// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param> public JsonSerializationException(string message, Exception innerException) : base(message, innerException) { } #if !(DOTNET || PORTABLE40 || PORTABLE || NETSTANDARD1_0 || NETSTANDARD1_1 || NETSTANDARD1_2 || NETSTANDARD1_3 || NETSTANDARD1_4 || NETSTANDARD1_5) /// <summary> /// Initializes a new instance of the <see cref="JsonSerializationException"/> class. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception> public JsonSerializationException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endif internal static JsonSerializationException Create(JsonReader reader, string message) { return Create(reader, message, null); } internal static JsonSerializationException Create(JsonReader reader, string message, Exception ex) { return Create(reader as IJsonLineInfo, reader.Path, message, ex); } internal static JsonSerializationException Create(IJsonLineInfo lineInfo, string path, string message, Exception ex) { message = JsonPosition.FormatMessage(lineInfo, path, message); return new JsonSerializationException(message, ex); } } }
46.673267
188
0.694739
[ "Apache-2.0" ]
PolitovArtyom/Exceptionless.Net
src/Exceptionless/Newtonsoft.Json/JsonSerializationException.cs
4,714
C#
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // [START kms_update_key_update_labels] using Google.Cloud.Kms.V1; using Google.Protobuf.WellKnownTypes; public class UpdateKeyUpdateLabelsSample { public CryptoKey UpdateKeyUpdateLabels(string projectId = "my-project", string locationId = "us-east1", string keyRingId = "my-key-ring", string keyId = "my-key") { // Create the client. KeyManagementServiceClient client = KeyManagementServiceClient.Create(); // Build the key name. CryptoKeyName keyName = new CryptoKeyName(projectId, locationId, keyRingId, keyId); // // Step 1 - get the current set of labels on the key // // Get the current key. CryptoKey key = client.GetCryptoKey(keyName); // // Step 2 - add a label to the list of labels // // Add a new label key.Labels["new_label"] = "new_value"; // Build the update mask. FieldMask fieldMask = new FieldMask { Paths = { "labels" } }; // Call the API. CryptoKey result = client.UpdateCryptoKey(key, fieldMask); // Return the updated key. return result; } } // [END kms_update_key_update_labels]
29.193548
166
0.656906
[ "ECL-2.0", "Apache-2.0" ]
AdrianaDJ/dotnet-docs-samples
kms/api/Kms.Samples/UpdateKeyUpdateLabels.cs
1,810
C#
using System.Threading.Tasks; namespace Orleans.Indexing.Tests.MultiInterface { public interface IJobGrain { Task<string> GetTitle(); Task SetTitle(string value); Task<string> GetDepartment(); Task SetDepartment(string value); // For testing Task WriteState(); Task Deactivate(); } }
19.722222
47
0.625352
[ "MIT" ]
KSemenenko/Orleans.Indexing
test/Orleans.Indexing.Tests/Grains/MultiInterface/IJobGrain.cs
355
C#
namespace ShcIssuer.Models { using System; using System.Collections.Generic; public interface IPatient { public string FamilyName { get; set; } public IList<string> GivenNames { get; set; } public DateTime Birthdate { get; set; } } }
25.181818
53
0.638989
[ "Apache-2.0" ]
bradhead/shc-issuer
Services/ShcIssuer/src/Models/IPatient.cs
277
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ---------------------------------------------------------------------------------- using System.Management.Automation; using Microsoft.Azure.Commands.CosmosDB.Models; using Microsoft.Azure.Commands.CosmosDB.Helpers; using System; namespace Microsoft.Azure.Commands.CosmosDB { [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBSqlIndexingPolicy"), OutputType(typeof(PSSqlIndexingPolicy))] public class NewAzCosmosDBSqlIndexingPolicy : AzureCosmosDBCmdletBase { [Parameter(Mandatory = true, HelpMessage = Constants.IndexingPolicyIncludedPathHelpMessage)] public string[] IncludedPath { get; set; } [Parameter(Mandatory = true, HelpMessage = Constants.IndexingPolicyExcludedPathHelpMessage)] public string[] ExcludedPath { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.IndexingPolicyAutomaticHelpMessage)] public bool? Automatic { get; set; } [Parameter(Mandatory = true, HelpMessage = Constants.IndexingPolicyIndexingModeIndexHelpMessage)] public string IndexingMode { get; set; } public override void ExecuteCmdlet() { PSSqlIndexingPolicy sqlIndexingPolicy = new PSSqlIndexingPolicy(); if (IncludedPath != null && IncludedPath.Length > 0) sqlIndexingPolicy.IncludedPaths = IncludedPath; if (ExcludedPath != null && ExcludedPath.Length > 0) sqlIndexingPolicy.ExcludedPaths = ExcludedPath; sqlIndexingPolicy.Automatic = Automatic; if (IndexingMode != null) sqlIndexingPolicy.IndexingMode = IndexingMode; WriteObject(sqlIndexingPolicy); return; } } }
43.561404
156
0.649215
[ "MIT" ]
JKeddo95/azure-powershell
src/CosmosDB/CosmosDB/SQL/NewAzCosmosDBSqlIndexingPolicy.cs
2,429
C#
using System; namespace Assets.UBindr.Bindings { public abstract class SourcedBinding : BindingWithBindingSources { public string SourceExpression; public virtual string GetSourceExpression() { return SourceExpression; } public object GetSourceValue() { if (string.IsNullOrEmpty(SourceExpression)) { return null; } return Evaluate(SourceExpression); } public void SetSourceValue(object value) { if (string.IsNullOrEmpty(SourceExpression)) { return; } SetValue(SourceExpression, value); } } }
21.911765
68
0.531544
[ "MIT" ]
Anatoliy-Lejud/sound-designer-check
Assets/UBindr/Bindings/SourcedBinding.cs
745
C#
// Copyright © 2012-2021 VLINGO LABS. All rights reserved. // // This Source Code Form is subject to the terms of the // Mozilla Public License, v. 2.0. If a copy of the MPL // was not distributed with this file, You can obtain // one at https://mozilla.org/MPL/2.0/. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Vlingo.Xoom.Turbo.Annotation.Persistence; using Vlingo.Xoom.Turbo.Codegen.Template; namespace Vlingo.Xoom.Turbo.Annotation.Initializer.ContentLoader { public class ProjectionContentLoader : TypeBasedContentLoader { public ProjectionContentLoader(Type annotatedClass, ProcessingEnvironment environment) : base(annotatedClass, environment) { } protected override TemplateStandard Standard() => new TemplateStandard(TemplateStandardType.Projection); protected override List<Type> RetrieveContentSource() { var projections = AnnotatedClass!.GetCustomAttribute<Projections>(); if (projections == null) return new List<Type>(); return new[] { projections.Value } .Select(projection => TypeRetriever.From(projections, projection => (projection as Projection)!.Actor)) .ToList(); } } }
31.315789
111
0.758824
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Luteceo/vlingo-net-xoom
src/Vlingo.Xoom.Turbo/Annotation/Initializer/ContentLoader/ProjectionContentLoader.cs
1,191
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace XamlBoys { /// <summary> /// Provides application-specific behavior to supplement the default Application class. /// </summary> sealed partial class App : Application { /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; } /// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { Frame rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { //TODO: Load state from previously suspended application } // Place the frame in the current Window Window.Current.Content = rootFrame; } if (e.PrelaunchActivated == false) { if (rootFrame.Content == null) { // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter rootFrame.Navigate(typeof(MainPage), e.Arguments); } // Ensure the current window is active Window.Current.Activate(); } } /// <summary> /// Invoked when Navigation to a certain page fails /// </summary> /// <param name="sender">The Frame which failed navigation</param> /// <param name="e">Details about the navigation failure</param> void OnNavigationFailed(object sender, NavigationFailedEventArgs e) { throw new Exception("Failed to load Page " + e.SourcePageType.FullName); } /// <summary> /// Invoked when application execution is being suspended. Application state is saved /// without knowing whether the application will be terminated or resumed with the contents /// of memory still intact. /// </summary> /// <param name="sender">The source of the suspend request.</param> /// <param name="e">Details about the suspend request.</param> private void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application state and stop any background activity deferral.Complete(); } } }
39.80198
100
0.598756
[ "MIT" ]
nozzlegear/uwp-playground
XamlBoys/App.xaml.cs
4,022
C#
// Decompiled with JetBrains decompiler // Type: CocoStudio.ToolKit.UndoEntryIntEx // Assembly: CocoStudio.ToolKit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: 1DF66ED6-34A9-42A1-B332-161EEDB05F29 // Assembly location: C:\Program Files (x86)\Cocos\Cocos Studio 2\CocoStudio.ToolKit.dll using CocoStudio.Core.Commands; using Gtk; using MonoDevelop.Components.Commands; namespace CocoStudio.ToolKit { public class UndoEntryIntEx : EntryIntEx { [CommandHandler(CmdEnum.UndoCmd)] private void OnUndoHandle() { } } }
26.47619
88
0.758993
[ "MIT" ]
gdbobu/CocoStudio2.0.6
CocoStudio.ToolKit/UndoEntryIntEx.cs
558
C#
using System; using Server; using Server.Prompts; namespace Server.Multis { public class RenameBoatPrompt : Prompt { private BaseBoat m_Boat; public RenameBoatPrompt( BaseBoat boat ) { m_Boat = boat; } public override void OnResponse( Mobile from, string text ) { m_Boat.EndRename( from, text ); } } }
15.571429
61
0.703364
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Multis/Boats/RenameBoatPrompt.cs
327
C#
using System.Web; using System.Web.Mvc; namespace NBCZ.Web.Api { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.857143
81
0.618705
[ "MIT" ]
chi8708/NBCZ_Admin_Vue
NBCZ.Web.Api/App_Start/FilterConfig.cs
280
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the servicecatalog-2015-12-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.ServiceCatalog.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ServiceCatalog.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeProductView operation /// </summary> public class DescribeProductViewResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeProductViewResponse response = new DescribeProductViewResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProductViewSummary", targetDepth)) { var unmarshaller = ProductViewSummaryUnmarshaller.Instance; response.ProductViewSummary = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProvisioningArtifacts", targetDepth)) { var unmarshaller = new ListUnmarshaller<ProvisioningArtifact, ProvisioningArtifactUnmarshaller>(ProvisioningArtifactUnmarshaller.Instance); response.ProvisioningArtifacts = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParametersException")) { return InvalidParametersExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonServiceCatalogException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeProductViewResponseUnmarshaller _instance = new DescribeProductViewResponseUnmarshaller(); internal static DescribeProductViewResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeProductViewResponseUnmarshaller Instance { get { return _instance; } } } }
40.691667
198
0.636904
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/ServiceCatalog/Generated/Model/Internal/MarshallTransformations/DescribeProductViewResponseUnmarshaller.cs
4,883
C#
using Newtonsoft.Json; using SharpOfClans.Models.Common; using SharpOfClans.Models.Locations; namespace SharpOfClans.Models.Rankings { public class ClanVersusRanking { /// <summary> /// The clan's tag. /// </summary> [JsonProperty("tag")] public string Tag { get; set; } /// <summary> /// The clan's name. /// </summary> [JsonProperty("name")] public string Name { get; set; } /// <summary> /// The clan's location. /// </summary> [JsonProperty("location")] public Location Location { get; set; } /// <summary> /// The clan's badges urls. /// </summary> [JsonProperty("badgeUrls")] public BadgeUrls BadgeUrls { get; set; } /// <summary> /// The clan's level. /// </summary> [JsonProperty("clanLevel")] public int ClanLevel { get; set; } /// <summary> /// The clan's total members. /// </summary> [JsonProperty("members")] public int Members { get; set; } /// <summary> /// The clan's ranking position. /// </summary> [JsonProperty("rank")] public int Rank { get; set; } /// <summary> /// The clan's previous ranking position. /// </summary> [JsonProperty("previousRank")] public int PreviousRank { get; set; } /// <summary> /// The clan's versus points. /// </summary> [JsonProperty("clanVersusPoints")] public int ClanVersusPoints { get; set; } } }
25.5
49
0.512868
[ "MIT" ]
Matcheryt/SharpOfClans
SharpOfClans/Models/Rankings/ClanVersusRanking.cs
1,634
C#
using System; using System.Linq; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace ModIO.UI { [Obsolete("No longer supported. Use TagContainer instead.")] [RequireComponent(typeof(ModTagCollectionDisplayComponent))] public class ModTagCategoryDisplay : MonoBehaviour { // ---------[ FIELDS ]--------- [Header("Settings")] public bool capitalizeCategory; [Header("UI Components")] public Text nameDisplay; // ---------[ ACCESSORS ]--------- public ModTagCollectionDisplayComponent tagDisplay { get { return this.gameObject.GetComponent<ModTagCollectionDisplayComponent>(); } } // ---------[ INITIALIZATION ]--------- public void Initialize() { Debug.Assert(nameDisplay != null); Debug.Assert(tagDisplay != null); tagDisplay.Initialize(); } // ---------[ UI FUNCTIONALITY ]--------- public void DisplayCategory(string categoryName, IEnumerable<string> tags) { Debug.Assert(categoryName != null); Debug.Assert(tags != null); ModTagCategory category = new ModTagCategory() { name = categoryName, tags = tags.ToArray(), }; DisplayCategory(category); } public void DisplayCategory(ModTagCategory category) { Debug.Assert(category != null); nameDisplay.text = (capitalizeCategory ? category.name.ToUpper() : category.name); tagDisplay.DisplayTags(category.tags, new ModTagCategory[] { category }); } } }
29.724138
94
0.566705
[ "MIT" ]
DBolical/modioUNITY
Runtime/_Obsolete/UI/ModTagCategoryDisplay.cs
1,724
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("4.CalcSurfaceTriangle")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("4.CalcSurfaceTriangle")] [assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("d465da92-8fac-4f56-b234-489397ab6e9c")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.243243
84
0.746996
[ "MIT" ]
madbadPi/TelerikAcademy
CSharpPartTwo/UsingClassesAndObjects/4.CalcSurfaceTriangle/Properties/AssemblyInfo.cs
1,418
C#
#region License // // Match.cs March 2002 // // Copyright (C) 2001, Niall Gallagher <niallg@users.sf.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or // implied. See the License for the specific language governing // permissions and limitations under the License. // #endregion #region Using directives using System; #endregion namespace SimpleFramework.Xml.Util { /// <summary> /// This object is stored within a <c>Resolver</c> so that it /// can be retrieved using a string that matches its pattern. Any /// object that : this can be inserted into the resolver and /// retrieved using a string that matches its pattern. For example /// take the following pattern "*.html" this will match the string /// "/index.html" or "readme.html". This object should be extended /// to add more XML attributes and elements, which can be retrieved /// when the <c>Match</c> object is retrieve from a resolver. /// </summary> public interface Match { /// <summary> /// This is the pattern string that is used by the resolver. A /// pattern can consist of a "*" character and a "?" character /// to match the pattern. Implementations of this class should /// provide the pattern so that it can be used for resolution. /// </summary> /// <returns> /// this returns the pattern that is to be matched /// </returns> public String Pattern { get; } //public String GetPattern(); }
38.306122
70
0.681406
[ "Apache-2.0" ]
AMCON-GmbH/simplexml
port/src/main/Xml/Util/Match.cs
1,877
C#
using System; using System.Collections; using System.IO; using My2C2P.Org.BouncyCastle.Asn1; using My2C2P.Org.BouncyCastle.Asn1.Ocsp; using My2C2P.Org.BouncyCastle.Asn1.X509; using My2C2P.Org.BouncyCastle.Crypto; using My2C2P.Org.BouncyCastle.Crypto.Parameters; using My2C2P.Org.BouncyCastle.Security; using My2C2P.Org.BouncyCastle.Security.Certificates; using My2C2P.Org.BouncyCastle.Utilities; using My2C2P.Org.BouncyCastle.X509; namespace My2C2P.Org.BouncyCastle.Ocsp { public class OcspReqGenerator { private IList list = Platform.CreateArrayList(); private GeneralName requestorName = null; private X509Extensions requestExtensions = null; private class RequestObject { internal CertificateID certId; internal X509Extensions extensions; public RequestObject( CertificateID certId, X509Extensions extensions) { this.certId = certId; this.extensions = extensions; } public Request ToRequest() { return new Request(certId.ToAsn1Object(), extensions); } } /** * Add a request for the given CertificateID. * * @param certId certificate ID of interest */ public void AddRequest( CertificateID certId) { list.Add(new RequestObject(certId, null)); } /** * Add a request with extensions * * @param certId certificate ID of interest * @param singleRequestExtensions the extensions to attach to the request */ public void AddRequest( CertificateID certId, X509Extensions singleRequestExtensions) { list.Add(new RequestObject(certId, singleRequestExtensions)); } /** * Set the requestor name to the passed in X509Principal * * @param requestorName a X509Principal representing the requestor name. */ public void SetRequestorName( X509Name requestorName) { try { this.requestorName = new GeneralName(GeneralName.DirectoryName, requestorName); } catch (Exception e) { throw new ArgumentException("cannot encode principal", e); } } public void SetRequestorName( GeneralName requestorName) { this.requestorName = requestorName; } public void SetRequestExtensions( X509Extensions requestExtensions) { this.requestExtensions = requestExtensions; } private OcspReq GenerateRequest( DerObjectIdentifier signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, SecureRandom random) { Asn1EncodableVector requests = new Asn1EncodableVector(); foreach (RequestObject reqObj in list) { try { requests.Add(reqObj.ToRequest()); } catch (Exception e) { throw new OcspException("exception creating Request", e); } } TbsRequest tbsReq = new TbsRequest(requestorName, new DerSequence(requests), requestExtensions); ISigner sig = null; Signature signature = null; if (signingAlgorithm != null) { if (requestorName == null) { throw new OcspException("requestorName must be specified if request is signed."); } try { sig = SignerUtilities.GetSigner(signingAlgorithm.Id); if (random != null) { sig.Init(true, new ParametersWithRandom(privateKey, random)); } else { sig.Init(true, privateKey); } } catch (Exception e) { throw new OcspException("exception creating signature: " + e, e); } DerBitString bitSig = null; try { byte[] encoded = tbsReq.GetEncoded(); sig.BlockUpdate(encoded, 0, encoded.Length); bitSig = new DerBitString(sig.GenerateSignature()); } catch (Exception e) { throw new OcspException("exception processing TBSRequest: " + e, e); } AlgorithmIdentifier sigAlgId = new AlgorithmIdentifier(signingAlgorithm, DerNull.Instance); if (chain != null && chain.Length > 0) { Asn1EncodableVector v = new Asn1EncodableVector(); try { for (int i = 0; i != chain.Length; i++) { v.Add( X509CertificateStructure.GetInstance( Asn1Object.FromByteArray(chain[i].GetEncoded()))); } } catch (IOException e) { throw new OcspException("error processing certs", e); } catch (CertificateEncodingException e) { throw new OcspException("error encoding certs", e); } signature = new Signature(sigAlgId, bitSig, new DerSequence(v)); } else { signature = new Signature(sigAlgId, bitSig); } } return new OcspReq(new OcspRequest(tbsReq, signature)); } /** * Generate an unsigned request * * @return the OcspReq * @throws OcspException */ public OcspReq Generate() { return GenerateRequest(null, null, null, null); } public OcspReq Generate( string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain) { return Generate(signingAlgorithm, privateKey, chain, null); } public OcspReq Generate( string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, SecureRandom random) { if (signingAlgorithm == null) throw new ArgumentException("no signing algorithm specified"); try { DerObjectIdentifier oid = OcspUtilities.GetAlgorithmOid(signingAlgorithm); return GenerateRequest(oid, privateKey, chain, random); } catch (ArgumentException) { throw new ArgumentException("unknown signing algorithm specified: " + signingAlgorithm); } } /** * Return an IEnumerable of the signature names supported by the generator. * * @return an IEnumerable containing recognised names. */ public IEnumerable SignatureAlgNames { get { return OcspUtilities.AlgNames; } } } }
23.512295
99
0.681367
[ "MIT" ]
2C2P/My2C2PPKCS7
My2C2PPKCS7/ocsp/OCSPReqGenerator.cs
5,737
C#
// MIT License // // Copyright (c) 2019 Stormancer // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. using Stormancer.Core; using Stormancer.Server.Plugins.Leaderboards; namespace Stormancer { /// <summary> /// Leaderboard extensions class. /// </summary> public static class LeaderboardExtensions { /// <summary> /// Adds the leaderboard API to a scene. /// </summary> /// <param name="scene"></param> public static void AddLeaderboard(this ISceneHost scene) { scene.Metadata[LeaderboardPlugin.METADATA_KEY] = "enabled"; } } }
38.302326
81
0.714026
[ "MIT" ]
Stormancer/plugins
src/Stormancer.Plugins/Leaderboards/Stormancer.Server.Plugins.Leaderboards/LeaderboardExtensions.cs
1,647
C#
/* * Bungie.Net API * * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. * * OpenAPI spec version: 2.1.1 * Contact: support@bungie.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using NUnit.Framework; using System; using System.Linq; using System.IO; using System.Collections.Generic; using BungieNetPlatform.Api; using BungieNetPlatform.Model; using BungieNetPlatform.Client; using System.Reflection; using Newtonsoft.Json; namespace BungieNetPlatform.Test { /// <summary> /// Class for testing DestinyMilestonesDestinyMilestoneRewardCategory /// </summary> /// <remarks> /// This file is automatically generated by Swagger Codegen. /// Please update the test case below to test the model. /// </remarks> [TestFixture] public class DestinyMilestonesDestinyMilestoneRewardCategoryTests { // TODO uncomment below to declare an instance variable for DestinyMilestonesDestinyMilestoneRewardCategory //private DestinyMilestonesDestinyMilestoneRewardCategory instance; /// <summary> /// Setup before each test /// </summary> [SetUp] public void Init() { // TODO uncomment below to create an instance of DestinyMilestonesDestinyMilestoneRewardCategory //instance = new DestinyMilestonesDestinyMilestoneRewardCategory(); } /// <summary> /// Clean up after each test /// </summary> [TearDown] public void Cleanup() { } /// <summary> /// Test an instance of DestinyMilestonesDestinyMilestoneRewardCategory /// </summary> [Test] public void DestinyMilestonesDestinyMilestoneRewardCategoryInstanceTest() { // TODO uncomment below to test "IsInstanceOfType" DestinyMilestonesDestinyMilestoneRewardCategory //Assert.IsInstanceOfType<DestinyMilestonesDestinyMilestoneRewardCategory> (instance, "variable 'instance' is a DestinyMilestonesDestinyMilestoneRewardCategory"); } /// <summary> /// Test the property 'RewardCategoryHash' /// </summary> [Test] public void RewardCategoryHashTest() { // TODO unit test for the property 'RewardCategoryHash' } /// <summary> /// Test the property 'Entries' /// </summary> [Test] public void EntriesTest() { // TODO unit test for the property 'Entries' } } }
30.179775
194
0.660834
[ "MIT" ]
xlxCLUxlx/BungieNetPlatform
src/BungieNetPlatform.Test/Model/DestinyMilestonesDestinyMilestoneRewardCategoryTests.cs
2,686
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Build.Engine { using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using Microsoft.DocAsCode.Common; public class PreprocessorLoader { private readonly IResourceFileReader _reader; private readonly int _maxParallelism; private readonly DocumentBuildContext _context; public PreprocessorLoader(IResourceFileReader reader, DocumentBuildContext context, int maxParallelism) { _reader = reader; _maxParallelism = maxParallelism; _context = context; } public IEnumerable<ITemplatePreprocessor> LoadStandalones() { // Only files under root folder are allowed foreach (var res in _reader.GetResources($@"^[^/]*{Regex.Escape(TemplateJintPreprocessor.StandaloneExtension)}$")) { var name = Path.GetFileNameWithoutExtension(res.Path.Remove(res.Path.LastIndexOf('.'))); var preprocessor = Load(res, name); if (preprocessor != null) { yield return preprocessor; } } } public IEnumerable<ITemplatePreprocessor> LoadFromRenderer(ITemplateRenderer renderer) { var viewPath = renderer.Path; var preproceesorPath = Path.ChangeExtension(viewPath, TemplateJintPreprocessor.Extension); var res = _reader.GetResource(preproceesorPath); var preprocessor = Load(new ResourceInfo(preproceesorPath, res), renderer.Name); if (preprocessor != null) { yield return preprocessor; } } public ITemplatePreprocessor Load(ResourceInfo res, string name = null) { if (res == null || string.IsNullOrWhiteSpace(res.Content)) { return null; } using (new LoggerFileScope(res.Path)) { var extension = Path.GetExtension(res.Path); if (extension.Equals(TemplateJintPreprocessor.Extension, System.StringComparison.OrdinalIgnoreCase)) { return new PreprocessorWithResourcePool(() => new TemplateJintPreprocessor(_reader, res, _context, name), _maxParallelism); } else { Logger.LogWarning($"{res.Path} is not a supported template preprocessor."); return null; } } } } }
37.573333
144
0.579489
[ "MIT" ]
Algorithman/docfx
src/Microsoft.DocAsCode.Build.Engine/TemplateProcessors/Preprocessors/PreprocessorLoader.cs
2,744
C#
using System.Windows.Input; namespace ModernFlyouts { public class LockKeysHelper : HelperBase { private LockKeysControl lockKeysControl; public override event ShowFlyoutEventHandler ShowFlyoutRequested; public LockKeysHelper() { Initialize(); } public void Initialize() { AlwaysHandleDefaultFlyout = false; PrimaryContent = null; PrimaryContentVisible = false; lockKeysControl = new LockKeysControl(); SecondaryContent = lockKeysControl; SecondaryContentVisible = true; OnEnabled(); } private void KeyPressed(Key Key, int virtualKey) { if (Key == Key.CapsLock || Key == Key.Capital) { var islock = !Keyboard.IsKeyToggled(Key.CapsLock); Prepare(LockKeys.CapsLock, islock); ShowFlyout(); } else if (Key == Key.NumLock) { var islock = !Keyboard.IsKeyToggled(Key.NumLock); Prepare(LockKeys.NumLock, islock); ShowFlyout(); } else if (Key == Key.Scroll) { var islock = !Keyboard.IsKeyToggled(Key.Scroll); Prepare(LockKeys.ScrollLock, islock); ShowFlyout(); } void ShowFlyout() { ShowFlyoutRequested?.Invoke(this); } } private void Prepare(LockKeys key, bool islock) { var msg = key.ToString() + (islock ? " is on." : " is off."); lockKeysControl.txt.Text = msg; } private enum LockKeys { CapsLock, NumLock, ScrollLock } protected override void OnEnabled() { base.OnEnabled(); Properties.Settings.Default.LockKeysModuleEnabled = IsEnabled; Properties.Settings.Default.Save(); if (IsEnabled) { FlyoutHandler.Instance.KeyboardHook.KeyDown += KeyPressed; } } protected override void OnDisabled() { base.OnDisabled(); FlyoutHandler.Instance.KeyboardHook.KeyDown -= KeyPressed; Properties.Settings.Default.LockKeysModuleEnabled = IsEnabled; Properties.Settings.Default.Save(); } } }
26.446809
74
0.51971
[ "MIT" ]
Cyberdroid1/ModernFlyouts
ModernFlyouts/Helpers/LockKeysHelper.cs
2,488
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 namespace BezierLoop.WinApp { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> public sealed partial class MainPage : Xamarin.Forms.Platform.WinRT.WindowsPage { public MainPage() { this.InitializeComponent(); LoadApplication(new BezierLoop.App()); } } }
27.333333
94
0.722838
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter22/BezierLoop/BezierLoop/BezierLoop.WinApp/MainPage.xaml.cs
904
C#
using System.Collections.Generic; using System.Threading.Tasks; using LightPlayer.Core.Models; namespace LightPlayer.Core.Facades { public interface IVideoProvider { string ProviderId { get; } Task<IEnumerable<Episode>> GetEpisodesAsync(string word); Task<IEnumerable<PlayList>> GetPlayListsAsync(Episode episode); Task<string> GetStreamUrlAsync(Video video); } }
24.176471
71
0.725061
[ "MIT" ]
aguang-xyz/light-player
LightPlayer.Core/Facades/IVideoProvider.cs
411
C#
/* ========================================================================= ISimpleLogger.cs Copyright(c) R-Koubou ======================================================================== */ using System.Runtime.CompilerServices; namespace RKoubou.SimpleLogging { /// <summary> /// Interface for logger implementation. /// </summary> public interface ISimpleLogger : System.IDisposable { /// <summary> /// For creating a formatted message /// </summary> ISimpleLogFormatter Formatter { get; set; } /// <summary> /// Log a message with formatter. /// </summary> void LogException( LogLevel level, System.Exception exception, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ); /// <summary> /// Log a message with formatter. /// </summary> void Log( LogLevel level, object message, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ); } /// <summary> /// Extension for ISimpleLogger /// </summary> public static class ISimpleLoggerExtension { /// <summary> /// Log with <see cref="LogLevel.Debug"/> alias of <see cref="ISimpleLogger.Log(LogLevel, object, string, int, string)"/> /// </summary> public static void LogDebug( this ISimpleLogger logger, object message, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ) { logger.Log( LogLevel.Debug, message, callerFilePath, callerLineNumber, callerMemberName ); } /// <summary> /// Log with <see cref="LogLevel.Warning"/> alias of <see cref="ISimpleLogger.Log(LogLevel, object, string, int, string)"/> /// </summary> public static void LogWaring( this ISimpleLogger logger, object message, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ) { logger.Log( LogLevel.Warning, message, callerFilePath, callerLineNumber, callerMemberName ); } /// <summary> /// Log with <see cref="LogLevel.Error"/> alias of <see cref="ISimpleLogger.LogException(LogLevel, System.Exception, string, int, string)"/> /// </summary> public static void LogException( this ISimpleLogger logger, System.Exception exception, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ) { logger.LogException( LogLevel.Error, exception ); } /// <summary> /// Log with <see cref="LogLevel.Error"/> alias of <see cref="ISimpleLogger.Log(LogLevel, object, string, int, string)"/> /// </summary> public static void LogError( this ISimpleLogger logger, object message, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ) { logger.Log( LogLevel.Error, message, callerFilePath, callerLineNumber, callerMemberName ); } /// <summary> /// Log with <see cref="LogLevel.Fatal"/> alias of <see cref="ISimpleLogger.Log(LogLevel, object, string, int, string)"/> /// </summary> public static void LogFatal( this ISimpleLogger logger, object message, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0, [CallerMemberName] string callerMemberName = "" ) { logger.Log( LogLevel.Fatal, message, callerFilePath, callerLineNumber, callerMemberName ); } } }
37.4
148
0.56638
[ "MIT" ]
r-koubou/unity-simple-logger
Assets/RKoubou/SimpleLogging/Scripts/ISimpleLogger.cs
4,301
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using Newtonsoft.Json; namespace Microsoft.Bot.Builder.Adapters.Facebook.FacebookEvents.Handover { /// <summary>A Facebook thread control message, including app ID of requested thread owner and an optional message /// to send with the request.</summary> [Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")] public class FacebookRequestThreadControl : FacebookThreadControl { /// <summary> /// Gets or sets the app ID of the requested owner. /// </summary> /// <remarks> /// 263902037430900 for the page inbox. /// </remarks> /// <value> /// the app ID of the requested owner. /// </value> [JsonProperty("requested_owner_app_id")] public string RequestedOwnerAppId { get; set; } } }
40.592593
245
0.681569
[ "MIT" ]
Arsh-Kashyap/botbuilder-dotnet
libraries/Adapters/Microsoft.Bot.Builder.Adapters.Facebook/FacebookEvents/Handover/FacebookRequestThreadControl.cs
1,098
C#
#if UNITY_EDITOR using UnityEditor; using System; namespace UnityToolbox.EditorTools { public class IndentBlock : IDisposable { public IndentBlock() { EditorGUI.indentLevel++; } public void Dispose() { EditorGUI.indentLevel--; } } } #endif
12.571429
39
0.700758
[ "MIT" ]
Fishrock123/UnityToolbox
Types/EditorTypes/IndentBlock.cs
266
C#
using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using DestinyMod.Common.Projectiles.ProjectileType; using Terraria.ModLoader; using DestinyMod.Content.Buffs.Debuffs; namespace DestinyMod.Content.Projectiles.Weapons.Ranged { public class RiskrunnerBullet : Bullet { public override string Texture => "Terraria/Images/Projectile_" + ProjectileID.NanoBullet; public override Color? GetAlpha(Color lightColor) => new Color(lightColor.R * 0.1f, lightColor.G * 0.5f, lightColor.B, lightColor.A); public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { if (Main.rand.NextBool(10)) { target.AddBuff(ModContent.BuffType<Conducted>(), 120); } } public override void OnHitPvp(Player target, int damage, bool crit) { if (Main.rand.NextBool(10)) { target.AddBuff(ModContent.BuffType<Conducted>(), 120); } } } }
32.09375
141
0.642648
[ "MIT" ]
MikhailMCraft/DestinyMod
Content/Projectiles/Weapons/Ranged/RiskrunnerBullet.cs
1,027
C#
using System; using NUnit.Framework; using ServiceStack.Common; using ServiceStack.DataAnnotations; using ServiceStack.Logging; using ServiceStack.Text; namespace ServiceStack.Common.Tests.Models { public class ModelWithFieldsOfDifferentTypesAsNullables { private static readonly ILog Log = LogManager.GetLogger(typeof(ModelWithFieldsOfDifferentTypesAsNullables)); public int? Id { get; set; } public string Name { get; set; } public long? LongId { get; set; } public Guid? Guid { get; set; } public bool? Bool { get; set; } public DateTime? DateTime { get; set; } public double? Double { get; set; } public static ModelWithFieldsOfDifferentTypesAsNullables Create(int id) { var row = new ModelWithFieldsOfDifferentTypesAsNullables { Id = id, Bool = id % 2 == 0, DateTime = System.DateTime.Now.AddDays(id), Double = 1.11d + id, Guid = System.Guid.NewGuid(), LongId = 999 + id, Name = "Name" + id }; return row; } public static ModelWithFieldsOfDifferentTypesAsNullables CreateConstant(int id) { var row = new ModelWithFieldsOfDifferentTypesAsNullables { Id = id, Bool = id % 2 == 0, DateTime = new DateTime(1979, (id % 12) + 1, (id % 28) + 1), Double = 1.11d + id, Guid = new Guid(((id % 240) + 16).ToString("X") + "726E3B-9983-40B4-A8CB-2F8ADA8C8760"), LongId = 999 + id, Name = "Name" + id }; return row; } public static void AssertIsEqual(ModelWithFieldsOfDifferentTypes actual, ModelWithFieldsOfDifferentTypesAsNullables expected) { Assert.That(actual.Id, Is.EqualTo(expected.Id.Value)); Assert.That(actual.Name, Is.EqualTo(expected.Name)); Assert.That(actual.Guid, Is.EqualTo(expected.Guid.Value)); Assert.That(actual.LongId, Is.EqualTo(expected.LongId.Value)); Assert.That(actual.Bool, Is.EqualTo(expected.Bool.Value)); try { Assert.That(actual.DateTime, Is.EqualTo(expected.DateTime.Value)); } catch (Exception ex) { Log.Error("Trouble with DateTime precisions, trying Assert again with rounding to seconds", ex); Assert.That(actual.DateTime.RoundToSecond(), Is.EqualTo(expected.DateTime.Value.RoundToSecond())); } try { Assert.That(actual.Double, Is.EqualTo(expected.Double.Value)); } catch (Exception ex) { Log.Error("Trouble with double precisions, trying Assert again with rounding to 10 decimals", ex); Assert.That(Math.Round(actual.Double, 10), Is.EqualTo(Math.Round(actual.Double, 10))); } } } public class ModelWithFieldsOfDifferentTypes { private static readonly ILog Log = LogManager.GetLogger(typeof(ModelWithFieldsOfDifferentTypes)); [AutoIncrement] public int Id { get; set; } public string Name { get; set; } public long LongId { get; set; } public Guid Guid { get; set; } public bool Bool { get; set; } public DateTime DateTime { get; set; } public double Double { get; set; } public static ModelWithFieldsOfDifferentTypes Create(int id) { var row = new ModelWithFieldsOfDifferentTypes { Id = id, Bool = id % 2 == 0, DateTime = DateTime.Now.AddDays(id), Double = 1.11d + id, Guid = Guid.NewGuid(), LongId = 999 + id, Name = "Name" + id }; return row; } public static ModelWithFieldsOfDifferentTypes CreateConstant(int id) { var row = new ModelWithFieldsOfDifferentTypes { Id = id, Bool = id % 2 == 0, DateTime = new DateTime(1979, (id % 12) + 1, (id % 28) + 1), Double = 1.11d + id, Guid = new Guid(((id % 240) + 16).ToString("X") + "726E3B-9983-40B4-A8CB-2F8ADA8C8760"), LongId = 999 + id, Name = "Name" + id }; return row; } public override bool Equals(object obj) { var other = obj as ModelWithFieldsOfDifferentTypes; if (other == null) return false; try { AssertIsEqual(this, other); return true; } catch (Exception) { return false; } } public override int GetHashCode() { return (Id + Guid.ToString()).GetHashCode(); } public static void AssertIsEqual(ModelWithFieldsOfDifferentTypes actual, ModelWithFieldsOfDifferentTypes expected) { Assert.That(actual.Id, Is.EqualTo(expected.Id)); Assert.That(actual.Name, Is.EqualTo(expected.Name)); Assert.That(actual.Guid, Is.EqualTo(expected.Guid)); Assert.That(actual.LongId, Is.EqualTo(expected.LongId)); Assert.That(actual.Bool, Is.EqualTo(expected.Bool)); try { Assert.That(actual.DateTime, Is.EqualTo(expected.DateTime)); } catch (Exception ex) { Log.Error("Trouble with DateTime precisions, trying Assert again with rounding to seconds", ex); Assert.That(actual.DateTime.RoundToSecond(), Is.EqualTo(expected.DateTime.RoundToSecond())); } try { Assert.That(actual.Double, Is.EqualTo(expected.Double)); } catch (Exception ex) { Log.Error("Trouble with double precisions, trying Assert again with rounding to 10 decimals", ex); Assert.That(Math.Round(actual.Double, 10), Is.EqualTo(Math.Round(actual.Double, 10))); } } } }
34.882979
134
0.522873
[ "Apache-2.0" ]
BruceCowan-AI/ServiceStack
tests/ServiceStack.Common.Tests/Models/ModelWithFieldsOfDifferentTypes.cs
6,371
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the iotevents-2018-07-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.IoTEvents.Model { /// <summary> /// The request could not be completed due to throttling. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonIoTEventsException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
46.516129
178
0.676318
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/IoTEvents/Generated/Model/ThrottlingException.cs
5,768
C#
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BlazorWASMHosted_CRUD_B2C.API.Utility; using BlazorWASMHosted_CRUD_B2C.Data; using BlazorWASMHosted_CRUD_B2C.Service; namespace BlazorWASMHosted_CRUD_B2C.API.Controllers { public class CustomerController : Controller { private CustomerService _customerService; public CustomerController(CustomerService customerService) { _customerService = customerService; } [HttpPost] [Route("api/v1/customer")] [Authorize] async public Task<IActionResult> CustomerCreate([FromBody] Common.Customer model) { string userId = User.GetUserId(); var result = await _customerService.CustomerCreate(model, userId); if(result.Success == false) { return BadRequest(result.Message); } return Ok(result.Response); } [HttpGet] [Route("api/v1/customer/{customerId}")] [Authorize] async public Task<IActionResult> CustomerGetById(string customerId) { string userId = User.GetUserId(); var customer = await _customerService.CustomerGetById(customerId, userId); if (customer == null) return BadRequest("Customer not found"); return Ok(customer); } [HttpPut] [Route("api/v1/customer/{customerId}")] [Authorize] async public Task<IActionResult> CustomerUpdateById([FromBody] Common.Customer model, string customerId) { string userId = User.GetUserId(); var result = await _customerService.CustomerUpdateById(model, customerId, userId); if(result.Success == false) { return BadRequest(result.Message); } return Ok(result.Response); } [HttpDelete] [Route("api/v1/customer/{customerId}")] [Authorize] async public Task<IActionResult> CustomerDeleteById(string customerId) { string userId = User.GetUserId(); await _customerService.CustomerDeleteById(customerId, userId); return Ok(); } [Authorize] [HttpPost] [Route("api/v1/customers")] async public Task<IActionResult> CustomerSearch([FromBody] Common.Search model) { string userId = User.GetUserId(); var searchResponse = await _customerService.CustomerSearch(model, userId); return Ok(searchResponse); } [HttpGet] [Authorize] [Route("api/v1/seed/create/{number}")] async public Task<IActionResult> SeedCustomers(int number) { string userId = User.GetUserId(); for (int a = 0; a < number; a++) { var customer = new Common.Customer() { Name = LoremNET.Lorem.Words(2), Gender = (Common.Enumerations.Gender)LoremNET.Lorem.Number(0, 2), Email = LoremNET.Lorem.Email(), Phone = LoremNET.Lorem.Number(1111111111, 9999999999).ToString(), Address = $"{LoremNET.Lorem.Number(100, 10000).ToString()} {LoremNET.Lorem.Words(1)}", City = LoremNET.Lorem.Words(1), State = LoremNET.Lorem.Words(1), Postal = LoremNET.Lorem.Number(11111, 99999).ToString(), BirthDate = LoremNET.Lorem.DateTime(1923, 1, 1), Notes = LoremNET.Lorem.Paragraph(5, 10, 10), Active = LoremNET.Lorem.Number(0, 1) == 0 ? false : true }; await _customerService.CustomerCreate(customer, userId); } return Ok(); } [HttpGet] [Route("api/v1/ping")] public IActionResult Ping() { return Ok("Received..."); } }//End Controller }
31.350746
112
0.573673
[ "Unlicense" ]
dahln/BlazorWASMHosted_CRUD_B2C
BlazorWASMHosted_CRUD_B2C.Server/Controllers/CustomerController.cs
4,203
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class FlyingEnemy1 : MonoBehaviour { [SerializeField] float moveSpeed; Vector2[] wayPoint; private Vector2 currentWayPoint; int wayPointIndex = 0; private void Awake() { wayPoint = new Vector2[transform.childCount]; for(int i=0;i<transform.childCount;i++) { wayPoint[i] = transform.GetChild(i).position; } } private void Start() { currentWayPoint = wayPoint[wayPointIndex]; if (wayPoint == null) { Debug.LogWarning("Set WayPoints for Flying Enemy 1 Note:: Minimum 2 Max Any"); } } private void Update() { if (Vector2.Distance(this.transform.position, currentWayPoint) < 0.01f) { if (wayPointIndex == wayPoint.Length - 1) { wayPointIndex = 0; currentWayPoint = wayPoint[0]; } else { currentWayPoint = wayPoint[++wayPointIndex]; } } this.transform.position = Vector2.MoveTowards((Vector2)this.transform.position, currentWayPoint, 3f * Time.deltaTime); } private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player") { UIManager.LoadScene(SceneManager.GetActiveScene().buildIndex); } } }
29.489796
126
0.6
[ "Apache-2.0" ]
RagulPrasadG/2D_Platformer
Cheese Tales/Assets/Scripts/FlyingEnemy1.cs
1,445
C#
using System.Collections.Generic; namespace Ocelot.Configuration.File { public class FileConfiguration { public FileConfiguration() { ReRoutes = new List<FileReRoute>(); GlobalConfiguration = new FileGlobalConfiguration(); Aggregates = new List<FileAggregateReRoute>(); DynamicReRoutes = new List<FileDynamicReRoute>(); } public List<FileReRoute> ReRoutes { get; set; } public List<FileDynamicReRoute> DynamicReRoutes { get; set; } // Seperate field for aggregates because this let's you re-use ReRoutes in multiple Aggregates public List<FileAggregateReRoute> Aggregates { get;set; } public FileGlobalConfiguration GlobalConfiguration { get; set; } } }
34.347826
102
0.659494
[ "MIT" ]
Ivony/Ocelot
src/Ocelot/Configuration/File/FileConfiguration.cs
792
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #if XMLSERIALIZERGENERATOR namespace Microsoft.XmlSerializer.Generator #else namespace System.Xml.Serialization #endif { using System; /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)] public class SoapAttributeAttribute : System.Attribute { private string _attributeName; private string _ns; private string _dataType; /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.SoapAttributeAttribute"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public SoapAttributeAttribute() { } /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.SoapAttributeAttribute1"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public SoapAttributeAttribute(string attributeName) { _attributeName = attributeName; } /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.ElementName"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string AttributeName { get { return _attributeName == null ? string.Empty : _attributeName; } set { _attributeName = value; } } /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.Namespace"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string Namespace { get { return _ns; } set { _ns = value; } } /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.DataType"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public string DataType { get { return _dataType == null ? string.Empty : _dataType; } set { _dataType = value; } } } }
35.625
134
0.598051
[ "MIT" ]
ERROR-FAILS-NewData-News/corefx
src/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeAttribute.cs
2,565
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.Common.Authentication; using Microsoft.Azure.Commands.Common.Authentication.Models; using Microsoft.Azure.Management.Network; using Microsoft.Azure.Management.Network.Models; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Microsoft.Azure.Commands.Network { public partial class NetworkClient { public INetworkManagementClient NetworkManagementClient { get; set; } public Action<string> VerboseLogger { get; set; } public Action<string> ErrorLogger { get; set; } public Action<string> WarningLogger { get; set; } public NetworkClient(AzureContext context) : this(AzureSession.ClientFactory.CreateArmClient<NetworkManagementClient>(context, AzureEnvironment.Endpoint.ResourceManager)) { } public NetworkClient(INetworkManagementClient NetworkManagementClient) { this.NetworkManagementClient = NetworkManagementClient; } public NetworkClient() { } public string Generatevpnclientpackage(string resourceGroupName, string virtualNetworkGatewayName, VpnClientParameters parameters) { return Task.Factory.StartNew(() => GeneratevpnclientpackageAsync(resourceGroupName, virtualNetworkGatewayName, parameters)).Unwrap().GetAwaiter().GetResult(); } public async Task<string> GeneratevpnclientpackageAsync(string resourceGroupName, string virtualNetworkGatewayName, VpnClientParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { AzureOperationResponse<string> result = await this.GeneratevpnclientpackageWithHttpMessagesAsync(resourceGroupName, virtualNetworkGatewayName, parameters, null, cancellationToken).ConfigureAwait(false); return result.Body; } /// <summary> /// The Generatevpnclientpackage operation generates Vpn client package for /// P2S client of the virtual network gateway in the specified resource group /// through Network resource provider. /// </summary> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='virtualNetworkGatewayName'> /// The name of the virtual network gateway. /// </param> /// <param name='parameters'> /// Parameters supplied to the Begin Generating Virtual Network Gateway Vpn /// client package operation through Network resource provider. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public async Task<AzureOperationResponse<string>> GeneratevpnclientpackageWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, VpnClientParameters parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { #region 1. Send Async request to generate vpn client package // 1. Send Async request to generate vpn client package string baseUrl = NetworkManagementClient.BaseUri.ToString(); string apiVersion = "2016-09-01"; if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (virtualNetworkGatewayName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualNetworkGatewayName"); } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } // Construct URL var url = new Uri(new Uri(baseUrl + (baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/" + "providers/Microsoft.Network/virtualnetworkgateways/{virtualNetworkGatewayName}/generatevpnclientpackage").ToString(); url = url.Replace("{resourceGroupName}", Uri.EscapeDataString(resourceGroupName)); url = url.Replace("{virtualNetworkGatewayName}", Uri.EscapeDataString(virtualNetworkGatewayName)); url = url.Replace("{subscriptionId}", Uri.EscapeDataString(NetworkManagementClient.SubscriptionId)); url += "?" + string.Join("&", string.Format("api-version={0}", Uri.EscapeDataString(apiVersion))); // Create HTTP transport objects HttpRequestMessage httpRequest = new HttpRequestMessage(); httpRequest.Method = new HttpMethod("POST"); httpRequest.RequestUri = new Uri(url); // Set Headers httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); // Serialize Request string requestContent = JsonConvert.SerializeObject(parameters, NetworkManagementClient.SerializationSettings); httpRequest.Content = new StringContent(requestContent, Encoding.UTF8); httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Set Credentials if (NetworkManagementClient.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); await NetworkManagementClient.Credentials.ProcessHttpRequestAsync(httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request cancellationToken.ThrowIfCancellationRequested(); var client = this.NetworkManagementClient as NetworkManagementClient; HttpClient httpClient = client.HttpClient; HttpResponseMessage httpResponse = await httpClient.SendAsync(httpRequest, cancellationToken).ConfigureAwait(false); HttpStatusCode statusCode = httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); if ((int)statusCode != 202) { string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); throw new Exception(string.Format("Get-AzureRmVpnClientPackage Operation returned an invalid status code '{0}' with Exception:{1}", statusCode, string.IsNullOrEmpty(responseContent) ? "NotAvailable" : responseContent)); } // Create Result var result = new AzureOperationResponse<string>(); result.Request = httpRequest; result.Response = httpResponse; string locationResultsUrl = string.Empty; // Retrieve the location from LocationUri if (httpResponse.Headers.Contains("Location")) { locationResultsUrl = httpResponse.Headers.GetValues("Location").FirstOrDefault(); } else { throw new Exception(string.Format("Get-AzureRmVpnClientPackage Operation Failed as no valid Location header received in response!")); } if (string.IsNullOrEmpty(locationResultsUrl)) { throw new Exception(string.Format("Get-AzureRmVpnClientPackage Operation Failed as no valid Location header value received in response!")); } #endregion #region 2. Wait for Async operation to succeed and then Get the content i.e. VPN Client package Url from locationResults //Microsoft.WindowsAzure.Commands.Utilities.Common.TestMockSupport.Delay(60000); // 2. Wait for Async operation to succeed DateTime startTime = DateTime.UtcNow; DateTime giveUpAt = DateTime.UtcNow.AddMinutes(3); // Send the Get locationResults request for operaitonId till either we get StatusCode 200 or it time outs (3 minutes in this case) while (true) { HttpRequestMessage newHttpRequest = new HttpRequestMessage(); newHttpRequest.Method = new HttpMethod("GET"); newHttpRequest.RequestUri = new Uri(locationResultsUrl); if (NetworkManagementClient.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); await NetworkManagementClient.Credentials.ProcessHttpRequestAsync(newHttpRequest, cancellationToken).ConfigureAwait(false); } HttpResponseMessage newHttpResponse = await httpClient.SendAsync(newHttpRequest, cancellationToken).ConfigureAwait(false); if ((int)newHttpResponse.StatusCode != 200) { if (DateTime.UtcNow > giveUpAt) { string newResponseContent = await newHttpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); throw new Exception(string.Format("Get-AzureRmVpnClientPackage Operation returned an invalid status code '{0}' with Exception:{1} while retrieving " + "the Vpnclient PackageUrl!", newHttpResponse.StatusCode, string.IsNullOrEmpty(newResponseContent) ? "NotAvailable" : newResponseContent)); } else { // Wait for 15 seconds before retrying Microsoft.WindowsAzure.Commands.Utilities.Common.TestMockSupport.Delay(15000); } } else { // Get the content i.e.VPN Client package Url from locationResults result.Body = newHttpResponse.Content.ReadAsStringAsync().Result; return result; } } #endregion } } }
50.3125
175
0.630701
[ "MIT" ]
SnehaGunda/azure-powershell
src/ResourceManager/Network/Commands.Network/Common/NetworkClient.cs
11,049
C#
#region Copyright and License // Copyright 2010..2017 Alexander Reinert // // This file is part of the ARSoft.Tools.Net - C# DNS client/server and SPF Library (http://arsofttoolsnet.codeplex.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #endregion using System; namespace ARSoft.Tools.Net.Dns { /// <summary> /// <para>Cookie Option</para> /// <para> /// Defined in /// <see cref="!:http://tools.ietf.org/html/draft-ietf-dnsop-cookies">draft-ietf-dnsop-cookies</see> /// </para> /// </summary> public class CookieOption : EDnsOptionBase { private byte[] _clientCookie; /// <summary> /// Client cookie /// </summary> public byte[] ClientCookie { get { return _clientCookie; } private set { if ((value == null) || (value.Length != 8)) throw new ArgumentException("Client cookie must contain 8 bytes"); _clientCookie = value; } } /// <summary> /// Server cookie /// </summary> public byte[] ServerCookie { get; private set; } /// <summary> /// Creates a new instance of the ClientCookie class /// </summary> public CookieOption() : base(EDnsOptionType.Cookie) {} /// <summary> /// Creates a new instance of the ClientCookie class /// </summary> /// <param name="clientCookie">The client cookie</param> /// <param name="serverCookie">The server cookie</param> public CookieOption(byte[] clientCookie, byte[] serverCookie = null) : this() { ClientCookie = clientCookie; ServerCookie = serverCookie ?? new byte[] { }; } internal override void ParseData(byte[] resultData, int startPosition, int length) { ClientCookie = DnsMessageBase.ParseByteData(resultData, ref startPosition, 8); ServerCookie = DnsMessageBase.ParseByteData(resultData, ref startPosition, length - 8); } internal override ushort DataLength => (ushort) (8 + ServerCookie.Length); internal override void EncodeData(byte[] messageData, ref int currentPosition) { DnsMessageBase.EncodeByteArray(messageData, ref currentPosition, ClientCookie); DnsMessageBase.EncodeByteArray(messageData, ref currentPosition, ServerCookie); } } }
31.282353
121
0.694622
[ "MIT" ]
zjccwboy/DnsServer
ARSoft.Tools.Dotnet/Dns/EDns/CookieOption.cs
2,659
C#
/* * THIS FILE WAS GENERATED BY PLOTLY.BLAZOR.GENERATOR */ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text.Json.Serialization; namespace Plotly.Blazor.Traces.HistogramLib { /// <summary> /// The Marker class. /// </summary> [System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "1.0.0.0")] [JsonConverter(typeof(PlotlyConverter))] [Serializable] public class Marker : IEquatable<Marker> { /// <summary> /// Gets or sets the Line. /// </summary> [JsonPropertyName(@"line")] public Plotly.Blazor.Traces.HistogramLib.MarkerLib.Line Line { get; set;} /// <summary> /// Sets themarkercolor. It accepts either a specific color or an array of numbers /// that are mapped to the colorscale relative to the max and min values of /// the array or relative to <c>marker.cmin</c> and <c>marker.cmax</c> if set. /// </summary> [JsonPropertyName(@"color")] public object Color { get; set;} /// <summary> /// Sets themarkercolor. It accepts either a specific color or an array of numbers /// that are mapped to the colorscale relative to the max and min values of /// the array or relative to <c>marker.cmin</c> and <c>marker.cmax</c> if set. /// </summary> [JsonPropertyName(@"color")] [Array] public IList<object> ColorArray { get; set;} /// <summary> /// Determines whether or not the color domain is computed with respect to the /// input data (here in <c>marker.color</c>) or the bounds set in <c>marker.cmin</c> /// and <c>marker.cmax</c> Has an effect only if in <c>marker.color</c>is set /// to a numerical array. Defaults to <c>false</c> when <c>marker.cmin</c> and /// <c>marker.cmax</c> are set by the user. /// </summary> [JsonPropertyName(@"cauto")] public bool? CAuto { get; set;} /// <summary> /// Sets the lower bound of the color domain. Has an effect only if in <c>marker.color</c>is /// set to a numerical array. Value should have the same units as in <c>marker.color</c> /// and if set, <c>marker.cmax</c> must be set as well. /// </summary> [JsonPropertyName(@"cmin")] public decimal? CMin { get; set;} /// <summary> /// Sets the upper bound of the color domain. Has an effect only if in <c>marker.color</c>is /// set to a numerical array. Value should have the same units as in <c>marker.color</c> /// and if set, <c>marker.cmin</c> must be set as well. /// </summary> [JsonPropertyName(@"cmax")] public decimal? CMax { get; set;} /// <summary> /// Sets the mid-point of the color domain by scaling <c>marker.cmin</c> and/or /// <c>marker.cmax</c> to be equidistant to this point. Has an effect only if /// in <c>marker.color</c>is set to a numerical array. Value should have the /// same units as in <c>marker.color</c>. Has no effect when <c>marker.cauto</c> /// is <c>false</c>. /// </summary> [JsonPropertyName(@"cmid")] public decimal? CMid { get; set;} /// <summary> /// Sets the colorscale. Has an effect only if in <c>marker.color</c>is set /// to a numerical array. The colorscale must be an array containing arrays /// mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color /// string. At minimum, a mapping for the lowest (0) and highest (1) values /// are required. For example, &#39;[[0, <c>rgb(0,0,255)</c>], [1, <c>rgb(255,0,0)</c>]]&#39;. /// To control the bounds of the colorscale in color space, use<c>marker.cmin</c> /// and <c>marker.cmax</c>. Alternatively, <c>colorscale</c> may be a palette /// name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis. /// </summary> [JsonPropertyName(@"colorscale")] public object ColorScale { get; set;} /// <summary> /// Determines whether the colorscale is a default palette (&#39;autocolorscale: /// true&#39;) or the palette determined by <c>marker.colorscale</c>. Has an /// effect only if in <c>marker.color</c>is set to a numerical array. In case /// <c>colorscale</c> is unspecified or <c>autocolorscale</c> is true, the default /// palette will be chosen according to whether numbers in the <c>color</c> /// array are all positive, all negative or mixed. /// </summary> [JsonPropertyName(@"autocolorscale")] public bool? AutoColorScale { get; set;} /// <summary> /// Reverses the color mapping if true. Has an effect only if in <c>marker.color</c>is /// set to a numerical array. If true, <c>marker.cmin</c> will correspond to /// the last color in the array and <c>marker.cmax</c> will correspond to the /// first color. /// </summary> [JsonPropertyName(@"reversescale")] public bool? ReverseScale { get; set;} /// <summary> /// Determines whether or not a colorbar is displayed for this trace. Has an /// effect only if in <c>marker.color</c>is set to a numerical array. /// </summary> [JsonPropertyName(@"showscale")] public bool? ShowScale { get; set;} /// <summary> /// Gets or sets the ColorBar. /// </summary> [JsonPropertyName(@"colorbar")] public Plotly.Blazor.Traces.HistogramLib.MarkerLib.ColorBar ColorBar { get; set;} /// <summary> /// Sets a reference to a shared color axis. References to these shared color /// axes are <c>coloraxis</c>, <c>coloraxis2</c>, <c>coloraxis3</c>, etc. Settings /// for these shared color axes are set in the layout, under <c>layout.coloraxis</c>, /// <c>layout.coloraxis2</c>, etc. Note that multiple color scales can be linked /// to the same color axis. /// </summary> [JsonPropertyName(@"coloraxis")] public string ColorAxis { get; set;} /// <summary> /// Sets the opacity of the bars. /// </summary> [JsonPropertyName(@"opacity")] public decimal? Opacity { get; set;} /// <summary> /// Sets the opacity of the bars. /// </summary> [JsonPropertyName(@"opacity")] [Array] public IList<decimal?> OpacityArray { get; set;} /// <summary> /// Sets the source reference on Chart Studio Cloud for color . /// </summary> [JsonPropertyName(@"colorsrc")] public string ColorSrc { get; set;} /// <summary> /// Sets the source reference on Chart Studio Cloud for opacity . /// </summary> [JsonPropertyName(@"opacitysrc")] public string OpacitySrc { get; set;} /// <inheritdoc /> public override bool Equals(object obj) { if (!(obj is Marker other)) return false; return ReferenceEquals(this, obj) || Equals(other); } /// <inheritdoc /> public bool Equals([AllowNull] Marker other) { if (other == null) return false; if (ReferenceEquals(this, other)) return true; return ( Line == other.Line || Line != null && Line.Equals(other.Line) ) && ( Color == other.Color || Color != null && Color.Equals(other.Color) ) && ( Equals(ColorArray, other.ColorArray) || ColorArray != null && other.ColorArray != null && ColorArray.SequenceEqual(other.ColorArray) ) && ( CAuto == other.CAuto || CAuto != null && CAuto.Equals(other.CAuto) ) && ( CMin == other.CMin || CMin != null && CMin.Equals(other.CMin) ) && ( CMax == other.CMax || CMax != null && CMax.Equals(other.CMax) ) && ( CMid == other.CMid || CMid != null && CMid.Equals(other.CMid) ) && ( ColorScale == other.ColorScale || ColorScale != null && ColorScale.Equals(other.ColorScale) ) && ( AutoColorScale == other.AutoColorScale || AutoColorScale != null && AutoColorScale.Equals(other.AutoColorScale) ) && ( ReverseScale == other.ReverseScale || ReverseScale != null && ReverseScale.Equals(other.ReverseScale) ) && ( ShowScale == other.ShowScale || ShowScale != null && ShowScale.Equals(other.ShowScale) ) && ( ColorBar == other.ColorBar || ColorBar != null && ColorBar.Equals(other.ColorBar) ) && ( ColorAxis == other.ColorAxis || ColorAxis != null && ColorAxis.Equals(other.ColorAxis) ) && ( Opacity == other.Opacity || Opacity != null && Opacity.Equals(other.Opacity) ) && ( Equals(OpacityArray, other.OpacityArray) || OpacityArray != null && other.OpacityArray != null && OpacityArray.SequenceEqual(other.OpacityArray) ) && ( ColorSrc == other.ColorSrc || ColorSrc != null && ColorSrc.Equals(other.ColorSrc) ) && ( OpacitySrc == other.OpacitySrc || OpacitySrc != null && OpacitySrc.Equals(other.OpacitySrc) ); } /// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Line != null) hashCode = hashCode * 59 + Line.GetHashCode(); if (Color != null) hashCode = hashCode * 59 + Color.GetHashCode(); if (ColorArray != null) hashCode = hashCode * 59 + ColorArray.GetHashCode(); if (CAuto != null) hashCode = hashCode * 59 + CAuto.GetHashCode(); if (CMin != null) hashCode = hashCode * 59 + CMin.GetHashCode(); if (CMax != null) hashCode = hashCode * 59 + CMax.GetHashCode(); if (CMid != null) hashCode = hashCode * 59 + CMid.GetHashCode(); if (ColorScale != null) hashCode = hashCode * 59 + ColorScale.GetHashCode(); if (AutoColorScale != null) hashCode = hashCode * 59 + AutoColorScale.GetHashCode(); if (ReverseScale != null) hashCode = hashCode * 59 + ReverseScale.GetHashCode(); if (ShowScale != null) hashCode = hashCode * 59 + ShowScale.GetHashCode(); if (ColorBar != null) hashCode = hashCode * 59 + ColorBar.GetHashCode(); if (ColorAxis != null) hashCode = hashCode * 59 + ColorAxis.GetHashCode(); if (Opacity != null) hashCode = hashCode * 59 + Opacity.GetHashCode(); if (OpacityArray != null) hashCode = hashCode * 59 + OpacityArray.GetHashCode(); if (ColorSrc != null) hashCode = hashCode * 59 + ColorSrc.GetHashCode(); if (OpacitySrc != null) hashCode = hashCode * 59 + OpacitySrc.GetHashCode(); return hashCode; } } /// <summary> /// Checks for equality of the left Marker and the right Marker. /// </summary> /// <param name="left">Left Marker.</param> /// <param name="right">Right Marker.</param> /// <returns>Boolean</returns> public static bool operator == (Marker left, Marker right) { return Equals(left, right); } /// <summary> /// Checks for inequality of the left Marker and the right Marker. /// </summary> /// <param name="left">Left Marker.</param> /// <param name="right">Right Marker.</param> /// <returns>Boolean</returns> public static bool operator != (Marker left, Marker right) { return !Equals(left, right); } /// <summary> /// Gets a deep copy of this instance. /// </summary> /// <returns>Marker</returns> public Marker DeepClone() { using var ms = new MemoryStream(); var formatter = new BinaryFormatter(); formatter.Serialize(ms, this); ms.Position = 0; return (Marker) formatter.Deserialize(ms); } } }
42.804281
175
0.515253
[ "MIT" ]
HansenBerlin/PlanspielWebapp
Plotly.Blazor/Traces/HistogramLib/Marker.cs
13,997
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.IO; using System.Windows.Forms; using ICSharpCode.PythonBinding; using IronPython.Compiler.Ast; using NUnit.Framework; using PythonBinding.Tests.Utils; namespace PythonBinding.Tests.Designer { class PublicPanelBaseForm : Form { public Panel panel1 = new Panel(); Button button1 = new Button(); public PublicPanelBaseForm() { button1.Name = "button1"; panel1.Name = "panel1"; panel1.Location = new Point(5, 10); panel1.Size = new Size(200, 100); panel1.Controls.Add(button1); Controls.Add(panel1); } } class PublicPanelDerivedForm : PublicPanelBaseForm { } [TestFixture] public class LoadInheritedPublicPanelFormTestFixture : LoadFormTestFixtureBase { public override string PythonCode { get { base.ComponentCreator.AddType("PythonBinding.Tests.Designer.PublicPanelDerivedForm", typeof(PublicPanelDerivedForm)); return "class MainForm(PythonBinding.Tests.Designer.PublicPanelDerivedForm):\r\n" + " def InitializeComponent(self):\r\n" + " self.SuspendLayout()\r\n" + " # \r\n" + " # panel1\r\n" + " # \r\n" + " self.panel1.Location = System.Drawing.Point(10, 15)\r\n" + " self.panel1.Size = System.Drawing.Size(108, 120)\r\n" + " # \r\n" + " # form1\r\n" + " # \r\n" + " self.Location = System.Drawing.Point(10, 20)\r\n" + " self.Name = \"form1\"\r\n" + " self.Controls.Add(self._textBox1)\r\n" + " self.ResumeLayout(False)\r\n"; } } PublicPanelDerivedForm DerivedForm { get { return Form as PublicPanelDerivedForm; } } [Test] public void PanelLocation() { Assert.AreEqual(new Point(10, 15), DerivedForm.panel1.Location); } [Test] public void PanelSize() { Assert.AreEqual(new Size(108, 120), DerivedForm.panel1.Size); } [Test] public void GetPublicPanelObject() { Assert.AreEqual(DerivedForm.panel1, PythonControlFieldExpression.GetInheritedObject("panel1", DerivedForm)); } } }
27.340909
121
0.650457
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/BackendBindings/Python/PythonBinding/Test/Designer/LoadInheritedPublicPanelFormTestFixture.cs
2,408
C#
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace MyPad.Views.Regions { /// <summary> /// ScriptRunnerView.xaml の相互作用ロジック /// </summary> public partial class ScriptRunnerView : UserControl { [LogInterceptor] public ScriptRunnerView() { InitializeComponent(); } } }
22.428571
55
0.708599
[ "MIT" ]
kawasawa/MyPad
MyPad/Views/Regions/ScriptRunnerView.xaml.cs
648
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using GovUk.Education.ManageCourses.Api.Model; using GovUk.Education.ManageCourses.Domain.Models; using GovUk.Education.ManageCourses.Ui.Helpers; using GovUk.Education.ManageCourses.Ui.ViewModels.Enums; namespace GovUk.Education.ManageCourses.Ui.ViewModels { public class CourseFeesEnrichmentViewModel : ICourseEnrichmentViewModel { public CourseLength? CourseLength { get; set; } public string CourseLengthInput { get; set; } [Range(FieldHelper.FeeMin, FieldHelper.FeeMax, ErrorMessage = "UK course fee must be less than £100,000")] [RegularExpression(@"^[0-9]+$", ErrorMessage = "UK course fee must contain numbers only")] public int? FeeUkEu { get; set; } [Range(FieldHelper.FeeMin, FieldHelper.FeeMax, ErrorMessage = "International course fee must be less than £100,000")] [RegularExpression(@"^[0-9]+$", ErrorMessage = "International course fee must contain numbers only")] public int? FeeInternational { get; set; } [RegularExpression(@"^\s*(\S+\s+|\S+$){0,250}$", ErrorMessage = "Reduce the word count for fee details")] public string FeeDetails { get; set; } [RegularExpression(@"^\s*(\S+\s+|\S+$){0,250}$", ErrorMessage = "Reduce the word count for financial support")] public string FinancialSupport { get; set; } public CourseRouteDataViewModel RouteData { get; set; } public CourseInfoViewModel CourseInfo { get; set; } public bool IsEmpty() => !CourseLength.HasValue && !FeeUkEu.HasValue && !FeeInternational.HasValue && string.IsNullOrEmpty(FeeDetails) && string.IsNullOrEmpty(FinancialSupport); public void MapInto(ref CourseEnrichmentModel enrichmentModel) { var courseLength = CourseLength.HasValue ? CourseLength.Value.ToString() : null; enrichmentModel.CourseLength = courseLength == "Other" ? (string.IsNullOrEmpty(CourseLengthInput) ? null : CourseLengthInput) : courseLength; enrichmentModel.FeeUkEu = FeeUkEu; enrichmentModel.FeeInternational = FeeInternational; enrichmentModel.FeeDetails = FeeDetails; enrichmentModel.FinancialSupport = FinancialSupport; } public IEnumerable<CopiedField> CopyFrom(CourseEnrichmentModel model) { var res = new List<CopiedField>(); if (model == null) { return res; } if (Enum.TryParse(model.CourseLength ?? "", out CourseLength courseLength)) { CourseLength = courseLength; res.Add(new CopiedField(nameof(model.CourseLength), CourseEnrichmentFieldNames.CourseLength)); } if (!CourseLength.HasValue && !string.IsNullOrEmpty(model.CourseLength)) { CourseLengthInput = model.CourseLength; CourseLength = Enums.CourseLength.Other; } if (model.FeeUkEu.HasValue) { FeeUkEu = model.FeeUkEu.GetFeeValue(); res.Add(new CopiedField(nameof(model.FeeUkEu), CourseEnrichmentFieldNames.FeesUkEu)); } if (model.FeeInternational.HasValue) { FeeInternational = model.FeeInternational.GetFeeValue(); res.Add(new CopiedField(nameof(model.FeeInternational), CourseEnrichmentFieldNames.FeesInternational)); } if (!string.IsNullOrEmpty(model.FeeDetails)) { FeeDetails = model.FeeDetails; res.Add(new CopiedField(nameof(model.FeeDetails), CourseEnrichmentFieldNames.FeeDetails)); } if (!string.IsNullOrEmpty(model.FinancialSupport)) { FinancialSupport = model.FinancialSupport; res.Add(new CopiedField(nameof(model.FinancialSupport), CourseEnrichmentFieldNames.FinancialSupport)); } return res; } } }
41.828283
153
0.635112
[ "MIT" ]
DFE-Digital/manage-courses-ui
src/ui/ViewModels/CourseFeesEnrichmentViewModel.cs
4,143
C#
using System.Collections.Generic; using System; using System.Linq; namespace lib { public static class ListExtension { public static void Populate(this int[] distanceScale, int distance) { for (var i = 0; i < distanceScale.Length; i++) { distanceScale[i] = distance; } } } public class LISFinder { public static int LongestIncreasingSubsequence(List<int> arr) { var arrSize = arr.Count; var distanceScale = new int[arrSize]; // We populate a distance scale. Our space complexity has O(n) as we are storing our // distances here. distanceScale.Populate(1); for (var lookback = 1; lookback < arrSize; lookback++) { for (var runner = 0; runner < lookback; runner++) { if (arr[lookback] > arr[runner]) { distanceScale[lookback] = Math.Max(distanceScale[runner] + 1, distanceScale[lookback]); } } } return distanceScale.Max(); } } }
27.204545
111
0.506266
[ "MIT" ]
deanagan/checkio-csharp
Source/LongestIncreasingSubsequence.cs
1,197
C#
using Newtonsoft.Json; using System; namespace WeyhdBot.Core.Connector { /// <summary> /// Additional data to attach on activities /// </summary> [Serializable] public class ChannelData { [JsonProperty("subchannel_id")] public string Subchannel { get; set; } [JsonProperty("user_id")] public string UserId { get; set; } } }
21.444444
47
0.61658
[ "MIT" ]
fanslead/WeyhdBot
Framework/WeyhdBot.Core/Connector/ChannelData.cs
388
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("H3Control.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("H3Control.Tests")] [assembly: AssemblyCopyright("Copyright © Microsoft 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("86bcb071-1cac-4ba8-884f-b1e2311e4d52")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.405405
84
0.748065
[ "MIT" ]
devizer/h3control
H3Control.Tests/Properties/AssemblyInfo.cs
1,424
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Chime.Model { /// <summary> /// Container for the parameters to the GetVoiceConnectorTermination operation. /// Retrieves termination setting details for the specified Amazon Chime Voice Connector. /// </summary> public partial class GetVoiceConnectorTerminationRequest : AmazonChimeRequest { private string _voiceConnectorId; /// <summary> /// Gets and sets the property VoiceConnectorId. /// <para> /// The Amazon Chime Voice Connector ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string VoiceConnectorId { get { return this._voiceConnectorId; } set { this._voiceConnectorId = value; } } // Check to see if VoiceConnectorId property is set internal bool IsSetVoiceConnectorId() { return this._voiceConnectorId != null; } } }
31.050847
103
0.676856
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Chime/Generated/Model/GetVoiceConnectorTerminationRequest.cs
1,832
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DanpheEMR.ServerModel { public class SocialHistory { [Key] public int SocialHistoryId { get; set; } public int PatientId { get; set; } public string SmokingHistory { get; set; } public string AlcoholHistory { get; set; } public string DrugHistory { get; set; } public string Occupation { get; set; } public string FamilySupport { get; set; } public string Note { get; set; } public int? CreatedBy { get; set; } public int? ModifiedBy { get; set; } public DateTime? CreatedOn { get; set; } public DateTime? ModifiedOn { get; set; } public virtual PatientModel Patient { get; set; } } }
31.5
57
0.64059
[ "MIT" ]
MenkaChaugule/hospital-management-emr
Code/Components/DanpheEMR.ServerModel/ClinicalModels/SocialHistoryModel.cs
884
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2016-11-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFront.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFront.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Aliases Object /// </summary> public class AliasesUnmarshaller : IUnmarshaller<Aliases, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Aliases Unmarshall(XmlUnmarshallerContext context) { Aliases unmarshalledObject = new Aliases(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Items/CNAME", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Items.Add(unmarshaller.Unmarshall(context)); continue; } if (context.TestExpression("Quantity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Quantity = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } private static AliasesUnmarshaller _instance = new AliasesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AliasesUnmarshaller Instance { get { return _instance; } } } }
34.358696
108
0.588421
[ "Apache-2.0" ]
miltador-forks/aws-sdk-net
sdk/src/Services/CloudFront/Generated/Model/Internal/MarshallTransformations/AliasesUnmarshaller.cs
3,161
C#
namespace Cake.Web.Core.Content { public sealed class ContentProcessorResult { private readonly string _body; public string Body { get { return _body; } } public ContentProcessorResult(string body) { _body = body; } } }
17.5
50
0.536508
[ "MIT" ]
mgnslndh/website
src/Cake.Web.Core/Content/ContentProcessorResult.cs
317
C#
using System; namespace Demo.File.Consommateur { class Program { static void Main(string[] args) { var consomateur = new Consomateur(); consomateur.RecevoirAsync(); Console.ReadLine(); } } }
15.705882
48
0.535581
[ "Apache-2.0" ]
jean-claudeparent/Demo.MessageBroker.Core
Demo.File.Consommateur/Program.cs
269
C#
// // Copyright (c) 2018 deltaDNA Ltd. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // using System; namespace DeltaDNA { using JSONObject = System.Collections.Generic.Dictionary<string, object>; /// <summary> /// Helps with creating the different types of action available from the Engage /// service. It makes the request to Engage and notifies on a callback when the /// requst completes. /// </summary> public class EngageFactory { private readonly DDNABase ddna; private readonly SmartAds smartads; internal EngageFactory(DDNABase ddna, SmartAds smartads) { this.ddna = ddna; this.smartads = smartads; } /// <summary> /// Requests game parameters at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="callback">the callback to handler the result</param> /// <exception cref="ArgumentException">if the <code>decisionPoint</code> is null or empty</exception> public void RequestGameParameters(string decisionPoint, Action<JSONObject> callback) { RequestGameParameters(decisionPoint, null, callback); } /// <summary> /// Requests game parameters at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="parameters">an optional set of real-time parameters</param> /// <param name="callback">the callback to handle the result</param> /// <exception cref="ArgumentException">if the <code>decisionPoint</code> is null or empty</exception> public void RequestGameParameters(string decisionPoint, Params parameters, Action<JSONObject> callback) { Engagement engagement = BuildEngagement(decisionPoint, parameters); ddna.RequestEngagement(engagement, (response) => { callback(response.JSON != null && response.JSON.ContainsKey("parameters") ? response.JSON["parameters"] as JSONObject : new JSONObject()); }, (exception) => { callback(new JSONObject()); }); } /// <summary> /// Requests an image message at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="callback">the callback to handle the result</param> public void RequestImageMessage(string decisionPoint, Action<ImageMessage> callback) { RequestImageMessage(decisionPoint, null, callback); } /// <summary> /// Requests an image message at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="parameters">an optional set of real-time parameters</param> /// <param name="callback">the callback to handle the result</param> public void RequestImageMessage(string decisionPoint, Params parameters, Action<ImageMessage> callback) { Engagement engagement = BuildEngagement(decisionPoint, parameters); ddna.RequestEngagement(engagement, (response) => { callback(ImageMessage.Create(response)); }, (exception) => { callback(null); }); } /// <summary> /// Requests an interstitial ad at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="callback">the callback to handle the result</param> public void RequestInterstitialAd(string decisionPoint, Action<InterstitialAd> callback) { RequestInterstitialAd(decisionPoint, null, callback); } /// <summary> /// Requests an interstitial ad at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="parameters">an optional set of real-time parameters</param> /// <param name="callback">the callback to handle the result</param> public void RequestInterstitialAd(string decisionPoint, Params parameters, Action<InterstitialAd> callback) { if (smartads != null) { Engagement engagement = BuildEngagement(decisionPoint, parameters) .AddParam("ddnaAdSessionCount", smartads.GetSessionCount(decisionPoint)) .AddParam("ddnaAdDailyCount", smartads.GetDailyCount(decisionPoint)); if (smartads.GetLastShown(decisionPoint).HasValue) { engagement.AddParam("ddnaAdLastShownTime", smartads.GetLastShown(decisionPoint).Value); } ddna.RequestEngagement(engagement, (response) => { Logger.LogDebug("Creating an interstitial ad at '" + decisionPoint + "'"); callback(InterstitialAd.CreateUnchecked(response)); }, (exception) => { Logger.LogWarning("Creating interstitial ad despite failed Engage request"); callback(InterstitialAd.CreateUnchecked(engagement)); }); } } /// <summary> /// Requests a rewarded ad at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="callback">the callback to handle the result</param> public void RequestRewardedAd(string decisionPoint, Action<RewardedAd> callback) { RequestRewardedAd(decisionPoint, null, callback); } /// <summary> /// Requests a rewarded ad at a <code>decisionPoint</code>. /// </summary> /// <param name="decisionPoint">the decision point</param> /// <param name="parameters">an optional set of real-time parameters</param> /// <param name="callback">the callback to handle the result</param> public void RequestRewardedAd(string decisionPoint, Params parameters, Action<RewardedAd> callback) { if (smartads != null) { Engagement engagement = BuildEngagement(decisionPoint, parameters) .AddParam("ddnaAdSessionCount", smartads.GetSessionCount(decisionPoint)) .AddParam("ddnaAdDailyCount", smartads.GetDailyCount(decisionPoint)); if (smartads.GetLastShown(decisionPoint).HasValue) { engagement.AddParam("ddnaAdLastShownTime", smartads.GetLastShown(decisionPoint).Value); } ddna.RequestEngagement(engagement, (response) => { Logger.LogDebug("Creating a rewarded ad at '" + decisionPoint + "'"); callback(RewardedAd.CreateUnchecked(response)); }, (exception) => { Logger.LogWarning("Creating rewarded ad despite failed Engage request"); callback(RewardedAd.CreateUnchecked(engagement)); }); } } protected static Engagement BuildEngagement(string decisionPoint, Params parameters) { if (parameters != null) { Params parametersCopy; try { parametersCopy = new Params(parameters); } catch (Exception) { parametersCopy = new Params(); } return new Engagement(decisionPoint, parametersCopy); } else { return new Engagement(decisionPoint); } } } }
43.898477
158
0.586378
[ "Apache-2.0" ]
RandolfKlemola/tutorial-dynamic-ad-placement
Assets/DeltaDNA/EngageFactory.cs
8,650
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SoftUniAttribute")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SoftUniAttribute")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("4b12bdb2-f5bd-49b4-9af4-91d78ff438eb")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
37.837838
84
0.749286
[ "MIT" ]
maio246/CSharp-OOP-Advanced
SoftUniAttribute/Properties/AssemblyInfo.cs
1,403
C#
using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; namespace Xpand.Extensions.Threading { public static class SingleThreadedSynchronizationContextExtenions { public static void AwaitTask(this Task invoker) => SingleThreadedSynchronizationContext.Await(() => invoker); } public sealed class SingleThreadedSynchronizationContext : SynchronizationContext { private readonly BlockingCollection<(SendOrPostCallback d, object state)> _queue = new(); public override void Post(SendOrPostCallback d, object state) => _queue.Add((d, state)); public static void Await(Func<Task> invoker) { var originalContext = Current; try { var context = new SingleThreadedSynchronizationContext(); SetSynchronizationContext(context); var task = invoker.Invoke(); task.ContinueWith(_ => context._queue.CompleteAdding()); while (context._queue.TryTake(out var work, Timeout.Infinite)) work.d.Invoke(work.state); task.GetAwaiter().GetResult(); } finally { SetSynchronizationContext(originalContext); } } } }
36.111111
117
0.641538
[ "Apache-2.0" ]
eXpandFramework/Packages
src/Extensions/Xpand.Extensions/Threading/SingleThreadedSynchronizationContext.cs
1,302
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7() { var test = new ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int16[] inArray1, Int16[] inArray2, Int32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); if ( (alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray ) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned( ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int16, byte>(ref inArray1[0]), (uint)sizeOfinArray1 ); Unsafe.CopyBlockUnaligned( ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int16, byte>(ref inArray2[0]), (uint)sizeOfinArray2 ); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<Int16> _fld1; public Vector128<Int16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned( ref Unsafe.As<Vector128<Int16>, byte>(ref testStruct._fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned( ref Unsafe.As<Vector128<Int16>, byte>(ref testStruct._fld2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); return testStruct; } public void RunStructFldScenario( ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7 testClass ) { var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( _fld1, _fld2, 7 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load( ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7 testClass ) { fixed (Vector128<Int16>* pFld1 = &_fld1) fixed (Vector128<Int16>* pFld2 = &_fld2) { var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), 7 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Int16>>() / sizeof(Int16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Int16>>() / sizeof(Int16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32); private static readonly byte Imm = 7; private static Int16[] _data1 = new Int16[Op1ElementCount]; private static Int16[] _data2 = new Int16[Op2ElementCount]; private static Vector128<Int16> _clsVar1; private static Vector128<Int16> _clsVar2; private Vector128<Int16> _fld1; private Vector128<Int16> _fld2; private DataTable _dataTable; static ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned( ref Unsafe.As<Vector128<Int16>, byte>(ref _clsVar1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned( ref Unsafe.As<Vector128<Int16>, byte>(ref _clsVar2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); } public ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned( ref Unsafe.As<Vector128<Int16>, byte>(ref _fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned( ref Unsafe.As<Vector128<Int16>, byte>(ref _fld2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt16(); } _dataTable = new DataTable( _data1, _data2, new Int32[RetElementCount], LargestVectorSize ); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( Unsafe.Read<Vector128<Int16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int16>>(_dataTable.inArray2Ptr), 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd) .GetMethod( nameof(AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar), new Type[] { typeof(Vector128<Int16>), typeof(Vector128<Int16>), typeof(byte) } ) .Invoke( null, new object[] { Unsafe.Read<Vector128<Int16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int16>>(_dataTable.inArray2Ptr), (byte)7 } ); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd) .GetMethod( nameof(AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar), new Type[] { typeof(Vector128<Int16>), typeof(Vector128<Int16>), typeof(byte) } ) .Invoke( null, new object[] { AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), (byte)7 } ); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( _clsVar1, _clsVar2, 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Int16>* pClsVar1 = &_clsVar1) fixed (Vector128<Int16>* pClsVar2 = &_clsVar2) { var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( AdvSimd.LoadVector128((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)), 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<Int16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Int16>>(_dataTable.inArray2Ptr); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar(op1, op2, 7); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar(op1, op2, 7); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7(); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( test._fld1, test._fld2, 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new ImmBinaryOpTest__MultiplyDoublingWideningSaturateUpperBySelectedScalar_Vector128_Int16_Vector128_Int16_7(); fixed (Vector128<Int16>* pFld1 = &test._fld1) fixed (Vector128<Int16>* pFld2 = &test._fld2) { var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( _fld1, _fld2, 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Int16>* pFld1 = &_fld1) fixed (Vector128<Int16>* pFld2 = &_fld2) { var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( test._fld1, test._fld2, 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar( AdvSimd.LoadVector128((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)), 7 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult( Vector128<Int16> firstOp, Vector128<Int16> secondOp, void* result, [CallerMemberName] string method = "" ) { Int16[] inArray1 = new Int16[Op1ElementCount]; Int16[] inArray2 = new Int16[Op2ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), firstOp); Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray2[0]), secondOp); Unsafe.CopyBlockUnaligned( ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>() ); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult( void* firstOp, void* secondOp, void* result, [CallerMemberName] string method = "" ) { Int16[] inArray1 = new Int16[Op1ElementCount]; Int16[] inArray2 = new Int16[Op2ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.CopyBlockUnaligned( ref Unsafe.As<Int16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); Unsafe.CopyBlockUnaligned( ref Unsafe.As<Int16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(secondOp), (uint)Unsafe.SizeOf<Vector128<Int16>>() ); Unsafe.CopyBlockUnaligned( ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>() ); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult( Int16[] firstOp, Int16[] secondOp, Int32[] result, [CallerMemberName] string method = "" ) { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if ( Helpers.MultiplyDoublingWideningSaturateUpperByScalar(firstOp, secondOp[Imm], i) != result[i] ) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation( $"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyDoublingWideningSaturateUpperBySelectedScalar)}<Int32>(Vector128<Int16>, Vector128<Int16>, 7): {method} failed:" ); TestLibrary.TestFramework.LogInformation( $" firstOp: ({string.Join(", ", firstOp)})" ); TestLibrary.TestFramework.LogInformation( $" secondOp: ({string.Join(", ", secondOp)})" ); TestLibrary.TestFramework.LogInformation( $" result: ({string.Join(", ", result)})" ); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
37.939394
176
0.549216
[ "MIT" ]
belav/runtime
src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/MultiplyDoublingWideningSaturateUpperBySelectedScalar.Vector128.Int16.Vector128.Int16.7.cs
26,292
C#
using System; using NUnit.Framework; namespace ObjectLayoutInspector.Tests { [TestFixture] public class InstanceSizeTests { class Empty { } [Test] public void SizeForEmptyClassIs3PtrSizes() { var layout = TypeLayout.GetLayout<Empty>(); Assert.That(layout.FullSize, Is.EqualTo(IntPtr.Size * 3)); } [Test] public void NoFieldsForEmptyClass() { var layout = TypeLayout.GetLayout<Empty>(); Assert.That(layout.Fields, Is.Empty); } } }
22.76
70
0.579965
[ "MIT" ]
jawn/ObjectLayoutInspector
src/ObjectLayoutInspector.Tests/InstanceSizeTests.cs
571
C#
using System; using System.Windows; using System.Windows.Threading; namespace LedMatrix.Client { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { private MainViewModel _ViewModel; private DispatcherTimer _Timer; public MainWindow() { InitializeComponent(); _ViewModel = new MainViewModel(); DataContext = _ViewModel; _Timer = new DispatcherTimer(); _Timer.Interval = TimeSpan.FromMilliseconds(2); _Timer.Tick += (s, e) => { _ViewModel.NextTimerTick(); }; Closing += (s, e) => { _ViewModel.Cleanup(); }; } private void OpenPort_Click(object sender, RoutedEventArgs e) { try { _ViewModel.ToggleSerialPort(); _ViewModel.ClearPrograms(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void SendButton_Click(object sender, RoutedEventArgs e) { _ViewModel.SendInputText(); } private void RandomButton_Click(object sender, RoutedEventArgs e) { _ViewModel.InitialiseRandomProgram(); _Timer.IsEnabled = true; } private void SinWaveButton_Click(object sender, RoutedEventArgs e) { _ViewModel.InitialiseSinWaveProgram(); _Timer.IsEnabled = true; } private void CountButton_Click(object sender, RoutedEventArgs e) { _ViewModel.InitialiseCountProgram(); _Timer.IsEnabled = true; } private void AudioButton_Click(object sender, RoutedEventArgs e) { _ViewModel.InitialiseAudioProgram(); _Timer.IsEnabled = true; } private void StopButton_Click(object sender, RoutedEventArgs e) { _ViewModel.ClearPrograms(); _Timer.IsEnabled = false; } } }
25.605263
72
0.605858
[ "ISC" ]
tmcg/LEDMatrix
LedMatrix.Client/MainWindow.xaml.cs
1,948
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Just_Do_It_12_Rabbit_Explosion_2.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } } }
35.064516
151
0.589696
[ "MIT" ]
TheEletricboy/2019-09-C-sharp-Labs
Labs/Just_Do_It_12_Rabbit_Explosion_2/Properties/Settings.Designer.cs
1,089
C#
// This file was originally taken from https://github.com/aneshas/tactical-ddd using System.Collections.Generic; using System.Linq; namespace Framework.DDD { /// <summary> /// ValueObject represents value object tactical DDD pattern. /// Main properties of value objects is their immutability /// and structural equality (two value objects are equal if /// their properties are equal) /// </summary> public abstract class ValueObject { /// <summary> /// This is needed as salt for index. If only index was used, there is a chance that i ^ i+some_low_number produces same value /// Issue is shown in following fiddle: https://dotnetfiddle.net/E3tgYY /// </summary> private const int HighPrime = 557927; /// <summary> /// Override GetAtomicValues in order to implement structural equality for your value object. /// </summary> /// <returns>Enumerable of properties to participate in equality comparison</returns> protected abstract IEnumerable<object> GetAtomicValues(); public override int GetHashCode() { return GetAtomicValues() .Select((x, i) => (x != null ? x.GetHashCode() : 0) + (HighPrime * i)) .Aggregate((x, y) => x ^ y); } public ValueObject GetCopy() { return this.MemberwiseClone() as ValueObject; } public bool Equals(ValueObject obj) { if (obj == null || obj.GetType() != GetType()) { return false; } return GetHashCode() == obj.GetHashCode(); } public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; if (obj.GetType() != GetType()) return false; return Equals((ValueObject)obj); } public static bool operator ==(ValueObject lhs, ValueObject rhs) { if (ReferenceEquals(lhs, null)) { return ReferenceEquals(rhs, null); } return lhs.Equals(rhs); } public static bool operator !=(ValueObject lhs, ValueObject rhs) => !(lhs == rhs); } }
32.138889
134
0.577787
[ "Apache-2.0" ]
SebastianSoendergaard/simple-eventsourcing-and-cqrs
Framework.EventSourcing/ValueObject.cs
2,316
C#
#region Copyright // Copyright © EPiServer AB. All rights reserved. // // This code is released by EPiServer AB under the Source Code File - Specific License Conditions, published August 20, 2007. // See http://www.episerver.com/Specific_License_Conditions for details. #endregion using EPiServer.Core; namespace EPiServer.Templates.Advanced.Workroom.Core.Notification { /// <summary> /// Existing user invitation creator /// </summary> public class ExistingUserInvitationCreator : EmailCreator { /// <summary> /// Initializes a new instance of the <see cref="ExistingUserInvitationCreator"/> class. /// </summary> /// <param name="workroomBaseRoot"></param> public ExistingUserInvitationCreator(PageReference workroomBaseRoot) : base(workroomBaseRoot) { } /// <summary> /// Gets a template page type name for email creation. /// </summary> /// <value></value> public override string EmailTemplatePageType { get { return "[AlloyTech] Notification Email"; } } /// <summary> /// Gets a template page name for email creation. /// </summary> /// <value></value> public override string EmailTemplatePageName { get { return "Existing user invitation"; } } } }
31.568182
126
0.62059
[ "MIT" ]
Episerver-trainning/episerver6r2_sso
Templates/Advanced/Workroom/Core/Notification/ExistingUserInvitationCreator.cs
1,392
C#
using DragonSpark.Model.Selection; using System; using System.Threading.Tasks; namespace DragonSpark.Model.Operations; sealed class Configure<T> : ISelect<ValueTask<T>, ValueTask<T>> { readonly Action<T> _configure; readonly bool _capture; public Configure(Action<T> configure, bool capture = false) { _configure = configure; _capture = capture; } public async ValueTask<T> Get(ValueTask<T> parameter) { if (parameter.IsCompletedSuccessfully) { var result = parameter.Result; _configure(result); return result; } { var result = await parameter.ConfigureAwait(_capture); _configure(result); return result; } } }
20.090909
63
0.719457
[ "MIT" ]
DragonSpark/Framework
DragonSpark/Model/Operations/Configure.cs
665
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Silk.NET.Core.Attributes; using Silk.NET.Core.Contexts; using Silk.NET.Core.Loader; #pragma warning disable 1591 namespace Silk.NET.Direct3D12 { [NativeName("Name", "D3D12_VIDEO_DECODER_HEAP_DESC")] public unsafe partial struct VideoDecoderHeapDesc { public VideoDecoderHeapDesc ( uint? nodeMask = null, VideoDecodeConfiguration? configuration = null, uint? decodeWidth = null, uint? decodeHeight = null, Silk.NET.DXGI.Format? format = null, Silk.NET.DXGI.Rational? frameRate = null, uint? bitRate = null, uint? maxDecodePictureBufferCount = null ) : this() { if (nodeMask is not null) { NodeMask = nodeMask.Value; } if (configuration is not null) { Configuration = configuration.Value; } if (decodeWidth is not null) { DecodeWidth = decodeWidth.Value; } if (decodeHeight is not null) { DecodeHeight = decodeHeight.Value; } if (format is not null) { Format = format.Value; } if (frameRate is not null) { FrameRate = frameRate.Value; } if (bitRate is not null) { BitRate = bitRate.Value; } if (maxDecodePictureBufferCount is not null) { MaxDecodePictureBufferCount = maxDecodePictureBufferCount.Value; } } [NativeName("Type", "UINT")] [NativeName("Type.Name", "UINT")] [NativeName("Name", "NodeMask")] public uint NodeMask; [NativeName("Type", "D3D12_VIDEO_DECODE_CONFIGURATION")] [NativeName("Type.Name", "D3D12_VIDEO_DECODE_CONFIGURATION")] [NativeName("Name", "Configuration")] public VideoDecodeConfiguration Configuration; [NativeName("Type", "UINT")] [NativeName("Type.Name", "UINT")] [NativeName("Name", "DecodeWidth")] public uint DecodeWidth; [NativeName("Type", "UINT")] [NativeName("Type.Name", "UINT")] [NativeName("Name", "DecodeHeight")] public uint DecodeHeight; [NativeName("Type", "DXGI_FORMAT")] [NativeName("Type.Name", "DXGI_FORMAT")] [NativeName("Name", "Format")] public Silk.NET.DXGI.Format Format; [NativeName("Type", "DXGI_RATIONAL")] [NativeName("Type.Name", "DXGI_RATIONAL")] [NativeName("Name", "FrameRate")] public Silk.NET.DXGI.Rational FrameRate; [NativeName("Type", "UINT")] [NativeName("Type.Name", "UINT")] [NativeName("Name", "BitRate")] public uint BitRate; [NativeName("Type", "UINT")] [NativeName("Type.Name", "UINT")] [NativeName("Name", "MaxDecodePictureBufferCount")] public uint MaxDecodePictureBufferCount; } }
29.051282
80
0.56546
[ "MIT" ]
Ar37-rs/Silk.NET
src/Microsoft/Silk.NET.Direct3D12/Structs/VideoDecoderHeapDesc.gen.cs
3,399
C#
using System; using System.Linq; namespace _03.SquareWithMaximumSum { class Program { static void Main(string[] args) { int[] dimensions = ParseArrayFromConsole(' ', ','); var rows = dimensions[0]; var cols = dimensions[1]; var maxSum = int.MinValue; var maxRow = 0; var maxCol = 0; var matrix = new int[rows, cols]; for (int row = 0; row < rows; row++) { var currentRow = ParseArrayFromConsole(' ', ','); for (int col = 0; col < cols; col++) { matrix[row, col] = currentRow[col]; } } for (int row = 0; row < matrix.GetLength(0) - 1; row++) { for (int col = 0; col < matrix.GetLength(1) - 1; col++) { var currentSum = matrix[row, col] + matrix[row + 1, col] + matrix[row, col + 1] + matrix[row + 1, col + 1]; if (currentSum>maxSum) { maxSum = currentSum; maxRow = row; maxCol = col; } } } Console.WriteLine($"{matrix[maxRow, maxCol]} {matrix[maxRow, maxCol +1]}"); Console.WriteLine($"{matrix[maxRow+1, maxCol]} {matrix[maxRow+1, maxCol +1]}"); Console.WriteLine(maxSum); } public static int[] ParseArrayFromConsole(params char[] splitSymbols) => Console.ReadLine() .Split(splitSymbols, StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse) .ToArray(); } }
32.963636
91
0.433536
[ "MIT" ]
DeyanDanailov/SoftUniCSharpAdvanced
tasks/03.SquareWithMaximumSum/Program.cs
1,815
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.Tools.Analyzers; using Microsoft.CodeAnalysis.Tools.Formatters; using Microsoft.CodeAnalysis.Tools.Tests.Formatters; using Xunit; namespace Microsoft.CodeAnalysis.Tools.Tests.Analyzers { using static AnalyzerAssemblyGenerator; public class FilterDiagnosticsTests : CSharpFormatterTests { [Fact] public async Task TestFilterWarning() { var solution = await GetSolutionAsync(); var projectAnalyzersAndFixers = await GetProjectAnalyzersAndFixersAsync(solution); var project = solution.Projects.First(); var formattablePaths = ImmutableHashSet.Create(project.Documents.First().FilePath); var minimumSeverity = DiagnosticSeverity.Warning; var diagnostics = ImmutableHashSet<string>.Empty; var excludeDiagnostics = ImmutableHashSet<string>.Empty; var result = await AnalyzerFormatter.FilterAnalyzersAsync( solution, projectAnalyzersAndFixers, formattablePaths, minimumSeverity, diagnostics, excludeDiagnostics, CancellationToken.None); var (_, analyzers) = Assert.Single(result); Assert.Single(analyzers); } [Fact] public async Task TestFilterError() { var solution = await GetSolutionAsync(); var projectAnalyzersAndFixers = await GetProjectAnalyzersAndFixersAsync(solution); var project = solution.Projects.First(); var formattablePaths = ImmutableHashSet.Create(project.Documents.First().FilePath); var minimumSeverity = DiagnosticSeverity.Error; var diagnostics = ImmutableHashSet<string>.Empty; var excludeDiagnostics = ImmutableHashSet<string>.Empty; var result = await AnalyzerFormatter.FilterAnalyzersAsync( solution, projectAnalyzersAndFixers, formattablePaths, minimumSeverity, diagnostics, excludeDiagnostics, CancellationToken.None); var (_, analyzers) = Assert.Single(result); Assert.Empty(analyzers); } [Fact] public async Task TestFilterDiagnostics_NotInDiagnosticsList() { var solution = await GetSolutionAsync(); var projectAnalyzersAndFixers = await GetProjectAnalyzersAndFixersAsync(solution); var project = solution.Projects.First(); var formattablePaths = ImmutableHashSet.Create(project.Documents.First().FilePath); var minimumSeverity = DiagnosticSeverity.Warning; var diagnostics = ImmutableHashSet.Create("IDE0005"); var excludeDiagnostics = ImmutableHashSet<string>.Empty; var result = await AnalyzerFormatter.FilterAnalyzersAsync( solution, projectAnalyzersAndFixers, formattablePaths, minimumSeverity, diagnostics, excludeDiagnostics, CancellationToken.None); var (_, analyzers) = Assert.Single(result); Assert.Empty(analyzers); } [Fact] public async Task TestFilterDiagnostics_InDiagnosticsList() { var solution = await GetSolutionAsync(); var projectAnalyzersAndFixers = await GetProjectAnalyzersAndFixersAsync(solution); var project = solution.Projects.First(); var formattablePaths = ImmutableHashSet.Create(project.Documents.First().FilePath); var minimumSeverity = DiagnosticSeverity.Warning; var diagnostics = ImmutableHashSet.Create("DiagnosticAnalyzerId"); var excludeDiagnostics = ImmutableHashSet<string>.Empty; var result = await AnalyzerFormatter.FilterAnalyzersAsync( solution, projectAnalyzersAndFixers, formattablePaths, minimumSeverity, diagnostics, excludeDiagnostics, CancellationToken.None); var (_, analyzers) = Assert.Single(result); Assert.Single(analyzers); } [Fact] public async Task TestFilterDiagnostics_ExcludedFromDiagnosticsList() { var solution = await GetSolutionAsync(); var projectAnalyzersAndFixers = await GetProjectAnalyzersAndFixersAsync(solution); var project = solution.Projects.First(); var formattablePaths = ImmutableHashSet.Create(project.Documents.First().FilePath); var minimumSeverity = DiagnosticSeverity.Warning; var diagnostics = ImmutableHashSet<string>.Empty; var excludeDiagnostics = ImmutableHashSet.Create("DiagnosticAnalyzerId"); var result = await AnalyzerFormatter.FilterAnalyzersAsync( solution, projectAnalyzersAndFixers, formattablePaths, minimumSeverity, diagnostics, excludeDiagnostics, CancellationToken.None); var (_, analyzers) = Assert.Single(result); Assert.Empty(analyzers); } [Fact] public async Task TestFilterDiagnostics_ExcludeTrumpsInclude() { var solution = await GetSolutionAsync(); var projectAnalyzersAndFixers = await GetProjectAnalyzersAndFixersAsync(solution); var project = solution.Projects.First(); var formattablePaths = ImmutableHashSet.Create(project.Documents.First().FilePath); var minimumSeverity = DiagnosticSeverity.Warning; var diagnostics = ImmutableHashSet.Create("DiagnosticAnalyzerId"); var excludeDiagnostics = ImmutableHashSet.Create("DiagnosticAnalyzerId"); var result = await AnalyzerFormatter.FilterAnalyzersAsync( solution, projectAnalyzersAndFixers, formattablePaths, minimumSeverity, diagnostics, excludeDiagnostics, CancellationToken.None); var (_, analyzers) = Assert.Single(result); Assert.Empty(analyzers); } private static async Task<AnalyzersAndFixers> GetAnalyzersAndFixersAsync() { var assemblies = new[] { await GenerateAssemblyAsync( GenerateAnalyzerCode("DiagnosticAnalyzer1", "DiagnosticAnalyzerId"), GenerateCodeFix("CodeFixProvider1", "DiagnosticAnalyzerId")) }; return AnalyzerFinderHelpers.LoadAnalyzersAndFixers(assemblies); } private Task<Solution> GetSolutionAsync() { var text = SourceText.From(""); TestState.Sources.Add(text); var editorConfig = $@" root = true [*.cs] dotnet_diagnostic.DiagnosticAnalyzerId.severity = warning "; return GetSolutionAsync( TestState.Sources.ToArray(), TestState.AdditionalFiles.ToArray(), TestState.AdditionalReferences.ToArray(), editorConfig); } private async Task<ImmutableDictionary<ProjectId, AnalyzersAndFixers>> GetProjectAnalyzersAndFixersAsync(Solution solution) { var analyzersAndFixers = await GetAnalyzersAndFixersAsync(); return solution.Projects .ToImmutableDictionary(project => project.Id, project => analyzersAndFixers); } private protected override ICodeFormatter Formatter { get; } } }
41.963542
145
0.629515
[ "MIT" ]
workgroupengineering/format
tests/Analyzers/FilterDiagnosticsTests.cs
8,059
C#
using NetTopologySuite.Geometries; using static HotChocolate.Types.Spatial.WellKnownFields; using static HotChocolate.Types.Spatial.Properties.Resources; using static HotChocolate.Types.Spatial.WellKnownTypeNames; namespace HotChocolate.Types.Spatial { public sealed class GeoJsonPointType : ObjectType<Point> , IGeoJsonObjectType { protected override void Configure(IObjectTypeDescriptor<Point> descriptor) { descriptor .Name(PointTypeName) .Implements<GeoJsonInterfaceType>() .BindFieldsExplicitly(); descriptor .Field(x => x.Coordinate) .Name(CoordinatesFieldName) .Description(GeoJson_Field_Coordinates_Description_Point); descriptor .Field<GeoJsonResolvers>(x => x.GetType(default!)) .Description(GeoJson_Field_Type_Description); descriptor .Field<GeoJsonResolvers>(x => x.GetBbox(default!)) .Description(GeoJson_Field_Bbox_Description); descriptor .Field<GeoJsonResolvers>(x => x.GetCrs(default!)) .Description(GeoJson_Field_Crs_Description); } } }
33.263158
82
0.630538
[ "MIT" ]
AccountTechnologies/hotchocolate
src/HotChocolate/Spatial/src/Types/GeoJsonPointType.cs
1,264
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore.InMemory.Internal; using ExpressionExtensions = Microsoft.EntityFrameworkCore.Infrastructure.ExpressionExtensions; namespace Microsoft.EntityFrameworkCore.InMemory.Query.Internal; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public partial class InMemoryQueryExpression : Expression, IPrintableExpression { private static readonly ConstructorInfo _valueBufferConstructor = typeof(ValueBuffer).GetConstructors().Single(ci => ci.GetParameters().Length == 1); private static readonly PropertyInfo _valueBufferCountMemberInfo = typeof(ValueBuffer).GetRequiredProperty(nameof(ValueBuffer.Count)); private static readonly MethodInfo _leftJoinMethodInfo = typeof(InMemoryQueryExpression).GetTypeInfo() .GetDeclaredMethods(nameof(LeftJoin)).Single(mi => mi.GetParameters().Length == 6); private static readonly ConstructorInfo _resultEnumerableConstructor = typeof(ResultEnumerable).GetConstructors().Single(); private readonly ParameterExpression _valueBufferParameter; private ParameterExpression? _groupingParameter; private MethodInfo? _singleResultMethodInfo; private bool _scalarServerQuery; private CloningExpressionVisitor? _cloningExpressionVisitor; private Dictionary<ProjectionMember, Expression> _projectionMapping = new(); private readonly List<Expression> _clientProjections = new(); private readonly List<Expression> _projectionMappingExpressions = new(); private InMemoryQueryExpression( Expression serverQueryExpression, ParameterExpression valueBufferParameter) { ServerQueryExpression = serverQueryExpression; _valueBufferParameter = valueBufferParameter; } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public InMemoryQueryExpression(IEntityType entityType) { _valueBufferParameter = Parameter(typeof(ValueBuffer), "valueBuffer"); ServerQueryExpression = new InMemoryTableExpression(entityType); var propertyExpressionsMap = new Dictionary<IProperty, MethodCallExpression>(); var selectorExpressions = new List<Expression>(); foreach (var property in entityType.GetAllBaseTypesInclusive().SelectMany(et => et.GetDeclaredProperties())) { var propertyExpression = CreateReadValueExpression(property.ClrType, property.GetIndex(), property); selectorExpressions.Add(propertyExpression); Check.DebugAssert( property.GetIndex() == selectorExpressions.Count - 1, "Properties should be ordered in same order as their indexes."); propertyExpressionsMap[property] = propertyExpression; _projectionMappingExpressions.Add(propertyExpression); } var discriminatorProperty = entityType.FindDiscriminatorProperty(); if (discriminatorProperty != null) { var keyValueComparer = discriminatorProperty.GetKeyValueComparer()!; foreach (var derivedEntityType in entityType.GetDerivedTypes()) { var entityCheck = derivedEntityType.GetConcreteDerivedTypesInclusive() .Select( e => keyValueComparer.ExtractEqualsBody( propertyExpressionsMap[discriminatorProperty], Constant(e.GetDiscriminatorValue(), discriminatorProperty.ClrType))) .Aggregate((l, r) => OrElse(l, r)); foreach (var property in derivedEntityType.GetDeclaredProperties()) { // We read nullable value from property of derived type since it could be null. var typeToRead = property.ClrType.MakeNullable(); var propertyExpression = Condition( entityCheck, CreateReadValueExpression(typeToRead, property.GetIndex(), property), Default(typeToRead)); selectorExpressions.Add(propertyExpression); var readExpression = CreateReadValueExpression(propertyExpression.Type, selectorExpressions.Count - 1, property); propertyExpressionsMap[property] = readExpression; _projectionMappingExpressions.Add(readExpression); } } // Force a selector if entity projection has complex expressions. var selectorLambda = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), selectorExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e))), CurrentParameter); ServerQueryExpression = Call( EnumerableMethods.Select.MakeGenericMethod(typeof(ValueBuffer), typeof(ValueBuffer)), ServerQueryExpression, selectorLambda); } var entityProjection = new EntityProjectionExpression(entityType, propertyExpressionsMap); _projectionMapping[new ProjectionMember()] = entityProjection; } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression ServerQueryExpression { get; private set; } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual ParameterExpression CurrentParameter => _groupingParameter ?? _valueBufferParameter; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ReplaceProjection(IReadOnlyList<Expression> clientProjections) { _projectionMapping.Clear(); _projectionMappingExpressions.Clear(); _clientProjections.Clear(); _clientProjections.AddRange(clientProjections); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ReplaceProjection(IReadOnlyDictionary<ProjectionMember, Expression> projectionMapping) { _projectionMapping.Clear(); _projectionMappingExpressions.Clear(); _clientProjections.Clear(); var selectorExpressions = new List<Expression>(); foreach (var keyValuePair in projectionMapping) { if (keyValuePair.Value is EntityProjectionExpression entityProjectionExpression) { _projectionMapping[keyValuePair.Key] = AddEntityProjection(entityProjectionExpression); } else { selectorExpressions.Add(keyValuePair.Value); var readExpression = CreateReadValueExpression( keyValuePair.Value.Type, selectorExpressions.Count - 1, InferPropertyFromInner(keyValuePair.Value)); _projectionMapping[keyValuePair.Key] = readExpression; _projectionMappingExpressions.Add(readExpression); } } if (selectorExpressions.Count == 0) { // No server correlated term in projection so add dummy 1. selectorExpressions.Add(Constant(1)); } var selectorLambda = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), selectorExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e).ToArray())), CurrentParameter); ServerQueryExpression = Call( EnumerableMethods.Select.MakeGenericMethod(CurrentParameter.Type, typeof(ValueBuffer)), ServerQueryExpression, selectorLambda); _groupingParameter = null; EntityProjectionExpression AddEntityProjection(EntityProjectionExpression entityProjectionExpression) { var readExpressionMap = new Dictionary<IProperty, MethodCallExpression>(); foreach (var property in GetAllPropertiesInHierarchy(entityProjectionExpression.EntityType)) { var expression = entityProjectionExpression.BindProperty(property); selectorExpressions.Add(expression); var newExpression = CreateReadValueExpression(expression.Type, selectorExpressions.Count - 1, property); readExpressionMap[property] = newExpression; _projectionMappingExpressions.Add(newExpression); } var result = new EntityProjectionExpression(entityProjectionExpression.EntityType, readExpressionMap); // Also compute nested entity projections foreach (var navigation in entityProjectionExpression.EntityType.GetAllBaseTypes() .Concat(entityProjectionExpression.EntityType.GetDerivedTypesInclusive()) .SelectMany(t => t.GetDeclaredNavigations())) { var boundEntityShaperExpression = entityProjectionExpression.BindNavigation(navigation); if (boundEntityShaperExpression != null) { var innerEntityProjection = (EntityProjectionExpression)boundEntityShaperExpression.ValueBufferExpression; var newInnerEntityProjection = AddEntityProjection(innerEntityProjection); boundEntityShaperExpression = boundEntityShaperExpression.Update(newInnerEntityProjection); result.AddNavigationBinding(navigation, boundEntityShaperExpression); } } return result; } } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression GetProjection(ProjectionBindingExpression projectionBindingExpression) => projectionBindingExpression.ProjectionMember != null ? _projectionMapping[projectionBindingExpression.ProjectionMember] : _clientProjections[projectionBindingExpression.Index!.Value]; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ApplyProjection() { if (_scalarServerQuery) { _projectionMapping[new ProjectionMember()] = Constant(0); return; } var selectorExpressions = new List<Expression>(); if (_clientProjections.Count > 0) { for (var i = 0; i < _clientProjections.Count; i++) { var projection = _clientProjections[i]; switch (projection) { case EntityProjectionExpression entityProjectionExpression: { var indexMap = new Dictionary<IProperty, int>(); foreach (var property in GetAllPropertiesInHierarchy(entityProjectionExpression.EntityType)) { selectorExpressions.Add(entityProjectionExpression.BindProperty(property)); indexMap[property] = selectorExpressions.Count - 1; } _clientProjections[i] = Constant(indexMap); break; } case InMemoryQueryExpression inMemoryQueryExpression: { var singleResult = inMemoryQueryExpression._scalarServerQuery || inMemoryQueryExpression._singleResultMethodInfo != null; inMemoryQueryExpression.ApplyProjection(); var serverQuery = inMemoryQueryExpression.ServerQueryExpression; if (singleResult) { serverQuery = ((LambdaExpression)((NewExpression)serverQuery).Arguments[0]).Body; } selectorExpressions.Add(serverQuery); _clientProjections[i] = Constant(selectorExpressions.Count - 1); break; } default: selectorExpressions.Add(projection); _clientProjections[i] = Constant(selectorExpressions.Count - 1); break; } } } else { var newProjectionMapping = new Dictionary<ProjectionMember, Expression>(); foreach (var keyValuePair in _projectionMapping) { if (keyValuePair.Value is EntityProjectionExpression entityProjectionExpression) { var indexMap = new Dictionary<IProperty, int>(); foreach (var property in GetAllPropertiesInHierarchy(entityProjectionExpression.EntityType)) { selectorExpressions.Add(entityProjectionExpression.BindProperty(property)); indexMap[property] = selectorExpressions.Count - 1; } newProjectionMapping[keyValuePair.Key] = Constant(indexMap); } else { selectorExpressions.Add(keyValuePair.Value); newProjectionMapping[keyValuePair.Key] = Constant(selectorExpressions.Count - 1); } } _projectionMapping = newProjectionMapping; _projectionMappingExpressions.Clear(); } var selectorLambda = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), selectorExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e).ToArray())), CurrentParameter); ServerQueryExpression = Call( EnumerableMethods.Select.MakeGenericMethod(CurrentParameter.Type, typeof(ValueBuffer)), ServerQueryExpression, selectorLambda); _groupingParameter = null; if (_singleResultMethodInfo != null) { ServerQueryExpression = Call( _singleResultMethodInfo.MakeGenericMethod(CurrentParameter.Type), ServerQueryExpression); ConvertToEnumerable(); _singleResultMethodInfo = null; } } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void UpdateServerQueryExpression(Expression serverQueryExpression) => ServerQueryExpression = serverQueryExpression; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ApplySetOperation(MethodInfo setOperationMethodInfo, InMemoryQueryExpression source2) { Check.DebugAssert(_groupingParameter == null, "Cannot apply set operation after GroupBy without flattening."); if (_clientProjections.Count == 0) { var projectionMapping = new Dictionary<ProjectionMember, Expression>(); var source1SelectorExpressions = new List<Expression>(); var source2SelectorExpressions = new List<Expression>(); foreach (var (key, value1, value2) in _projectionMapping.Join( source2._projectionMapping, kv => kv.Key, kv => kv.Key, (kv1, kv2) => (kv1.Key, Value1: kv1.Value, Value2: kv2.Value))) { if (value1 is EntityProjectionExpression entityProjection1 && value2 is EntityProjectionExpression entityProjection2) { var map = new Dictionary<IProperty, MethodCallExpression>(); foreach (var property in GetAllPropertiesInHierarchy(entityProjection1.EntityType)) { var expressionToAdd1 = entityProjection1.BindProperty(property); var expressionToAdd2 = entityProjection2.BindProperty(property); source1SelectorExpressions.Add(expressionToAdd1); source2SelectorExpressions.Add(expressionToAdd2); var type = expressionToAdd1.Type; if (!type.IsNullableType() && expressionToAdd2.Type.IsNullableType()) { type = expressionToAdd2.Type; } map[property] = CreateReadValueExpression(type, source1SelectorExpressions.Count - 1, property); } projectionMapping[key] = new EntityProjectionExpression(entityProjection1.EntityType, map); } else { source1SelectorExpressions.Add(value1); source2SelectorExpressions.Add(value2); var type = value1.Type; if (!type.IsNullableType() && value2.Type.IsNullableType()) { type = value2.Type; } projectionMapping[key] = CreateReadValueExpression( type, source1SelectorExpressions.Count - 1, InferPropertyFromInner(value1)); } } _projectionMapping = projectionMapping; ServerQueryExpression = Call( EnumerableMethods.Select.MakeGenericMethod(ServerQueryExpression.Type.GetSequenceType(), typeof(ValueBuffer)), ServerQueryExpression, Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), source1SelectorExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e))), CurrentParameter)); source2.ServerQueryExpression = Call( EnumerableMethods.Select.MakeGenericMethod(source2.ServerQueryExpression.Type.GetSequenceType(), typeof(ValueBuffer)), source2.ServerQueryExpression, Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), source2SelectorExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e))), source2.CurrentParameter)); } else { throw new InvalidOperationException(InMemoryStrings.SetOperationsNotAllowedAfterClientEvaluation); } ServerQueryExpression = Call( setOperationMethodInfo.MakeGenericMethod(typeof(ValueBuffer)), ServerQueryExpression, source2.ServerQueryExpression); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ApplyDefaultIfEmpty() { if (_clientProjections.Count != 0) { throw new InvalidOperationException(InMemoryStrings.DefaultIfEmptyAppliedAfterProjection); } var projectionMapping = new Dictionary<ProjectionMember, Expression>(); foreach (var keyValuePair in _projectionMapping) { projectionMapping[keyValuePair.Key] = keyValuePair.Value is EntityProjectionExpression entityProjectionExpression ? MakeEntityProjectionNullable(entityProjectionExpression) : MakeReadValueNullable(keyValuePair.Value); } _projectionMapping = projectionMapping; var projectionMappingExpressions = _projectionMappingExpressions.Select(e => MakeReadValueNullable(e)).ToList(); _projectionMappingExpressions.Clear(); _projectionMappingExpressions.AddRange(projectionMappingExpressions); _groupingParameter = null; ServerQueryExpression = Call( EnumerableMethods.DefaultIfEmptyWithArgument.MakeGenericMethod(typeof(ValueBuffer)), ServerQueryExpression, Constant(new ValueBuffer(Enumerable.Repeat((object?)null, _projectionMappingExpressions.Count).ToArray()))); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ApplyDistinct() { Check.DebugAssert(!_scalarServerQuery && _singleResultMethodInfo == null, "Cannot apply distinct on single result query"); Check.DebugAssert(_groupingParameter == null, "Cannot apply distinct after GroupBy before flattening."); var selectorExpressions = new List<Expression>(); if (_clientProjections.Count == 0) { selectorExpressions.AddRange(_projectionMappingExpressions); if (selectorExpressions.Count == 0) { // No server correlated term in projection so add dummy 1. selectorExpressions.Add(Constant(1)); } } else { for (var i = 0; i < _clientProjections.Count; i++) { var projection = _clientProjections[i]; if (projection is InMemoryQueryExpression) { throw new InvalidOperationException(InMemoryStrings.DistinctOnSubqueryNotSupported); } if (projection is EntityProjectionExpression entityProjectionExpression) { _clientProjections[i] = TraverseEntityProjection( selectorExpressions, entityProjectionExpression, makeNullable: false); } else { selectorExpressions.Add(projection); _clientProjections[i] = CreateReadValueExpression( projection.Type, selectorExpressions.Count - 1, InferPropertyFromInner(projection)); } } } var selectorLambda = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), selectorExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e).ToArray())), CurrentParameter); ServerQueryExpression = Call( EnumerableMethods.Distinct.MakeGenericMethod(typeof(ValueBuffer)), Call( EnumerableMethods.Select.MakeGenericMethod(CurrentParameter.Type, typeof(ValueBuffer)), ServerQueryExpression, selectorLambda)); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual GroupByShaperExpression ApplyGrouping( Expression groupingKey, Expression shaperExpression, bool defaultElementSelector) { var source = ServerQueryExpression; Expression? selector = null; if (defaultElementSelector) { selector = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), _projectionMappingExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e))), _valueBufferParameter); } else { var selectMethodCall = (MethodCallExpression)ServerQueryExpression; source = selectMethodCall.Arguments[0]; selector = selectMethodCall.Arguments[1]; } _groupingParameter = Parameter(typeof(IGrouping<ValueBuffer, ValueBuffer>), "grouping"); var groupingKeyAccessExpression = PropertyOrField(_groupingParameter, nameof(IGrouping<int, int>.Key)); var groupingKeyExpressions = new List<Expression>(); groupingKey = GetGroupingKey(groupingKey, groupingKeyExpressions, groupingKeyAccessExpression); var keySelector = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), groupingKeyExpressions.Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e))), _valueBufferParameter); ServerQueryExpression = Call( EnumerableMethods.GroupByWithKeyElementSelector.MakeGenericMethod( typeof(ValueBuffer), typeof(ValueBuffer), typeof(ValueBuffer)), source, keySelector, selector); var clonedInMemoryQueryExpression = Clone(); clonedInMemoryQueryExpression.UpdateServerQueryExpression(_groupingParameter); clonedInMemoryQueryExpression._groupingParameter = null; return new GroupByShaperExpression( groupingKey, new ShapedQueryExpression( clonedInMemoryQueryExpression, new QueryExpressionReplacingExpressionVisitor(this, clonedInMemoryQueryExpression).Visit(shaperExpression))); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression AddInnerJoin( InMemoryQueryExpression innerQueryExpression, LambdaExpression outerKeySelector, LambdaExpression innerKeySelector, Expression outerShaperExpression, Expression innerShaperExpression) => AddJoin( innerQueryExpression, outerKeySelector, innerKeySelector, outerShaperExpression, innerShaperExpression, innerNullable: false); /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression AddLeftJoin( InMemoryQueryExpression innerQueryExpression, LambdaExpression outerKeySelector, LambdaExpression innerKeySelector, Expression outerShaperExpression, Expression innerShaperExpression) => AddJoin( innerQueryExpression, outerKeySelector, innerKeySelector, outerShaperExpression, innerShaperExpression, innerNullable: true); /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression AddSelectMany( InMemoryQueryExpression innerQueryExpression, Expression outerShaperExpression, Expression innerShaperExpression, bool innerNullable) => AddJoin(innerQueryExpression, null, null, outerShaperExpression, innerShaperExpression, innerNullable); /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual EntityShaperExpression AddNavigationToWeakEntityType( EntityProjectionExpression entityProjectionExpression, INavigation navigation, InMemoryQueryExpression innerQueryExpression, LambdaExpression outerKeySelector, LambdaExpression innerKeySelector) { Check.DebugAssert(_clientProjections.Count == 0, "Cannot expand weak entity navigation after client projection yet."); var outerParameter = Parameter(typeof(ValueBuffer), "outer"); var innerParameter = Parameter(typeof(ValueBuffer), "inner"); var replacingVisitor = new ReplacingExpressionVisitor( new Expression[] { CurrentParameter, innerQueryExpression.CurrentParameter }, new Expression[] { outerParameter, innerParameter }); var selectorExpressions = _projectionMappingExpressions.Select(e => replacingVisitor.Visit(e)).ToList(); var outerIndex = selectorExpressions.Count; var innerEntityProjection = (EntityProjectionExpression)innerQueryExpression._projectionMapping[new ProjectionMember()]; var innerReadExpressionMap = new Dictionary<IProperty, MethodCallExpression>(); foreach (var property in GetAllPropertiesInHierarchy(innerEntityProjection.EntityType)) { var propertyExpression = innerEntityProjection.BindProperty(property); propertyExpression = MakeReadValueNullable(propertyExpression); selectorExpressions.Add(propertyExpression); var readValueExperssion = CreateReadValueExpression(propertyExpression.Type, selectorExpressions.Count - 1, property); innerReadExpressionMap[property] = readValueExperssion; _projectionMappingExpressions.Add(readValueExperssion); } innerEntityProjection = new EntityProjectionExpression(innerEntityProjection.EntityType, innerReadExpressionMap); var resultSelector = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), selectorExpressions .Select(e => replacingVisitor.Visit(e)) .Select(e => e.Type.IsValueType ? Convert(e, typeof(object)) : e))), outerParameter, innerParameter); ServerQueryExpression = Call( _leftJoinMethodInfo.MakeGenericMethod( typeof(ValueBuffer), typeof(ValueBuffer), outerKeySelector.ReturnType, typeof(ValueBuffer)), ServerQueryExpression, innerQueryExpression.ServerQueryExpression, outerKeySelector, innerKeySelector, resultSelector, Constant( new ValueBuffer( Enumerable.Repeat((object?)null, selectorExpressions.Count - outerIndex).ToArray()))); var entityShaper = new EntityShaperExpression(innerEntityProjection.EntityType, innerEntityProjection, nullable: true); entityProjectionExpression.AddNavigationBinding(navigation, entityShaper); return entityShaper; } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual ShapedQueryExpression Clone(Expression shaperExpression) { var clonedInMemoryQueryExpression = Clone(); return new ShapedQueryExpression( clonedInMemoryQueryExpression, new QueryExpressionReplacingExpressionVisitor(this, clonedInMemoryQueryExpression).Visit(shaperExpression)); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression GetSingleScalarProjection() { var expression = CreateReadValueExpression(ServerQueryExpression.Type, 0, null); _projectionMapping.Clear(); _projectionMappingExpressions.Clear(); _clientProjections.Clear(); _projectionMapping[new ProjectionMember()] = expression; _projectionMappingExpressions.Add(expression); _groupingParameter = null; _scalarServerQuery = true; ConvertToEnumerable(); return new ProjectionBindingExpression(this, new ProjectionMember(), expression.Type.MakeNullable()); } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual void ConvertToSingleResult(MethodInfo methodInfo) => _singleResultMethodInfo = methodInfo; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public override Type Type => typeof(IEnumerable<ValueBuffer>); /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public sealed override ExpressionType NodeType => ExpressionType.Extension; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> void IPrintableExpression.Print(ExpressionPrinter expressionPrinter) { expressionPrinter.AppendLine(nameof(InMemoryQueryExpression) + ": "); using (expressionPrinter.Indent()) { expressionPrinter.AppendLine(nameof(ServerQueryExpression) + ": "); using (expressionPrinter.Indent()) { expressionPrinter.Visit(ServerQueryExpression); } expressionPrinter.AppendLine(); if (_clientProjections.Count > 0) { expressionPrinter.AppendLine("ClientProjections:"); using (expressionPrinter.Indent()) { for (var i = 0; i < _clientProjections.Count; i++) { expressionPrinter.AppendLine(); expressionPrinter.Append(i.ToString()).Append(" -> "); expressionPrinter.Visit(_clientProjections[i]); } } } else { expressionPrinter.AppendLine("ProjectionMapping:"); using (expressionPrinter.Indent()) { foreach (var projectionMapping in _projectionMapping) { expressionPrinter.Append("Member: " + projectionMapping.Key + " Projection: "); expressionPrinter.Visit(projectionMapping.Value); expressionPrinter.AppendLine(","); } } } expressionPrinter.AppendLine(); } } private InMemoryQueryExpression Clone() { if (_cloningExpressionVisitor == null) { _cloningExpressionVisitor = new CloningExpressionVisitor(); } return (InMemoryQueryExpression)_cloningExpressionVisitor.Visit(this); } private Expression GetGroupingKey(Expression key, List<Expression> groupingExpressions, Expression groupingKeyAccessExpression) { switch (key) { case NewExpression newExpression: var arguments = new Expression[newExpression.Arguments.Count]; for (var i = 0; i < arguments.Length; i++) { arguments[i] = GetGroupingKey(newExpression.Arguments[i], groupingExpressions, groupingKeyAccessExpression); } return newExpression.Update(arguments); case MemberInitExpression memberInitExpression: if (memberInitExpression.Bindings.Any(mb => !(mb is MemberAssignment))) { goto default; } var updatedNewExpression = (NewExpression)GetGroupingKey( memberInitExpression.NewExpression, groupingExpressions, groupingKeyAccessExpression); var memberBindings = new MemberAssignment[memberInitExpression.Bindings.Count]; for (var i = 0; i < memberBindings.Length; i++) { var memberAssignment = (MemberAssignment)memberInitExpression.Bindings[i]; memberBindings[i] = memberAssignment.Update( GetGroupingKey( memberAssignment.Expression, groupingExpressions, groupingKeyAccessExpression)); } return memberInitExpression.Update(updatedNewExpression, memberBindings); default: var index = groupingExpressions.Count; groupingExpressions.Add(key); return groupingKeyAccessExpression.CreateValueBufferReadValueExpression( key.Type, index, InferPropertyFromInner(key)); } } private Expression AddJoin( InMemoryQueryExpression innerQueryExpression, LambdaExpression? outerKeySelector, LambdaExpression? innerKeySelector, Expression outerShaperExpression, Expression innerShaperExpression, bool innerNullable) { var transparentIdentifierType = TransparentIdentifierFactory.Create(outerShaperExpression.Type, innerShaperExpression.Type); var outerMemberInfo = transparentIdentifierType.GetTypeInfo().GetRequiredDeclaredField("Outer"); var innerMemberInfo = transparentIdentifierType.GetTypeInfo().GetRequiredDeclaredField("Inner"); var outerClientEval = _clientProjections.Count > 0; var innerClientEval = innerQueryExpression._clientProjections.Count > 0; var resultSelectorExpressions = new List<Expression>(); var outerParameter = Parameter(typeof(ValueBuffer), "outer"); var innerParameter = Parameter(typeof(ValueBuffer), "inner"); var replacingVisitor = new ReplacingExpressionVisitor( new Expression[] { CurrentParameter, innerQueryExpression.CurrentParameter }, new Expression[] { outerParameter, innerParameter }); int outerIndex; if (outerClientEval) { // Outer projection are already populated if (innerClientEval) { // Add inner to projection and update indexes var indexMap = new int[innerQueryExpression._clientProjections.Count]; for (var i = 0; i < innerQueryExpression._clientProjections.Count; i++) { var projectionToAdd = innerQueryExpression._clientProjections[i]; projectionToAdd = MakeNullable(projectionToAdd, innerNullable); _clientProjections.Add(projectionToAdd); indexMap[i] = _clientProjections.Count - 1; } innerQueryExpression._clientProjections.Clear(); innerShaperExpression = new ProjectionIndexRemappingExpressionVisitor(innerQueryExpression, this, indexMap).Visit(innerShaperExpression); } else { // Apply inner projection mapping and convert projection member binding to indexes var mapping = ConvertProjectionMappingToClientProjections(innerQueryExpression._projectionMapping, innerNullable); innerShaperExpression = new ProjectionMemberToIndexConvertingExpressionVisitor(this, mapping).Visit(innerShaperExpression); } // TODO: We still need to populate and generate result selector // Further for a subquery in projection we may need to update correlation terms used inside it. throw new NotImplementedException(); } if (innerClientEval) { // Since inner projections are populated, we need to populate outer also var mapping = ConvertProjectionMappingToClientProjections(_projectionMapping); outerShaperExpression = new ProjectionMemberToIndexConvertingExpressionVisitor(this, mapping).Visit(outerShaperExpression); var indexMap = new int[innerQueryExpression._clientProjections.Count]; for (var i = 0; i < innerQueryExpression._clientProjections.Count; i++) { var projectionToAdd = innerQueryExpression._clientProjections[i]; projectionToAdd = MakeNullable(projectionToAdd, innerNullable); _clientProjections.Add(projectionToAdd); indexMap[i] = _clientProjections.Count - 1; } innerQueryExpression._clientProjections.Clear(); innerShaperExpression = new ProjectionIndexRemappingExpressionVisitor(innerQueryExpression, this, indexMap).Visit(innerShaperExpression); // TODO: We still need to populate and generate result selector // Further for a subquery in projection we may need to update correlation terms used inside it. throw new NotImplementedException(); } else { var projectionMapping = new Dictionary<ProjectionMember, Expression>(); var mapping = new Dictionary<ProjectionMember, ProjectionMember>(); foreach (var projection in _projectionMapping) { var newProjectionMember = projection.Key.Prepend(outerMemberInfo); mapping[projection.Key] = newProjectionMember; if (projection.Value is EntityProjectionExpression entityProjectionExpression) { projectionMapping[newProjectionMember] = TraverseEntityProjection( resultSelectorExpressions, entityProjectionExpression, makeNullable: false); } else { resultSelectorExpressions.Add(projection.Value); projectionMapping[newProjectionMember] = CreateReadValueExpression( projection.Value.Type, resultSelectorExpressions.Count - 1, InferPropertyFromInner(projection.Value)); } } outerShaperExpression = new ProjectionMemberRemappingExpressionVisitor(this, mapping).Visit(outerShaperExpression); mapping.Clear(); outerIndex = resultSelectorExpressions.Count; foreach (var projection in innerQueryExpression._projectionMapping) { var newProjectionMember = projection.Key.Prepend(innerMemberInfo); mapping[projection.Key] = newProjectionMember; if (projection.Value is EntityProjectionExpression entityProjectionExpression) { projectionMapping[newProjectionMember] = TraverseEntityProjection( resultSelectorExpressions, entityProjectionExpression, innerNullable); } else { var expression = projection.Value; if (innerNullable) { expression = MakeReadValueNullable(expression); } resultSelectorExpressions.Add(expression); projectionMapping[newProjectionMember] = CreateReadValueExpression( expression.Type, resultSelectorExpressions.Count - 1, InferPropertyFromInner(projection.Value)); } } innerShaperExpression = new ProjectionMemberRemappingExpressionVisitor(this, mapping).Visit(innerShaperExpression); mapping.Clear(); _projectionMapping = projectionMapping; } var resultSelector = Lambda( New( _valueBufferConstructor, NewArrayInit( typeof(object), resultSelectorExpressions.Select( (e, i) => { var expression = replacingVisitor.Visit(e); if (innerNullable && i > outerIndex) { expression = MakeReadValueNullable(expression); } if (expression.Type.IsValueType) { expression = Convert(expression, typeof(object)); } return expression; }))), outerParameter, innerParameter); if (outerKeySelector != null && innerKeySelector != null) { if (innerNullable) { ServerQueryExpression = Call( _leftJoinMethodInfo.MakeGenericMethod( typeof(ValueBuffer), typeof(ValueBuffer), outerKeySelector.ReturnType, typeof(ValueBuffer)), ServerQueryExpression, innerQueryExpression.ServerQueryExpression, outerKeySelector, innerKeySelector, resultSelector, Constant( new ValueBuffer( Enumerable.Repeat((object?)null, resultSelectorExpressions.Count - outerIndex).ToArray()))); } else { ServerQueryExpression = Call( EnumerableMethods.Join.MakeGenericMethod( typeof(ValueBuffer), typeof(ValueBuffer), outerKeySelector.ReturnType, typeof(ValueBuffer)), ServerQueryExpression, innerQueryExpression.ServerQueryExpression, outerKeySelector, innerKeySelector, resultSelector); } } else { // inner nullable should do something different here // Issue#17536 ServerQueryExpression = Call( EnumerableMethods.SelectManyWithCollectionSelector.MakeGenericMethod( typeof(ValueBuffer), typeof(ValueBuffer), typeof(ValueBuffer)), ServerQueryExpression, Lambda(innerQueryExpression.ServerQueryExpression, CurrentParameter), resultSelector); } if (innerNullable) { innerShaperExpression = new EntityShaperNullableMarkingExpressionVisitor().Visit(innerShaperExpression); } return New( transparentIdentifierType.GetTypeInfo().DeclaredConstructors.Single(), new[] { outerShaperExpression, innerShaperExpression }, outerMemberInfo, innerMemberInfo); static Expression MakeNullable(Expression expression, bool nullable) => nullable ? expression is EntityProjectionExpression entityProjection ? MakeEntityProjectionNullable(entityProjection) : MakeReadValueNullable(expression) : expression; } private void ConvertToEnumerable() { if (_scalarServerQuery || _singleResultMethodInfo != null) { if (ServerQueryExpression.Type != typeof(ValueBuffer)) { if (ServerQueryExpression.Type.IsValueType) { ServerQueryExpression = Convert(ServerQueryExpression, typeof(object)); } ServerQueryExpression = New( _resultEnumerableConstructor, Lambda<Func<ValueBuffer>>( New( _valueBufferConstructor, NewArrayInit(typeof(object), ServerQueryExpression)))); } else { ServerQueryExpression = New( _resultEnumerableConstructor, Lambda<Func<ValueBuffer>>(ServerQueryExpression)); } } } private MethodCallExpression CreateReadValueExpression(Type type, int index, IPropertyBase? property) => (MethodCallExpression)_valueBufferParameter.CreateValueBufferReadValueExpression(type, index, property); private static IEnumerable<IProperty> GetAllPropertiesInHierarchy(IEntityType entityType) => entityType.GetAllBaseTypes().Concat(entityType.GetDerivedTypesInclusive()) .SelectMany(t => t.GetDeclaredProperties()); private static IPropertyBase? InferPropertyFromInner(Expression expression) => expression is MethodCallExpression methodCallExpression && methodCallExpression.Method.IsGenericMethod && methodCallExpression.Method.GetGenericMethodDefinition() == ExpressionExtensions.ValueBufferTryReadValueMethod ? methodCallExpression.Arguments[2].GetConstantValue<IPropertyBase>() : null; private static EntityProjectionExpression MakeEntityProjectionNullable(EntityProjectionExpression entityProjectionExpression) { var readExpressionMap = new Dictionary<IProperty, MethodCallExpression>(); foreach (var property in GetAllPropertiesInHierarchy(entityProjectionExpression.EntityType)) { readExpressionMap[property] = MakeReadValueNullable(entityProjectionExpression.BindProperty(property)); } var result = new EntityProjectionExpression(entityProjectionExpression.EntityType, readExpressionMap); // Also compute nested entity projections foreach (var navigation in entityProjectionExpression.EntityType.GetAllBaseTypes() .Concat(entityProjectionExpression.EntityType.GetDerivedTypesInclusive()) .SelectMany(t => t.GetDeclaredNavigations())) { var boundEntityShaperExpression = entityProjectionExpression.BindNavigation(navigation); if (boundEntityShaperExpression != null) { var innerEntityProjection = (EntityProjectionExpression)boundEntityShaperExpression.ValueBufferExpression; var newInnerEntityProjection = MakeEntityProjectionNullable(innerEntityProjection); boundEntityShaperExpression = boundEntityShaperExpression.Update(newInnerEntityProjection); result.AddNavigationBinding(navigation, boundEntityShaperExpression); } } return result; } private Dictionary<ProjectionMember, int> ConvertProjectionMappingToClientProjections( Dictionary<ProjectionMember, Expression> projectionMapping, bool makeNullable = false) { var mapping = new Dictionary<ProjectionMember, int>(); var entityProjectionCache = new Dictionary<EntityProjectionExpression, int>(ReferenceEqualityComparer.Instance); foreach (var projection in projectionMapping) { var projectionMember = projection.Key; var projectionToAdd = projection.Value; if (projectionToAdd is EntityProjectionExpression entityProjection) { if (!entityProjectionCache.TryGetValue(entityProjection, out var value)) { var entityProjectionToCache = entityProjection; if (makeNullable) { entityProjection = MakeEntityProjectionNullable(entityProjection); } _clientProjections.Add(entityProjection); value = _clientProjections.Count - 1; entityProjectionCache[entityProjectionToCache] = value; } mapping[projectionMember] = value; } else { if (makeNullable) { projectionToAdd = MakeReadValueNullable(projectionToAdd); } var existingIndex = _clientProjections.FindIndex(e => e.Equals(projectionToAdd)); if (existingIndex == -1) { _clientProjections.Add(projectionToAdd); existingIndex = _clientProjections.Count - 1; } mapping[projectionMember] = existingIndex; } } projectionMapping.Clear(); return mapping; } private static IEnumerable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>( IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, TInner defaultValue) => outer.GroupJoin(inner, outerKeySelector, innerKeySelector, (oe, ies) => new { oe, ies }) .SelectMany(t => t.ies.DefaultIfEmpty(defaultValue), (t, i) => resultSelector(t.oe, i)); private static MethodCallExpression MakeReadValueNullable(Expression expression) { Check.DebugAssert(expression is MethodCallExpression, "Expression must be method call expression."); var methodCallExpression = (MethodCallExpression)expression; return methodCallExpression.Type.IsNullableType() ? methodCallExpression : Call( ExpressionExtensions.ValueBufferTryReadValueMethod.MakeGenericMethod(methodCallExpression.Type.MakeNullable()), methodCallExpression.Arguments); } private EntityProjectionExpression TraverseEntityProjection( List<Expression> selectorExpressions, EntityProjectionExpression entityProjectionExpression, bool makeNullable) { var readExpressionMap = new Dictionary<IProperty, MethodCallExpression>(); foreach (var property in GetAllPropertiesInHierarchy(entityProjectionExpression.EntityType)) { var expression = entityProjectionExpression.BindProperty(property); if (makeNullable) { expression = MakeReadValueNullable(expression); } selectorExpressions.Add(expression); var newExpression = CreateReadValueExpression(expression.Type, selectorExpressions.Count - 1, property); readExpressionMap[property] = newExpression; } var result = new EntityProjectionExpression(entityProjectionExpression.EntityType, readExpressionMap); // Also compute nested entity projections foreach (var navigation in entityProjectionExpression.EntityType.GetAllBaseTypes() .Concat(entityProjectionExpression.EntityType.GetDerivedTypesInclusive()) .SelectMany(t => t.GetDeclaredNavigations())) { var boundEntityShaperExpression = entityProjectionExpression.BindNavigation(navigation); if (boundEntityShaperExpression != null) { var innerEntityProjection = (EntityProjectionExpression)boundEntityShaperExpression.ValueBufferExpression; var newInnerEntityProjection = TraverseEntityProjection(selectorExpressions, innerEntityProjection, makeNullable); boundEntityShaperExpression = boundEntityShaperExpression.Update(newInnerEntityProjection); result.AddNavigationBinding(navigation, boundEntityShaperExpression); } } return result; } }
49.040593
135
0.636905
[ "MIT" ]
Applesauce314/efcore
src/EFCore.InMemory/Query/Internal/InMemoryQueryExpression.cs
62,821
C#