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
// *** 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.Aws.WafV2.Outputs { [OutputType] public sealed class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch { /// <summary> /// Inspect all query arguments. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments? AllQueryArguments; /// <summary> /// Inspect the request body, which immediately follows the request headers. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody? Body; /// <summary> /// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod? Method; /// <summary> /// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString? QueryString; /// <summary> /// Inspect a single header. See Single Header below for details. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader? SingleHeader; /// <summary> /// Inspect a single query argument. See Single Query Argument below for details. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument? SingleQueryArgument; /// <summary> /// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. /// </summary> public readonly Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath? UriPath; [OutputConstructor] private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments? allQueryArguments, Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody? body, Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod? method, Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString? queryString, Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader? singleHeader, Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument? singleQueryArgument, Outputs.WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath? uriPath) { AllQueryArguments = allQueryArguments; Body = body; Method = method; QueryString = queryString; SingleHeader = singleHeader; SingleQueryArgument = singleQueryArgument; UriPath = uriPath; } } }
59.676056
184
0.780977
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.cs
4,237
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // TransformChainTest.cs - Test Cases for TransformChain // // Author: // Sebastien Pouliot (spouliot@motus.com) // // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com) using Xunit; namespace System.Security.Cryptography.Xml.Tests { public class TransformChainTest { [Fact] public void EmptyChain() { TransformChain chain = new TransformChain(); Assert.Equal(0, chain.Count); Assert.NotNull(chain.GetEnumerator()); Assert.Equal("System.Security.Cryptography.Xml.TransformChain", chain.ToString()); } [Fact] public void FullChain() { TransformChain chain = new TransformChain(); XmlDsigBase64Transform base64 = new XmlDsigBase64Transform(); chain.Add(base64); Assert.Equal(base64, chain[0]); Assert.Equal(1, chain.Count); XmlDsigC14NTransform c14n = new XmlDsigC14NTransform(); chain.Add(c14n); Assert.Equal(c14n, chain[1]); Assert.Equal(2, chain.Count); XmlDsigC14NWithCommentsTransform c14nc = new XmlDsigC14NWithCommentsTransform(); chain.Add(c14nc); Assert.Equal(c14nc, chain[2]); Assert.Equal(3, chain.Count); XmlDsigEnvelopedSignatureTransform esign = new XmlDsigEnvelopedSignatureTransform(); chain.Add(esign); Assert.Equal(esign, chain[3]); Assert.Equal(4, chain.Count); XmlDsigXPathTransform xpath = new XmlDsigXPathTransform(); chain.Add(xpath); Assert.Equal(xpath, chain[4]); Assert.Equal(5, chain.Count); XmlDsigXsltTransform xslt = new XmlDsigXsltTransform(); chain.Add(xslt); Assert.Equal(xslt, chain[5]); Assert.Equal(6, chain.Count); } } }
31.4
96
0.607055
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Security.Cryptography.Xml/tests/TransformChainTest.cs
2,041
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 fms-2018-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.FMS.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.FMS.Model.Internal.MarshallTransformations { /// <summary> /// GetAdminAccount Request Marshaller /// </summary> public class GetAdminAccountRequestMarshaller : IMarshaller<IRequest, GetAdminAccountRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetAdminAccountRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetAdminAccountRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.FMS"); string target = "AWSFMS_20180101.GetAdminAccount"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; request.MarshallerVersion = 2; var content = "{}"; request.Content = System.Text.Encoding.UTF8.GetBytes(content); return request; } private static GetAdminAccountRequestMarshaller _instance = new GetAdminAccountRequestMarshaller(); internal static GetAdminAccountRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetAdminAccountRequestMarshaller Instance { get { return _instance; } } } }
33.911111
145
0.643512
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/FMS/Generated/Model/Internal/MarshallTransformations/GetAdminAccountRequestMarshaller.cs
3,052
C#
/* * Copyright(c) 2020 Samsung Electronics Co., Ltd. * * 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; using System.ComponentModel; using System.Reflection; using Tizen.NUI.BaseComponents; namespace Tizen.NUI { internal class ViewImpl : CustomActorImpl { internal ViewImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) { } protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) { throw new global::System.MethodAccessException("C++ destructor does not have public access"); } protected override void Dispose(DisposeTypes type) { if (disposed) { return; } if (type == DisposeTypes.Explicit) { SwigDirectorDisconnect(); } base.Dispose(type); } public static View New() { View ret = new View(Interop.ViewImpl.New(), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void SetStyleName(string styleName) { Interop.ViewImpl.SetStyleName(SwigCPtr, styleName); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public string GetStyleName() { string ret = Interop.ViewImpl.GetStyleName(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void SetBackgroundColor(Vector4 color) { Interop.ViewImpl.SetBackgroundColor(SwigCPtr, Vector4.getCPtr(color)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public Vector4 GetBackgroundColor() { Vector4 ret = new Vector4(Interop.ViewImpl.GetBackgroundColor(SwigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void SetBackground(PropertyMap map) { Interop.ViewImpl.SetBackground(SwigCPtr, PropertyMap.getCPtr(map)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public void ClearBackground() { Interop.ViewImpl.ClearBackground(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public void EnableGestureDetection(Gesture.GestureType type) { Interop.ViewImpl.EnableGestureDetection(SwigCPtr, (int)type); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public void DisableGestureDetection(Gesture.GestureType type) { Interop.ViewImpl.DisableGestureDetection(SwigCPtr, (int)type); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public PinchGestureDetector GetPinchGestureDetector() { PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewImpl.GetPinchGestureDetector(SwigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public PanGestureDetector GetPanGestureDetector() { PanGestureDetector ret = new PanGestureDetector(Interop.ViewImpl.GetPanGestureDetector(SwigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public TapGestureDetector GetTapGestureDetector() { TapGestureDetector ret = new TapGestureDetector(Interop.ViewImpl.GetTapGestureDetector(SwigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public LongPressGestureDetector GetLongPressGestureDetector() { LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewImpl.GetLongPressGestureDetector(SwigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void SetKeyboardNavigationSupport(bool isSupported) { Interop.ViewImpl.SetKeyboardNavigationSupport(SwigCPtr, isSupported); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public bool IsKeyboardNavigationSupported() { bool ret = Interop.ViewImpl.IsKeyboardNavigationSupported(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void SetKeyInputFocus() { Interop.ViewImpl.SetKeyInputFocus(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public bool HasKeyInputFocus() { bool ret = Interop.ViewImpl.HasKeyInputFocus(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void ClearKeyInputFocus() { Interop.ViewImpl.ClearKeyInputFocus(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public void SetAsFocusGroup(bool isFocusGroup) { Interop.ViewImpl.SetAsKeyboardFocusGroup(SwigCPtr, isFocusGroup); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public bool IsFocusGroup() { bool ret = Interop.ViewImpl.IsKeyboardFocusGroup(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } /// <summary> /// [Obsolete("Please do not use! this will be deprecated")] /// </summary> /// Please do not use! this will be deprecated! [Obsolete("Please do not use! this will be deprecated.")] [EditorBrowsable(EditorBrowsableState.Never)] public void AccessibilityActivate() { Interop.ViewImpl.AccessibilityActivate(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } /// <summary> /// [Obsolete("Please do not use! this will be deprecated")] /// </summary> /// Please do not use! this will be deprecated! [Obsolete("Please do not use! this will be deprecated.")] [EditorBrowsable(EditorBrowsableState.Never)] public void KeyboardEnter() { Interop.ViewImpl.KeyboardEnter(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal ControlKeySignal KeyEventSignal() { ControlKeySignal ret = new ControlKeySignal(Interop.ViewImplSignal.KeyEventSignal(SwigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal KeyInputFocusSignal KeyInputFocusGainedSignal() { KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewImplSignal.KeyInputFocusGainedSignal(SwigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal KeyInputFocusSignal KeyInputFocusLostSignal() { KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewImplSignal.KeyInputFocusLostSignal(SwigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } /// <summary> /// [Obsolete("Please do not use! this will be deprecated")] /// </summary> /// Please do not use! this will be deprecated! [Obsolete("Please do not use! this will be deprecated.")] [EditorBrowsable(EditorBrowsableState.Never)] public bool EmitKeyEventSignal(Key arg0) { bool ret = Interop.ViewImplSignal.EmitKeyEventSignal(SwigCPtr, Key.getCPtr(arg0)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new void OnSceneConnection(int depth) { if (SwigDerivedClassHasMethod("OnSceneConnection", swigMethodTypes0)) Interop.ViewImplSignal.OnSceneConnectionSwigExplicitViewImpl(SwigCPtr, depth); else Interop.ViewImplSignal.OnSceneConnection(SwigCPtr, depth); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnSceneDisconnection() { if (SwigDerivedClassHasMethod("OnSceneDisconnection", swigMethodTypes1)) Interop.ViewImplSignal.OnSceneDisconnectionSwigExplicitViewImpl(SwigCPtr); else Interop.ViewImplSignal.OnSceneDisconnection(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnChildAdd(View child) { if (SwigDerivedClassHasMethod("OnChildAdd", swigMethodTypes2)) Interop.ViewImplSignal.OnChildAddSwigExplicitViewImpl(SwigCPtr, View.getCPtr(child)); else Interop.ViewImplSignal.OnChildAdd(SwigCPtr, View.getCPtr(child)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnChildRemove(View child) { if (SwigDerivedClassHasMethod("OnChildRemove", swigMethodTypes3)) Interop.ViewImplSignal.OnChildRemoveSwigExplicitViewImpl(SwigCPtr, View.getCPtr(child)); else Interop.ViewImplSignal.OnChildRemove(SwigCPtr, View.getCPtr(child)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnPropertySet(int index, PropertyValue propertyValue) { if (SwigDerivedClassHasMethod("OnPropertySet", swigMethodTypes4)) Interop.ViewImplSignal.OnPropertySetSwigExplicitViewImpl(SwigCPtr, index, PropertyValue.getCPtr(propertyValue)); else Interop.ViewImplSignal.OnPropertySet(SwigCPtr, index, PropertyValue.getCPtr(propertyValue)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnSizeSet(Vector3 targetSize) { if (SwigDerivedClassHasMethod("OnSizeSet", swigMethodTypes5)) Interop.ViewImplSignal.OnSizeSetSwigExplicitViewImpl(SwigCPtr, Vector3.getCPtr(targetSize)); else Interop.ViewImplSignal.OnSizeSet(SwigCPtr, Vector3.getCPtr(targetSize)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnSizeAnimation(Animation animation, Vector3 targetSize) { if (SwigDerivedClassHasMethod("OnSizeAnimation", swigMethodTypes6)) Interop.ViewImplSignal.OnSizeAnimationSwigExplicitViewImpl(SwigCPtr, Animation.getCPtr(animation), Vector3.getCPtr(targetSize)); else Interop.ViewImplSignal.OnSizeAnimation(SwigCPtr, Animation.getCPtr(animation), Vector3.getCPtr(targetSize)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new bool OnKeyEvent(Key arg0) { bool ret = (SwigDerivedClassHasMethod("OnKeyEvent", swigMethodTypes9) ? Interop.ViewImplSignal.OnKeyEventSwigExplicitViewImpl(SwigCPtr, Key.getCPtr(arg0)) : Interop.ViewImplSignal.OnKeyEvent(SwigCPtr, Key.getCPtr(arg0))); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new void OnRelayout(Vector2 size, RelayoutContainer container) { if (SwigDerivedClassHasMethod("OnRelayout", swigMethodTypes11)) Interop.ViewImplSignal.OnRelayoutSwigExplicitViewImpl(SwigCPtr, Vector2.getCPtr(size), RelayoutContainer.getCPtr(container)); else Interop.ViewImplSignal.OnRelayout(SwigCPtr, Vector2.getCPtr(size), RelayoutContainer.getCPtr(container)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension) { if (SwigDerivedClassHasMethod("OnSetResizePolicy", swigMethodTypes12)) Interop.ViewImplSignal.OnSetResizePolicySwigExplicitViewImpl(SwigCPtr, (int)policy, (int)dimension); else Interop.ViewImplSignal.OnSetResizePolicy(SwigCPtr, (int)policy, (int)dimension); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new Vector3 GetNaturalSize() { Vector3 ret = new Vector3((SwigDerivedClassHasMethod("GetNaturalSize", swigMethodTypes13) ? Interop.ViewImpl.GetNaturalSizeSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImpl.GetNaturalSize(SwigCPtr)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new float CalculateChildSize(View child, DimensionType dimension) { float ret = (SwigDerivedClassHasMethod("CalculateChildSize", swigMethodTypes14) ? Interop.ViewImpl.CalculateChildSizeSwigExplicitViewImpl(SwigCPtr, View.getCPtr(child), (int)dimension) : Interop.ViewImpl.CalculateChildSize(SwigCPtr, View.getCPtr(child), (int)dimension)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new float GetHeightForWidth(float width) { float ret = (SwigDerivedClassHasMethod("GetHeightForWidth", swigMethodTypes15) ? Interop.ViewImpl.GetHeightForWidthSwigExplicitViewImpl(SwigCPtr, width) : Interop.ViewImpl.GetHeightForWidth(SwigCPtr, width)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new float GetWidthForHeight(float height) { float ret = (SwigDerivedClassHasMethod("GetWidthForHeight", swigMethodTypes16) ? Interop.ViewImpl.GetWidthForHeightSwigExplicitViewImpl(SwigCPtr, height) : Interop.ViewImpl.GetWidthForHeight(SwigCPtr, height)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new bool RelayoutDependentOnChildren(DimensionType dimension) { bool ret = (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes17) ? Interop.ViewImpl.RelayoutDependentOnChildrenSwigExplicitViewImpl(SwigCPtr, (int)dimension) : Interop.ViewImpl.RelayoutDependentOnChildren(SwigCPtr, (int)dimension)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new bool RelayoutDependentOnChildren() { bool ret = (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes18) ? Interop.ViewImpl.RelayoutDependentOnChildrenSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImpl.RelayoutDependentOnChildren(SwigCPtr)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } protected virtual new void OnCalculateRelayoutSize(DimensionType dimension) { if (SwigDerivedClassHasMethod("OnCalculateRelayoutSize", swigMethodTypes19)) Interop.ViewImplSignal.OnCalculateRelayoutSizeSwigExplicitViewImpl(SwigCPtr, (int)dimension); else Interop.ViewImplSignal.OnCalculateRelayoutSize(SwigCPtr, (int)dimension); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } protected virtual new void OnLayoutNegotiated(float size, DimensionType dimension) { if (SwigDerivedClassHasMethod("OnLayoutNegotiated", swigMethodTypes20)) Interop.ViewImplSignal.OnLayoutNegotiatedSwigExplicitViewImpl(SwigCPtr, size, (int)dimension); else Interop.ViewImplSignal.OnLayoutNegotiated(SwigCPtr, size, (int)dimension); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual void OnInitialize() { if (SwigDerivedClassHasMethod("OnInitialize", swigMethodTypes21)) Interop.ViewImplSignal.OnInitializeSwigExplicitViewImpl(SwigCPtr); else Interop.ViewImplSignal.OnInitialize(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change) { if (SwigDerivedClassHasMethod("OnStyleChange", swigMethodTypes24)) Interop.ViewImplSignal.OnStyleChangeSwigExplicitViewImpl(SwigCPtr, StyleManager.getCPtr(styleManager), (int)change); else Interop.ViewImplSignal.OnStyleChange(SwigCPtr, StyleManager.getCPtr(styleManager), (int)change); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual bool OnAccessibilityActivated() { bool ret = (SwigDerivedClassHasMethod("OnAccessibilityActivated", swigMethodTypes25) ? Interop.ViewImplSignal.OnAccessibilityActivatedSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImplSignal.OnAccessibilityActivated(SwigCPtr)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual bool OnAccessibilityPan(PanGesture gesture) { bool ret = (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26) ? Interop.ViewImplSignal.OnAccessibilityPanSwigExplicitViewImpl(SwigCPtr, PanGesture.getCPtr(gesture)) : Interop.ViewImplSignal.OnAccessibilityPan(SwigCPtr, PanGesture.getCPtr(gesture))); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual bool OnAccessibilityValueChange(bool isIncrease) { bool ret = (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28) ? Interop.ViewImplSignal.OnAccessibilityValueChangeSwigExplicitViewImpl(SwigCPtr, isIncrease) : Interop.ViewImplSignal.OnAccessibilityValueChange(SwigCPtr, isIncrease)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual bool OnAccessibilityZoom() { bool ret = (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29) ? Interop.ViewImplSignal.OnAccessibilityZoomSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImplSignal.OnAccessibilityZoom(SwigCPtr)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual void OnKeyInputFocusGained() { if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30)) Interop.ViewImplSignal.OnKeyInputFocusGainedSwigExplicitViewImpl(SwigCPtr); else Interop.ViewImplSignal.OnKeyInputFocusGained(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual void OnKeyInputFocusLost() { if (SwigDerivedClassHasMethod("OnKeyInputFocusLost", swigMethodTypes31)) Interop.ViewImplSignal.OnKeyInputFocusLostSwigExplicitViewImpl(SwigCPtr); else Interop.ViewImplSignal.OnKeyInputFocusLost(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) { View ret = new View((SwigDerivedClassHasMethod("GetNextFocusableView", swigMethodTypes32) ? Interop.ViewImpl.GetNextKeyboardFocusableActorSwigExplicitViewImpl(SwigCPtr, View.getCPtr(currentFocusedView), (int)direction, loopEnabled) : Interop.ViewImpl.GetNextKeyboardFocusableActor(SwigCPtr, View.getCPtr(currentFocusedView), (int)direction, loopEnabled)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual void OnFocusChangeCommitted(View commitedFocusableView) { if (SwigDerivedClassHasMethod("OnFocusChangeCommitted", swigMethodTypes33)) Interop.ViewImplSignal.OnKeyboardFocusChangeCommittedSwigExplicitViewImpl(SwigCPtr, View.getCPtr(commitedFocusableView)); else Interop.ViewImplSignal.OnKeyboardFocusChangeCommitted(SwigCPtr, View.getCPtr(commitedFocusableView)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual bool OnKeyboardEnter() { bool ret = (SwigDerivedClassHasMethod("OnKeyboardEnter", swigMethodTypes34) ? Interop.ViewImplSignal.OnKeyboardEnterSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImplSignal.OnKeyboardEnter(SwigCPtr)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual void OnPinch(PinchGesture pinch) { if (SwigDerivedClassHasMethod("OnPinch", swigMethodTypes35)) Interop.ViewImplSignal.OnPinchSwigExplicitViewImpl(SwigCPtr, PinchGesture.getCPtr(pinch)); else Interop.ViewImplSignal.OnPinch(SwigCPtr, PinchGesture.getCPtr(pinch)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual void OnPan(PanGesture pan) { if (SwigDerivedClassHasMethod("OnPan", swigMethodTypes36)) Interop.ViewImplSignal.OnPanSwigExplicitViewImpl(SwigCPtr, PanGesture.getCPtr(pan)); else Interop.ViewImplSignal.OnPan(SwigCPtr, PanGesture.getCPtr(pan)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual void OnTap(TapGesture tap) { if (SwigDerivedClassHasMethod("OnTap", swigMethodTypes37)) Interop.ViewImplSignal.OnTapSwigExplicitViewImpl(SwigCPtr, TapGesture.getCPtr(tap)); else Interop.ViewImplSignal.OnTap(SwigCPtr, TapGesture.getCPtr(tap)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public virtual void OnLongPress(LongPressGesture longPress) { if (SwigDerivedClassHasMethod("OnLongPress", swigMethodTypes38)) Interop.ViewImplSignal.OnLongPressSwigExplicitViewImpl(SwigCPtr, LongPressGesture.getCPtr(longPress)); else Interop.ViewImplSignal.OnLongPress(SwigCPtr, LongPressGesture.getCPtr(longPress)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal virtual void SignalConnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback) { if (SwigDerivedClassHasMethod("SignalConnected", swigMethodTypes39)) Interop.ViewImplSignal.SignalConnectedSwigExplicitViewImpl(SwigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback)); else Interop.ViewImplSignal.SignalConnected(SwigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal virtual void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback) { if (SwigDerivedClassHasMethod("SignalDisconnected", swigMethodTypes40)) Interop.ViewImplSignal.SignalDisconnectedSwigExplicitViewImpl(SwigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback)); else Interop.ViewImplSignal.SignalDisconnected(SwigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } private void SwigDirectorConnect() { if (SwigDerivedClassHasMethod("OnSceneConnection", swigMethodTypes0)) swigDelegate0 = new SwigDelegateViewImpl_0(SwigDirectorOnSceneConnection); if (SwigDerivedClassHasMethod("OnSceneDisconnection", swigMethodTypes1)) swigDelegate1 = new SwigDelegateViewImpl_1(SwigDirectorOnSceneDisconnection); if (SwigDerivedClassHasMethod("OnChildAdd", swigMethodTypes2)) swigDelegate2 = new SwigDelegateViewImpl_2(SwigDirectorOnChildAdd); if (SwigDerivedClassHasMethod("OnChildRemove", swigMethodTypes3)) swigDelegate3 = new SwigDelegateViewImpl_3(SwigDirectorOnChildRemove); if (SwigDerivedClassHasMethod("OnPropertySet", swigMethodTypes4)) swigDelegate4 = new SwigDelegateViewImpl_4(SwigDirectorOnPropertySet); if (SwigDerivedClassHasMethod("OnSizeSet", swigMethodTypes5)) swigDelegate5 = new SwigDelegateViewImpl_5(SwigDirectorOnSizeSet); if (SwigDerivedClassHasMethod("OnSizeAnimation", swigMethodTypes6)) swigDelegate6 = new SwigDelegateViewImpl_6(SwigDirectorOnSizeAnimation); if (SwigDerivedClassHasMethod("OnKeyEvent", swigMethodTypes9)) swigDelegate9 = new SwigDelegateViewImpl_9(SwigDirectorOnKeyEvent); if (SwigDerivedClassHasMethod("OnRelayout", swigMethodTypes11)) swigDelegate11 = new SwigDelegateViewImpl_11(SwigDirectorOnRelayout); if (SwigDerivedClassHasMethod("OnSetResizePolicy", swigMethodTypes12)) swigDelegate12 = new SwigDelegateViewImpl_12(SwigDirectorOnSetResizePolicy); if (SwigDerivedClassHasMethod("GetNaturalSize", swigMethodTypes13)) swigDelegate13 = new SwigDelegateViewImpl_13(SwigDirectorGetNaturalSize); if (SwigDerivedClassHasMethod("CalculateChildSize", swigMethodTypes14)) swigDelegate14 = new SwigDelegateViewImpl_14(SwigDirectorCalculateChildSize); if (SwigDerivedClassHasMethod("GetHeightForWidth", swigMethodTypes15)) swigDelegate15 = new SwigDelegateViewImpl_15(SwigDirectorGetHeightForWidth); if (SwigDerivedClassHasMethod("GetWidthForHeight", swigMethodTypes16)) swigDelegate16 = new SwigDelegateViewImpl_16(SwigDirectorGetWidthForHeight); if (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes17)) swigDelegate17 = new SwigDelegateViewImpl_17(SwigDirectorRelayoutDependentOnChildrenWithDimension); if (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes18)) swigDelegate18 = new SwigDelegateViewImpl_18(SwigDirectorRelayoutDependentOnChildren); if (SwigDerivedClassHasMethod("OnCalculateRelayoutSize", swigMethodTypes19)) swigDelegate19 = new SwigDelegateViewImpl_19(SwigDirectorOnCalculateRelayoutSize); if (SwigDerivedClassHasMethod("OnLayoutNegotiated", swigMethodTypes20)) swigDelegate20 = new SwigDelegateViewImpl_20(SwigDirectorOnLayoutNegotiated); if (SwigDerivedClassHasMethod("OnInitialize", swigMethodTypes21)) swigDelegate21 = new SwigDelegateViewImpl_21(SwigDirectorOnInitialize); if (SwigDerivedClassHasMethod("OnStyleChange", swigMethodTypes24)) swigDelegate24 = new SwigDelegateViewImpl_24(SwigDirectorOnStyleChange); if (SwigDerivedClassHasMethod("OnAccessibilityActivated", swigMethodTypes25)) swigDelegate25 = new SwigDelegateViewImpl_25(SwigDirectorOnAccessibilityActivated); if (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26)) swigDelegate26 = new SwigDelegateViewImpl_26(SwigDirectorOnAccessibilityPan); if (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28)) swigDelegate28 = new SwigDelegateViewImpl_28(SwigDirectorOnAccessibilityValueChange); if (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29)) swigDelegate29 = new SwigDelegateViewImpl_29(SwigDirectorOnAccessibilityZoom); if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30)) swigDelegate30 = new SwigDelegateViewImpl_30(SwigDirectorOnKeyInputFocusGained); if (SwigDerivedClassHasMethod("OnKeyInputFocusLost", swigMethodTypes31)) swigDelegate31 = new SwigDelegateViewImpl_31(SwigDirectorOnKeyInputFocusLost); if (SwigDerivedClassHasMethod("GetNextFocusableView", swigMethodTypes32)) swigDelegate32 = new SwigDelegateViewImpl_32(SwigDirectorGetNextKeyboardFocusableView); if (SwigDerivedClassHasMethod("OnFocusChangeCommitted", swigMethodTypes33)) swigDelegate33 = new SwigDelegateViewImpl_33(SwigDirectorOnKeyboardFocusChangeCommitted); if (SwigDerivedClassHasMethod("OnKeyboardEnter", swigMethodTypes34)) swigDelegate34 = new SwigDelegateViewImpl_34(SwigDirectorOnKeyboardEnter); if (SwigDerivedClassHasMethod("OnPinch", swigMethodTypes35)) swigDelegate35 = new SwigDelegateViewImpl_35(SwigDirectorOnPinch); if (SwigDerivedClassHasMethod("OnPan", swigMethodTypes36)) swigDelegate36 = new SwigDelegateViewImpl_36(SwigDirectorOnPan); if (SwigDerivedClassHasMethod("OnTap", swigMethodTypes37)) swigDelegate37 = new SwigDelegateViewImpl_37(SwigDirectorOnTap); if (SwigDerivedClassHasMethod("OnLongPress", swigMethodTypes38)) swigDelegate38 = new SwigDelegateViewImpl_38(SwigDirectorOnLongPress); if (SwigDerivedClassHasMethod("SignalConnected", swigMethodTypes39)) swigDelegate39 = new SwigDelegateViewImpl_39(SwigDirectorSignalConnected); if (SwigDerivedClassHasMethod("SignalDisconnected", swigMethodTypes40)) swigDelegate40 = new SwigDelegateViewImpl_40(SwigDirectorSignalDisconnected); Interop.ViewImpl.DirectorConnect(SwigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate9, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate24, swigDelegate25, swigDelegate26, swigDelegate28, swigDelegate29, swigDelegate30, swigDelegate31, swigDelegate32, swigDelegate33, swigDelegate34, swigDelegate35, swigDelegate36, swigDelegate37, swigDelegate38, swigDelegate39, swigDelegate40); } private void SwigDirectorDisconnect() { swigDelegate0 = null; swigDelegate1 = null; swigDelegate2 = null; swigDelegate3 = null; swigDelegate4 = null; swigDelegate5 = null; swigDelegate6 = null; swigDelegate9 = null; swigDelegate11 = null; swigDelegate12 = null; swigDelegate13 = null; swigDelegate14 = null; swigDelegate15 = null; swigDelegate16 = null; swigDelegate17 = null; swigDelegate18 = null; swigDelegate19 = null; swigDelegate20 = null; swigDelegate21 = null; swigDelegate24 = null; swigDelegate25 = null; swigDelegate26 = null; swigDelegate28 = null; swigDelegate29 = null; swigDelegate30 = null; swigDelegate31 = null; swigDelegate32 = null; swigDelegate33 = null; swigDelegate34 = null; swigDelegate35 = null; swigDelegate36 = null; swigDelegate37 = null; swigDelegate38 = null; swigDelegate39 = null; swigDelegate40 = null; Interop.ViewImpl.DirectorConnect(SwigCPtr, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) { global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, methodTypes); bool hasDerivedMethod = this.GetType().GetTypeInfo().IsSubclassOf(typeof(ViewImpl)); NUILog.Debug("hasDerivedMethod=" + hasDerivedMethod); return hasDerivedMethod && (methodInfo != null); } private void SwigDirectorOnSceneConnection(int depth) { OnSceneConnection(depth); } private void SwigDirectorOnSceneDisconnection() { OnSceneDisconnection(); } private void SwigDirectorOnChildAdd(global::System.IntPtr child) { View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View; if (view != null) { OnChildAdd(view); } } private void SwigDirectorOnChildRemove(global::System.IntPtr child) { View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View; if (view != null) { OnChildRemove(view); } } private void SwigDirectorOnPropertySet(int index, global::System.IntPtr propertyValue) { OnPropertySet(index, new PropertyValue(propertyValue, true)); } private void SwigDirectorOnSizeSet(global::System.IntPtr targetSize) { OnSizeSet(new Vector3(targetSize, false)); } private void SwigDirectorOnSizeAnimation(global::System.IntPtr animation, global::System.IntPtr targetSize) { OnSizeAnimation(new Animation(animation, false), new Vector3(targetSize, false)); } private bool SwigDirectorOnKeyEvent(global::System.IntPtr arg0) { return OnKeyEvent(new Key(arg0, false)); } private void SwigDirectorOnRelayout(global::System.IntPtr size, global::System.IntPtr container) { OnRelayout(new Vector2(size, false), new RelayoutContainer(container, false)); } private void SwigDirectorOnSetResizePolicy(int policy, int dimension) { OnSetResizePolicy((ResizePolicyType)policy, (DimensionType)dimension); } private global::System.IntPtr SwigDirectorGetNaturalSize() { return Vector3.getCPtr(GetNaturalSize()).Handle; } private float SwigDirectorCalculateChildSize(global::System.IntPtr child, int dimension) { View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View; if (view != null) { return CalculateChildSize(view, (DimensionType)dimension); } return 0.0f; } private float SwigDirectorGetHeightForWidth(float width) { return GetHeightForWidth(width); } private float SwigDirectorGetWidthForHeight(float height) { return GetWidthForHeight(height); } private bool SwigDirectorRelayoutDependentOnChildrenWithDimension(int dimension) { return RelayoutDependentOnChildren((DimensionType)dimension); } private bool SwigDirectorRelayoutDependentOnChildren() { return RelayoutDependentOnChildren(); } private void SwigDirectorOnCalculateRelayoutSize(int dimension) { OnCalculateRelayoutSize((DimensionType)dimension); } private void SwigDirectorOnLayoutNegotiated(float size, int dimension) { OnLayoutNegotiated(size, (DimensionType)dimension); } private void SwigDirectorOnInitialize() { OnInitialize(); } private void SwigDirectorOnStyleChange(global::System.IntPtr styleManager, int change) { StyleManager stManager = Registry.GetManagedBaseHandleFromNativePtr(styleManager) as StyleManager; if (stManager != null) { OnStyleChange(stManager, (StyleChangeType)change); } } private bool SwigDirectorOnAccessibilityActivated() { return OnAccessibilityActivated(); } private bool SwigDirectorOnAccessibilityPan(global::System.IntPtr gesture) { return OnAccessibilityPan(new PanGesture(gesture, true)); } private bool SwigDirectorOnAccessibilityValueChange(bool isIncrease) { return OnAccessibilityValueChange(isIncrease); } private bool SwigDirectorOnAccessibilityZoom() { return OnAccessibilityZoom(); } private void SwigDirectorOnKeyInputFocusGained() { OnKeyInputFocusGained(); } private void SwigDirectorOnKeyInputFocusLost() { OnKeyInputFocusLost(); } private global::System.IntPtr SwigDirectorGetNextKeyboardFocusableView(global::System.IntPtr currentFocusedView, int direction, bool loopEnabled) { return View.getCPtr(GetNextFocusableView(Registry.GetManagedBaseHandleFromNativePtr(currentFocusedView) as View, (View.FocusDirection)direction, loopEnabled)).Handle; } private void SwigDirectorOnKeyboardFocusChangeCommitted(global::System.IntPtr commitedFocusableView) { OnFocusChangeCommitted(Registry.GetManagedBaseHandleFromNativePtr(commitedFocusableView) as View); } private bool SwigDirectorOnKeyboardEnter() { return OnKeyboardEnter(); } private void SwigDirectorOnPinch(global::System.IntPtr pinch) { OnPinch(new PinchGesture(pinch, false)); } private void SwigDirectorOnPan(global::System.IntPtr pan) { OnPan(new PanGesture(pan, false)); } private void SwigDirectorOnTap(global::System.IntPtr tap) { OnTap(new TapGesture(tap, false)); } private void SwigDirectorOnLongPress(global::System.IntPtr longPress) { OnLongPress(new LongPressGesture(longPress, false)); } private void SwigDirectorSignalConnected(global::System.IntPtr slotObserver, global::System.IntPtr callback) { SignalConnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback)); } private void SwigDirectorSignalDisconnected(global::System.IntPtr slotObserver, global::System.IntPtr callback) { SignalDisconnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback)); } public delegate void SwigDelegateViewImpl_0(int depth); public delegate void SwigDelegateViewImpl_1(); public delegate void SwigDelegateViewImpl_2(global::System.IntPtr child); public delegate void SwigDelegateViewImpl_3(global::System.IntPtr child); public delegate void SwigDelegateViewImpl_4(int index, global::System.IntPtr propertyValue); public delegate void SwigDelegateViewImpl_5(global::System.IntPtr targetSize); public delegate void SwigDelegateViewImpl_6(global::System.IntPtr animation, global::System.IntPtr targetSize); public delegate bool SwigDelegateViewImpl_9(global::System.IntPtr arg0); public delegate void SwigDelegateViewImpl_11(global::System.IntPtr size, global::System.IntPtr container); public delegate void SwigDelegateViewImpl_12(int policy, int dimension); public delegate global::System.IntPtr SwigDelegateViewImpl_13(); public delegate float SwigDelegateViewImpl_14(global::System.IntPtr child, int dimension); public delegate float SwigDelegateViewImpl_15(float width); public delegate float SwigDelegateViewImpl_16(float height); public delegate bool SwigDelegateViewImpl_17(int dimension); public delegate bool SwigDelegateViewImpl_18(); public delegate void SwigDelegateViewImpl_19(int dimension); public delegate void SwigDelegateViewImpl_20(float size, int dimension); public delegate void SwigDelegateViewImpl_21(); public delegate void SwigDelegateViewImpl_22(global::System.IntPtr child); public delegate void SwigDelegateViewImpl_23(global::System.IntPtr child); public delegate void SwigDelegateViewImpl_24(global::System.IntPtr styleManager, int change); public delegate bool SwigDelegateViewImpl_25(); public delegate bool SwigDelegateViewImpl_26(global::System.IntPtr gesture); public delegate bool SwigDelegateViewImpl_28(bool isIncrease); public delegate bool SwigDelegateViewImpl_29(); public delegate void SwigDelegateViewImpl_30(); public delegate void SwigDelegateViewImpl_31(); public delegate global::System.IntPtr SwigDelegateViewImpl_32(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled); public delegate void SwigDelegateViewImpl_33(global::System.IntPtr commitedFocusableActor); public delegate bool SwigDelegateViewImpl_34(); public delegate void SwigDelegateViewImpl_35(global::System.IntPtr pinch); public delegate void SwigDelegateViewImpl_36(global::System.IntPtr pan); public delegate void SwigDelegateViewImpl_37(global::System.IntPtr tap); public delegate void SwigDelegateViewImpl_38(global::System.IntPtr longPress); public delegate void SwigDelegateViewImpl_39(global::System.IntPtr slotObserver, global::System.IntPtr callback); public delegate void SwigDelegateViewImpl_40(global::System.IntPtr slotObserver, global::System.IntPtr callback); private SwigDelegateViewImpl_0 swigDelegate0; private SwigDelegateViewImpl_1 swigDelegate1; private SwigDelegateViewImpl_2 swigDelegate2; private SwigDelegateViewImpl_3 swigDelegate3; private SwigDelegateViewImpl_4 swigDelegate4; private SwigDelegateViewImpl_5 swigDelegate5; private SwigDelegateViewImpl_6 swigDelegate6; private SwigDelegateViewImpl_9 swigDelegate9; private SwigDelegateViewImpl_11 swigDelegate11; private SwigDelegateViewImpl_12 swigDelegate12; private SwigDelegateViewImpl_13 swigDelegate13; private SwigDelegateViewImpl_14 swigDelegate14; private SwigDelegateViewImpl_15 swigDelegate15; private SwigDelegateViewImpl_16 swigDelegate16; private SwigDelegateViewImpl_17 swigDelegate17; private SwigDelegateViewImpl_18 swigDelegate18; private SwigDelegateViewImpl_19 swigDelegate19; private SwigDelegateViewImpl_20 swigDelegate20; private SwigDelegateViewImpl_21 swigDelegate21; private SwigDelegateViewImpl_24 swigDelegate24; private SwigDelegateViewImpl_25 swigDelegate25; private SwigDelegateViewImpl_26 swigDelegate26; private SwigDelegateViewImpl_28 swigDelegate28; private SwigDelegateViewImpl_29 swigDelegate29; private SwigDelegateViewImpl_30 swigDelegate30; private SwigDelegateViewImpl_31 swigDelegate31; private SwigDelegateViewImpl_32 swigDelegate32; private SwigDelegateViewImpl_33 swigDelegate33; private SwigDelegateViewImpl_34 swigDelegate34; private SwigDelegateViewImpl_35 swigDelegate35; private SwigDelegateViewImpl_36 swigDelegate36; private SwigDelegateViewImpl_37 swigDelegate37; private SwigDelegateViewImpl_38 swigDelegate38; private SwigDelegateViewImpl_39 swigDelegate39; private SwigDelegateViewImpl_40 swigDelegate40; private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(int) }; private static global::System.Type[] swigMethodTypes1 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(View) }; private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(View) }; private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(int), typeof(PropertyValue) }; private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(Vector3) }; private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(Animation), typeof(Vector3) }; private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { typeof(Key) }; private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { typeof(Vector2), typeof(RelayoutContainer) }; private static global::System.Type[] swigMethodTypes12 = new global::System.Type[] { typeof(ResizePolicyType), typeof(DimensionType) }; private static global::System.Type[] swigMethodTypes13 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes14 = new global::System.Type[] { typeof(View), typeof(DimensionType) }; private static global::System.Type[] swigMethodTypes15 = new global::System.Type[] { typeof(float) }; private static global::System.Type[] swigMethodTypes16 = new global::System.Type[] { typeof(float) }; private static global::System.Type[] swigMethodTypes17 = new global::System.Type[] { typeof(DimensionType) }; private static global::System.Type[] swigMethodTypes18 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes19 = new global::System.Type[] { typeof(DimensionType) }; private static global::System.Type[] swigMethodTypes20 = new global::System.Type[] { typeof(float), typeof(DimensionType) }; private static global::System.Type[] swigMethodTypes21 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes24 = new global::System.Type[] { typeof(StyleManager), typeof(StyleChangeType) }; private static global::System.Type[] swigMethodTypes25 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes26 = new global::System.Type[] { typeof(PanGesture) }; private static global::System.Type[] swigMethodTypes28 = new global::System.Type[] { typeof(bool) }; private static global::System.Type[] swigMethodTypes29 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes30 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes31 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes32 = new global::System.Type[] { typeof(View), typeof(View.FocusDirection), typeof(bool) }; private static global::System.Type[] swigMethodTypes33 = new global::System.Type[] { typeof(View) }; private static global::System.Type[] swigMethodTypes34 = System.Array.Empty<global::System.Type>(); private static global::System.Type[] swigMethodTypes35 = new global::System.Type[] { typeof(PinchGesture) }; private static global::System.Type[] swigMethodTypes36 = new global::System.Type[] { typeof(PanGesture) }; private static global::System.Type[] swigMethodTypes37 = new global::System.Type[] { typeof(TapGesture) }; private static global::System.Type[] swigMethodTypes38 = new global::System.Type[] { typeof(LongPressGesture) }; private static global::System.Type[] swigMethodTypes39 = new global::System.Type[] { typeof(SlotObserver), typeof(SWIGTYPE_p_Dali__CallbackBase) }; private static global::System.Type[] swigMethodTypes40 = new global::System.Type[] { typeof(SlotObserver), typeof(SWIGTYPE_p_Dali__CallbackBase) }; } }
57.038117
607
0.714435
[ "Apache-2.0", "MIT" ]
Inhong/TizenFX
src/Tizen.NUI/src/internal/Common/ViewImpl.cs
50,878
C#
// Copyright 2018 Esri. // // 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 ArcGISRuntime.Samples.Managers; using Esri.ArcGISRuntime.Data; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Mapping; using Esri.ArcGISRuntime.Symbology; using Esri.ArcGISRuntime.Tasks; using Esri.ArcGISRuntime.Tasks.Offline; using Esri.ArcGISRuntime.UI; using System; using System.Drawing; using System.IO; using System.Linq; using System.Threading.Tasks; using Windows.UI.Popups; using Microsoft.UI.Xaml; using Esri.ArcGISRuntime.ArcGISServices; namespace ArcGISRuntime.WinUI.Samples.GenerateGeodatabase { [ArcGISRuntime.Samples.Shared.Attributes.Sample( name: "Generate geodatabase", category: "Data", description: "Generate a local geodatabase from an online feature service.", instructions: "Zoom to any extent. Then click the generate button to generate a geodatabase of features from a feature service filtered to the current extent. A red outline will show the extent used. The job's progress is shown while the geodatabase is generated.", tags: new[] { "disconnected", "local geodatabase", "offline", "sync" })] [ArcGISRuntime.Samples.Shared.Attributes.OfflineData("3f1bbf0ec70b409a975f5c91f363fe7d")] public partial class GenerateGeodatabase { // URL for a feature service that supports geodatabase generation. private Uri _featureServiceUri = new Uri("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer"); // Path to the geodatabase file on disk. private string _gdbPath; // Task to be used for generating the geodatabase. private GeodatabaseSyncTask _gdbSyncTask; // Job used to generate the geodatabase. private GenerateGeodatabaseJob _generateGdbJob; public GenerateGeodatabase() { InitializeComponent(); // Create the UI, setup the control references and execute initialization Initialize(); } private async void Initialize() { try { // Create a tile cache and load it with the SanFrancisco streets tpk. TileCache _tileCache = new TileCache(DataManager.GetDataFolder("3f1bbf0ec70b409a975f5c91f363fe7d", "SanFrancisco.tpk")); // Create the corresponding layer based on the tile cache. ArcGISTiledLayer _tileLayer = new ArcGISTiledLayer(_tileCache); // Create the basemap based on the tile cache. Basemap _sfBasemap = new Basemap(_tileLayer); // Create the map with the tile-based basemap. Map myMap = new Map(_sfBasemap); // Assign the map to the MapView. MyMapView.Map = myMap; // Create a new symbol for the extent graphic. SimpleLineSymbol lineSymbol = new SimpleLineSymbol(SimpleLineSymbolStyle.Solid, Color.Red, 2); // Create a graphics overlay for the extent graphic and apply a renderer. GraphicsOverlay extentOverlay = new GraphicsOverlay { Renderer = new SimpleRenderer(lineSymbol) }; // Add graphics overlay to the map view. MyMapView.GraphicsOverlays.Add(extentOverlay); // Set up an event handler for when the viewpoint (extent) changes. MyMapView.ViewpointChanged += MapViewExtentChanged; // Create a task for generating a geodatabase (GeodatabaseSyncTask). _gdbSyncTask = await GeodatabaseSyncTask.CreateAsync(_featureServiceUri); // Add all layers from the service to the map. foreach (IdInfo layer in _gdbSyncTask.ServiceInfo.LayerInfos) { // Create the ServiceFeatureTable for this particular layer. ServiceFeatureTable onlineTable = new ServiceFeatureTable(new Uri(_featureServiceUri + "/" + layer.Id)); // Wait for the table to load. await onlineTable.LoadAsync(); // Add the layer to the map's operational layers if load succeeds. if (onlineTable.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded) { myMap.OperationalLayers.Add(new FeatureLayer(onlineTable)); } } // Update the extent graphic so that it is valid before user interaction. UpdateMapExtent(); // Enable the generate button now that the sample is ready. GenerateButton.IsEnabled = true; } catch (Exception ex) { ShowStatusMessage(ex.ToString()); } } private void UpdateMapExtent() { // Return if mapview is null. if (MyMapView == null) { return; } // Get the new viewpoint. Viewpoint myViewPoint = MyMapView.GetCurrentViewpoint(ViewpointType.BoundingGeometry); // Return if viewpoint is null. if (myViewPoint == null) { return; } // Get the updated extent for the new viewpoint. Envelope extent = myViewPoint.TargetGeometry as Envelope; // Return if extent is null. if (extent == null) { return; } // Create an envelope that is a bit smaller than the extent. EnvelopeBuilder envelopeBldr = new EnvelopeBuilder(extent); envelopeBldr.Expand(0.80); // Get the (only) graphics overlay in the map view. GraphicsOverlay extentOverlay = MyMapView.GraphicsOverlays.FirstOrDefault(); // Return if the extent overlay is null. if (extentOverlay == null) { return; } // Get the extent graphic. Graphic extentGraphic = extentOverlay.Graphics.FirstOrDefault(); // Create the extent graphic and add it to the overlay if it doesn't exist. if (extentGraphic == null) { extentGraphic = new Graphic(envelopeBldr.ToGeometry()); extentOverlay.Graphics.Add(extentGraphic); } else { // Otherwise, update the graphic's geometry. extentGraphic.Geometry = envelopeBldr.ToGeometry(); } } private async Task StartGeodatabaseGeneration() { // Update the geodatabase path. _gdbPath = $"{Path.GetTempFileName()}.geodatabase"; // Create a task for generating a geodatabase (GeodatabaseSyncTask). _gdbSyncTask = await GeodatabaseSyncTask.CreateAsync(_featureServiceUri); // Get the current extent of the red preview box. Envelope extent = MyMapView.GraphicsOverlays[0].Graphics.First().Geometry as Envelope; // Get the default parameters for the generate geodatabase task. GenerateGeodatabaseParameters generateParams = await _gdbSyncTask.CreateDefaultGenerateGeodatabaseParametersAsync(extent); // Create a generate geodatabase job. _generateGdbJob = _gdbSyncTask.GenerateGeodatabase(generateParams, _gdbPath); // Handle the progress changed event (to show progress bar). _generateGdbJob.ProgressChanged += (sender, e) => { UpdateProgressBar(); }; // Show the progress bar. GenerateProgressBar.Visibility = Visibility.Visible; // Start the job. _generateGdbJob.Start(); // Get the result. Geodatabase resultGdb = await _generateGdbJob.GetResultAsync(); // Hide the progress bar. GenerateProgressBar.Visibility = Visibility.Collapsed; // Do the rest of the work. await HandleGenerationCompleted(resultGdb); } private async Task HandleGenerationCompleted(Geodatabase resultGdb) { // If the job completed successfully, add the geodatabase data to the map. if (_generateGdbJob.Status == JobStatus.Succeeded) { // Clear out the existing layers. MyMapView.Map.OperationalLayers.Clear(); // Loop through all feature tables in the geodatabase and add a new layer to the map. foreach (GeodatabaseFeatureTable table in resultGdb.GeodatabaseFeatureTables) { // Create a new feature layer for the table. FeatureLayer _layer = new FeatureLayer(table); // Add the new layer to the map. MyMapView.Map.OperationalLayers.Add(_layer); } // Best practice is to unregister the geodatabase. await _gdbSyncTask.UnregisterGeodatabaseAsync(resultGdb); // Tell the user that the geodatabase was unregistered. ShowStatusMessage("Since no edits will be made, the local geodatabase has been unregistered per best practice."); // Re-enable the generate button. GenerateButton.IsEnabled = true; } // See if the job failed. if (_generateGdbJob.Status == JobStatus.Failed) { // Create a message to show the user. string message = "Generate geodatabase job failed"; // Show an error message (if there is one). if (_generateGdbJob.Error != null) { message += ": " + _generateGdbJob.Error.Message; } else { // If no error, show messages from the job. message += ": " + string.Join("\n", _generateGdbJob.Messages.Select(m => m.Message)); } ShowStatusMessage(message); } } private async void ShowStatusMessage(string message) { // Display the message to the user. await new MessageDialog2(message).ShowAsync(); } private async void GenerateButton_Clicked(object sender, RoutedEventArgs e) { // Fix the extent of the graphic. MyMapView.ViewpointChanged -= MapViewExtentChanged; // Disable the generate button. try { GenerateButton.IsEnabled = false; // Call the geodatabase generation method. await StartGeodatabaseGeneration(); } catch (Exception ex) { ShowStatusMessage(ex.ToString()); } } private void MapViewExtentChanged(object sender, EventArgs e) { // Call the map extent update method. UpdateMapExtent(); } private void UpdateProgressBar() { // Due to the nature of the threading implementation, // the dispatcher needs to be used to interact with the UI. DispatcherQueue.TryEnqueue(Microsoft.System.DispatcherQueuePriority.Normal, () => { // Update the progress bar value. GenerateProgressBar.Value = _generateGdbJob.Progress; }); } } }
40.633898
273
0.604405
[ "Apache-2.0" ]
alphadude11/arcgis-runtime-samples-dotnet
src/WinUI/ArcGISRuntime.WinUI.Viewer/Samples/Data/GenerateGeodatabase/GenerateGeodatabase.xaml.cs
11,987
C#
using Contracts; using DAL.Data; using Model; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL.Repositories { public class ProductRepository : RepositoryBase<Product> { //Inherit the Repository base //Contructor implements Repository base public ProductRepository(DataContext context) : base(context) { //Check for context is defined if (context == null) throw new ArgumentException("Database context is not defined."); } #region Uncomment this section if you need to implement Repository from the scratch ////Data access context //internal DataContext context; ///// <summary> ///// Repository Constructor ///// </summary> ///// <param name="context"></param> //public ProductRepository(DataContext context) //{ // this.context = context; //} ///// <summary> ///// Return all ///// </summary> ///// <returns>List</returns> //public virtual IEnumerable<Product> GetProducts() //{ // return context.Products.ToList(); //} ///// <summary> ///// Find by ID ///// </summary> ///// <param name="id">ID of item</param> ///// <returns></returns> //public virtual Product GetStudentByID(int id) //{ // return context.Products.Find(id); //} ///// <summary> ///// Inserts ///// </summary> ///// <param name="student"></param> //public virtual void InsertProduct(Product entity) //{ // context.Products.Add(entity); //} ///// <summary> ///// Delete ///// </summary> ///// <param name="poductID"></param> //public virtual void DeleteProduct(Product entity) //{ // //Uncomment below for delete by ID and pass entityID(int) for it // //Product entity = context.Products.Find(entityID); // //Deleting by passing entity // if (context.Entry(entity).State == EntityState.Detached) // context.Products.Attach(entity); // //remove item // context.Products.Remove(entity); //} ///// <summary> ///// Update ///// </summary> ///// <param name="product"></param> //public virtual void UpdateStudent(Product entity) //{ // context.Products.Attach(entity); // context.Entry(entity).State = EntityState.Modified; //} ///// <summary> ///// Save Changes ///// </summary> //public virtual void Save() //{ // context.SaveChanges(); //} //#region Disposal of Objects //private bool disposed = false; //protected virtual void Dispose(bool disposing) //{ // if (!this.disposed) // { // if (disposing) // { // context.Dispose(); // } // } // this.disposed = true; //} //public void Dispose() //{ // Dispose(true); // GC.SuppressFinalize(this); //} //#endregion #endregion } }
26.419847
91
0.499856
[ "MIT" ]
1312454/MVCapp
DAL/Repositories/ProductRepository.cs
3,463
C#
/* * Copyright 2010-2013 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. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; namespace Amazon.OpsWorks.Model { /// <summary> /// <para>Describes stack or user permissions.</para> /// </summary> public class Permission { private string stackId; private string iamUserArn; private bool? allowSsh; private bool? allowSudo; /// <summary> /// A stack ID. /// /// </summary> public string StackId { get { return this.stackId; } set { this.stackId = value; } } /// <summary> /// Sets the StackId property /// </summary> /// <param name="stackId">The value to set for the StackId property </param> /// <returns>this instance</returns> [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public Permission WithStackId(string stackId) { this.stackId = stackId; return this; } // Check to see if StackId property is set internal bool IsSetStackId() { return this.stackId != null; } /// <summary> /// The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see <a /// href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>. /// /// </summary> public string IamUserArn { get { return this.iamUserArn; } set { this.iamUserArn = value; } } /// <summary> /// Sets the IamUserArn property /// </summary> /// <param name="iamUserArn">The value to set for the IamUserArn property </param> /// <returns>this instance</returns> [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public Permission WithIamUserArn(string iamUserArn) { this.iamUserArn = iamUserArn; return this; } // Check to see if IamUserArn property is set internal bool IsSetIamUserArn() { return this.iamUserArn != null; } /// <summary> /// Whether the user can use SSH. /// /// </summary> public bool AllowSsh { get { return this.allowSsh ?? default(bool); } set { this.allowSsh = value; } } /// <summary> /// Sets the AllowSsh property /// </summary> /// <param name="allowSsh">The value to set for the AllowSsh property </param> /// <returns>this instance</returns> [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public Permission WithAllowSsh(bool allowSsh) { this.allowSsh = allowSsh; return this; } // Check to see if AllowSsh property is set internal bool IsSetAllowSsh() { return this.allowSsh.HasValue; } /// <summary> /// Whether the user can use <b>sudo</b>. /// /// </summary> public bool AllowSudo { get { return this.allowSudo ?? default(bool); } set { this.allowSudo = value; } } /// <summary> /// Sets the AllowSudo property /// </summary> /// <param name="allowSudo">The value to set for the AllowSudo property </param> /// <returns>this instance</returns> [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public Permission WithAllowSudo(bool allowSudo) { this.allowSudo = allowSudo; return this; } // Check to see if AllowSudo property is set internal bool IsSetAllowSudo() { return this.allowSudo.HasValue; } } }
33.059211
177
0.577313
[ "Apache-2.0" ]
mahanthbeeraka/dataservices-sdk-dotnet
AWSSDK/Amazon.OpsWorks/Model/Permission.cs
5,025
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KilnGod.BlazorWebGL.WebGL3D { public enum EnumSamplerInt { TEXTURE_COMPARE_FUNC = 0x884D, TEXTURE_COMPARE_MODE= 0x884C, TEXTURE_BASE_LEVEL = 0x813C, TEXTURE_MAX_LEVEL = 0x813D, TEXTURE_MAG_FILTER = 0x2800, TEXTURE_MIN_FILTER = 0x2801, TEXTURE_WRAP_R = 0x8072, TEXTURE_WRAP_S = 0x2802, TEXTURE_WRAP_T = 0x2803 } public enum EnumSamplerFloat { TEXTURE_MAX_LOD = 0x813B, TEXTURE_MIN_LOD = 0x813A } public enum EnumSamplerBool { TEXTURE_IMMUTABLE_FORMAT = 0x912F } public enum EnumSamplerUInt { TEXTURE_IMMUTABLE_LEVELS = 0x82DF } }
21.461538
48
0.642772
[ "MIT" ]
kilngod/KilnGod.BlazorWebGL
KilnGod.BlazorWebGL/WebGL3D/EnumSampler.cs
839
C#
/* ============================================================================================================================ * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * =========================================================================================================================== */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Recaptcha.Web { internal class RecaptchaKeyHelper { internal static string ParseKey(string key) { if (key.StartsWith("{") && key.EndsWith("}")) { return System.Configuration.ConfigurationManager.AppSettings[key.Trim().Substring(1, key.Length - 2)]; } return key; } } }
36.185185
129
0.489253
[ "MIT" ]
JavierCanon/Google-Recaptcha-Asp.net
src/Others/recaptcha-net/src/Recaptcha.Web/RecaptchaKeyHelper.cs
979
C#
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Duality; using NUnit.Framework; namespace Duality.Tests.Utility { [TestFixture] public class RawListPoolTest { [Test] public void RentReturn() { RawListPool<int> intPool = new RawListPool<int>(); // Rent a few lists with varying capacities, and do so a few times for (int n = 0; n < 5; n++) { int[] capacities = new int[] { 0, 7, 3, 10, 5, 19 }; for (int i = 0; i < capacities.Length; i++) { RawList<int> list = intPool.Rent(capacities[i]); // Asset that they're empty, but match the required min capacity Assert.AreEqual(0, list.Count); Assert.GreaterOrEqual(list.Capacity, capacities[i]); // Add a few elements and return the list for (int k = 0; k < capacities[i]; k++) { list.Add(k + 1); } intPool.Return(list); // Assert that the list is again empty after return, but not shrinked in capacity Assert.AreEqual(0, list.Count); Assert.GreaterOrEqual(list.Capacity, capacities[i]); } } } [Test] public void RentReset() { RawListPool<int> intPool = new RawListPool<int>(); List<RawList<int>> previouslyRented = new List<RawList<int>>(); // Rent a few lists with varying capacities, and do so a few times for (int n = 0; n < 5; n++) { int[] capacities = new int[] { 0, 7, 3, 10, 5, 19 }; for (int i = 0; i < capacities.Length; i++) { RawList<int> list = intPool.Rent(capacities[i]); previouslyRented.Add(list); // Asset that they're empty, but match the required min capacity Assert.AreEqual(0, list.Count); Assert.GreaterOrEqual(list.Capacity, capacities[i]); // Add a few elements for (int k = 0; k < capacities[i]; k++) { list.Add(k + 1); } } // Reset the pool. We haven't returned any lists so far. intPool.Reset(); // Assert that, after the reset, all previously rented lists // have been cleared, but still have their required min capacity. for (int i = 0; i < capacities.Length; i++) { RawList<int> list = previouslyRented[i]; Assert.AreEqual(0, list.Count); Assert.GreaterOrEqual(list.Capacity, capacities[i]); } } } } }
26.8
86
0.624232
[ "MIT" ]
AdamsLair/duality
Test/Core/Utility/RawListPoolTest.cs
2,280
C#
// Copyright 2007-2010 The Apache Software Foundation. // // 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 dropkick.DeploymentModel; using dropkick.FileSystem; using dropkick.Tasks; using dropkick.Tasks.Security.Acl; namespace dropkick.Configuration.Dsl.Security.ACL { public class ProtoPathRemoveAclInheritanceTask : BaseProtoTask { readonly string _path; public ProtoPathRemoveAclInheritanceTask(string path) { _path = ReplaceTokens(path); } public override void RegisterRealTasks(PhysicalServer site) { var path = PathConverter.Convert(site,_path); var task = new RemoveAclsInheritanceTask(path); site.AddTask(task); } } }
33.666667
84
0.67936
[ "Apache-2.0" ]
chucknorris/dropkick
product/dropkick/Configuration/Dsl/Security/ACL/ProtoPathRemoveAclInheritanceTask.cs
1,315
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; using WizBot.Services.Database.Models; namespace WizBot.Db { public static class MusicPlaylistExtensions { public static List<MusicPlaylist> GetPlaylistsOnPage(this DbSet<MusicPlaylist> playlists, int num) { if (num < 1) throw new IndexOutOfRangeException(); return playlists .AsQueryable() .Skip((num - 1) * 20) .Take(20) .Include(pl => pl.Songs) .ToList(); } public static MusicPlaylist GetWithSongs(this DbSet<MusicPlaylist> playlists, int id) => playlists .Include(mpl => mpl.Songs) .FirstOrDefault(mpl => mpl.Id == id); } }
28.2
106
0.576832
[ "MIT" ]
Wizkiller96/WizBot
src/WizBot/Db/Extensions/MusicPlaylistExtensions.cs
848
C#
/* Copyright (C) 2020 Jean-Camille Tournier (mail@tournierjc.fr) This file is part of QLCore Project https://github.com/OpenDerivatives/QLCore QLCore is free software: you can redistribute it and/or modify it under the terms of the QLCore and QLNet license. You should have received a copy of the license along with this program; if not, license is available at https://github.com/OpenDerivatives/QLCore/LICENSE. QLCore is a forked of QLNet which is a based on QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ The QuantLib license is available online at http://quantlib.org/license.shtml and the QLNet license is available online at https://github.com/amaggiulli/QLNet/blob/develop/LICENSE. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICAR PURPOSE. See the license for more details. */ using Xunit; using QLCore; namespace TestSuite { public class T_Rounding { public struct TestCase { public double x; public int precision; public double closest; public double up; public double down; public double floor; public double ceiling; public TestCase(double x, int precision, double closest, double up, double down, double floor, double ceiling) { this.x = x; this.precision = precision; this.closest = closest; this.up = up; this.down = down; this.floor = floor; this.ceiling = ceiling; } } public static TestCase[] testData = { new TestCase(0.86313513, 5, 0.86314, 0.86314, 0.86313, 0.86314, 0.86313), new TestCase(-7.64555346, 1, -7.6, -7.7, -7.6, -7.6, -7.6), new TestCase(0.13961605, 2, 0.14, 0.14, 0.13, 0.14, 0.13), new TestCase(0.14344179, 4, 0.1434, 0.1435, 0.1434, 0.1434, 0.1434), new TestCase(-4.74315016, 2, -4.74, -4.75, -4.74, -4.74, -4.74), new TestCase(-7.82772074, 5, -7.82772, -7.82773, -7.82772, -7.82772, -7.82772), new TestCase(2.74137947, 3, 2.741, 2.742, 2.741, 2.741, 2.741), new TestCase(2.13056714, 1, 2.1, 2.2, 2.1, 2.1, 2.1), new TestCase(-1.06228670, 1, -1.1, -1.1, -1.0, -1.0, -1.1), new TestCase(8.29234094, 4, 8.2923, 8.2924, 8.2923, 8.2923, 8.2923), new TestCase(7.90185598, 2, 7.90, 7.91, 7.90, 7.90, 7.90), new TestCase(-0.26738058, 1, -0.3, -0.3, -0.2, -0.2, -0.3), new TestCase(1.78128713, 1, 1.8, 1.8, 1.7, 1.8, 1.7), new TestCase(4.23537260, 1, 4.2, 4.3, 4.2, 4.2, 4.2), new TestCase(3.64369953, 4, 3.6437, 3.6437, 3.6436, 3.6437, 3.6436), new TestCase(6.34542470, 2, 6.35, 6.35, 6.34, 6.35, 6.34), new TestCase(-0.84754962, 4, -0.8475, -0.8476, -0.8475, -0.8475, -0.8475), new TestCase(4.60998652, 1, 4.6, 4.7, 4.6, 4.6, 4.6), new TestCase(6.28794223, 3, 6.288, 6.288, 6.287, 6.288, 6.287), new TestCase(7.89428221, 2, 7.89, 7.90, 7.89, 7.89, 7.89) }; [Fact] public void testClosest() { for (int i = 0; i < testData.Length; i++) { int precision = testData[i].precision; ClosestRounding closest = new ClosestRounding(precision); double calculated = closest.Round(testData[i].x); double expected = testData[i].closest; if (!Utils.close(calculated, expected, 1)) QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated); } } [Fact] public void testUp() { for (int i = 0; i < testData.Length; i++) { int digits = testData[i].precision; UpRounding up = new UpRounding(digits); double calculated = up.Round(testData[i].x); double expected = testData[i].up; if (!Utils.close(calculated, expected, 1)) QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated); } } [Fact] public void testDown() { for (int i = 0; i < testData.Length; i++) { int digits = testData[i].precision; DownRounding down = new DownRounding(digits); double calculated = down.Round(testData[i].x); double expected = testData[i].down; if (!Utils.close(calculated, expected, 1)) QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated); } } [Fact] public void testFloor() { for (int i = 0; i < testData.Length; i++) { int digits = testData[i].precision; FloorTruncation floor = new FloorTruncation(digits); double calculated = floor.Round(testData[i].x); double expected = testData[i].floor; if (!Utils.close(calculated, expected, 1)) QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated); } } [Fact] public void testCeiling() { for (int i = 0; i < testData.Length; i++) { int digits = testData[i].precision; CeilingTruncation ceiling = new CeilingTruncation(digits); double calculated = ceiling.Round(testData[i].x); double expected = testData[i].ceiling; if (!Utils.close(calculated, expected, 1)) QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated); } } } }
39.857143
121
0.576037
[ "BSD-3-Clause" ]
OpenDerivatives/QLCore
QLCore.Tests/T_Rounding.cs
5,859
C#
using UnityEngine; using System.Collections; namespace TMPro.Examples { public class CameraController : MonoBehaviour { public enum CameraModes { Follow, Isometric, Free } private Transform cameraTransform; private Transform dummyTarget; public Transform CameraTarget; public float FollowDistance = 30.0f; public float MaxFollowDistance = 100.0f; public float MinFollowDistance = 2.0f; public float ElevationAngle = 30.0f; public float MaxElevationAngle = 85.0f; public float MinElevationAngle = 0f; public float OrbitalAngle = 0f; public CameraModes CameraMode = CameraModes.Follow; public bool MovementSmoothing = true; public bool RotationSmoothing = false; private bool previousSmoothing; public float MovementSmoothingValue = 25f; public float RotationSmoothingValue = 5.0f; public float MoveSensitivity = 2.0f; private Vector3 currentVelocity = Vector3.zero; private Vector3 desiredPosition; private float mouseX; private float mouseY; private Vector3 moveVector; private float mouseWheel; // Controls for Touches on Mobile devices //private float prev_ZoomDelta; private const string event_SmoothingValue = "Slider - Smoothing Value"; private const string event_FollowDistance = "Slider - Camera Zoom"; void Awake() { if (QualitySettings.vSyncCount > 0) Application.targetFrameRate = 60; else Application.targetFrameRate = -1; if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.Android) Input.simulateMouseWithTouches = false; cameraTransform = transform; previousSmoothing = MovementSmoothing; } // Use this for initialization void Start() { if (CameraTarget == null) { // If we don't have a target (assigned by the player, create a dummy in the center of the scene). dummyTarget = new GameObject("Camera Target").transform; CameraTarget = dummyTarget; } } // Update is called once per frame void LateUpdate() { GetPlayerInput(); // Check if we still have a valid target if (CameraTarget != null) { if (CameraMode == CameraModes.Isometric) { desiredPosition = CameraTarget.position + Quaternion.Euler(ElevationAngle, OrbitalAngle, 0f) * new Vector3(0, 0, -FollowDistance); } else if (CameraMode == CameraModes.Follow) { desiredPosition = CameraTarget.position + CameraTarget.TransformDirection(Quaternion.Euler(ElevationAngle, OrbitalAngle, 0f) * (new Vector3(0, 0, -FollowDistance))); } else { // Free Camera implementation } if (MovementSmoothing == true) { // Using Smoothing cameraTransform.position = Vector3.SmoothDamp(cameraTransform.position, desiredPosition, ref currentVelocity, MovementSmoothingValue * Time.fixedDeltaTime); //cameraTransform.position = Vector3.Lerp(cameraTransform.position, desiredPosition, Time.deltaTime * 5.0f); } else { // Not using Smoothing cameraTransform.position = desiredPosition; } if (RotationSmoothing == true) cameraTransform.rotation = Quaternion.Lerp(cameraTransform.rotation, Quaternion.LookRotation(CameraTarget.position - cameraTransform.position), RotationSmoothingValue * Time.deltaTime); else { cameraTransform.LookAt(CameraTarget); } } } void GetPlayerInput() { moveVector = Vector3.zero; // Check Mouse Wheel Input prior to Shift Key so we can apply multiplier on Shift for Scrolling mouseWheel = Input.GetAxis("Mouse ScrollWheel"); float touchCount = Input.touchCount; if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift) || touchCount > 0) { mouseWheel *= 10; if (Input.GetKeyDown(KeyCode.I)) CameraMode = CameraModes.Isometric; if (Input.GetKeyDown(KeyCode.F)) CameraMode = CameraModes.Follow; if (Input.GetKeyDown(KeyCode.S)) MovementSmoothing = !MovementSmoothing; // Check for right mouse button to change camera follow and elevation angle if (Input.GetMouseButton(1)) { mouseY = Input.GetAxis("Mouse Y"); mouseX = Input.GetAxis("Mouse X"); if (mouseY > 0.01f || mouseY < -0.01f) { ElevationAngle -= mouseY * MoveSensitivity; // Limit Elevation angle between min & max values. ElevationAngle = Mathf.Clamp(ElevationAngle, MinElevationAngle, MaxElevationAngle); } if (mouseX > 0.01f || mouseX < -0.01f) { OrbitalAngle += mouseX * MoveSensitivity; if (OrbitalAngle > 360) OrbitalAngle -= 360; if (OrbitalAngle < 0) OrbitalAngle += 360; } } // Get Input from Mobile Device if (touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Moved) { Vector2 deltaPosition = Input.GetTouch(0).deltaPosition; // Handle elevation changes if (deltaPosition.y > 0.01f || deltaPosition.y < -0.01f) { ElevationAngle -= deltaPosition.y * 0.1f; // Limit Elevation angle between min & max values. ElevationAngle = Mathf.Clamp(ElevationAngle, MinElevationAngle, MaxElevationAngle); } // Handle left & right if (deltaPosition.x > 0.01f || deltaPosition.x < -0.01f) { OrbitalAngle += deltaPosition.x * 0.1f; if (OrbitalAngle > 360) OrbitalAngle -= 360; if (OrbitalAngle < 0) OrbitalAngle += 360; } } // Check for left mouse button to select a new CameraTarget or to reset Follow position if (Input.GetMouseButton(0)) { RaycastHit hit; Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, out hit, 300, 1 << 10 | 1 << 11 | 1 << 12 | 1 << 14)) { if (hit.transform == CameraTarget) { // Reset Follow Position OrbitalAngle = 0; } else { CameraTarget = hit.transform; OrbitalAngle = 0; MovementSmoothing = previousSmoothing; } } } if (Input.GetMouseButton(2)) { if (dummyTarget == null) { // We need a Dummy Target to anchor the Camera dummyTarget = new GameObject("Camera Target").transform; dummyTarget.position = CameraTarget.position; dummyTarget.rotation = CameraTarget.rotation; CameraTarget = dummyTarget; previousSmoothing = MovementSmoothing; MovementSmoothing = false; } else if (dummyTarget != CameraTarget) { // Move DummyTarget to CameraTarget dummyTarget.position = CameraTarget.position; dummyTarget.rotation = CameraTarget.rotation; CameraTarget = dummyTarget; previousSmoothing = MovementSmoothing; MovementSmoothing = false; } mouseY = Input.GetAxis("Mouse Y"); mouseX = Input.GetAxis("Mouse X"); moveVector = cameraTransform.TransformDirection(mouseX, mouseY, 0); dummyTarget.Translate(-moveVector, Space.World); } } // Check Pinching to Zoom in - out on Mobile device if (touchCount == 2) { Touch touch0 = Input.GetTouch(0); Touch touch1 = Input.GetTouch(1); Vector2 touch0PrevPos = touch0.position - touch0.deltaPosition; Vector2 touch1PrevPos = touch1.position - touch1.deltaPosition; float prevTouchDelta = (touch0PrevPos - touch1PrevPos).magnitude; float touchDelta = (touch0.position - touch1.position).magnitude; float zoomDelta = prevTouchDelta - touchDelta; if (zoomDelta > 0.01f || zoomDelta < -0.01f) { FollowDistance += zoomDelta * 0.25f; // Limit FollowDistance between min & max values. FollowDistance = Mathf.Clamp(FollowDistance, MinFollowDistance, MaxFollowDistance); } } // Check MouseWheel to Zoom in-out if (mouseWheel < -0.01f || mouseWheel > 0.01f) { FollowDistance -= mouseWheel * 5.0f; // Limit FollowDistance between min & max values. FollowDistance = Mathf.Clamp(FollowDistance, MinFollowDistance, MaxFollowDistance); } } } }
36.536082
205
0.508935
[ "MIT" ]
kamitul/Breakout
Assets/TextMesh Pro/Examples & Extras/Scripts/CameraController.cs
10,632
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 ICSharpCode.SharpDevelop.Dom; namespace ICSharpCode.AspNet.Mvc.Completion { public class RazorCompilationUnit : DefaultCompilationUnit { public RazorCompilationUnit(IProjectContent projectContent) : base(projectContent) { } public static RazorCompilationUnit CreateFromParseInfo(ParseInformation parseInformation) { return new RazorCompilationUnit(parseInformation.CompilationUnit.ProjectContent) { ModelTypeName = GetModelTypeName(parseInformation.CompilationUnit) }; } static string GetModelTypeName(ICompilationUnit compilationUnit) { var originalRazorCompilationUnit = compilationUnit as RazorCompilationUnit; if (originalRazorCompilationUnit != null) { return originalRazorCompilationUnit.ModelTypeName; } return String.Empty; } public string ModelTypeName { get; set; } } }
30.171429
103
0.785038
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/BackendBindings/AspNet.Mvc/Project/Src/Completion/RazorCompilationUnit.cs
1,058
C#
// Copyright 2018 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. using System; using GooglePlayInstant.Editor; using UnityEditor; namespace GooglePlayInstant.Samples.SphereBlast.Editor { /// <summary> /// Provides a method to build the SphereBlast sample from the command line. /// </summary> public static class SphereBlastBuilder { // TODO: currently including both scenes in the app for coverage, but prefer to build SphereScene separately. private static readonly string[] ScenesInBuild = {"Assets/SphereBlast/scenes/LoadingScene.unity"}; public static void Build() { PlayerSettings.applicationIdentifier = "com.google.android.instantapps.samples.unity.sphereblast"; PlayerSettings.companyName = "Google"; PlayerSettings.productName = "Sphere Blast"; CommandLineBuilder.ConfigureProject(ScenesInBuild); var apkPath = CommandLineBuilder.GetApkPath(); var buildPlayerOptions = PlayInstantBuilder.CreateBuildPlayerOptions(apkPath, BuildOptions.None); if (!PlayInstantBuilder.BuildAndSign(buildPlayerOptions)) { throw new Exception("APK build failed"); } } } }
39.466667
117
0.701577
[ "Apache-2.0" ]
JunAFa/play-instant-unity-plugin
GooglePlayInstant/Samples/SphereBlast/Editor/SphereBlastBuilder.cs
1,776
C#
using System; using NUnit.Framework; [TestFixture] public class HeroRepositoryTests { private HeroRepository data; [SetUp] public void SetUp() { this.data = new HeroRepository(); } [Test] public void TestCreateThrowsExceptionWithNull() { Assert.Throws<ArgumentNullException>(() => { this.data.Create(null); }); } [Test] public void TestCreateWithSameHeroThrowsException() { Hero hero = new Hero("Stamat", 50); this.data.Create(hero); Assert.Throws<InvalidOperationException>(() => { this.data.Create(new Hero("Stamat", 60)); }); } [Test] public void TestCreateAddsCorrectly() { var expectedResult = $"Successfully added hero Jivko with level 50"; ; var actualResult = this.data.Create(new Hero("Jivko",50)); Assert.AreEqual(expectedResult,actualResult); } [TestCase(null)] [TestCase(" ")] public void TestRemoveThrowsExceptionWithNullName(string name) { Assert.Throws<ArgumentNullException>(() => { this.data.Remove(name); }); } [Test] public void TestRemoveReturnsIsRemovedWhenSuccessfullyRemoved() { Hero hero = new Hero("Joro",45); this.data.Create(hero); var expectedResult = true; var actualResult = this.data.Remove("Joro"); Assert.AreEqual(expectedResult,actualResult); } [Test] public void TestGetHeroWithHighestLevel() { Hero hero = new Hero("Joro", 45); Hero hero2 = new Hero("Stamen",80); this.data.Create(hero); this.data.Create(hero2); var expectedResult = hero2; var actualResult = this.data.GetHeroWithHighestLevel(); Assert.AreEqual(expectedResult,actualResult); } [Test] public void TestGetHeroReturnsRightHero() { Hero hero = new Hero("Joro", 45); Hero hero2 = new Hero("Stamen", 80); this.data.Create(hero); this.data.Create(hero2); var expectedResult = hero; var actualResult = this.data.GetHero("Joro"); Assert.AreEqual(expectedResult, actualResult); } }
24.582418
78
0.600805
[ "MIT" ]
dimitarkolev00/SoftUni-OOP
Exam Preparation/03. C# OOP Retake Exam - 15 Aug 2019/Unit Testing/Hero Tests/HeroRepositoryTests.cs
2,237
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace CoreApp.Models.AccountViewModels { public class ExternalLoginViewModel { [Required] [EmailAddress] public string Email { get; set; } } }
20.375
44
0.720859
[ "MIT" ]
ABQHackAThon2018/ProsperFreak
CoreApp/Models/AccountViewModels/ExternalLoginViewModel.cs
326
C#
 using RimWorld; using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using Verse; namespace EdB.PrepareCarefully { // This class gets instantiated public class ModInitializer : ITab { protected GameObject gameObject = null; public ModInitializer() : base() { LongEventHandler.ExecuteWhenFinished(() => { Log.Message("Initialized the EdB Prepare Carefully mod"); gameObject = new GameObject("EdBPrepareCarefullyController"); gameObject.AddComponent<ModController>(); MonoBehaviour.DontDestroyOnLoad(gameObject); }); } protected override void FillTab() { return; } } }
21.5625
65
0.710145
[ "MIT" ]
MossieuLeblanc/EdBPrepareCarefully-fr
Source/ModInitializer.cs
692
C#
using System; using System.Collections.Generic; using System.Text; namespace SpriteAnimator { public class OpenGLConfiguration { public int MajorVersion { get { return majorVersion; } set { majorVersion = value; reloadAbilities(); } } public int MinorVersion { get { return minorVersion; } set { minorVersion = value; reloadAbilities(); } } public bool BlendingEquationsAreSupported { get { return blendingEquationsAreSupported; } set { blendingEquationsAreSupported = value; } } public bool SeparateBlendingEquationsAreSupported { get { return separateBlendingEquationsAreSupported; } set { separateBlendingEquationsAreSupported = value; } } public bool SeparateBlendingFunctionsAreSupported { get { return separateBlendingFunctionsAreSupported; } set { separateBlendingFunctionsAreSupported = value; } } public bool NewFrameBuffersAreSupported { get { return newFrameBuffersAreSupported; } set { newFrameBuffersAreSupported = value; } } public bool OnlyBlendFunctionIsSupported { get { return onlyBlendFunctionIsSupported; } set { onlyBlendFunctionIsSupported = value; } } public int MaximumTextureSize { get { return maximumTextureSize; } set { maximumTextureSize = value; } } // Queried. Default: oldest production. private int majorVersion = 0; private int minorVersion = 9; // glBlendEquation at 1.4 private bool blendingEquationsAreSupported = false; // glBlendEquationSeparate at 1.5 private bool separateBlendingEquationsAreSupported = false; // glBlendFuncSeparate at 2.0 private bool separateBlendingFunctionsAreSupported = false; // glBindFramebuffer at 3.0 private bool newFrameBuffersAreSupported = false; // private int maximumTextureSize = 4096; // Derived. private bool onlyBlendFunctionIsSupported = true; public OpenGLConfiguration() { } public void setMajorMinorVersion(int major, int minor) { this.majorVersion = major; this.minorVersion = minor; reloadAbilities(); } private void reloadAbilities() { // Blend Equation < 1.4 blendingEquationsAreSupported = (majorVersion < 0 || minorVersion < 4) ? false : true; // Blend Equation Separate < 1.5 separateBlendingEquationsAreSupported = (majorVersion < 0 || minorVersion < 5) ? false : true; // Blend Func Separate < 2.0 separateBlendingFunctionsAreSupported = (majorVersion < 2) ? false : true; // Bind Framebuffer < 3.0 newFrameBuffersAreSupported = (majorVersion < 3) ? false : true; // If controlling the blending equation(s) is not allowed, true. Otherwise, false. onlyBlendFunctionIsSupported = (!blendingEquationsAreSupported && !separateBlendingEquationsAreSupported) ? true : false; } } }
27.524752
124
0.730576
[ "Unlicense", "MIT" ]
lirmont/Sprite-Animator
SpriteAnimator/OpenGLConfiguration.cs
2,782
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.Xml; namespace System.Security.Cryptography.Xml { public class DataObject { private string _id; private string _mimeType; private string _encoding; private CanonicalXmlNodeList _elData; private XmlElement _cachedXml; // // public constructors // public DataObject() { _cachedXml = null; _elData = new CanonicalXmlNodeList(); } public DataObject(string id, string mimeType, string encoding, XmlElement data) { if (data == null) throw new ArgumentNullException(nameof(data)); _id = id; _mimeType = mimeType; _encoding = encoding; _elData = new CanonicalXmlNodeList(); _elData.Add(data); _cachedXml = null; } // // public properties // public string Id { get { return _id; } set { _id = value; _cachedXml = null; } } public string MimeType { get { return _mimeType; } set { _mimeType = value; _cachedXml = null; } } public string Encoding { get { return _encoding; } set { _encoding = value; _cachedXml = null; } } public XmlNodeList Data { get { return _elData; } set { if (value == null) throw new ArgumentNullException(nameof(value)); // Reset the node list _elData = new CanonicalXmlNodeList(); foreach (XmlNode node in value) { _elData.Add(node); } _cachedXml = null; } } private bool CacheValid { get { return (_cachedXml != null); } } // // public methods // public XmlElement GetXml() { if (CacheValid) return (_cachedXml); XmlDocument document = new XmlDocument(); document.PreserveWhitespace = true; return GetXml(document); } internal XmlElement GetXml(XmlDocument document) { XmlElement objectElement = document.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); if (!string.IsNullOrEmpty(_id)) objectElement.SetAttribute("Id", _id); if (!string.IsNullOrEmpty(_mimeType)) objectElement.SetAttribute("MimeType", _mimeType); if (!string.IsNullOrEmpty(_encoding)) objectElement.SetAttribute("Encoding", _encoding); if (_elData != null) { foreach (XmlNode node in _elData) { objectElement.AppendChild(document.ImportNode(node, true)); } } return objectElement; } public void LoadXml(XmlElement value) { if (value == null) throw new ArgumentNullException(nameof(value)); _id = Utils.GetAttribute(value, "Id", SignedXml.XmlDsigNamespaceUrl); _mimeType = Utils.GetAttribute(value, "MimeType", SignedXml.XmlDsigNamespaceUrl); _encoding = Utils.GetAttribute(value, "Encoding", SignedXml.XmlDsigNamespaceUrl); foreach (XmlNode node in value.ChildNodes) { _elData.Add(node); } // Save away the cached value _cachedXml = value; } } }
26.078431
103
0.491228
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/DataObject.cs
3,990
C#
using Onbox.Mvc.VDev; using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Shell; namespace Onbox.Mvc.Revit.VDev { public class RevitViewAttacher { private readonly TitleVisibility titleVisibility = TitleVisibility.HideMinimizeAndMaximize; private readonly Window window; private readonly IntPtr hwnd; private const int GWL_STYLE = -16, WS_MAXIMIZEBOX = 0x10000, WS_MINIMIZEBOX = 0x20000; [DllImport("user32.dll")] extern private static int GetWindowLong(IntPtr hwnd, int index); [DllImport("user32.dll")] extern private static int SetWindowLong(IntPtr hwnd, int index, int value); public RevitViewAttacher(Window window, IntPtr hwnd, TitleVisibility titleVisibility) { this.window = window; this.hwnd = hwnd; this.titleVisibility = titleVisibility; } internal void Attach() { System.Windows.Interop.WindowInteropHelper helper = new System.Windows.Interop.WindowInteropHelper(this.window); helper.Owner = this.hwnd; window.SourceInitialized += RevitViewMvcBase_SourceInitialized; } /// <summary> /// Hides both Maximize and Minimize button from this WPF Window. This should be placed on Loaded event OR Rendered event, NOT ON THE CONSTRUCTOR /// </summary> private void HideMinimizeMaximizeButton(Window window) { IntPtr hwnd = new System.Windows.Interop.WindowInteropHelper(window).Handle; var currentStyle = GetWindowLong(hwnd, GWL_STYLE); SetWindowLong(hwnd, GWL_STYLE, (currentStyle & ~WS_MAXIMIZEBOX & ~WS_MINIMIZEBOX)); } /// <summary> /// Hides both Minimize button from this WPF Window. This should be placed on Loaded event OR Rendered event, NOT ON THE CONSTRUCTOR /// </summary> private void HideMinimizeButton(Window window) { IntPtr hwnd = new System.Windows.Interop.WindowInteropHelper(window).Handle; var currentStyle = GetWindowLong(hwnd, GWL_STYLE); SetWindowLong(hwnd, GWL_STYLE, (currentStyle & ~WS_MINIMIZEBOX)); } /// <summary> /// Hides the Title bat from this WPF Window. This should be placed on Loaded event OR Rendered event, NOT ON THE CONSTRUCTOR /// </summary> private void HideTitleBar(Window window) { var wChrome = new WindowChrome(); wChrome.CaptionHeight = 0; WindowChrome.SetWindowChrome(window, wChrome); } private void RevitViewMvcBase_SourceInitialized(object sender, EventArgs e) { switch (this.titleVisibility) { case TitleVisibility.Default: break; case TitleVisibility.HideMinimize: this.HideMinimizeButton(this.window); break; case TitleVisibility.HideMinimizeAndMaximize: this.HideMinimizeMaximizeButton(this.window); break; case TitleVisibility.HideTitleBar: this.HideTitleBar(this.window); break; default: break; } } } }
38.235955
153
0.61387
[ "MIT" ]
Coolicky/Onboxframework
src/Mvc.Revit/RevitViewAttacher.cs
3,405
C#
using System; namespace FactoryMethodDesignPattern.Manager.Processors.Base { using Domain.Base; public abstract class ProcessorBase<T> where T : TransactionBase { protected T ValidateTransactionType(TransactionBase transaction) { if (!(transaction is T)) throw new ArgumentException("Invalid Transaction Type"); return (T)transaction; } } }
25.5
93
0.676471
[ "MIT" ]
abrandaol-youtube/DesignPatternsGoF
FactoryMethodDesignPattern/Manager/Processors/Base/ProcessorBase.cs
410
C#
using UnityEngine; using UnityEngine.AI; public class Ball : MonoBehaviour { public Manager manager; // Use this for initialization void Start() { } // Update is called once per frame void Update() { } void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("Player 1") || other.gameObject.CompareTag("Player 2")) { other.GetComponent<Player>().BallPossession = true; //gameObject.GetComponent<NavMeshAgent>().isStopped = true; } else { //BallPossession = false; } } }
19.40625
95
0.5781
[ "MIT" ]
Demoly/MiniBasketballAIUnity
Basketball_AI/Assets/Scripts/Ball.cs
623
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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("AWSSDK.KinesisVideoMedia")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Kinesis Video Streams Media. Announcing Amazon Kinesis Video Streams, a fully managed video ingestion and storage service. Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for machine learning, analytics, and processing. You can also stream other time-encoded data like RADAR and LIDAR signals using Kinesis Video Streams.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon Kinesis Video Streams Media. Announcing Amazon Kinesis Video Streams, a fully managed video ingestion and storage service. Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for machine learning, analytics, and processing. You can also stream other time-encoded data like RADAR and LIDAR signals using Kinesis Video Streams.")] #elif NETSTANDARD13 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 1.3) - Amazon Kinesis Video Streams Media. Announcing Amazon Kinesis Video Streams, a fully managed video ingestion and storage service. Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for machine learning, analytics, and processing. You can also stream other time-encoded data like RADAR and LIDAR signals using Kinesis Video Streams.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon Kinesis Video Streams Media. Announcing Amazon Kinesis Video Streams, a fully managed video ingestion and storage service. Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for machine learning, analytics, and processing. You can also stream other time-encoded data like RADAR and LIDAR signals using Kinesis Video Streams.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon Kinesis Video Streams Media. Announcing Amazon Kinesis Video Streams, a fully managed video ingestion and storage service. Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for machine learning, analytics, and processing. You can also stream other time-encoded data like RADAR and LIDAR signals using Kinesis Video Streams.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [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)] // 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("3.3")] [assembly: AssemblyFileVersion("3.5.0.8")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
73.603774
463
0.791079
[ "Apache-2.0" ]
orinem/aws-sdk-net
sdk/src/Services/KinesisVideoMedia/Properties/AssemblyInfo.cs
3,901
C#
using System; using System.Collections.Generic; using System.Text; using Mapping_Tools.Classes.BeatmapHelper; namespace Mapping_Tools.Classes.HitsoundStuff { /// <summary> /// /// </summary> public class CustomIndex { /// <summary> /// /// </summary> public int Index; /// <summary> /// /// </summary> public Dictionary<string, HashSet<SampleGeneratingArgs>> Samples; /// <summary> /// /// </summary> public static readonly List<string> AllKeys = new List<string> { "normal-hitnormal", "normal-hitwhistle", "normal-hitfinish", "normal-hitclap", "soft-hitnormal", "soft-hitwhistle", "soft-hitfinish", "soft-hitclap", "drum-hitnormal", "drum-hitwhistle", "drum-hitfinish", "drum-hitclap" }; /// <summary> /// /// </summary> /// <param name="index"></param> public CustomIndex(int index) { Index = index; Samples = new Dictionary<string, HashSet<SampleGeneratingArgs>>(); foreach (string key in AllKeys) { Samples[key] = new HashSet<SampleGeneratingArgs>(); } } /// <summary> /// /// </summary> public CustomIndex() { Index = -1; Samples = new Dictionary<string, HashSet<SampleGeneratingArgs>>(); foreach (string key in AllKeys) { Samples[key] = new HashSet<SampleGeneratingArgs>(); } } /// <summary> /// /// </summary> /// <param name="s1"></param> /// <param name="s2"></param> /// <returns></returns> public static bool CheckSupport(HashSet<SampleGeneratingArgs> s1, HashSet<SampleGeneratingArgs> s2) { // s2 fits in s1 or s2 is empty return s2.Count <= 0 || s1.SetEquals(s2); } /// <summary> /// /// </summary> /// <param name="s1"></param> /// <param name="s2"></param> /// <returns></returns> public static bool CheckCanSupport(HashSet<SampleGeneratingArgs> s1, HashSet<SampleGeneratingArgs> s2) { // s2 fits in s1 or s1 is empty or s2 is empty return s1.Count <= 0 || s2.Count <= 0 || s1.SetEquals(s2); } /// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Fits(CustomIndex other) { // Every non-empty set from other == set from self // True until false bool support = true; foreach (KeyValuePair<string, HashSet<SampleGeneratingArgs>> kvp in Samples) { support = CheckSupport(kvp.Value, other.Samples[kvp.Key]) && support; } return support; } /// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool CanMerge(CustomIndex other) { // Every non-empty set from other == non-empty set from self // True until false bool support = true; foreach (KeyValuePair<string, HashSet<SampleGeneratingArgs>> kvp in Samples) { support = CheckCanSupport(kvp.Value, other.Samples[kvp.Key]) && support; } return support; } /// <summary> /// /// </summary> /// <param name="other"></param> public void MergeWith(CustomIndex other) { foreach (string key in AllKeys) { Samples[key].UnionWith(other.Samples[key]); } // If the other custom index has an assigned index and this one doesnt. Get the index, so optimised custom indices retain their indices. if (Index == -1 && other.Index != -1) { Index = other.Index; } } /// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public CustomIndex Merge(CustomIndex other) { CustomIndex ci = new CustomIndex(Math.Max(Index, other.Index)); foreach (string key in AllKeys) { ci.Samples[key].UnionWith(other.Samples[key]); } return ci; } /// <summary> /// /// </summary> /// <returns></returns> public CustomIndex Copy() { CustomIndex ci = new CustomIndex(Index); ci.MergeWith(this); return ci; } /// <summary> /// /// </summary> /// <param name="loadedSamples"></param> public void CleanInvalids(Dictionary<SampleGeneratingArgs, SampleSoundGenerator> loadedSamples = null) { // Replace all invalid paths with "" and remove the invalid path if another valid path is also in the hashset foreach (HashSet<SampleGeneratingArgs> paths in Samples.Values) { int initialCount = paths.Count; int removed = paths.RemoveWhere(o => !SampleImporter.ValidateSampleArgs(o, loadedSamples)); if (paths.Count == 0 && initialCount != 0) { // All the paths where invalid and it didn't just start out empty paths.Add(new SampleGeneratingArgs()); // This "" is here to prevent this hashset from getting new paths } } } /// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { var accumulator = new StringBuilder(); foreach (KeyValuePair<string, HashSet<SampleGeneratingArgs>> kvp in Samples) { var sampleList = new StringBuilder(); foreach (var sga in kvp.Value) { sampleList.Append($"{sga}|"); } if (sampleList.Length > 0) sampleList.Remove(sampleList.Length - 1, 1); accumulator.Append($"{kvp.Key}: [{sampleList}]"); } return accumulator.ToString(); } public string GetNumberExtension() { return Index == 1 ? string.Empty : Index.ToInvariant(); } } }
35.47541
151
0.50878
[ "MIT" ]
2poi/Mapping_Tools
Mapping Tools/Classes/HitsoundStuff/CustomIndex.cs
6,494
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("ConventionalRegistration.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ConventionalRegistration.Tests")] [assembly: AssemblyCopyright("Copyright © 2015")] [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("3e7e4efe-cbc6-4be9-98c5-2e230bc677ac")] // 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.72973
84
0.750174
[ "Apache-2.0" ]
pcsikos/ConventionalRegistration
Source/ConventionalRegistration.Tests/Properties/AssemblyInfo.cs
1,436
C#
using System.Reflection; 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("AWSSDK.CognitoIdentity")] [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Cognito Identity. Amazon Cognito is a service that makes it easy to save user data, such as app preferences or game state, in the AWS Cloud without writing any backend code or managing any infrastructure. With Amazon Cognito, you can focus on creating great app experiences instead of having to worry about building and managing a backend solution to handle identity management, network state, storage, and sync.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright 2009-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [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)] // 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("3.3")] [assembly: AssemblyFileVersion("3.3.2.31")]
55.5625
499
0.76153
[ "Apache-2.0" ]
GitGaby/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/CognitoIdentity/Properties/AssemblyInfo.cs
1,778
C#
using Microsoft.AspNetCore.Mvc; using VendorTracker.Models; using System.Collections.Generic; using System; namespace VendorTracker.Controllers { public class VendorsController : Controller { [HttpGet("/vendors")] public ActionResult Index() { List<Vendor> allVendors = Vendor.GetAll(); return View(allVendors); } [HttpGet("/vendors/new")] public ActionResult New() { return View(); } [HttpPost("/vendors")] public ActionResult New(string vendorName, string vendorDescription) { Vendor newVendor = new Vendor(vendorName, vendorDescription); return RedirectToAction("Index"); } [HttpGet("/vendors/{id}")] public ActionResult Show(int id) { Dictionary<string, object> model = new Dictionary<string, object>(); Vendor selectedVendor = Vendor.Find(id); List<Order> vendorOrders = selectedVendor.Orders; model.Add("vendor", selectedVendor); model.Add("orders", vendorOrders); return View(model); } [HttpPost("/vendors/{vendorId}/orders")] public ActionResult Create(int vendorId, string orderTitle, string orderDescription, int orderPrice, string orderDate) { Dictionary<string, object> model = new Dictionary<string, object>(); Vendor foundVendor = Vendor.Find(vendorId); Order newOrder = new Order(orderTitle, orderDescription, orderPrice, orderDate); foundVendor.AddOrder(newOrder); List<Order> vendorOrders = foundVendor.Orders; model.Add("orders", vendorOrders); model.Add("vendor", foundVendor); return View("Show", model); } } }
29.232143
122
0.676237
[ "MIT" ]
colchapm/VendorTracker.Solution
VendorTracker/Controllers/VendorsController.cs
1,637
C#
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Android.Content.PM; namespace JhooApp { [Activity (Label = "DmcCalcActivity", ScreenOrientation = ScreenOrientation.Portrait)] public class DmcCalcActivity : Activity { protected override void OnCreate (Bundle savedInstanceState) { base.OnCreate (savedInstanceState); SetContentView (Resource.Layout.DmgCalc); Spinner sWeapType = FindViewById<Spinner> (Resource.Id.wType); Spinner sSharpType = FindViewById<Spinner> (Resource.Id.sharpSelect); Button createWeapon = FindViewById<Button> (Resource.Id.start); CheckBox cbDualElem = FindViewById<CheckBox> (Resource.Id.cbDoubleElem); CheckBox cbDualAff = FindViewById<CheckBox> (Resource.Id.cbDoubleAff); EditText chaos = FindViewById<EditText> (Resource.Id.chaos); EditText dualElem = FindViewById<EditText> (Resource.Id.elemattack2); var adapter = ArrayAdapter.CreateFromResource ( this, Resource.Array.weapons_array, Android.Resource.Layout.SimpleSpinnerItem); string weaponType = String.Empty; SharpTypes sharpType = SharpTypes.Red; sWeapType.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> ((sender, e) => weaponType=spinner_ItemSelected (sender, e)); adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem); sWeapType.Adapter = adapter; adapter = ArrayAdapter.CreateFromResource ( this, Resource.Array.sharpTypes_array, Android.Resource.Layout.SimpleSpinnerItem); sSharpType.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> ((sender, e) => sharpType=Sharpness.stringToSharpType(spinner_ItemSelected (sender, e))); adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem); sSharpType.Adapter = adapter; cbDualAff.Click += (o, e) => { if (cbDualAff.Checked) chaos.Enabled = true; else { chaos.Enabled = false; chaos.Text = "0"; } }; cbDualElem.Click += (o, e) => { if (cbDualElem.Checked) dualElem.Enabled = true; else { dualElem.Enabled = false; dualElem.Text = "0"; } }; createWeapon.Click += delegate { calculateFunc(weaponType, sharpType); }; } public void calculateFunc(string wType, SharpTypes sharp) { EditText baseAttack = FindViewById<EditText> (Resource.Id.baseattack); EditText elemAttack = FindViewById<EditText> (Resource.Id.elemattack); EditText affinity = FindViewById<EditText> (Resource.Id.affinity); EditText chaos = FindViewById<EditText> (Resource.Id.chaos); TextView wPower = FindViewById<TextView> (Resource.Id.wPower); TextView wEfPow = FindViewById<TextView> (Resource.Id.wEfPow); TextView wElem = FindViewById<TextView> (Resource.Id.wElem); TextView wEfPowS = FindViewById<TextView> (Resource.Id.wEfPowS); TextView wElemS = FindViewById<TextView> (Resource.Id.wElemS); int atk, elem, aff, affc; if (baseAttack.Text == String.Empty) baseAttack.Text = "0"; atk = int.Parse (baseAttack.Text); if (elemAttack.Text == String.Empty) elemAttack.Text = "0"; elem = int.Parse (elemAttack.Text); if (affinity.Text == String.Empty) affinity.Text = "0"; aff = int.Parse (affinity.Text); if (chaos.Text == String.Empty) chaos.Text = "0"; affc = int.Parse (chaos.Text); Sharpness sh = new Sharpness (14, 14, 14, 14, 14, 14, 14); Weapon weap = null; switch (wType) { case "Gran espada": weap = new GreatSword (true, atk, elem, sh, aff, affc); break; case "Espada larga": weap = new LongSword (true, atk, elem, sh, aff, affc); break; case "Espada y escudo": weap = new SwordnShield (true, atk, elem, sh, aff, affc); break; case "Espadas dobles": weap=new DualBlades(true, atk, elem, sh, aff, affc); break; case "Martillo": weap = new Hammer (true, atk, elem, sh, aff, affc); break; case "Cornamusa": weap = new HuntingHorn (true, atk, elem, sh, aff, affc); break; case "Lanza": weap = new Lance (true, atk, elem, sh, aff, affc); break; case "Lanza pistola": weap = new Gunlance (true, atk, elem, sh, aff, affc); break; case "Hacha espada": weap = new SwitchAxe (true, atk, elem, sh, aff, affc); break; case "Hacha cargada": weap = new ChargeBlade (true, atk, elem, sh, aff, affc); break; case "Glaive insecto": weap = new InsectGlaive (true, atk, elem, sh, aff, affc); break; // case "Ballesta ligera": // weap = new LightBowgun (true, atk, aff); // break; // case "Ballesta pesada": // weap = new HeavyBowgun (true, atk, aff); // break; // case "Arco": // weap = new Bow (true, atk, aff); // break; } wPower.Text = string.Format ("Poder: {0}", (float)weap.power ()); wEfPow.Text = string.Format ("Poder efectivo: {0}", (float)weap.effectivePower ()); wElem.Text = string.Format ("Poder elemental: {0}", (float)weap.elementalPower ()); wEfPowS.Text = string.Format ("P. ef. + Filo Max: {0}", (float)weap.sharpEffectivePower (sharp)); wElemS.Text = string.Format ("P. el. + Filo Max: {0}", (float)weap.sharpElementalPower (sharp)); } public string spinner_ItemSelected (Object sender, AdapterView.ItemSelectedEventArgs e) { Spinner spinner = (Spinner)sender; CheckBox cbDualElement = FindViewById<CheckBox> (Resource.Id.cbDoubleElem); if ((string)spinner.GetItemAtPosition (0) == "Gran espada") cbDualElement.Enabled = (string)spinner.GetItemAtPosition (e.Position) == "Espadas dobles"; return string.Format ("{0}", spinner.GetItemAtPosition (e.Position)); } // public void weaponInit (Weapon weapon, string wType) // { // switch (wType) { // case "Gran espada": // wMult = 4.8f; // break; // case "Espada larga": // wMult = 3.3f; // break; // case "Espada y escudo": // case "Espadas dobles": // wMult = 1.4f; // break; // case "Martillo": // case "Cornamusa": // wMult = 5.2f; // break; // case "Lanza": // case "Lanza pistola": // wMult = 2.3f; // break; // case "Hacha espada": // wMult = 5.4f; // break; // case "Hacha cargada": // wMult = 3.6f; // break; // case "Glaive insecto": // wMult = 3.1f; // break; // case "Ballesta ligera": // wMult = 1.3f; // break; // case "Ballesta pesada": // wMult = 1.5f; // break; // case "Arco": // wMult = 1.2f; // break; // } // return bAtk / wMult; // } } }
32.826923
172
0.645284
[ "Apache-2.0" ]
JhooClan/JhooApp
JhooApp/DmcCalcActivity.cs
6,830
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using StackExchange.Redis; namespace CacheTower.Extensions.Redis { /// <summary> /// Provides distributed cache locking via Redis. /// </summary> /// <remarks> /// Based on <a href="https://github.com/kristoff-it/redis-memolock/blob/77da8f82711309b9dd81eafd02cb7ccfb22344c7/csharp/redis-memolock/RedisMemoLock.cs">Loris Cro's RedisMemoLock"</a> /// </remarks> public class RedisLockExtension : ICacheRefreshCallSiteWrapperExtension { private ISubscriber Subscriber { get; } private IDatabaseAsync Database { get; } private RedisLockOptions Options { get; } private ICacheStack? RegisteredStack { get; set; } internal ConcurrentDictionary<string, TaskCompletionSource<bool>> LockedOnKeyRefresh { get; } /// <summary> /// Creates a new instance of <see cref="RedisLockExtension"/> with the given <paramref name="connection"/> and default lock options. /// </summary> /// <param name="connection">The primary connection to Redis where the distributed lock will be co-ordinated through.</param> public RedisLockExtension(IConnectionMultiplexer connection) : this(connection, RedisLockOptions.Default) { } /// <summary> /// Creates a new instance of <see cref="RedisLockExtension"/> with the given <paramref name="connection"/> and <paramref name="options"/>. /// </summary> /// <param name="connection">The primary connection to Redis where the distributed lock will be co-ordinated through.</param> /// <param name="options">The lock options to configure the behaviour of locking.</param> public RedisLockExtension(IConnectionMultiplexer connection, RedisLockOptions options) { if (connection == null) { throw new ArgumentNullException(nameof(connection)); } Options = options; Database = connection.GetDatabase(options.DatabaseIndex); Subscriber = connection.GetSubscriber(); LockedOnKeyRefresh = new ConcurrentDictionary<string, TaskCompletionSource<bool>>(StringComparer.Ordinal); Subscriber.Subscribe(options.RedisChannel, (channel, value) => UnlockWaitingTasks(value)); } /// <inheritdoc/> public void Register(ICacheStack cacheStack) { if (RegisteredStack != null) { throw new InvalidOperationException($"{nameof(RedisLockExtension)} can only be registered to one {nameof(ICacheStack)}"); } RegisteredStack = cacheStack; } /// <remarks> /// The <see cref="RedisLockExtension"/> attempts to set a key in Redis representing whether it has achieved a lock. /// If it succeeds to set the key, it continues to refresh the value, broadcasting the success of the updated value to all subscribers. /// If it fails to set the key, it waits until notified that the cache is updated, retrieving it from the cache stack and returning the value. /// </remarks> /// <inheritdoc/> public async ValueTask<CacheEntry<T>> WithRefreshAsync<T>(string cacheKey, Func<ValueTask<CacheEntry<T>>> valueProvider, CacheSettings settings) { var lockKey = string.Format(Options.KeyFormat, cacheKey); var hasLock = await Database.StringSetAsync(lockKey, RedisValue.EmptyString, expiry: Options.LockTimeout, when: When.NotExists); if (hasLock) { try { var cacheEntry = await valueProvider(); return cacheEntry; } finally { await Subscriber.PublishAsync(Options.RedisChannel, cacheKey, CommandFlags.FireAndForget); await Database.KeyDeleteAsync(lockKey, CommandFlags.FireAndForget); } } else { var completionSource = LockedOnKeyRefresh.GetOrAdd(cacheKey, key => { var tcs = new TaskCompletionSource<bool>(); if (Options.UseBusyLockCheck) { _ = TestLock(tcs); } else { var cts = new CancellationTokenSource(Options.LockTimeout); cts.Token.Register(tcs => ((TaskCompletionSource<bool>)tcs).TrySetCanceled(), tcs, useSynchronizationContext: false); } return tcs; async Task TestLock(TaskCompletionSource<bool> taskCompletionSource) { var spinAttempt = 0; while (spinAttempt <= Options.SpinAttempts && !taskCompletionSource.Task.IsCanceled && !taskCompletionSource.Task.IsCompleted) { spinAttempt++; var lockExists = await Database.KeyExistsAsync(lockKey); if (lockExists) { await Task.Delay(Options.SpinTime); continue; } taskCompletionSource.TrySetResult(true); return; } taskCompletionSource.TrySetCanceled(); } }); //Last minute check to confirm whether waiting is required (in case the notification is missed) var currentEntry = await RegisteredStack!.GetAsync<T>(cacheKey); if (currentEntry != null && currentEntry.GetStaleDate(settings) > Internal.DateTimeProvider.Now) { UnlockWaitingTasks(cacheKey); return currentEntry; } //Lock until we are notified to be unlocked await completionSource.Task; //Get the updated value from the cache stack return (await RegisteredStack.GetAsync<T>(cacheKey))!; } } private void UnlockWaitingTasks(string cacheKey) { if (LockedOnKeyRefresh.TryRemove(cacheKey, out var waitingTasks)) { waitingTasks.TrySetResult(true); } } } }
34.050633
185
0.712639
[ "MIT" ]
TurnerSoftware/CacheTower
src/CacheTower.Extensions.Redis/RedisLockExtension.cs
5,382
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="RollingInMemoryLogListener.cs" company="Catel development team"> // Copyright (c) 2008 - 2014 Catel development team. All rights reserved. // </copyright> // -------------------------------------------------------------------------------------------------------------------- namespace Catel.Logging { using System; using System.Collections.Generic; using Logging; /// <summary> /// In memory log listener that keeps track of the latest log messages. /// </summary> public class RollingInMemoryLogListener : LogListenerBase { #region Fields private readonly object _lock = new object(); private readonly List<LogEntry> _lastLogEntries = new List<LogEntry>(); private readonly List<LogEntry> _lastWarningLogEntries = new List<LogEntry>(); private readonly List<LogEntry> _lastErrorLogEntries = new List<LogEntry>(); #endregion #region Constructors /// <summary> /// Initializes a new instance of the <see cref="RollingInMemoryLogListener"/> class. /// </summary> public RollingInMemoryLogListener() { MaximumNumberOfLogEntries = 250; MaximumNumberOfWarningLogEntries = 50; MaximumNumberOfErrorLogEntries = 50; } #endregion #region Properties /// <summary> /// Gets or sets the maximum number of log entries to keep. /// <para /> /// The default value is 250. /// </summary> /// <value>The maximum number of log entries.</value> public int MaximumNumberOfLogEntries { get; set; } /// <summary> /// Gets or sets the maximum number of warning log entries to keep. /// <para /> /// The default value is 50. /// </summary> /// <value>The maximum number of log entries.</value> public int MaximumNumberOfWarningLogEntries { get; set; } /// <summary> /// Gets or sets the maximum number of error log entries to keep. /// <para /> /// The default value is 50. /// </summary> /// <value>The maximum number of log entries.</value> public int MaximumNumberOfErrorLogEntries { get; set; } #endregion #region Methods /// <summary> /// Called when any message is written to the log. /// </summary> /// <param name="log">The log.</param> /// <param name="message">The message.</param> /// <param name="logEvent">The log event.</param> /// <param name="extraData">The extra data.</param> /// <param name="time">The time.</param> protected override void Write(ILog log, string message, LogEvent logEvent, object extraData, DateTime time) { base.Write(log, message, logEvent, extraData, time); var logEntry = new LogEntry(log, message, logEvent, extraData, time); AddLogEvent(_lastLogEntries, logEntry, MaximumNumberOfLogEntries); switch (logEvent) { case LogEvent.Warning: AddLogEvent(_lastWarningLogEntries, logEntry, MaximumNumberOfWarningLogEntries); break; case LogEvent.Error: AddLogEvent(_lastErrorLogEntries, logEntry, MaximumNumberOfErrorLogEntries); break; } } private void AddLogEvent(List<LogEntry> collection, LogEntry logEntry, int maximumEntries) { lock (_lock) { collection.Add(logEntry); while (collection.Count > maximumEntries) { collection.RemoveAt(0); } } } /// <summary> /// Gets the log entries. /// </summary> /// <returns>IEnumerable&lt;LogEntry&gt;.</returns> public IEnumerable<LogEntry> GetLogEntries() { lock (_lock) { return _lastLogEntries.ToArray(); } } /// <summary> /// Gets the warning log entries. /// </summary> /// <returns>IEnumerable&lt;LogEntry&gt;.</returns> public IEnumerable<LogEntry> GetWarningLogEntries() { lock (_lock) { return _lastWarningLogEntries.ToArray(); } } /// <summary> /// Gets the error log entries. /// </summary> /// <returns>IEnumerable&lt;LogEntry&gt;.</returns> public IEnumerable<LogEntry> GetErrorLogEntries() { lock (_lock) { return _lastErrorLogEntries.ToArray(); } } #endregion } }
34.145833
120
0.531422
[ "MIT" ]
IvanKupriyanov/Catel
src/Catel.Core/Catel.Core.Shared/Logging/Listeners/RollingInMemoryLogListener.cs
4,919
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 UseATemplate.Properties { /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if ((resourceMan == null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UseATemplate.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } }
38.625
178
0.60338
[ "MIT" ]
CNinnovation/WPFOct2018
UseATemplate/UseATemplate/Properties/Resources.Designer.cs
2,783
C#
/***************************************************************** * MPAPI - Message Passing API * A framework for writing parallel and distributed applications * * Author : Frank Thomsen * Web : http://sector0.dk * Contact : mpapi@sector0.dk * License : New BSD licence * * Copyright (c) 2008, Frank Thomsen * * Feel free to contact me with bugs and ideas. *****************************************************************/ using System; using System.Collections.Generic; using System.Text; namespace MPAPI { public interface IWorker { IWorkerNode Node { get;} /// <summary> /// Sets a filter on the types of messages that will be put into the mail box /// </summary> /// <param name="filters"></param> void SetMessageFilter(params int[] filters); /// <summary> /// Makes the thread running this worker sleep for a period of time. /// </summary> /// <param name="ms">The number of milliseconds to sleep.</param> void Sleep(int ms); /// <summary> /// Enables this worker to receive system messages when the monitoree terminates, either /// normally or abnormally. /// </summary> /// <param name="monitoree"></param> void Monitor(WorkerAddress monitoree); /// <summary> /// Spawns a new worker locally. /// </summary> /// <typeparam name="TWorkerType">The type of worker to spawn. Must inherit from Worker.</typeparam> /// <returns>The address of the new worker if successfull, otherwise null.</returns> WorkerAddress Spawn<TWorkerType>() where TWorkerType : Worker; /// <summary> /// Spawns a new worker at the specified node. /// </summary> /// <typeparam name="TWorkerType">The type of worker to spawn. Must inherit from Worker.</typeparam> /// <param name="nodeId">Id of the node to spawn the worker at.</param> /// <returns>The address of the new worker if successfull, otherwise null.</returns> WorkerAddress Spawn<TWorkerType>(ushort nodeId) where TWorkerType : Worker; /// <summary> /// Spawns a new worker at the specified node. /// </summary> /// <param name="workerTypeName">The fully qualified name of the worker to spawn. Must inherit from Worker.</param> /// <param name="nodeId">Id of the node to spawn the worker at.</param> /// <returns>The address of the new worker if successfull, otherwise null.</returns> WorkerAddress Spawn(string workerTypeName, ushort nodeId); /// <summary> /// Sends a message. /// </summary> /// <param name="receiverAddress">Address of the receicer.</param> /// <param name="messageType">Type of message - user specific.</param> /// <param name="content">The contents of the message.</param> void Send(WorkerAddress receiverAddress, int messageType, object content); /// <summary> /// Broadcasts a message to all workers. /// </summary> /// <param name="messageType">Type of message - user specific.</param> /// <param name="content">The contents of the message.</param> void Broadcast(int messageType, object content); /// <summary> /// Fetches a message from the message queue. /// This method blocks until there are any messages. /// </summary> /// <returns>The first message in the queue.</returns> Message Receive(); /// <summary> /// Fetches a message from the message queue from the specified sender. /// This method blocks until there are any messages fullfilling the criteria. /// </summary> /// <param name="senderAddress">The address of the sender.</param> /// <returns>The first message in the queue from the specified sender.</returns> Message Receive(WorkerAddress senderAddress); /// <summary> /// Fetches a message from the message queue with the specified message type. /// This method blocks until there are any messages fullfilling the criteria. /// </summary> /// <param name="messageType">The message type.</param> /// <returns>The first message in the queue with the specified message type.</returns> Message Receive(int messageType); /// <summary> /// Fetches a message from the message queue with the specified sender address and message type. /// This method blocks until there are any messages fullfilling the criteria. /// </summary> /// <param name="senderAddress">The sender address.</param> /// <param name="messageType">The message type.</param> /// <returns>The first message in the queue with the specified sender address and message type</returns> Message Receive(WorkerAddress senderAddress, int messageType); /// <summary> /// Checks if there are any messages in the message queue. /// </summary> /// <returns></returns> bool HasMessages(); /// <summary> /// Checks if there are any messages from the specified sender in the message queue. /// </summary> /// <param name="senderAddress"></param> /// <returns></returns> bool HasMessages(WorkerAddress senderAddress); /// <summary> /// Checks if there are any messages with the specified message type in the message queue. /// </summary> /// <param name="messageType"></param> /// <returns></returns> bool HasMessages(int messageType); /// <summary> /// Checks if there are any message from the specified sender and with the specified message type in the message queue. /// </summary> /// <param name="senderAddress"></param> /// <param name="messageType"></param> /// <returns></returns> bool HasMessages(WorkerAddress senderAddress, int messageType); } }
43.335664
128
0.592383
[ "BSD-3-Clause" ]
parallax68/MPAPI
MPAPI/IWorker.cs
6,197
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("Calculator346")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Calculator346")] [assembly: AssemblyCopyright("Copyright © 2019")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // ComVisible を false に設定すると、このアセンブリ内の型は COM コンポーネントから // 参照できなくなります。COM からこのアセンブリ内の型にアクセスする必要がある場合は、 // その型の ComVisible 属性を true に設定してください。 [assembly: ComVisible(false)] // このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります [assembly: Guid("25fee080-d509-4980-9d63-dfd9a8ab62b8")] // アセンブリのバージョン情報は次の 4 つの値で構成されています: // // メジャー バージョン // マイナー バージョン // ビルド番号 // Revision // // すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます // 既定値にすることができます: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
30.297297
57
0.727921
[ "MIT" ]
asanagi85/Calculator
Properties/AssemblyInfo.cs
1,708
C#
using System.Xml.Serialization; namespace TrxFileParser.Models { public class Times { [XmlAttribute(AttributeName = "creation")] public string Creation { get; set; } [XmlAttribute(AttributeName = "queuing")] public string Queuing { get; set; } [XmlAttribute(AttributeName = "start")] public string Start { get; set; } [XmlAttribute(AttributeName = "finish")] public string Finish { get; set; } } }
23.95
50
0.615866
[ "MIT" ]
HamedFathi/TrxFileParser
TrxFileParser/Models/Times.cs
481
C#
//-------------------------------------------------- // <copyright file="MobileDriverManager.cs" company="Magenic"> // Copyright 2021 Magenic, All rights Reserved // </copyright> // <summary>Mobile driver manager</summary> //-------------------------------------------------- using Magenic.Maqs.BaseTest; using Magenic.Maqs.Utilities.Data; using Magenic.Maqs.Utilities.Logging; using OpenQA.Selenium; using OpenQA.Selenium.Appium; using System; namespace Magenic.Maqs.BaseAppiumTest { /// <summary> /// Mobile driver manager /// </summary> public class MobileDriverManager : DriverManager { /// <summary> /// Initializes a new instance of the <see cref="MobileDriverManager"/> class /// </summary> /// <param name="getDriver">Function for getting an Appium driver</param> /// <param name="testObject">The associated test object</param> public MobileDriverManager(Func<AppiumDriver<IWebElement>> getDriver, BaseTestObject testObject) : base(getDriver, testObject) { } /// <summary> /// Override the Appium driver /// </summary> /// <param name="overrideDriver">The new Appium driver</param> public void OverrideDriver(AppiumDriver<IWebElement> overrideDriver) { this.OverrideDriverGet(() => overrideDriver); } /// <summary> /// Override the Appium driver /// </summary> /// <param name="overrideDriver">The new Appium driver</param> public void OverrideDriver(Func<AppiumDriver<IWebElement>> overrideDriver) { this.OverrideDriverGet(overrideDriver); } /// <summary> /// Get the Appium driver /// </summary> /// <returns>The Appium driver</returns> public AppiumDriver<IWebElement> GetMobileDriver() { return GetBase() as AppiumDriver<IWebElement>; } /// <summary> /// Get the Appium driver /// </summary> /// <returns>The Appium driver</returns> public override object Get() { return this.GetMobileDriver(); } /// <summary> /// Cleanup the Appium driver /// </summary> protected override void DriverDispose() { // If we never created the driver we don't have any cleanup to do if (!this.IsDriverIntialized()) { return; } try { AppiumDriver<IWebElement> driver = this.GetMobileDriver(); driver?.KillDriver(); } catch (Exception e) { this.Log.LogMessage(MessageType.ERROR, StringProcessor.SafeFormatter($"Failed to close mobile driver because: {e.Message}")); } this.BaseDriver = null; } } }
31.901099
141
0.559421
[ "MIT" ]
FermJacob/MAQS
Framework/BaseAppiumTest/MobileDriverManager.cs
2,905
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by avrogen, version 1.7.7.4 // Changes to this file may cause incorrect behavior and will be lost if code // is regenerated // </auto-generated> // ------------------------------------------------------------------------------ namespace @value.SOURCEDB.BANKING { using System; using System.Collections.Generic; using System.Text; using global::Avro; using global::Avro.Specific; public partial class FINANCIAL_EVENTS : ISpecificRecord { public static Schema _SCHEMA = Schema.Parse("{\"type\":\"record\",\"name\":\"FINANCIAL_EVENTS\",\"namespace\":\"value.SOURCEDB.BANKING\",\"" + "fields\":[{\"name\":\"EVENT_ID\",\"default\":0,\"type\":\"long\"},{\"name\":\"YEAR\",\"default\":" + "0,\"type\":\"int\"},{\"name\":\"DATA_OWNER\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"BANK" + "\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"AGREEMENT_ID\",\"default\":\"\",\"type\":\"stri" + "ng\"},{\"name\":\"ENTRY_DATE\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"VALUE_DATE\",\"de" + "fault\":\"\",\"type\":\"string\"},{\"name\":\"AMOUNT\",\"default\":\"0\",\"type\":\"string\"},{\"nam" + "e\":\"BALANCE\",\"default\":\"0\",\"type\":\"string\"},{\"name\":\"CURRENCY_CODE\",\"default\":\"\"" + ",\"type\":\"string\"},{\"name\":\"LCY_AMOUNT\",\"default\":\"0\",\"type\":\"string\"},{\"name\":\"T" + "RANSACTION_BANK\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"TRANSACTION_CODE\",\"defau" + "lt\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"BATCH_NUMBER\",\"default\":\"\",\"type\":[\"st" + "ring\",\"null\"]},{\"name\":\"REFERENCE_NUMBER\",\"default\":\"\",\"type\":[\"string\",\"null\"]}" + ",{\"name\":\"CATEGORY_CODE\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"CATEGOR" + "Y\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"OWNER_ID\",\"default\":\"\",\"type\"" + ":[\"string\",\"null\"]},{\"name\":\"EXTERNAL_REFERENCE\",\"default\":\"\",\"type\":[\"string\",\"" + "null\"]},{\"name\":\"EVENT_SOURCE_CODE\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"PAYME" + "NT_TYPE\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"TRANSACTION_SEQUENCE_NU" + "MBER\",\"default\":0,\"type\":[\"int\",\"null\"]},{\"name\":\"EVENT_GROUP_ID\",\"default\":\"\",\"" + "type\":[\"string\",\"null\"]},{\"name\":\"DUE_DATE\",\"default\":\"\",\"type\":[\"string\",\"null\"" + "]},{\"name\":\"COUNTERPARTY_ID\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"IS_" + "HANDLING_FEE\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"VOID_CODE\",\"default\":\"\",\"ty" + "pe\":\"string\"},{\"name\":\"VOID_CODE_DATE\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"" + "name\":\"BOOKING_DATE\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"ATM_CODE\",\"default\":" + "0,\"type\":[\"int\",\"null\"]},{\"name\":\"MERCHANT_AGREEMENT_NUMBER\",\"default\":0,\"type\":" + "[\"int\",\"null\"]},{\"name\":\"CHEQUE_GUARANTEE_NUMBER\",\"default\":0,\"type\":[\"int\",\"nul" + "l\"]},{\"name\":\"CREATED_BY\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"CREATE" + "D_DATE\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"REFERENCE\",\"default\":\"\"," + "\"type\":[\"string\",\"null\"]},{\"name\":\"REFERENCE_DESCRIPTION\",\"default\":\"\",\"type\":[\"" + "string\",\"null\"]},{\"name\":\"EXTENDED_REFERENCE\",\"default\":\"\",\"type\":[\"string\",\"nul" + "l\"]},{\"name\":\"LOAD_DATE\",\"default\":\"\",\"type\":\"string\"},{\"name\":\"AGREEMENT_PID\",\"" + "default\":\"0\",\"type\":[\"string\",\"null\"]},{\"name\":\"COUNTERPARTY_AGREEMENT_ID\",\"defa" + "ult\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"COUNTERPARTY_AGREEMENT_PID\",\"default\"" + ":\"0\",\"type\":[\"string\",\"null\"]},{\"name\":\"COUNTERPARTY_REFERENCE\",\"default\":\"\",\"ty" + "pe\":[\"string\",\"null\"]},{\"name\":\"OPERATION_REFERENCE\",\"default\":\"\",\"type\":[\"strin" + "g\",\"null\"]},{\"name\":\"EXTERNAL_OPERATION_REFERENCE\",\"default\":\"\",\"type\":[\"string\"" + ",\"null\"]},{\"name\":\"TRANSACTION_REFERENCE\",\"default\":\"\",\"type\":[\"string\",\"null\"]}" + ",{\"name\":\"ORDERER_ID\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"ORDERER_NA" + "ME\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"BENEFICIARY_ID\",\"default\":\"\"" + ",\"type\":[\"string\",\"null\"]},{\"name\":\"BENEFICIARY_NAME\",\"default\":\"\",\"type\":[\"stri" + "ng\",\"null\"]},{\"name\":\"BATCH_REFERENCE\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"" + "name\":\"MERCHANT_NAME\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"CARD_ID\",\"" + "default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"ORDERER_CROSSRATE\",\"default\":\"0\"," + "\"type\":[\"string\",\"null\"]},{\"name\":\"ORDERER_EXCHANGERATE\",\"default\":\"0\",\"type\":[\"" + "string\",\"null\"]},{\"name\":\"BENEFICIARY_CROSSRATE\",\"default\":\"0\",\"type\":[\"string\"," + "\"null\"]},{\"name\":\"BENEFICIARY_EXCHANGERATE\",\"default\":\"0\",\"type\":[\"string\",\"null" + "\"]},{\"name\":\"CARD_NUMBER_MASKED\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":" + "\"EXTERNAL_USER\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"PAYMENT_PURPOSE_" + "CODE\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"OPERATION_TYPE\",\"default\":" + "\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"TELLER_ID\",\"default\":\"\",\"type\":[\"string\",\"" + "null\"]},{\"name\":\"ENTITY\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"STANDAR" + "D_DESCRIPTION\",\"default\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"CHANNEL_CODE\",\"de" + "fault\":\"\",\"type\":[\"string\",\"null\"]},{\"name\":\"GT_RECORD_MODIFICATION_TIME\",\"defau" + "lt\":\"\",\"type\":\"string\"}]}"); private long _EVENT_ID; private int _YEAR; private string _DATA_OWNER; private string _BANK; private string _AGREEMENT_ID; private string _ENTRY_DATE; private string _VALUE_DATE; private string _AMOUNT; private string _BALANCE; private string _CURRENCY_CODE; private string _LCY_AMOUNT; private string _TRANSACTION_BANK; private string _TRANSACTION_CODE; private string _BATCH_NUMBER; private string _REFERENCE_NUMBER; private string _CATEGORY_CODE; private string _CATEGORY; private string _OWNER_ID; private string _EXTERNAL_REFERENCE; private string _EVENT_SOURCE_CODE; private string _PAYMENT_TYPE; private System.Nullable<int> _TRANSACTION_SEQUENCE_NUMBER; private string _EVENT_GROUP_ID; private string _DUE_DATE; private string _COUNTERPARTY_ID; private string _IS_HANDLING_FEE; private string _VOID_CODE; private string _VOID_CODE_DATE; private string _BOOKING_DATE; private System.Nullable<int> _ATM_CODE; private System.Nullable<int> _MERCHANT_AGREEMENT_NUMBER; private System.Nullable<int> _CHEQUE_GUARANTEE_NUMBER; private string _CREATED_BY; private string _CREATED_DATE; private string _REFERENCE; private string _REFERENCE_DESCRIPTION; private string _EXTENDED_REFERENCE; private string _LOAD_DATE; private string _AGREEMENT_PID; private string _COUNTERPARTY_AGREEMENT_ID; private string _COUNTERPARTY_AGREEMENT_PID; private string _COUNTERPARTY_REFERENCE; private string _OPERATION_REFERENCE; private string _EXTERNAL_OPERATION_REFERENCE; private string _TRANSACTION_REFERENCE; private string _ORDERER_ID; private string _ORDERER_NAME; private string _BENEFICIARY_ID; private string _BENEFICIARY_NAME; private string _BATCH_REFERENCE; private string _MERCHANT_NAME; private string _CARD_ID; private string _ORDERER_CROSSRATE; private string _ORDERER_EXCHANGERATE; private string _BENEFICIARY_CROSSRATE; private string _BENEFICIARY_EXCHANGERATE; private string _CARD_NUMBER_MASKED; private string _EXTERNAL_USER; private string _PAYMENT_PURPOSE_CODE; private string _OPERATION_TYPE; private string _TELLER_ID; private string _ENTITY; private string _STANDARD_DESCRIPTION; private string _CHANNEL_CODE; private string _GT_RECORD_MODIFICATION_TIME; public virtual Schema Schema { get { return FINANCIAL_EVENTS._SCHEMA; } } public long EVENT_ID { get { return this._EVENT_ID; } set { this._EVENT_ID = value; } } public int YEAR { get { return this._YEAR; } set { this._YEAR = value; } } public string DATA_OWNER { get { return this._DATA_OWNER; } set { this._DATA_OWNER = value; } } public string BANK { get { return this._BANK; } set { this._BANK = value; } } public string AGREEMENT_ID { get { return this._AGREEMENT_ID; } set { this._AGREEMENT_ID = value; } } public string ENTRY_DATE { get { return this._ENTRY_DATE; } set { this._ENTRY_DATE = value; } } public string VALUE_DATE { get { return this._VALUE_DATE; } set { this._VALUE_DATE = value; } } public string AMOUNT { get { return this._AMOUNT; } set { this._AMOUNT = value; } } public string BALANCE { get { return this._BALANCE; } set { this._BALANCE = value; } } public string CURRENCY_CODE { get { return this._CURRENCY_CODE; } set { this._CURRENCY_CODE = value; } } public string LCY_AMOUNT { get { return this._LCY_AMOUNT; } set { this._LCY_AMOUNT = value; } } public string TRANSACTION_BANK { get { return this._TRANSACTION_BANK; } set { this._TRANSACTION_BANK = value; } } public string TRANSACTION_CODE { get { return this._TRANSACTION_CODE; } set { this._TRANSACTION_CODE = value; } } public string BATCH_NUMBER { get { return this._BATCH_NUMBER; } set { this._BATCH_NUMBER = value; } } public string REFERENCE_NUMBER { get { return this._REFERENCE_NUMBER; } set { this._REFERENCE_NUMBER = value; } } public string CATEGORY_CODE { get { return this._CATEGORY_CODE; } set { this._CATEGORY_CODE = value; } } public string CATEGORY { get { return this._CATEGORY; } set { this._CATEGORY = value; } } public string OWNER_ID { get { return this._OWNER_ID; } set { this._OWNER_ID = value; } } public string EXTERNAL_REFERENCE { get { return this._EXTERNAL_REFERENCE; } set { this._EXTERNAL_REFERENCE = value; } } public string EVENT_SOURCE_CODE { get { return this._EVENT_SOURCE_CODE; } set { this._EVENT_SOURCE_CODE = value; } } public string PAYMENT_TYPE { get { return this._PAYMENT_TYPE; } set { this._PAYMENT_TYPE = value; } } public System.Nullable<int> TRANSACTION_SEQUENCE_NUMBER { get { return this._TRANSACTION_SEQUENCE_NUMBER; } set { this._TRANSACTION_SEQUENCE_NUMBER = value; } } public string EVENT_GROUP_ID { get { return this._EVENT_GROUP_ID; } set { this._EVENT_GROUP_ID = value; } } public string DUE_DATE { get { return this._DUE_DATE; } set { this._DUE_DATE = value; } } public string COUNTERPARTY_ID { get { return this._COUNTERPARTY_ID; } set { this._COUNTERPARTY_ID = value; } } public string IS_HANDLING_FEE { get { return this._IS_HANDLING_FEE; } set { this._IS_HANDLING_FEE = value; } } public string VOID_CODE { get { return this._VOID_CODE; } set { this._VOID_CODE = value; } } public string VOID_CODE_DATE { get { return this._VOID_CODE_DATE; } set { this._VOID_CODE_DATE = value; } } public string BOOKING_DATE { get { return this._BOOKING_DATE; } set { this._BOOKING_DATE = value; } } public System.Nullable<int> ATM_CODE { get { return this._ATM_CODE; } set { this._ATM_CODE = value; } } public System.Nullable<int> MERCHANT_AGREEMENT_NUMBER { get { return this._MERCHANT_AGREEMENT_NUMBER; } set { this._MERCHANT_AGREEMENT_NUMBER = value; } } public System.Nullable<int> CHEQUE_GUARANTEE_NUMBER { get { return this._CHEQUE_GUARANTEE_NUMBER; } set { this._CHEQUE_GUARANTEE_NUMBER = value; } } public string CREATED_BY { get { return this._CREATED_BY; } set { this._CREATED_BY = value; } } public string CREATED_DATE { get { return this._CREATED_DATE; } set { this._CREATED_DATE = value; } } public string REFERENCE { get { return this._REFERENCE; } set { this._REFERENCE = value; } } public string REFERENCE_DESCRIPTION { get { return this._REFERENCE_DESCRIPTION; } set { this._REFERENCE_DESCRIPTION = value; } } public string EXTENDED_REFERENCE { get { return this._EXTENDED_REFERENCE; } set { this._EXTENDED_REFERENCE = value; } } public string LOAD_DATE { get { return this._LOAD_DATE; } set { this._LOAD_DATE = value; } } public string AGREEMENT_PID { get { return this._AGREEMENT_PID; } set { this._AGREEMENT_PID = value; } } public string COUNTERPARTY_AGREEMENT_ID { get { return this._COUNTERPARTY_AGREEMENT_ID; } set { this._COUNTERPARTY_AGREEMENT_ID = value; } } public string COUNTERPARTY_AGREEMENT_PID { get { return this._COUNTERPARTY_AGREEMENT_PID; } set { this._COUNTERPARTY_AGREEMENT_PID = value; } } public string COUNTERPARTY_REFERENCE { get { return this._COUNTERPARTY_REFERENCE; } set { this._COUNTERPARTY_REFERENCE = value; } } public string OPERATION_REFERENCE { get { return this._OPERATION_REFERENCE; } set { this._OPERATION_REFERENCE = value; } } public string EXTERNAL_OPERATION_REFERENCE { get { return this._EXTERNAL_OPERATION_REFERENCE; } set { this._EXTERNAL_OPERATION_REFERENCE = value; } } public string TRANSACTION_REFERENCE { get { return this._TRANSACTION_REFERENCE; } set { this._TRANSACTION_REFERENCE = value; } } public string ORDERER_ID { get { return this._ORDERER_ID; } set { this._ORDERER_ID = value; } } public string ORDERER_NAME { get { return this._ORDERER_NAME; } set { this._ORDERER_NAME = value; } } public string BENEFICIARY_ID { get { return this._BENEFICIARY_ID; } set { this._BENEFICIARY_ID = value; } } public string BENEFICIARY_NAME { get { return this._BENEFICIARY_NAME; } set { this._BENEFICIARY_NAME = value; } } public string BATCH_REFERENCE { get { return this._BATCH_REFERENCE; } set { this._BATCH_REFERENCE = value; } } public string MERCHANT_NAME { get { return this._MERCHANT_NAME; } set { this._MERCHANT_NAME = value; } } public string CARD_ID { get { return this._CARD_ID; } set { this._CARD_ID = value; } } public string ORDERER_CROSSRATE { get { return this._ORDERER_CROSSRATE; } set { this._ORDERER_CROSSRATE = value; } } public string ORDERER_EXCHANGERATE { get { return this._ORDERER_EXCHANGERATE; } set { this._ORDERER_EXCHANGERATE = value; } } public string BENEFICIARY_CROSSRATE { get { return this._BENEFICIARY_CROSSRATE; } set { this._BENEFICIARY_CROSSRATE = value; } } public string BENEFICIARY_EXCHANGERATE { get { return this._BENEFICIARY_EXCHANGERATE; } set { this._BENEFICIARY_EXCHANGERATE = value; } } public string CARD_NUMBER_MASKED { get { return this._CARD_NUMBER_MASKED; } set { this._CARD_NUMBER_MASKED = value; } } public string EXTERNAL_USER { get { return this._EXTERNAL_USER; } set { this._EXTERNAL_USER = value; } } public string PAYMENT_PURPOSE_CODE { get { return this._PAYMENT_PURPOSE_CODE; } set { this._PAYMENT_PURPOSE_CODE = value; } } public string OPERATION_TYPE { get { return this._OPERATION_TYPE; } set { this._OPERATION_TYPE = value; } } public string TELLER_ID { get { return this._TELLER_ID; } set { this._TELLER_ID = value; } } public string ENTITY { get { return this._ENTITY; } set { this._ENTITY = value; } } public string STANDARD_DESCRIPTION { get { return this._STANDARD_DESCRIPTION; } set { this._STANDARD_DESCRIPTION = value; } } public string CHANNEL_CODE { get { return this._CHANNEL_CODE; } set { this._CHANNEL_CODE = value; } } public string GT_RECORD_MODIFICATION_TIME { get { return this._GT_RECORD_MODIFICATION_TIME; } set { this._GT_RECORD_MODIFICATION_TIME = value; } } public virtual object Get(int fieldPos) { switch (fieldPos) { case 0: return this.EVENT_ID; case 1: return this.YEAR; case 2: return this.DATA_OWNER; case 3: return this.BANK; case 4: return this.AGREEMENT_ID; case 5: return this.ENTRY_DATE; case 6: return this.VALUE_DATE; case 7: return this.AMOUNT; case 8: return this.BALANCE; case 9: return this.CURRENCY_CODE; case 10: return this.LCY_AMOUNT; case 11: return this.TRANSACTION_BANK; case 12: return this.TRANSACTION_CODE; case 13: return this.BATCH_NUMBER; case 14: return this.REFERENCE_NUMBER; case 15: return this.CATEGORY_CODE; case 16: return this.CATEGORY; case 17: return this.OWNER_ID; case 18: return this.EXTERNAL_REFERENCE; case 19: return this.EVENT_SOURCE_CODE; case 20: return this.PAYMENT_TYPE; case 21: return this.TRANSACTION_SEQUENCE_NUMBER; case 22: return this.EVENT_GROUP_ID; case 23: return this.DUE_DATE; case 24: return this.COUNTERPARTY_ID; case 25: return this.IS_HANDLING_FEE; case 26: return this.VOID_CODE; case 27: return this.VOID_CODE_DATE; case 28: return this.BOOKING_DATE; case 29: return this.ATM_CODE; case 30: return this.MERCHANT_AGREEMENT_NUMBER; case 31: return this.CHEQUE_GUARANTEE_NUMBER; case 32: return this.CREATED_BY; case 33: return this.CREATED_DATE; case 34: return this.REFERENCE; case 35: return this.REFERENCE_DESCRIPTION; case 36: return this.EXTENDED_REFERENCE; case 37: return this.LOAD_DATE; case 38: return this.AGREEMENT_PID; case 39: return this.COUNTERPARTY_AGREEMENT_ID; case 40: return this.COUNTERPARTY_AGREEMENT_PID; case 41: return this.COUNTERPARTY_REFERENCE; case 42: return this.OPERATION_REFERENCE; case 43: return this.EXTERNAL_OPERATION_REFERENCE; case 44: return this.TRANSACTION_REFERENCE; case 45: return this.ORDERER_ID; case 46: return this.ORDERER_NAME; case 47: return this.BENEFICIARY_ID; case 48: return this.BENEFICIARY_NAME; case 49: return this.BATCH_REFERENCE; case 50: return this.MERCHANT_NAME; case 51: return this.CARD_ID; case 52: return this.ORDERER_CROSSRATE; case 53: return this.ORDERER_EXCHANGERATE; case 54: return this.BENEFICIARY_CROSSRATE; case 55: return this.BENEFICIARY_EXCHANGERATE; case 56: return this.CARD_NUMBER_MASKED; case 57: return this.EXTERNAL_USER; case 58: return this.PAYMENT_PURPOSE_CODE; case 59: return this.OPERATION_TYPE; case 60: return this.TELLER_ID; case 61: return this.ENTITY; case 62: return this.STANDARD_DESCRIPTION; case 63: return this.CHANNEL_CODE; case 64: return this.GT_RECORD_MODIFICATION_TIME; default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Get()"); }; } public virtual void Put(int fieldPos, object fieldValue) { switch (fieldPos) { case 0: this.EVENT_ID = (System.Int64)fieldValue; break; case 1: this.YEAR = (System.Int32)fieldValue; break; case 2: this.DATA_OWNER = (System.String)fieldValue; break; case 3: this.BANK = (System.String)fieldValue; break; case 4: this.AGREEMENT_ID = (System.String)fieldValue; break; case 5: this.ENTRY_DATE = (System.String)fieldValue; break; case 6: this.VALUE_DATE = (System.String)fieldValue; break; case 7: this.AMOUNT = (System.String)fieldValue; break; case 8: this.BALANCE = (System.String)fieldValue; break; case 9: this.CURRENCY_CODE = (System.String)fieldValue; break; case 10: this.LCY_AMOUNT = (System.String)fieldValue; break; case 11: this.TRANSACTION_BANK = (System.String)fieldValue; break; case 12: this.TRANSACTION_CODE = (System.String)fieldValue; break; case 13: this.BATCH_NUMBER = (System.String)fieldValue; break; case 14: this.REFERENCE_NUMBER = (System.String)fieldValue; break; case 15: this.CATEGORY_CODE = (System.String)fieldValue; break; case 16: this.CATEGORY = (System.String)fieldValue; break; case 17: this.OWNER_ID = (System.String)fieldValue; break; case 18: this.EXTERNAL_REFERENCE = (System.String)fieldValue; break; case 19: this.EVENT_SOURCE_CODE = (System.String)fieldValue; break; case 20: this.PAYMENT_TYPE = (System.String)fieldValue; break; case 21: this.TRANSACTION_SEQUENCE_NUMBER = (System.Nullable<int>)fieldValue; break; case 22: this.EVENT_GROUP_ID = (System.String)fieldValue; break; case 23: this.DUE_DATE = (System.String)fieldValue; break; case 24: this.COUNTERPARTY_ID = (System.String)fieldValue; break; case 25: this.IS_HANDLING_FEE = (System.String)fieldValue; break; case 26: this.VOID_CODE = (System.String)fieldValue; break; case 27: this.VOID_CODE_DATE = (System.String)fieldValue; break; case 28: this.BOOKING_DATE = (System.String)fieldValue; break; case 29: this.ATM_CODE = (System.Nullable<int>)fieldValue; break; case 30: this.MERCHANT_AGREEMENT_NUMBER = (System.Nullable<int>)fieldValue; break; case 31: this.CHEQUE_GUARANTEE_NUMBER = (System.Nullable<int>)fieldValue; break; case 32: this.CREATED_BY = (System.String)fieldValue; break; case 33: this.CREATED_DATE = (System.String)fieldValue; break; case 34: this.REFERENCE = (System.String)fieldValue; break; case 35: this.REFERENCE_DESCRIPTION = (System.String)fieldValue; break; case 36: this.EXTENDED_REFERENCE = (System.String)fieldValue; break; case 37: this.LOAD_DATE = (System.String)fieldValue; break; case 38: this.AGREEMENT_PID = (System.String)fieldValue; break; case 39: this.COUNTERPARTY_AGREEMENT_ID = (System.String)fieldValue; break; case 40: this.COUNTERPARTY_AGREEMENT_PID = (System.String)fieldValue; break; case 41: this.COUNTERPARTY_REFERENCE = (System.String)fieldValue; break; case 42: this.OPERATION_REFERENCE = (System.String)fieldValue; break; case 43: this.EXTERNAL_OPERATION_REFERENCE = (System.String)fieldValue; break; case 44: this.TRANSACTION_REFERENCE = (System.String)fieldValue; break; case 45: this.ORDERER_ID = (System.String)fieldValue; break; case 46: this.ORDERER_NAME = (System.String)fieldValue; break; case 47: this.BENEFICIARY_ID = (System.String)fieldValue; break; case 48: this.BENEFICIARY_NAME = (System.String)fieldValue; break; case 49: this.BATCH_REFERENCE = (System.String)fieldValue; break; case 50: this.MERCHANT_NAME = (System.String)fieldValue; break; case 51: this.CARD_ID = (System.String)fieldValue; break; case 52: this.ORDERER_CROSSRATE = (System.String)fieldValue; break; case 53: this.ORDERER_EXCHANGERATE = (System.String)fieldValue; break; case 54: this.BENEFICIARY_CROSSRATE = (System.String)fieldValue; break; case 55: this.BENEFICIARY_EXCHANGERATE = (System.String)fieldValue; break; case 56: this.CARD_NUMBER_MASKED = (System.String)fieldValue; break; case 57: this.EXTERNAL_USER = (System.String)fieldValue; break; case 58: this.PAYMENT_PURPOSE_CODE = (System.String)fieldValue; break; case 59: this.OPERATION_TYPE = (System.String)fieldValue; break; case 60: this.TELLER_ID = (System.String)fieldValue; break; case 61: this.ENTITY = (System.String)fieldValue; break; case 62: this.STANDARD_DESCRIPTION = (System.String)fieldValue; break; case 63: this.CHANNEL_CODE = (System.String)fieldValue; break; case 64: this.GT_RECORD_MODIFICATION_TIME = (System.String)fieldValue; break; default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()"); }; } } }
25.055833
144
0.627989
[ "MIT" ]
ReiknistofaBankanna/Kafka-FE-Consumer
kafka/FINANCIAL_EVENTS.cs
25,131
C#
using System; using System.ComponentModel.DataAnnotations; namespace SimpleBlogEngine.Models.Blog { public class Post { [Key] public int Id { get; set; } public int PostCategoryId { get; set; } public string UserId { get; set; } public string Title { get; set; } public string Image { get; set; } public string Content { get; set; } //public DateTime CreatedDate { get; set; } //public DateTime UpdatedDate { get; set; } public virtual PostCategory PostCategory { get; set; } public virtual ApplicationUser User { get; set; } } }
28.772727
62
0.612954
[ "Apache-2.0" ]
c-sharpcommunity/SimpleBlogEngine
SimpleBlogEngine/SimpleBlogEngine/Models/Blog/Post.cs
635
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace FlightORM.UI.Properties { /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if ((resourceMan == null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FlightORM.UI.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } }
43.634921
178
0.609676
[ "MIT" ]
404htm/FlightORM_Original
Source/FlightORM/FlightORM.UI/Properties/Resources.Designer.cs
2,751
C#
using System; using System.Linq; using System.Windows.Input; using System.Xml.Linq; namespace Editor { class SignSubSuper : EquationContainer { RowContainer mainEquation; StaticSign sign; RowContainer superEquation; RowContainer subEquation; double HGap { get { return FontSize * .06; } } double SubMinus = 0; double SuperMinus = 0; public SignSubSuper(EquationContainer parent, SignCompositeSymbol symbol, bool useUpright) : base(parent) { ActiveChild = mainEquation = new RowContainer(this); SubLevel++; subEquation = new RowContainer(this); superEquation = new RowContainer(this); subEquation.ApplySymbolGap = false; superEquation.ApplySymbolGap = false; sign = new StaticSign(this, symbol, useUpright); subEquation.FontFactor = SubFontFactor; superEquation.FontFactor = SubFontFactor; childEquations.AddRange(new EquationBase[] { mainEquation, sign, superEquation, subEquation }); } public override XElement Serialize() { XElement thisElement = new XElement(GetType().Name); XElement parameters = new XElement("parameters"); parameters.Add(new XElement(sign.Symbol.GetType().Name, sign.Symbol)); parameters.Add(new XElement(typeof(bool).FullName, sign.UseItalicIntegralSign)); thisElement.Add(parameters); thisElement.Add(mainEquation.Serialize()); thisElement.Add(subEquation.Serialize()); thisElement.Add(superEquation.Serialize()); return thisElement; } public override void DeSerialize(XElement xElement) { XElement[] elements = xElement.Elements(typeof(RowContainer).Name).ToArray(); mainEquation.DeSerialize(elements[0]); subEquation.DeSerialize(elements[1]); superEquation.DeSerialize(elements[2]); CalculateSize(); } protected override void CalculateWidth() { if (sign.Symbol.ToString().ToLower().Contains("integral")) { SubMinus = sign.OverhangTrailing; SuperMinus = sign.OverhangLeading + (sign.UseItalicIntegralSign ? FontSize * .1 : 0); } Width = sign.Width + Math.Max(subEquation.Width + SubMinus, superEquation.Width + SuperMinus) + mainEquation.Width + HGap; } protected override void CalculateHeight() { Height = Math.Max(sign.Height * .5 + subEquation.Height + superEquation.Height, mainEquation.Height); } public override double RefY { get { return Math.Max(superEquation.Height + sign.Height * .3, mainEquation.RefY); } } public override double Top { get { return base.Top; } set { base.Top = value; sign.MidY = MidY; mainEquation.MidY = MidY; subEquation.Top = sign.Bottom - sign.Height * .3; superEquation.Bottom = sign.Top + sign.Height * .2; } } public override bool ConsumeMouseClick(System.Windows.Point mousePoint) { if (mainEquation.Bounds.Contains(mousePoint)) { ActiveChild = mainEquation; } else if (superEquation.Bounds.Contains(mousePoint)) { ActiveChild = superEquation; } else { ActiveChild = subEquation; } return ActiveChild.ConsumeMouseClick(mousePoint); } public override double Left { get { return base.Left; } set { base.Left = value; sign.Left = value; subEquation.Left = sign.Right + SubMinus; superEquation.Left = sign.Right + SuperMinus; mainEquation.Left = Math.Max(subEquation.Right, superEquation.Right) + HGap; } } public override bool ConsumeKey(Key key) { if (ActiveChild.ConsumeKey(key)) { CalculateSize(); return true; } if (key == Key.Down) { if (ActiveChild == superEquation) { ActiveChild = mainEquation; return true; } else if (ActiveChild == mainEquation) { ActiveChild = subEquation; return true; } } else if (key == Key.Up) { if (ActiveChild == subEquation) { ActiveChild = mainEquation; return true; } else if (ActiveChild == mainEquation) { ActiveChild = superEquation; return true; } } return false; } } }
33.783439
134
0.517911
[ "MIT" ]
WoodsCheney/math-editor
Editor/equations/SignComposite/SignSubSuper.cs
5,306
C#
namespace WinAppDriver.UI { using System; using System.Drawing; using System.Windows; using System.Windows.Automation; internal class Element : IElement { private static ILogger logger = Logger.GetLogger("WinAppDriver"); private AutomationElement element; private IUIAutomation uiAutomation; private AutomationElement.AutomationElementInformation? infoCache; private Rect? rectCache; public Element(AutomationElement element, IUIAutomation uiAutomation) { this.element = element; this.uiAutomation = uiAutomation; } public AutomationElement AutomationElement { get { return this.element; } } public string UIFramework { get { // "Win32", "WinForm", "Silverlight", "DirectUI", "XAML", "WPF", etc. return this.Info.FrameworkId; } } public string ID { get { return this.Info.AutomationId; } } public IntPtr Handle { get { return new IntPtr(this.Info.NativeWindowHandle); } } public string TypeName { get { // ControlType.[TypeName] return this.Info.ControlType.ProgrammaticName.Substring(12); } } public string Name { get { return this.Info.Name; } } public string Value { get { object pattern = null; if (this.element.TryGetCurrentPattern(ValuePattern.Pattern, out pattern)) { return ((ValuePattern)pattern).Current.Value; } else { return string.Empty; } } set { object pattern = null; if (this.element.TryGetCurrentPattern(ValuePattern.Pattern, out pattern)) { ((ValuePattern)pattern).SetValue(value); } } } public string ClassName { get { return this.Info.ClassName; } } public string Help { get { return this.Info.HelpText; } } public bool Focusable { get { return this.Info.IsKeyboardFocusable; } } public bool Focused { get { return this.Info.HasKeyboardFocus; } } public bool Visible { get { return !this.Info.IsOffscreen; } } public bool Enabled { get { return this.Info.IsEnabled; } } public bool Selected { get { object pattern; if (this.element.TryGetCurrentPattern(TogglePattern.Pattern, out pattern)) { var state = ((TogglePattern)pattern).Current.ToggleState; return state != ToggleState.Off; } else { return false; } } } public bool Protected { get { return this.Info.IsPassword; } } public bool Scrollable { get { object pattern; return this.element.TryGetCurrentPattern(ScrollPattern.Pattern, out pattern); } } public Rectangle? Bounds { get { if (this.X.HasValue) { // X is just a representative var rect = this.Rect; return new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height); } else { return null; } } } public int? X { get { double x = this.Rect.X; return double.IsInfinity(x) ? (int?)null : (int)x; } } public int? Y { get { double y = this.Rect.Y; return double.IsInfinity(y) ? (int?)null : (int)y; } } public int? Width { get { double width = this.Rect.Width; return double.IsInfinity(width) ? (int?)null : (int)width; } } public int? Height { get { double height = this.Rect.Height; return double.IsInfinity(height) ? (int?)null : (int)height; } } private AutomationElement.AutomationElementInformation Info { get { if (this.infoCache == null) { this.infoCache = this.element.Current; } return this.infoCache.Value; } } private Rect Rect { get { if (this.rectCache == null) { this.rectCache = this.Info.BoundingRectangle; } return this.rectCache.Value; } } public override bool Equals(object obj) { if (obj is IElement) { return this.element.Equals(((IElement)obj).AutomationElement); } else { return false; } } public override int GetHashCode() { return this.element.GetHashCode(); } public void SetFocus() { if (this.Focusable && !this.Focused) { this.element.SetFocus(); } } public void ScrollIntoView() { var container = this.uiAutomation.GetScrollableContainer(this); if (container == null) { return; } var scrollbar = (ScrollPattern)container.AutomationElement.GetCurrentPattern( ScrollPattern.Pattern); if (!this.Bounds.HasValue) { // invisible elements may report double.Infinite as their x/y // coordinates and dimensions. try { scrollbar.SetScrollPercent(0, ScrollPattern.NoScroll); } catch (InvalidOperationException) { } try { scrollbar.SetScrollPercent(ScrollPattern.NoScroll, 0); } catch (InvalidOperationException) { } this.ResetCache(); } // to reveal top, bottom, left and right border respectively. bool up = false; bool down = true; bool left = false; bool right = true; if (this.Bounds.HasValue) { up = this.Y <= container.Y; down = this.Y + this.Height >= container.Y + container.Height; left = this.X <= container.X; right = this.X + this.Width >= container.X + container.Width; } if (left ^ right) { try { this.ScrollIntoView(container, scrollbar, true, right); } catch (InvalidOperationException) { } } if (up ^ down) { try { this.ScrollIntoView(container, scrollbar, false, down); } catch (InvalidOperationException) { } } } private void ResetCache() { this.infoCache = null; this.rectCache = null; } private void ScrollIntoView(IElement container, ScrollPattern scrollbar, bool horizontally, bool increasing) { // TODO To make scrolling more efficient, make big steps in the beginning. var step = increasing ? ScrollAmount.SmallIncrement : ScrollAmount.SmallDecrement; bool done = false; do { // dimensions of partially displayed elements only reveal visible parts. (XAML-based only) int? before = horizontally ? this.Width : this.Height; if (horizontally) { scrollbar.Scroll(step, ScrollAmount.NoAmount); } else { scrollbar.Scroll(ScrollAmount.NoAmount, step); } System.Threading.Thread.Sleep(20); // or the following readings could be stale this.ResetCache(); int? after = horizontally ? this.Width : this.Height; if (horizontally) { if (increasing) { done = this.X + this.Width <= container.X + container.Width; } else { done = this.X >= container.X; } } else { if (increasing) { done = this.Y + this.Height <= container.Y + container.Height; } else { done = this.Y >= container.Y; } } done = done && (after <= before); // leaving the element logger.Debug( "Done? {0}; element [{1},{2}][{3},{4}] in the scrollable container [{5},{6}][{7},{8}]", done, this.X, this.Y, this.Width, this.Height, container.X, container.Y, container.Width, container.Height); } while (!done); } } }
27.901299
129
0.414541
[ "MIT" ]
PeterDaveHello/winappdriver
src/WinAppDriver/UI/Element.cs
10,744
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using Ragnarok.Utility.AssemblyUtility; namespace Ragnarok.Update { /// <summary> /// This class handles all registry values which are used from sparkle to handle /// update intervalls. All values are stored in HKCU\Software\Vendor\AppName which /// will be read ot from the assembly information. All values are of the REG_SZ /// type, no matter what their "logical" type is. The following options are /// available: /// /// CheckForUpdate - bool - Whether NetSparkle should check for updates /// LastCheckTime - time_t - Time of last check /// SkipThisVersion - string - If the user skipped an update, then the version to ignore is stored here (e.g. "1.4.3") /// </summary> public sealed class Configuration { private IAssemblyAccessor accessor; /// <summary> /// アプリ名を取得します。 /// </summary> public string ApplicationName { get { return this.accessor.Title; } } /// <summary> /// 現在インストールされているアプリのバージョンを取得します。 /// </summary> public string InstalledVersion { get { return this.accessor.Version; } } public bool CheckForUpdate { get; private set; } public string SkipThisVersion { get; private set; } /// <summary> /// This method allows to skip a specific version /// </summary> /// <param name="version"></param> public void SetVersionToSkip(string version) { // set the check tiem SkipThisVersion = version; } /// <summary> /// コンストラクタ /// </summary> public Configuration(string assemblyName) : this(assemblyName, true) { } /// <summary> /// コンストラクタ /// </summary> public Configuration(string assemblyName, bool useReflectionBasedAssemblyAccessor) { try { CheckForUpdate = true; SkipThisVersion = string.Empty; // set some value from the binary this.accessor = new AssemblyAccessor( assemblyName, useReflectionBasedAssemblyAccessor); } catch (Exception) { // disable update checks when exception was called CheckForUpdate = false; } } } }
29.084211
124
0.52624
[ "MIT" ]
ebifrier/Ragnarok
Ragnarok/Update/Configuration.cs
2,873
C#
using System.Collections.Generic; using Toe.SPIRV.Spv; namespace Toe.SPIRV.Instructions { public partial class OpRayQueryInitializeKHR: Instruction { public OpRayQueryInitializeKHR() { } public override Op OpCode { get { return Op.OpRayQueryInitializeKHR; } } /// <summary> /// Returns true if instruction has IdResult field. /// </summary> public override bool HasResultId => false; /// <summary> /// Returns true if instruction has IdResultType field. /// </summary> public override bool HasResultType => false; public Spv.IdRef RayQuery { get; set; } public Spv.IdRef Accel { get; set; } public Spv.IdRef RayFlags { get; set; } public Spv.IdRef CullMask { get; set; } public Spv.IdRef RayOrigin { get; set; } public Spv.IdRef RayTMin { get; set; } public Spv.IdRef RayDirection { get; set; } public Spv.IdRef RayTMax { get; set; } /// <summary> /// Read complete instruction from the bytecode source. /// </summary> /// <param name="reader">Bytecode source.</param> /// <param name="end">Index of a next word right after this instruction.</param> public override void Parse(WordReader reader, uint end) { ParseOperands(reader, end); PostParse(reader, end); } /// <summary> /// Read instruction operands from the bytecode source. /// </summary> /// <param name="reader">Bytecode source.</param> /// <param name="end">Index of a next word right after this instruction.</param> public override void ParseOperands(WordReader reader, uint end) { RayQuery = Spv.IdRef.Parse(reader, end-reader.Position); Accel = Spv.IdRef.Parse(reader, end-reader.Position); RayFlags = Spv.IdRef.Parse(reader, end-reader.Position); CullMask = Spv.IdRef.Parse(reader, end-reader.Position); RayOrigin = Spv.IdRef.Parse(reader, end-reader.Position); RayTMin = Spv.IdRef.Parse(reader, end-reader.Position); RayDirection = Spv.IdRef.Parse(reader, end-reader.Position); RayTMax = Spv.IdRef.Parse(reader, end-reader.Position); } /// <summary> /// Process parsed instruction if required. /// </summary> /// <param name="reader">Bytecode source.</param> /// <param name="end">Index of a next word right after this instruction.</param> partial void PostParse(WordReader reader, uint end); /// <summary> /// Calculate number of words to fit complete instruction bytecode. /// </summary> /// <returns>Number of words in instruction bytecode.</returns> public override uint GetWordCount() { uint wordCount = 0; wordCount += RayQuery.GetWordCount(); wordCount += Accel.GetWordCount(); wordCount += RayFlags.GetWordCount(); wordCount += CullMask.GetWordCount(); wordCount += RayOrigin.GetWordCount(); wordCount += RayTMin.GetWordCount(); wordCount += RayDirection.GetWordCount(); wordCount += RayTMax.GetWordCount(); return wordCount; } /// <summary> /// Write instruction into bytecode stream. /// </summary> /// <param name="writer">Bytecode writer.</param> public override void Write(WordWriter writer) { WriteOperands(writer); WriteExtras(writer); } /// <summary> /// Write instruction operands into bytecode stream. /// </summary> /// <param name="writer">Bytecode writer.</param> public override void WriteOperands(WordWriter writer) { RayQuery.Write(writer); Accel.Write(writer); RayFlags.Write(writer); CullMask.Write(writer); RayOrigin.Write(writer); RayTMin.Write(writer); RayDirection.Write(writer); RayTMax.Write(writer); } partial void WriteExtras(WordWriter writer); public override string ToString() { return $"{OpCode} {RayQuery} {Accel} {RayFlags} {CullMask} {RayOrigin} {RayTMin} {RayDirection} {RayTMax}"; } } }
34.726563
119
0.582002
[ "MIT" ]
gleblebedev/Toe.SPIRV
src/Toe.SPIRV/Instructions/OpRayQueryInitializeKHR.cs
4,445
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using Stride.Core.Mathematics; using Stride.Engine; namespace Stride.Assets.Presentation.AssetEditors.GameEditor { public struct TransformationTRS { public Vector3 Position; public Quaternion Rotation; public Vector3 Scale; public TransformationTRS(TransformComponent transform) { Position = transform.Position; Rotation = transform.Rotation; Scale = transform.Scale; } } }
32.217391
163
0.693657
[ "MIT" ]
Alan-love/xenko
sources/editor/Stride.Assets.Presentation/AssetEditors/GameEditor/TransformationTRS.cs
741
C#
// Copyright 2016 Google Inc. 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 UnityEngine; using UnityEngine.Audio; using System.Collections; // GVR soundfield component that allows playback of first-order ambisonic recordings. The // audio sample should be in Ambix (ACN-SN3D) format. [AddComponentMenu("GoogleVR/Audio/GvrAudioSoundfield")] public class GvrAudioSoundfield : MonoBehaviour { /// Denotes whether the room effects should be bypassed. public bool bypassRoomEffects = true; /// Input gain in decibels. public float gainDb = 0.0f; /// Play source on awake. public bool playOnAwake = true; /// The default AudioClip to play. public AudioClip clip0102 { get { return soundfieldClip0102; } set { soundfieldClip0102 = value; if (audioSources != null && audioSources.Length > 0) { audioSources[0].clip = soundfieldClip0102; } } } [SerializeField] private AudioClip soundfieldClip0102 = null; public AudioClip clip0304 { get { return soundfieldClip0304; } set { soundfieldClip0304 = value; if (audioSources != null && audioSources.Length > 0) { audioSources[1].clip = soundfieldClip0304; } } } [SerializeField] private AudioClip soundfieldClip0304 = null; /// Is the clip playing right now (Read Only)? public bool isPlaying { get { if(audioSources != null && audioSources.Length > 0) { return audioSources[0].isPlaying; } return false; } } /// Is the audio clip looping? public bool loop { get { return soundfieldLoop; } set { soundfieldLoop = value; if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].loop = soundfieldLoop; } } } } [SerializeField] private bool soundfieldLoop = false; /// Un- / Mutes the soundfield. Mute sets the volume=0, Un-Mute restore the original volume. public bool mute { get { return soundfieldMute; } set { soundfieldMute = value; if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].mute = soundfieldMute; } } } } [SerializeField] private bool soundfieldMute = false; /// The pitch of the audio source. public float pitch { get { return soundfieldPitch; } set { soundfieldPitch = value; if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].pitch = soundfieldPitch; } } } } [SerializeField] [Range(-3.0f, 3.0f)] private float soundfieldPitch = 1.0f; /// Sets the priority of the soundfield. public int priority { get { return soundfieldPriority; } set { soundfieldPriority = value; if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].priority = soundfieldPriority; } } } } [SerializeField] [Range(0, 256)] private int soundfieldPriority = 32; /// Playback position in seconds. public float time { get { if(audioSources != null && audioSources.Length > 0) { return audioSources[0].time; } return 0.0f; } set { if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].time = value; } } } } /// Playback position in PCM samples. public int timeSamples { get { if(audioSources != null && audioSources.Length > 0) { return audioSources[0].timeSamples; } return 0; } set { if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].timeSamples = value; } } } } /// The volume of the audio source (0.0 to 1.0). public float volume { get { return soundfieldVolume; } set { soundfieldVolume = value; if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].volume = soundfieldVolume; } } } } [SerializeField] [Range(0.0f, 1.0f)] private float soundfieldVolume = 1.0f; // Unique source id. private int id = -1; // Unity audio sources per each soundfield channel set. private AudioSource[] audioSources = null; // Denotes whether the source is currently paused or not. private bool isPaused = false; void Awake () { // Route the source output to |GvrAudioMixer|. AudioMixer mixer = (Resources.Load("GvrAudioMixer") as AudioMixer); if(mixer == null) { Debug.LogError("GVRAudioMixer could not be found in Resources. Make sure that the GVR SDK" + "Unity package is imported properly."); return; } audioSources = new AudioSource[GvrAudio.numFoaChannels / 2]; for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { GameObject channelSetObject = new GameObject("Channel Set " + channelSet); channelSetObject.transform.parent = gameObject.transform; channelSetObject.hideFlags = HideFlags.HideAndDontSave; audioSources[channelSet] = channelSetObject.AddComponent<AudioSource>(); audioSources[channelSet].enabled = false; audioSources[channelSet].playOnAwake = false; audioSources[channelSet].bypassReverbZones = true; audioSources[channelSet].dopplerLevel = 0.0f; audioSources[channelSet].spatialBlend = 0.0f; audioSources[channelSet].outputAudioMixerGroup = mixer.FindMatchingGroups("Master")[0]; } OnValidate(); } void OnEnable () { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].enabled = true; } if (playOnAwake && !isPlaying && InitializeSoundfield()) { Play(); } } void Start () { if (playOnAwake && !isPlaying) { Play(); } } void OnDisable () { Stop(); for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].enabled = false; } } void OnDestroy () { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { Destroy(audioSources[channelSet].gameObject); } } void OnApplicationPause (bool pauseStatus) { if (pauseStatus) { Pause(); } else { UnPause(); } } void Update () { // Update soundfield. if (!isPlaying && !isPaused) { Stop(); } else { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].SetSpatializerFloat((int) GvrAudio.SpatializerData.Gain, GvrAudio.ConvertAmplitudeFromDb(gainDb)); } } GvrAudio.UpdateAudioSoundfield(id, this); } void OnValidate () { clip0102 = soundfieldClip0102; clip0304 = soundfieldClip0304; loop = soundfieldLoop; mute = soundfieldMute; pitch = soundfieldPitch; priority = soundfieldPriority; volume = soundfieldVolume; } /// Pauses playing the clip. public void Pause () { if (audioSources != null) { isPaused = true; for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].Pause(); } } } /// Plays the clip. public void Play () { double dspTime = AudioSettings.dspTime; PlayScheduled(dspTime); } /// Plays the clip with a delay specified in seconds. public void PlayDelayed (float delay) { double delayedDspTime = AudioSettings.dspTime + (double)delay; PlayScheduled(delayedDspTime); } /// Plays the clip at a specific time on the absolute time-line that AudioSettings.dspTime reads /// from. public void PlayScheduled (double time) { if (audioSources != null && InitializeSoundfield()) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].PlayScheduled(time); } isPaused = false; } else { Debug.LogWarning ("GVR Audio soundfield not initialized. Audio playback not supported " + "until after Awake() and OnEnable(). Try calling from Start() instead."); } } /// Stops playing the clip. public void Stop () { if(audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].Stop(); } ShutdownSoundfield(); isPaused = false; } } /// Unpauses the paused playback. public void UnPause () { if (audioSources != null) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { audioSources[channelSet].UnPause(); } isPaused = true; } } // Initializes the source. private bool InitializeSoundfield () { if (id < 0) { id = GvrAudio.CreateAudioSoundfield(); if (id >= 0) { GvrAudio.UpdateAudioSoundfield(id, this); for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { InitializeChannelSet(audioSources[channelSet], channelSet); } } } return id >= 0; } // Shuts down the source. private void ShutdownSoundfield () { if (id >= 0) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { ShutdownChannelSet(audioSources[channelSet], channelSet); } GvrAudio.DestroyAudioSource(id); id = -1; } } // Initializes given channel set of the soundfield. private void InitializeChannelSet(AudioSource source, int channelSet) { source.spatialize = true; source.SetSpatializerFloat((int) GvrAudio.SpatializerData.Type, (float) GvrAudio.SpatializerType.Soundfield); source.SetSpatializerFloat((int) GvrAudio.SpatializerData.NumChannels, (float) GvrAudio.numFoaChannels); source.SetSpatializerFloat((int) GvrAudio.SpatializerData.ChannelSet, (float) channelSet); source.SetSpatializerFloat((int) GvrAudio.SpatializerData.Gain, GvrAudio.ConvertAmplitudeFromDb(gainDb)); source.SetSpatializerFloat((int) GvrAudio.SpatializerData.ZeroOutput, 0.0f); // Soundfield id must be set after all the spatializer parameters, to ensure that the soundfield // is properly initialized before processing. source.SetSpatializerFloat((int) GvrAudio.SpatializerData.Id, (float) id); } // Shuts down given channel set of the soundfield. private void ShutdownChannelSet(AudioSource source, int channelSet) { source.SetSpatializerFloat((int) GvrAudio.SpatializerData.Id, -1.0f); // Ensure that the output is zeroed after shutdown. source.SetSpatializerFloat((int) GvrAudio.SpatializerData.ZeroOutput, 1.0f); source.spatialize = false; } }
30.97878
100
0.648514
[ "Apache-2.0" ]
CheToGuevara/VRCar
Assets/Plugins/GoogleVR/Scripts/Audio/GvrAudioSoundfield.cs
11,679
C#
using System; using System.Collections.Generic; using System.Text; using TitanCore.Net.Packets.Client; namespace World.Net.Handling { public class EscapeHandler : ClientPacketHandler<TnEscape> { public override void Handle(TnEscape packet, Client connection) { connection.Nexus(); } } }
21.0625
71
0.682493
[ "MIT" ]
steele123/Trials-Of-Titan
Server/Project-Titan/World/Net/Handling/EscapeHandler.cs
339
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ // **NOTE** This file was generated by a tool and any changes will be overwritten. // <auto-generated/> // Template Source: Templates\CSharp\Model\EntityType.cs.tt namespace Microsoft.Graph { using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; using Newtonsoft.Json; /// <summary> /// The type Android Work Profile Compliance Policy. /// </summary> [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial class AndroidWorkProfileCompliancePolicy : DeviceCompliancePolicy { ///<summary> /// The AndroidWorkProfileCompliancePolicy constructor ///</summary> public AndroidWorkProfileCompliancePolicy() { this.ODataType = "microsoft.graph.androidWorkProfileCompliancePolicy"; } /// <summary> /// Gets or sets password required. /// Require a password to unlock device. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordRequired", Required = Newtonsoft.Json.Required.Default)] public bool? PasswordRequired { get; set; } /// <summary> /// Gets or sets password minimum length. /// Minimum password length. Valid values 4 to 16 /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordMinimumLength", Required = Newtonsoft.Json.Required.Default)] public Int32? PasswordMinimumLength { get; set; } /// <summary> /// Gets or sets password required type. /// Type of characters in password. Possible values are: deviceDefault, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, numeric, numericComplex, any. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordRequiredType", Required = Newtonsoft.Json.Required.Default)] public AndroidRequiredPasswordType? PasswordRequiredType { get; set; } /// <summary> /// Gets or sets password minutes of inactivity before lock. /// Minutes of inactivity before a password is required. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordMinutesOfInactivityBeforeLock", Required = Newtonsoft.Json.Required.Default)] public Int32? PasswordMinutesOfInactivityBeforeLock { get; set; } /// <summary> /// Gets or sets password expiration days. /// Number of days before the password expires. Valid values 1 to 365 /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordExpirationDays", Required = Newtonsoft.Json.Required.Default)] public Int32? PasswordExpirationDays { get; set; } /// <summary> /// Gets or sets password previous password block count. /// Number of previous passwords to block. Valid values 1 to 24 /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordPreviousPasswordBlockCount", Required = Newtonsoft.Json.Required.Default)] public Int32? PasswordPreviousPasswordBlockCount { get; set; } /// <summary> /// Gets or sets password sign in failure count before factory reset. /// Number of sign-in failures allowed before factory reset. Valid values 1 to 16 /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordSignInFailureCountBeforeFactoryReset", Required = Newtonsoft.Json.Required.Default)] public Int32? PasswordSignInFailureCountBeforeFactoryReset { get; set; } /// <summary> /// Gets or sets security prevent install apps from unknown sources. /// Require that devices disallow installation of apps from unknown sources. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityPreventInstallAppsFromUnknownSources", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityPreventInstallAppsFromUnknownSources { get; set; } /// <summary> /// Gets or sets security disable usb debugging. /// Disable USB debugging on Android devices. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityDisableUsbDebugging", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityDisableUsbDebugging { get; set; } /// <summary> /// Gets or sets security require verify apps. /// Require the Android Verify apps feature is turned on. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityRequireVerifyApps", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityRequireVerifyApps { get; set; } /// <summary> /// Gets or sets device threat protection enabled. /// Require that devices have enabled device threat protection. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "deviceThreatProtectionEnabled", Required = Newtonsoft.Json.Required.Default)] public bool? DeviceThreatProtectionEnabled { get; set; } /// <summary> /// Gets or sets device threat protection required security level. /// Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "deviceThreatProtectionRequiredSecurityLevel", Required = Newtonsoft.Json.Required.Default)] public DeviceThreatProtectionLevel? DeviceThreatProtectionRequiredSecurityLevel { get; set; } /// <summary> /// Gets or sets advanced threat protection required security level. /// MDATP Require Mobile Threat Protection minimum risk level to report noncompliance. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "advancedThreatProtectionRequiredSecurityLevel", Required = Newtonsoft.Json.Required.Default)] public DeviceThreatProtectionLevel? AdvancedThreatProtectionRequiredSecurityLevel { get; set; } /// <summary> /// Gets or sets security block jailbroken devices. /// Devices must not be jailbroken or rooted. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityBlockJailbrokenDevices", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityBlockJailbrokenDevices { get; set; } /// <summary> /// Gets or sets os minimum version. /// Minimum Android version. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "osMinimumVersion", Required = Newtonsoft.Json.Required.Default)] public string OsMinimumVersion { get; set; } /// <summary> /// Gets or sets os maximum version. /// Maximum Android version. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "osMaximumVersion", Required = Newtonsoft.Json.Required.Default)] public string OsMaximumVersion { get; set; } /// <summary> /// Gets or sets min android security patch level. /// Minimum Android security patch level. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "minAndroidSecurityPatchLevel", Required = Newtonsoft.Json.Required.Default)] public string MinAndroidSecurityPatchLevel { get; set; } /// <summary> /// Gets or sets storage require encryption. /// Require encryption on Android devices. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "storageRequireEncryption", Required = Newtonsoft.Json.Required.Default)] public bool? StorageRequireEncryption { get; set; } /// <summary> /// Gets or sets security require safety net attestation basic integrity. /// Require the device to pass the SafetyNet basic integrity check. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityRequireSafetyNetAttestationBasicIntegrity", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityRequireSafetyNetAttestationBasicIntegrity { get; set; } /// <summary> /// Gets or sets security require safety net attestation certified device. /// Require the device to pass the SafetyNet certified device check. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityRequireSafetyNetAttestationCertifiedDevice", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityRequireSafetyNetAttestationCertifiedDevice { get; set; } /// <summary> /// Gets or sets security require google play services. /// Require Google Play Services to be installed and enabled on the device. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityRequireGooglePlayServices", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityRequireGooglePlayServices { get; set; } /// <summary> /// Gets or sets security require up to date security providers. /// Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityRequireUpToDateSecurityProviders", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityRequireUpToDateSecurityProviders { get; set; } /// <summary> /// Gets or sets security require company portal app integrity. /// Require the device to pass the Company Portal client app runtime integrity check. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "securityRequireCompanyPortalAppIntegrity", Required = Newtonsoft.Json.Required.Default)] public bool? SecurityRequireCompanyPortalAppIntegrity { get; set; } } }
55.944162
182
0.682334
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/AndroidWorkProfileCompliancePolicy.cs
11,021
C#
using System; using System.Collections; using System.Collections.Generic; using Gtk; using System.Diagnostics; using Pango; public partial class MainWindow: Gtk.Window { Process roscore = new Process(); Process usb = new Process(); Process image = new Process(); Process uvc = new Process(); Process record = new Process(); Process gps = new Process(); List<Process> processes = new List<Process> (); List<ToggleButton> buttons = new List<ToggleButton> (); FontDescription font = new FontDescription(); List<int> processIds = new List<int>(); public MainWindow (): base (Gtk.WindowType.Toplevel) { Build (); GLib.Timeout.Add (1000, CheckWorkingTimeoutHandler); processes.AddRange (new Process[] { roscore, usb, image, record, gps }); buttons.AddRange (new ToggleButton[] { buttonRoscore, buttonUsb, buttonImage, buttonRecord, buttonGps }); SetButtonColors (); } protected bool CheckWorkingTimeoutHandler() { RefreshButtons (); return true; } void SetButtonColors () { foreach (Button button in buttons) { SetButtonColors (button); } SetButtonColors (buttonUvc); SetButtonColors (buttonCloseAll); SetButtonColors (buttonExit); } void SetButtonColors (Button button) { button.ModifyBg (StateType.Normal, new Gdk.Color (220, 220, 220)); button.ModifyBg (StateType.Prelight, new Gdk.Color (160, 160, 180)); button.ModifyBg (StateType.Active, new Gdk.Color (160, 160, 160)); } void SetSelectedButtonColors (Button button) { button.ModifyBg (StateType.Active, new Gdk.Color (220, 220, 220)); button.ModifyBg (StateType.Prelight, new Gdk.Color (160, 160, 180)); button.ModifyBg (StateType.Normal, new Gdk.Color (160, 160, 160)); } void CloseAllProcesses () { Process kill = new Process (); kill.EnableRaisingEvents = true; kill.StartInfo.FileName = "/usr/bin/bash_kill"; kill.Start(); try { kill.WaitForExit (2000); } catch { } foreach (ToggleButton button in buttons) { button.Active = false; } foreach (Process proc in processes) { if (ProcessHasStarted (proc) && !proc.HasExited) { try { proc.Kill (); } catch { } } } Process[] p = Process.GetProcesses (); foreach (Process proc in p) { try { string name = proc.ProcessName; if (name.Contains ("bash_roscore") || name.Contains ("bash_usb") || name.Contains ("bash_uvc") || name.Contains ("bash_left") || name.Contains ("bash_record") || name.Contains ("bash_gps")) { proc.Kill (); } } catch { } try { if (processIds.Contains(proc.Id)) { proc.Kill (); } } catch { } } } void RefreshButtons () { int i = 0; foreach (Process proc in processes) { if (ProcessHasStarted (proc) && !proc.HasExited && buttons [i] != null) { SetSelectedButtonColors (buttons [i]); //buttons [i].Active = true; } else { SetButtonColors (buttons [i]); //buttons [i].Active = false; } i++; } } void AddProcessId (Process proc) { try { processIds.Add(proc.Id); } catch { } } protected bool ProcessHasStarted(Process proc) { if (proc == null) { return false; } try { bool h = proc.HasExited; } catch (InvalidOperationException ex) { if (ex.Message.Contains ("Process has not been started")) { return false; } } return true; } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { CloseAllProcesses (); Application.Quit (); a.RetVal = true; } protected void buttonExitClicked (object sender, EventArgs e) { CloseAllProcesses (); Application.Quit (); } protected void buttonCloseAllClicked (object sender, EventArgs e) { CloseAllProcesses (); RefreshButtons (); } protected void buttonRoscoreClicked (object sender, EventArgs e) { if (buttonRoscore.Active) { roscore.EnableRaisingEvents = true; roscore.StartInfo.FileName = "/usr/bin/bash_roscore"; roscore.Start(); AddProcessId (roscore); //roscore.StartInfo.RedirectStandardOutput = true; //roscore.StartInfo.Arguments = "-l | grep NTFS"; //roscore.WaitForExit(); //string data = roscore.StandardOutput.ReadToEnd(); //Console.WriteLine( data + " was returned" ); } } protected void buttonUsbClicked (object sender, EventArgs e) { if (buttonUsb.Active) { usb.EnableRaisingEvents = true; usb.StartInfo.FileName = "/usr/bin/bash_usb"; usb.Start (); AddProcessId (usb); } } protected void buttonImageClicked (object sender, EventArgs e) { if (buttonImage.Active) { image.EnableRaisingEvents = true; image.StartInfo.FileName = "/usr/bin/bash_left"; image.Start (); AddProcessId (image); } } protected void buttonUvcClicked (object sender, EventArgs e) { uvc.EnableRaisingEvents = true; uvc.StartInfo.FileName = "/usr/bin/bash_uvc"; uvc.Start (); AddProcessId (uvc); } protected void buttonRecordClicked (object sender, EventArgs e) { if (buttonRecord.Active) { record.EnableRaisingEvents = true; record.StartInfo.FileName = "/usr/bin/bash_record"; record.Start (); AddProcessId (record); } } protected void buttonGpsClicked (object sender, EventArgs e) { if (buttonGps.Active) { gps.EnableRaisingEvents = true; gps.StartInfo.FileName = "/usr/bin/bash_gps"; gps.Start (); AddProcessId (gps); } } }
24.063348
107
0.671681
[ "Apache-2.0" ]
turgaysenlet/carry
car_gui/Car/Car/MainWindow.cs
5,318
C#
using Microsoft.CodeAnalysis.CodeFixes; using MappingGenerator.Test.Splatting; using Microsoft.CodeAnalysis; using NUnit.Framework; using RoslynTestKit; namespace MappingGenerator.Test { public class SplattingTests : CodeFixTestFixture { [Test] public void should_be_able_to_generate_splatting_for_method_invocation_with_regular_parameters() { TestCodeFix(SplattingTestCases._001_SplattingInMethodInvocation, SplattingTestCases._001_SplattingInMethodInvocation_FIXED, SplattingCodeFixProvider.CS7036, 0); } [Test] public void should_be_able_to_generate_splatting_for_method_invocation_with_named_parameters() { TestCodeFix(SplattingTestCases._001_SplattingInMethodInvocation, SplattingTestCases._001_SplattingInMethodInvocationWithNamedParameters_FIXED, SplattingCodeFixProvider.CS7036, 1); } [Test] public void should_be_able_to_generate_splatting_for_constructor_invocation_with_regular_parameters() { TestCodeFix(SplattingTestCases._002_SplattingInConstructorInvocation, SplattingTestCases._002_SplattingInConstructorInvocation_FIXED, SplattingCodeFixProvider.CS7036, 0); } [Test] public void should_be_able_to_generate_splatting_for_constructor_invocation_with_named_parameters() { TestCodeFix(SplattingTestCases._002_SplattingInConstructorInvocation, SplattingTestCases._002_SplattingInConstructorInvocationWithNamedParameters_FIXED, SplattingCodeFixProvider.CS7036, 1); } [Test] public void should_be_able_to_generate_splatting_for_best_method_overload() { TestCodeFix(SplattingTestCases._003_SplattingWithBestOverloadMatch, SplattingTestCases._003_SplattingWithBestOverloadMatch_FIXED, SplattingCodeFixProvider.CS1501, 1); } protected override string LanguageName => LanguageNames.CSharp; protected override CodeFixProvider CreateProvider() { return new SplattingCodeFixProvider(); } } }
44.25
202
0.756121
[ "MIT" ]
FAAAAT/MappingGenerator
MappingGenerator/MappingGenerator/MappingGenerator.Test/Splatting/SplattingTests.cs
2,077
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace GeneratedTests { using System; using System.Collections.Generic; using System.Text; using System.Reflection; using Microsoft.SpecExplorer.Runtime.Testing; using Microsoft.Protocols.TestTools; using Microsoft.VisualStudio.TestTools.UnitTesting; [System.CodeDom.Compiler.GeneratedCodeAttribute("Spec Explorer", "3.2.2498.0")] [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel : PtfTestClassBase { public RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel() { this.SetSwitch("ProceedControlTimeout", "100"); this.SetSwitch("QuiescenceTimeout", "10000000"); } #region Expect Delegates public delegate void ServerSetupResponseDelegate1(int totalBytesWritten, bool isSupportInfoLevelPassthru, bool isSupportNtSmb, bool isRapServerActive, bool isSupportResumeKey, bool isSupportCopyChunk); public delegate void NegotiateResponseDelegate1(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, List<Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus); public delegate void ErrorResponseDelegate1(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus); public delegate void SessionSetupResponseDelegate1(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus); public delegate void ErrorTreeConnectResponseDelegate1(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented); public delegate void TreeConnectResponseDelegate1(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature); public delegate void SmbConnectionResponseDelegate1(Microsoft.Protocol.TestSuites.Smb.Platform clientPlatform, Microsoft.Protocol.TestSuites.Smb.Platform sutPlatform); public delegate void CreateRequestDelegate1(); public delegate void CreateResponseDelegate1(int messageId, int sessionId, int treeId, int fid, bool isSigned, List<Microsoft.Protocol.TestSuites.Smb.CreateAction> createAction, bool isFileIdZero, bool isVolumeGuidZero, bool isDirectoryZero, bool isByteCountZero, bool isNoStream, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus); public delegate void Trans2QueryFsInfoResponseDelegate1(int messageId, int sessionId, int treeId, bool isSigned, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus); #endregion #region Event Metadata static System.Reflection.EventInfo SmbConnectionResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "SmbConnectionResponse"); static System.Reflection.EventInfo ServerSetupResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.IServerSetupAdapter), "ServerSetupResponse"); static System.Reflection.EventInfo NegotiateResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "NegotiateResponse"); static System.Reflection.EventInfo ErrorResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "ErrorResponse"); static System.Reflection.EventInfo SessionSetupResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "SessionSetupResponse"); static System.Reflection.EventInfo ErrorTreeConnectResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "ErrorTreeConnectResponse"); static System.Reflection.EventInfo TreeConnectResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "TreeConnectResponse"); static System.Reflection.MethodBase CreateRequestInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "CreateRequest", typeof(int), typeof(int), typeof(int), typeof(int), typeof(Microsoft.Protocol.TestSuites.Smb.CreateDisposition), typeof(int), typeof(string), typeof(Microsoft.Protocol.TestSuites.Smb.ShareType), typeof(bool), typeof(bool), typeof(bool), typeof(bool)); static System.Reflection.EventInfo CreateResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "CreateResponse"); static System.Reflection.EventInfo Trans2QueryFsInfoResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter), "Trans2QueryFsInfoResponse"); #endregion #region Adapter Instances private Microsoft.Protocol.TestSuites.Smb.ISmbAdapter ISmbAdapterInstance; private Microsoft.Protocol.TestSuites.Smb.IServerSetupAdapter IServerSetupAdapterInstance; #endregion #region Class Initialization and Cleanup [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] public static void ClassInitialize(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext context) { PtfTestClassBase.Initialize(context); } [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] public static void ClassCleanup() { PtfTestClassBase.Cleanup(); } #endregion #region Test Initialization and Cleanup protected override void TestInitialize() { this.InitializeTestManager(); this.ISmbAdapterInstance = ((Microsoft.Protocol.TestSuites.Smb.ISmbAdapter)(this.Manager.GetAdapter(typeof(Microsoft.Protocol.TestSuites.Smb.ISmbAdapter)))); this.IServerSetupAdapterInstance = ((Microsoft.Protocol.TestSuites.Smb.IServerSetupAdapter)(this.Manager.GetAdapter(typeof(Microsoft.Protocol.TestSuites.Smb.IServerSetupAdapter)))); this.Manager.Subscribe(ServerSetupResponseInfo, this.IServerSetupAdapterInstance); this.Manager.Subscribe(CreateResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(ErrorResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(ErrorTreeConnectResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(NegotiateResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(SessionSetupResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(SmbConnectionResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(Trans2QueryFsInfoResponseInfo, this.ISmbAdapterInstance); this.Manager.Subscribe(TreeConnectResponseInfo, this.ISmbAdapterInstance); } protected override void TestCleanup() { base.TestCleanup(); this.CleanupTestManager(); } #endregion #region Test Starting in S0 [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(), Microsoft.VisualStudio.TestTools.UnitTesting.TestCategory("Win7_Win2K8")] public virtual void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0() { this.Manager.BeginTest("RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0"); this.Manager.Comment("reaching state \'S0\'"); this.Manager.Comment("executing step \'call SmbConnectionRequest()\'"); this.ISmbAdapterInstance.SmbConnectionRequest(); this.Manager.Comment("reaching state \'S1\'"); this.Manager.Comment("checking step \'return SmbConnectionRequest\'"); this.Manager.Comment("reaching state \'S4\'"); if ((this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SmbConnectionResponseInfo, null, new SmbConnectionResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0SmbConnectionResponseChecker))) != -1)) { this.Manager.Comment("reaching state \'S6\'"); this.Manager.Comment("executing step \'call ServerSetup(Ntfs,Enabled,True,True,False)\'"); this.IServerSetupAdapterInstance.ServerSetup(((Microsoft.Protocol.TestSuites.Smb.FileSystemType)(0)), ((Microsoft.Protocol.TestSuites.Smb.SignState)(1)), true, true, false); this.Manager.Comment("reaching state \'S8\'"); this.Manager.Comment("checking step \'return ServerSetup\'"); this.Manager.Comment("reaching state \'S10\'"); if ((this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ServerSetupResponseInfo, null, new ServerSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ServerSetupResponseChecker))) != -1)) { this.Manager.Comment("reaching state \'S12\'"); bool temp0; this.Manager.Comment("executing step \'call CreatePipeAndMailslot({\"Pipe1\"},{\"Mailslot1\"},out _)\'"); this.IServerSetupAdapterInstance.CreatePipeAndMailslot(new List<string> { "Pipe1" }, new List<string> { "Mailslot1" }, out temp0); this.Manager.Comment("reaching state \'S14\'"); this.Manager.Comment("checking step \'return CreatePipeAndMailslot/[out True]\'"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, temp0, "createPipeStatus of CreatePipeAndMailslot, state S14"); this.Manager.Comment("reaching state \'S16\'"); this.Manager.Comment("executing step \'call NegotiateRequest(1,True,Required,[PcNet1,LanMan10,Wfw10,LanM" + "an12,LanMan21,NtLanMan])\'"); this.ISmbAdapterInstance.NegotiateRequest(1, true, Microsoft.Protocol.TestSuites.Smb.SignState.Required, new List<Microsoft.Protocol.TestSuites.Smb.Dialect> { Microsoft.Protocol.TestSuites.Smb.Dialect.PcNet1, Microsoft.Protocol.TestSuites.Smb.Dialect.LanMan10, Microsoft.Protocol.TestSuites.Smb.Dialect.Wfw10, Microsoft.Protocol.TestSuites.Smb.Dialect.LanMan12, Microsoft.Protocol.TestSuites.Smb.Dialect.LanMan21, Microsoft.Protocol.TestSuites.Smb.Dialect.NtLanMan }); this.Manager.Comment("reaching state \'S18\'"); this.Manager.Comment("checking step \'return NegotiateRequest\'"); this.Manager.Comment("reaching state \'S20\'"); if ((this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.NegotiateResponseInfo, null, new NegotiateResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0NegotiateResponseChecker))) != -1)) { this.Manager.Comment("reaching state \'S22\'"); this.Manager.Comment("executing step \'call SessionSetupRequest(Admin,2,0,0,True,{CapNtSmbs,CapExtendedS" + "ecurity},False,False,True)\'"); this.ISmbAdapterInstance.SessionSetupRequest(((Microsoft.Protocol.TestSuites.Smb.AccountType)(0)), 2, 0, 0, true, new List<Microsoft.Protocol.TestSuites.Smb.Capabilities> { Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapExtendedSecurity }, false, false, true); this.Manager.Checkpoint("MS-SMB_R8388"); this.Manager.Comment("reaching state \'S24\'"); this.Manager.Comment("checking step \'return SessionSetupRequest\'"); this.Manager.Comment("reaching state \'S26\'"); int temp4 = this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SessionSetupResponseInfo, null, new SessionSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0SessionSetupResponseChecker))); if ((temp4 == 0)) { this.Manager.Comment("reaching state \'S28\'"); goto label3; } if ((temp4 == 1)) { this.Manager.Comment("reaching state \'S29\'"); this.Manager.Comment("executing step \'call TreeConnectRequest(3,1,True,True,True,\"Share1\",Disk,True)\'"); this.ISmbAdapterInstance.TreeConnectRequest(3, 1, true, true, true, "Share1", ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), true); this.Manager.Comment("reaching state \'S32\'"); this.Manager.Comment("checking step \'return TreeConnectRequest\'"); this.Manager.Comment("reaching state \'S34\'"); int temp3 = this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker1)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker2)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker3)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker4)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker5)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.TreeConnectResponseInfo, null, new TreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0TreeConnectResponseChecker))); if ((temp3 == 0)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36(); goto label2; } if ((temp3 == 1)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36(); goto label2; } if ((temp3 == 2)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36(); goto label2; } if ((temp3 == 3)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36(); goto label2; } if ((temp3 == 4)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36(); goto label2; } if ((temp3 == 5)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36(); goto label2; } if ((temp3 == 6)) { this.Manager.Comment("reaching state \'S37\'"); this.Manager.Comment("executing step \'call CreateRequest(4,1,1,3,FileOpenIf,1,\"Test2.txt\",Disk,True,Fal" + "se,False,False)\'"); this.ISmbAdapterInstance.CreateRequest(4, 1, 1, 3, Microsoft.Protocol.TestSuites.Smb.CreateDisposition.FileOpenIf, 1, "Test2.txt", ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), true, false, false, false); this.Manager.AddReturn(CreateRequestInfo, null); RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS40(); goto label2; } this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker1)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker2)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker3)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker4)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker5)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.TreeConnectResponseInfo, null, new TreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0TreeConnectResponseChecker))); label2: ; goto label3; } this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SessionSetupResponseInfo, null, new SessionSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0SessionSetupResponseChecker))); label3: ; } else { this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.NegotiateResponseInfo, null, new NegotiateResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0NegotiateResponseChecker))); } } else { this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ServerSetupResponseInfo, null, new ServerSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ServerSetupResponseChecker))); } } else { this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SmbConnectionResponseInfo, null, new SmbConnectionResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0SmbConnectionResponseChecker))); } this.Manager.EndTest(); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0SmbConnectionResponseChecker(Microsoft.Protocol.TestSuites.Smb.Platform clientPlatform, Microsoft.Protocol.TestSuites.Smb.Platform sutPlatform) { this.Manager.Comment("checking step \'event SmbConnectionResponse(Win7,Win2K8)\'"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.Platform>(this.Manager, Microsoft.Protocol.TestSuites.Smb.Platform.Win7, clientPlatform, "clientPlatform of SmbConnectionResponse, state S4"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.Platform>(this.Manager, Microsoft.Protocol.TestSuites.Smb.Platform.Win2K8, sutPlatform, "sutPlatform of SmbConnectionResponse, state S4"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ServerSetupResponseChecker(int totalBytesWritten, bool isSupportInfoLevelPassthru, bool isSupportNtSmb, bool isRapServerActive, bool isSupportResumeKey, bool isSupportCopyChunk) { this.Manager.Comment("checking step \'event ServerSetupResponse(1,True,True,True,True,True)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, totalBytesWritten, "totalBytesWritten of ServerSetupResponse, state S10"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportInfoLevelPassthru, "isSupportInfoLevelPassthru of ServerSetupResponse, state S10"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportNtSmb, "isSupportNtSmb of ServerSetupResponse, state S10"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRapServerActive, "isRapServerActive of ServerSetupResponse, state S10"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportResumeKey, "isSupportResumeKey of ServerSetupResponse, state S10"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportCopyChunk, "isSupportCopyChunk of ServerSetupResponse, state S10"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0NegotiateResponseChecker(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, List<Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NegotiateResponse(1,False,True,5,{CapNtSmbs,CapExtendedSecur" + "ity,CapDfs,CapInfoLevelPassThru},Success)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, messageId, "messageId of NegotiateResponse, state S20"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isSignatureRequired, "isSignatureRequired of NegotiateResponse, state S20"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSignatureEnabled, "isSignatureEnabled of NegotiateResponse, state S20"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 5, dialectIndex, "dialectIndex of NegotiateResponse, state S20"); TestManagerHelpers.AssertNotNull(this.Manager, serverCapabilities, "serverCapabilities of NegotiateResponse, state S20"); CollectionAssert.AreEquivalent( new List<Microsoft.Protocol.TestSuites.Smb.Capabilities> { Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapExtendedSecurity, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapDfs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapInfoLevelPassThru }, serverCapabilities, "serverCapabilities of NegotiateResponse, state S20, field selection Rep"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NegotiateResponse, state S20"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R2308, MS-SMB_R4747"); throw; } this.Manager.Checkpoint("MS-SMB_R2308"); this.Manager.Checkpoint("MS-SMB_R4747"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(2,NetworkSessionExpired)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 2, messageId, "messageId of ErrorResponse, state S26"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorResponse, state S26"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R4732, MS-SMB_R4765"); throw; } this.Manager.Checkpoint("MS-SMB_R4732"); this.Manager.Checkpoint("MS-SMB_R4765"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0SessionSetupResponseChecker(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event SessionSetupResponse(2,1,1,True,False,Success)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 2, messageId, "messageId of SessionSetupResponse, state S26"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, sessionId, "sessionId of SessionSetupResponse, state S26"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, securitySignatureValue, "securitySignatureValue of SessionSetupResponse, state S26"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSigned, "isSigned of SessionSetupResponse, state S26"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isGuestAccount, "isGuestAccount of SessionSetupResponse, state S26"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of SessionSetupResponse, state S26"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R105555, MS-SMB_R8380, MS-SMB_R4143, MS-SMB_R" + "4784, MS-SMB_R2193, MS-SMB_R8390, MS-SMB_R2341"); throw; } this.Manager.Checkpoint("MS-SMB_R105555"); this.Manager.Checkpoint("MS-SMB_R8380"); this.Manager.Checkpoint("MS-SMB_R4143"); this.Manager.Checkpoint("MS-SMB_R4784"); this.Manager.Checkpoint("MS-SMB_R2193"); this.Manager.Checkpoint("MS-SMB_R8390"); this.Manager.Checkpoint("MS-SMB_R2341"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,NetworkSessionExpired,False)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S34"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS36() { this.Manager.Comment("reaching state \'S36\'"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker1(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,InvalidSmb,False)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.InvalidSmb, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S34"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker2(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,InvalidSmb,True)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.InvalidSmb, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S34"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R357, MS-SMB_R10357"); throw; } this.Manager.Checkpoint("MS-SMB_R357"); this.Manager.Checkpoint("MS-SMB_R10357"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker3(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,StatusBadNetWorkName,True)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.StatusBadNetWorkName, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S34"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R357, MS-SMB_R10357"); throw; } this.Manager.Checkpoint("MS-SMB_R357"); this.Manager.Checkpoint("MS-SMB_R10357"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker4(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,NetworkSessionExpired,True)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S34"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorTreeConnectResponseChecker5(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,StatusBadNetWorkName,False)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.StatusBadNetWorkName, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S34"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0TreeConnectResponseChecker(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature) { this.Manager.Comment("checking step \'event TreeConnectResponse(3,1,1,False,Disk,Success,True,False,True" + ")\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, sessionId, "sessionId of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, treeId, "treeId of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isSecuritySignatureZero, "isSecuritySignatureZero of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.ShareType>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), shareType, "shareType of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSigned, "isSigned of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isInDfs, "isInDfs of TreeConnectResponse, state S34"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportExtSignature, "isSupportExtSignature of TreeConnectResponse, state S34"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS40() { this.Manager.Comment("reaching state \'S40\'"); this.Manager.ExpectReturn(this.QuiescenceTimeout, true, new ExpectedReturn(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.CreateRequestInfo, null, new CreateRequestDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0CreateRequestChecker))); this.Manager.Comment("reaching state \'S41\'"); int temp2 = this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.CreateResponseInfo, null, new CreateResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0CreateResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker3)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker4))); if ((temp2 == 0)) { this.Manager.Comment("reaching state \'S42\'"); this.Manager.Comment("executing step \'call Trans2QueryFsInfoRequest(5,1,1,True,False,Invalid,False,0)\'"); this.ISmbAdapterInstance.Trans2QueryFsInfoRequest(5, 1, 1, true, false, Microsoft.Protocol.TestSuites.Smb.InformationLevel.Invalid, false, 0); this.Manager.Comment("reaching state \'S45\'"); this.Manager.Comment("checking step \'return Trans2QueryFsInfoRequest\'"); this.Manager.Comment("reaching state \'S47\'"); int temp1 = this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker1)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker2)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.Trans2QueryFsInfoResponseInfo, null, new Trans2QueryFsInfoResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0Trans2QueryFsInfoResponseChecker))); if ((temp1 == 0)) { this.Manager.Comment("reaching state \'S50\'"); goto label0; } if ((temp1 == 1)) { this.Manager.Comment("reaching state \'S51\'"); goto label0; } if ((temp1 == 2)) { this.Manager.Comment("reaching state \'S49\'"); goto label0; } this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker1)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker2)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.Trans2QueryFsInfoResponseInfo, null, new Trans2QueryFsInfoResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0Trans2QueryFsInfoResponseChecker))); label0: ; goto label1; } if ((temp2 == 1)) { this.Manager.Comment("reaching state \'S43\'"); this.Manager.Comment("executing step \'call SessionClose(1)\'"); this.ISmbAdapterInstance.SessionClose(1); this.Manager.Checkpoint("MS-SMB_R2299"); this.Manager.Comment("reaching state \'S46\'"); this.Manager.Comment("checking step \'return SessionClose\'"); this.Manager.Comment("reaching state \'S48\'"); goto label1; } if ((temp2 == 2)) { this.Manager.Comment("reaching state \'S44\'"); goto label1; } this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.CreateResponseInfo, null, new CreateResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0CreateResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker3)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker4))); label1: ; } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0CreateRequestChecker() { this.Manager.Comment("checking step \'return CreateRequest\'"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0CreateResponseChecker(int messageId, int sessionId, int treeId, int fid, bool isSigned, List<Microsoft.Protocol.TestSuites.Smb.CreateAction> createAction, bool isFileIdZero, bool isVolumeGuidZero, bool isDirectoryZero, bool isByteCountZero, bool isNoStream, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event CreateResponse(4,1,1,0,True,{FileCreated,FileDoesNotExist},T" + "rue,True,True,True,False,Success)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 4, messageId, "messageId of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, sessionId, "sessionId of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, treeId, "treeId of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 0, fid, "fid of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSigned, "isSigned of CreateResponse, state S41"); TestManagerHelpers.AssertNotNull(this.Manager, createAction, "createAction of CreateResponse, state S41"); CollectionAssert.AreEquivalent( new List<Microsoft.Protocol.TestSuites.Smb.CreateAction> { Microsoft.Protocol.TestSuites.Smb.CreateAction.FileCreated, Microsoft.Protocol.TestSuites.Smb.CreateAction.FileDoesNotExist }, createAction, "createAction of CreateResponse, state S41, field selection Rep"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isFileIdZero, "isFileIdZero of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isVolumeGuidZero, "isVolumeGuidZero of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isDirectoryZero, "isDirectoryZero of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isByteCountZero, "isByteCountZero of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isNoStream, "isNoStream of CreateResponse, state S41"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of CreateResponse, state S41"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R30081, MS-SMB_R9612, MS-SMB_R9614"); throw; } this.Manager.Checkpoint("MS-SMB_R30081"); this.Manager.Checkpoint("MS-SMB_R9612"); this.Manager.Checkpoint("MS-SMB_R9614"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker1(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(5,NetworkSessionExpired)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 5, messageId, "messageId of ErrorResponse, state S47"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorResponse, state S47"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker2(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(5,NotSupported)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 5, messageId, "messageId of ErrorResponse, state S47"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NotSupported, messageStatus, "messageStatus of ErrorResponse, state S47"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R8438"); throw; } this.Manager.Checkpoint("MS-SMB_R8438"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0Trans2QueryFsInfoResponseChecker(int messageId, int sessionId, int treeId, bool isSigned, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event Trans2QueryFsInfoResponse(5,1,1,True,Success)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 5, messageId, "messageId of Trans2QueryFsInfoResponse, state S47"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, sessionId, "sessionId of Trans2QueryFsInfoResponse, state S47"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, treeId, "treeId of Trans2QueryFsInfoResponse, state S47"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSigned, "isSigned of Trans2QueryFsInfoResponse, state S47"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of Trans2QueryFsInfoResponse, state S47"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R9291"); throw; } this.Manager.Checkpoint("MS-SMB_R9291"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker3(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(4,BadImpersonationLevel)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 4, messageId, "messageId of ErrorResponse, state S41"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.BadImpersonationLevel, messageStatus, "messageStatus of ErrorResponse, state S41"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS0ErrorResponseChecker4(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(4,NetworkSessionExpired)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 4, messageId, "messageId of ErrorResponse, state S41"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorResponse, state S41"); } #endregion #region Test Starting in S2 [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(), Microsoft.VisualStudio.TestTools.UnitTesting.TestCategory("Win7_Win2K8")] public virtual void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2() { this.Manager.BeginTest("RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2"); this.Manager.Comment("reaching state \'S2\'"); this.Manager.Comment("executing step \'call SmbConnectionRequest()\'"); this.ISmbAdapterInstance.SmbConnectionRequest(); this.Manager.Comment("reaching state \'S3\'"); this.Manager.Comment("checking step \'return SmbConnectionRequest\'"); this.Manager.Comment("reaching state \'S5\'"); if ((this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SmbConnectionResponseInfo, null, new SmbConnectionResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2SmbConnectionResponseChecker))) != -1)) { this.Manager.Comment("reaching state \'S7\'"); this.Manager.Comment("executing step \'call ServerSetup(Ntfs,Enabled,True,True,False)\'"); this.IServerSetupAdapterInstance.ServerSetup(((Microsoft.Protocol.TestSuites.Smb.FileSystemType)(0)), ((Microsoft.Protocol.TestSuites.Smb.SignState)(1)), true, true, false); this.Manager.Comment("reaching state \'S9\'"); this.Manager.Comment("checking step \'return ServerSetup\'"); this.Manager.Comment("reaching state \'S11\'"); if ((this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ServerSetupResponseInfo, null, new ServerSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ServerSetupResponseChecker))) != -1)) { this.Manager.Comment("reaching state \'S13\'"); bool temp5; this.Manager.Comment("executing step \'call CreatePipeAndMailslot({\"Pipe1\"},{\"Mailslot1\"},out _)\'"); this.IServerSetupAdapterInstance.CreatePipeAndMailslot(new List<string> { "Pipe1" }, new List<string> { "Mailslot1" }, out temp5); this.Manager.Comment("reaching state \'S15\'"); this.Manager.Comment("checking step \'return CreatePipeAndMailslot/[out True]\'"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, temp5, "createPipeStatus of CreatePipeAndMailslot, state S15"); this.Manager.Comment("reaching state \'S17\'"); this.Manager.Comment("executing step \'call NegotiateRequest(1,True,Required,[PcNet1,LanMan10,Wfw10,LanM" + "an12,LanMan21,NtLanMan])\'"); this.ISmbAdapterInstance.NegotiateRequest(1, true, Microsoft.Protocol.TestSuites.Smb.SignState.Required, new List<Microsoft.Protocol.TestSuites.Smb.Dialect> { Microsoft.Protocol.TestSuites.Smb.Dialect.PcNet1, Microsoft.Protocol.TestSuites.Smb.Dialect.LanMan10, Microsoft.Protocol.TestSuites.Smb.Dialect.Wfw10, Microsoft.Protocol.TestSuites.Smb.Dialect.LanMan12, Microsoft.Protocol.TestSuites.Smb.Dialect.LanMan21, Microsoft.Protocol.TestSuites.Smb.Dialect.NtLanMan }); this.Manager.Comment("reaching state \'S19\'"); this.Manager.Comment("checking step \'return NegotiateRequest\'"); this.Manager.Comment("reaching state \'S21\'"); if ((this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.NegotiateResponseInfo, null, new NegotiateResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2NegotiateResponseChecker))) != -1)) { this.Manager.Comment("reaching state \'S23\'"); this.Manager.Comment("executing step \'call SessionSetupRequest(Admin,2,0,0,True,{CapNtSmbs,CapExtendedS" + "ecurity},False,False,True)\'"); this.ISmbAdapterInstance.SessionSetupRequest(((Microsoft.Protocol.TestSuites.Smb.AccountType)(0)), 2, 0, 0, true, new List<Microsoft.Protocol.TestSuites.Smb.Capabilities> { Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapExtendedSecurity }, false, false, true); this.Manager.Checkpoint("MS-SMB_R8388"); this.Manager.Comment("reaching state \'S25\'"); this.Manager.Comment("checking step \'return SessionSetupRequest\'"); this.Manager.Comment("reaching state \'S27\'"); int temp7 = this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SessionSetupResponseInfo, null, new SessionSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2SessionSetupResponseChecker))); if ((temp7 == 0)) { this.Manager.Comment("reaching state \'S31\'"); goto label5; } if ((temp7 == 1)) { this.Manager.Comment("reaching state \'S30\'"); this.Manager.Comment("executing step \'call TreeConnectRequest(3,1,False,True,True,\"Share1\",Disk,True)\'"); this.ISmbAdapterInstance.TreeConnectRequest(3, 1, false, true, true, "Share1", ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), true); this.Manager.Comment("reaching state \'S33\'"); this.Manager.Comment("checking step \'return TreeConnectRequest\'"); this.Manager.Comment("reaching state \'S35\'"); int temp6 = this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker1)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker2)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker3)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker4)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker5)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.TreeConnectResponseInfo, null, new TreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2TreeConnectResponseChecker))); if ((temp6 == 0)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38(); goto label4; } if ((temp6 == 1)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38(); goto label4; } if ((temp6 == 2)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38(); goto label4; } if ((temp6 == 3)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38(); goto label4; } if ((temp6 == 4)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38(); goto label4; } if ((temp6 == 5)) { RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38(); goto label4; } if ((temp6 == 6)) { this.Manager.Comment("reaching state \'S39\'"); this.Manager.Comment("executing step \'call CreateRequest(4,1,1,3,FileOpenIf,1,\"Test2.txt\",Disk,True,Fal" + "se,False,False)\'"); this.ISmbAdapterInstance.CreateRequest(4, 1, 1, 3, Microsoft.Protocol.TestSuites.Smb.CreateDisposition.FileOpenIf, 1, "Test2.txt", ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), true, false, false, false); this.Manager.AddReturn(CreateRequestInfo, null); RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS40(); goto label4; } this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker1)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker2)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker3)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker4)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorTreeConnectResponseInfo, null, new ErrorTreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker5)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.TreeConnectResponseInfo, null, new TreeConnectResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2TreeConnectResponseChecker))); label4: ; goto label5; } this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ErrorResponseInfo, null, new ErrorResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorResponseChecker)), new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SessionSetupResponseInfo, null, new SessionSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2SessionSetupResponseChecker))); label5: ; } else { this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.NegotiateResponseInfo, null, new NegotiateResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2NegotiateResponseChecker))); } } else { this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.ServerSetupResponseInfo, null, new ServerSetupResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ServerSetupResponseChecker))); } } else { this.Manager.CheckObservationTimeout(false, new ExpectedEvent(RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.SmbConnectionResponseInfo, null, new SmbConnectionResponseDelegate1(this.RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2SmbConnectionResponseChecker))); } this.Manager.EndTest(); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2SmbConnectionResponseChecker(Microsoft.Protocol.TestSuites.Smb.Platform clientPlatform, Microsoft.Protocol.TestSuites.Smb.Platform sutPlatform) { this.Manager.Comment("checking step \'event SmbConnectionResponse(Win7,Win2K8)\'"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.Platform>(this.Manager, Microsoft.Protocol.TestSuites.Smb.Platform.Win7, clientPlatform, "clientPlatform of SmbConnectionResponse, state S5"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.Platform>(this.Manager, Microsoft.Protocol.TestSuites.Smb.Platform.Win2K8, sutPlatform, "sutPlatform of SmbConnectionResponse, state S5"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ServerSetupResponseChecker(int totalBytesWritten, bool isSupportInfoLevelPassthru, bool isSupportNtSmb, bool isRapServerActive, bool isSupportResumeKey, bool isSupportCopyChunk) { this.Manager.Comment("checking step \'event ServerSetupResponse(1,True,True,True,True,True)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, totalBytesWritten, "totalBytesWritten of ServerSetupResponse, state S11"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportInfoLevelPassthru, "isSupportInfoLevelPassthru of ServerSetupResponse, state S11"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportNtSmb, "isSupportNtSmb of ServerSetupResponse, state S11"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRapServerActive, "isRapServerActive of ServerSetupResponse, state S11"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportResumeKey, "isSupportResumeKey of ServerSetupResponse, state S11"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportCopyChunk, "isSupportCopyChunk of ServerSetupResponse, state S11"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2NegotiateResponseChecker(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, List<Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NegotiateResponse(1,False,True,5,{CapNtSmbs,CapExtendedSecur" + "ity,CapDfs,CapInfoLevelPassThru},Success)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, messageId, "messageId of NegotiateResponse, state S21"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isSignatureRequired, "isSignatureRequired of NegotiateResponse, state S21"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSignatureEnabled, "isSignatureEnabled of NegotiateResponse, state S21"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 5, dialectIndex, "dialectIndex of NegotiateResponse, state S21"); TestManagerHelpers.AssertNotNull(this.Manager, serverCapabilities, "serverCapabilities of NegotiateResponse, state S21"); CollectionAssert.AreEquivalent( new List<Microsoft.Protocol.TestSuites.Smb.Capabilities> { Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapExtendedSecurity, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapDfs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapInfoLevelPassThru }, serverCapabilities, "serverCapabilities of NegotiateResponse, state S21, field selection Rep"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NegotiateResponse, state S21"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R2308, MS-SMB_R4747"); throw; } this.Manager.Checkpoint("MS-SMB_R2308"); this.Manager.Checkpoint("MS-SMB_R4747"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorResponseChecker(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(2,NetworkSessionExpired)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 2, messageId, "messageId of ErrorResponse, state S27"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorResponse, state S27"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R4732, MS-SMB_R4765"); throw; } this.Manager.Checkpoint("MS-SMB_R4732"); this.Manager.Checkpoint("MS-SMB_R4765"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2SessionSetupResponseChecker(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event SessionSetupResponse(2,1,1,True,False,Success)\'"); try { TestManagerHelpers.AssertAreEqual<int>(this.Manager, 2, messageId, "messageId of SessionSetupResponse, state S27"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, sessionId, "sessionId of SessionSetupResponse, state S27"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, securitySignatureValue, "securitySignatureValue of SessionSetupResponse, state S27"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSigned, "isSigned of SessionSetupResponse, state S27"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isGuestAccount, "isGuestAccount of SessionSetupResponse, state S27"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of SessionSetupResponse, state S27"); } catch (TransactionFailedException ) { this.Manager.Comment("This step would have covered MS-SMB_R105555, MS-SMB_R8380, MS-SMB_R4143, MS-SMB_R" + "4784, MS-SMB_R2193, MS-SMB_R8390, MS-SMB_R2341"); throw; } this.Manager.Checkpoint("MS-SMB_R105555"); this.Manager.Checkpoint("MS-SMB_R8380"); this.Manager.Checkpoint("MS-SMB_R4143"); this.Manager.Checkpoint("MS-SMB_R4784"); this.Manager.Checkpoint("MS-SMB_R2193"); this.Manager.Checkpoint("MS-SMB_R8390"); this.Manager.Checkpoint("MS-SMB_R2341"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,InvalidSmb,False)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.InvalidSmb, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S35"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS38() { this.Manager.Comment("reaching state \'S38\'"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker1(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,NetworkSessionExpired,True)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S35"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker2(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,InvalidSmb,True)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.InvalidSmb, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S35"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker3(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,StatusBadNetWorkName,True)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.StatusBadNetWorkName, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S35"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker4(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,NetworkSessionExpired,False)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S35"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2ErrorTreeConnectResponseChecker5(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isRS357Implemented) { this.Manager.Comment("checking step \'event ErrorTreeConnectResponse(3,StatusBadNetWorkName,False)\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.StatusBadNetWorkName, messageStatus, "messageStatus of ErrorTreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isRS357Implemented, "isRS357Implemented of ErrorTreeConnectResponse, state S35"); } private void RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevelS2TreeConnectResponseChecker(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature) { this.Manager.Comment("checking step \'event TreeConnectResponse(3,1,1,False,Disk,Success,True,False,True" + ")\'"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 3, messageId, "messageId of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, sessionId, "sessionId of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<int>(this.Manager, 1, treeId, "treeId of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isSecuritySignatureZero, "isSecuritySignatureZero of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.ShareType>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), shareType, "shareType of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSigned, "isSigned of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, false, isInDfs, "isInDfs of TreeConnectResponse, state S35"); TestManagerHelpers.AssertAreEqual<bool>(this.Manager, true, isSupportExtSignature, "isSupportExtSignature of TreeConnectResponse, state S35"); } #endregion } }
104.758667
1,828
0.731968
[ "MIT" ]
Bhaskers-Blu-Org2/WindowsProtocolTestSuites
TestSuites/MS-SMB/src/TestSuite/RequirementCoverage_SET_QUERY_FS_Win7_Win2K8_InvalidLevel.cs
78,569
C#
using System; using System.Reflection; using Xunit.Sdk; namespace Xunit { #if XUNIT_VISIBILITY_INTERNAL internal #else public #endif partial class Assert { /// <summary> /// Verifies that an object is of the given type or a derived type. /// </summary> /// <typeparam name="T">The type the object should be</typeparam> /// <param name="object">The object to be evaluated</param> /// <returns>The object, casted to type T when successful</returns> /// <exception cref="IsAssignableFromException">Thrown when the object is not the given type</exception> public static T IsAssignableFrom<T>(object @object) { IsAssignableFrom(typeof(T), @object); return (T)@object; } /// <summary> /// Verifies that an object is of the given type or a derived type. /// </summary> /// <param name="expectedType">The type the object should be</param> /// <param name="object">The object to be evaluated</param> /// <exception cref="IsAssignableFromException">Thrown when the object is not the given type</exception> public static void IsAssignableFrom(Type expectedType, object @object) { Assert.GuardArgumentNotNull("expectedType", expectedType); if (@object == null || !expectedType.GetTypeInfo().IsAssignableFrom(@object.GetType().GetTypeInfo())) throw new IsAssignableFromException(expectedType, @object); } /// <summary> /// Verifies that an object is not exactly the given type. /// </summary> /// <typeparam name="T">The type the object should not be</typeparam> /// <param name="object">The object to be evaluated</param> /// <exception cref="IsNotTypeException">Thrown when the object is the given type</exception> public static void IsNotType<T>(object @object) { IsNotType(typeof(T), @object); } /// <summary> /// Verifies that an object is not exactly the given type. /// </summary> /// <param name="expectedType">The type the object should not be</param> /// <param name="object">The object to be evaluated</param> /// <exception cref="IsNotTypeException">Thrown when the object is the given type</exception> public static void IsNotType(Type expectedType, object @object) { Assert.GuardArgumentNotNull("expectedType", expectedType); if (@object != null && expectedType.Equals(@object.GetType())) throw new IsNotTypeException(expectedType, @object); } /// <summary> /// Verifies that an object is exactly the given type (and not a derived type). /// </summary> /// <typeparam name="T">The type the object should be</typeparam> /// <param name="object">The object to be evaluated</param> /// <returns>The object, casted to type T when successful</returns> /// <exception cref="IsTypeException">Thrown when the object is not the given type</exception> public static T IsType<T>(object @object) { IsType(typeof(T), @object); return (T)@object; } /// <summary> /// Verifies that an object is exactly the given type (and not a derived type). /// </summary> /// <param name="expectedType">The type the object should be</param> /// <param name="object">The object to be evaluated</param> /// <exception cref="IsTypeException">Thrown when the object is not the given type</exception> public static void IsType(Type expectedType, object @object) { Assert.GuardArgumentNotNull("expectedType", expectedType); if (@object == null) throw new IsTypeException(expectedType.FullName, null); Type actualType = @object.GetType(); if (expectedType != actualType) { string expectedTypeName = expectedType.FullName; string actualTypeName = actualType.FullName; if (expectedTypeName == actualTypeName) { expectedTypeName += string.Format(" ({0})", expectedType.GetTypeInfo().Assembly.GetName().FullName); actualTypeName += string.Format(" ({0})", actualType.GetTypeInfo().Assembly.GetName().FullName); } throw new IsTypeException(expectedTypeName, actualTypeName); } } } }
42.490741
120
0.605579
[ "MIT" ]
GilesC9/Cake.MsDeploy
src/Cake.MsDeploy.Tests/Asserts/TypeAsserts.cs
4,591
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exercise_1 { class Program { static void Main(string[] args) { int days = int.Parse(Console.ReadLine()); int numOfBakers = int.Parse(Console.ReadLine()); int cakes = int.Parse(Console.ReadLine()); int gofreti = int.Parse(Console.ReadLine()); int pancakes = int.Parse(Console.ReadLine()); decimal totalMoneyRaised = days * numOfBakers *0.875m*(cakes*45m+gofreti*5.8m+pancakes*3.2m); Console.WriteLine($"{totalMoneyRaised:f2}"); } } }
27.32
105
0.616398
[ "MIT" ]
StefanLB/Programming-Basics-With-CSharp---May-2017
Programming Basics Exam - 25 June 2017/Exercise_1/Program.cs
685
C#
using System.Threading.Tasks; using Xunit; using VerifyCS = ExtraDry.Analyzers.Test.CSharpAnalyzerVerifier< ExtraDry.Analyzers.HttpVerbsShouldConditionallyBeInApiController>; namespace ExtraDry.Analyzers.Test { public class HttpVerbsShouldConditionallyBeInApiControllerTests { [Theory] [InlineData("HttpPatch")] [InlineData("HttpPut")] [InlineData("HttpDelete")] [InlineData("HttpPost")] [InlineData("HttpGet")] public async Task AllGood_NoDiagnostic(string verb) { await VerifyCS.VerifyAnalyzerAsync(stubs + $@" [ApiController] public class SampleController {{ [{verb}(""/route"")] public void Retrieve(int id) {{}} }} "); } [Theory] [InlineData("HttpPatch")] [InlineData("HttpDelete")] [InlineData("HttpPut")] public async Task IgnorePatchDeletePutVerbs_NoDiagnostic(string verb) { await VerifyCS.VerifyAnalyzerAsync(stubs + $@" public class SampleController : Controller {{ [{verb}(""/route"")] public void Retrieve(int id) {{}} }} "); } [Theory] [InlineData("HttpGet")] [InlineData("HttpPost")] public async Task RouteImpliesApiController_Diagnostic(string verb) { await VerifyCS.VerifyAnalyzerAsync(stubs + $@" public class SampleController {{ [{verb}] public void [|Retrieve|](int id) {{}} }} "); } [Theory] [InlineData("HttpGet", "Controller")] [InlineData("HttpPost", "Controller")] [InlineData("HttpGet", "ControllerBase")] [InlineData("HttpPost", "ControllerBase")] public async Task RouteDoesntApplyToMvc_NoDiagnostic(string verb, string baseClass) { await VerifyCS.VerifyAnalyzerAsync(stubs + $@" public class SampleController : {baseClass} {{ [{verb}] public void Retrieve(int id) {{}} }} "); } public string stubs = TestHelpers.Stubs; } }
27.410959
91
0.624688
[ "MIT" ]
fmi-works/blazor-extra-dry-analyzers
ExtraDry.Analyzers/ExtraDry.Analyzers.Test/1102_HttpVerbsShouldBeInApiControllerTests.cs
2,003
C#
using RestWithASPNETUdemy.HyperMedia; using RestWithASPNETUdemy.HyperMedia.Abstract; using System.Collections.Generic; namespace RestWithASPNETUdemy.Data.VO { public class PersonVO: ISupportHyperMedia { public long Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Address { get; set; } public string Gender { get; set; } public bool Enabled { get; set; } public List<HyperMediaLink> Links { get; set; } = new List<HyperMediaLink>(); } }
29.444444
81
0.707547
[ "Apache-2.0" ]
thiagom3005/RestWithASP-NET5Udemy
02_RestWithASPNETUdemy_Calculator/RestWithASPNETUdemy/RestWithASPNETUdemy/Data/VO/PersonVO.cs
532
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Success : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("Products.aspx"); } }
21.166667
60
0.713911
[ "MIT" ]
rickxy/E-Commerce-system
E-Commerce/Success.aspx.cs
383
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 organizations-2016-11-28.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.Organizations.Model { /// <summary> /// The requested operation would violate the constraint identified in the reason code. /// /// <note> /// <para> /// Some of the reasons in the following list might not be applicable to this specific /// API or operation: /// </para> /// </note> <ul> <li> /// <para> /// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of /// accounts in an organization. Note that deleted and closed accounts still count toward /// your limit. /// </para> /// <important> /// <para> /// If you get this exception immediately after creating the organization, wait one hour /// and try again. If after an hour it continues to fail with this error, contact <a href="https://console.aws.amazon.com/support/home#/">AWS /// Support</a>. /// </para> /// </important> </li> <li> /// <para> /// ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the invited account /// is already a member of an organization. /// </para> /// </li> <li> /// <para> /// HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of handshakes that /// you can send in one day. /// </para> /// </li> <li> /// <para> /// INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to join /// an organization while it's in the process of enabling all features. You can resume /// inviting accounts after you finalize the process when all accounts have agreed to /// the change. /// </para> /// </li> <li> /// <para> /// ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid because the /// organization has already enabled all features. /// </para> /// </li> <li> /// <para> /// ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake request is invalid /// because the organization has already started the process to enable all features. /// </para> /// </li> <li> /// <para> /// ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the account /// is from a different marketplace than the accounts in the organization. For example, /// accounts with India addresses must be associated with the AISPL marketplace. All accounts /// in an organization must be from the same marketplace. /// </para> /// </li> <li> /// <para> /// ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change the membership /// of an account too quickly after its previous change. /// </para> /// </li> <li> /// <para> /// PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account that /// doesn't have a payment instrument, such as a credit card, associated with it. /// </para> /// </li> </ul> /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class HandshakeConstraintViolationException : AmazonOrganizationsException { private HandshakeConstraintViolationExceptionReason _reason; /// <summary> /// Constructs a new HandshakeConstraintViolationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public HandshakeConstraintViolationException(string message) : base(message) {} /// <summary> /// Construct instance of HandshakeConstraintViolationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public HandshakeConstraintViolationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of HandshakeConstraintViolationException /// </summary> /// <param name="innerException"></param> public HandshakeConstraintViolationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of HandshakeConstraintViolationException /// </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 HandshakeConstraintViolationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of HandshakeConstraintViolationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public HandshakeConstraintViolationException(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 HandshakeConstraintViolationException 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 HandshakeConstraintViolationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Reason = (HandshakeConstraintViolationExceptionReason)info.GetValue("Reason", typeof(HandshakeConstraintViolationExceptionReason)); } /// <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); info.AddValue("Reason", this.Reason); } #endif /// <summary> /// Gets and sets the property Reason. /// </summary> public HandshakeConstraintViolationExceptionReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
46.346341
179
0.670456
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Organizations/Generated/Model/HandshakeConstraintViolationException.cs
9,501
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace FluentEditor.ControlPalette { public sealed partial class ControlPaletteView : Page { public ControlPaletteView() { this.InitializeComponent(); //MainContentAreaShadow.Receivers.Add(ShadowCatcher); //MainContentArea.Translation = new System.Numerics.Vector3(0f, 0f, 8f); } #region ViewModelProperty public static readonly DependencyProperty ViewModelProperty = DependencyProperty.Register("ViewModel", typeof(ControlPaletteViewModel), typeof(ControlPaletteView), new PropertyMetadata(null)); public ControlPaletteViewModel ViewModel { get { return GetValue(ViewModelProperty) as ControlPaletteViewModel; } set { SetValue(ViewModelProperty, value); } } #endregion protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); ViewModel = e.Parameter as ControlPaletteViewModel; } } }
30.1
200
0.680233
[ "MIT" ]
LanceMcCarthy/fluent-xaml-theme-editor
FluentEditor/ControlPalette/ControlPaletteView.xaml.cs
1,206
C#
//------------------------------------------------------------------------------ // <auto-generated> // O código foi gerado por uma ferramenta. // Versão de Tempo de Execução:4.0.30319.42000 // // As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se // o código for gerado novamente. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Reflection; [assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.RelatedAssemblyAttribute("Hamburgueria Tarde.Views")] [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorLanguageVersionAttribute("2.1")] [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorConfigurationNameAttribute("MVC-2.1")] [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorExtensionAssemblyNameAttribute("MVC-2.1", "Microsoft.AspNetCore.Mvc.Razor.Extensions")] // Gerado pela classe WriteCodeFragment do MSBuild.
45.142857
138
0.650844
[ "MIT" ]
GabrielMelegaro/HamburgueriaWEBMVC
obj/Debug/netcoreapp2.1/Hamburgueria Tarde.RazorAssemblyInfo.cs
957
C#
using System; namespace Crumbs.Core.Mediation { public interface IMessageHandlerRegistry { void RegisterHandler(Type messageType, Type handlerType); } }
19.222222
65
0.728324
[ "MIT" ]
dnyvik/Crumbs
src/Crumbs.Core/Mediation/IHandlerRegistry.cs
173
C#
// <copyright file="ALDevice.cs" company="KinsonDigital"> // Copyright (c) KinsonDigital. All rights reserved. // </copyright> namespace CASL.OpenAL { using System; using System.Diagnostics.CodeAnalysis; /// <summary> /// Opaque handle to an OpenAL device. /// </summary> public struct ALDevice : IEquatable<ALDevice> { /// <summary> /// Initializes a new instance of the <see cref="ALDevice"/> struct. /// </summary> /// <param name="handle">The handle of the device.</param> public ALDevice(nint handle) => Handle = handle; /// <summary> /// Gets the handle of the context. /// </summary> public nint Handle { get; } /// <summary> /// Implicitly casts the given <see cref="ALDevice"/> to an <see cref="nint"/>. /// </summary> /// <param name="device">The audio device to convert.</param> public static implicit operator nint(ALDevice device) => device.Handle; /// <summary> /// Returns a value indicating whether the <paramref name="left"/> and /// <paramref name="right"/> operators are equal. /// </summary> /// <param name="left">The left operator in the comparison.</param> /// <param name="right">The right operator in the comparison.</param> /// <returns>True if both operators are equal to eachother.</returns> public static bool operator ==(ALDevice left, ALDevice right) => left.Equals(right); /// <summary> /// Returns a value indicating whether the <paramref name="left"/> and /// <paramref name="right"/> operators are not equal. /// </summary> /// <param name="left">The left operator in the comparison.</param> /// <param name="right">The right operator in the comparison.</param> /// <returns>True if both operators are not equal to eachother.</returns> public static bool operator !=(ALDevice left, ALDevice right) => !(left == right); /// <summary> /// Returns a null <see cref="ALDevice"/>. /// </summary> /// <returns>A device that points to nothing.</returns> public static ALDevice Null() => new (0); /// <inheritdoc/> public override bool Equals(object? obj) => obj is ALDevice device && Equals(device); /// <inheritdoc/> public bool Equals(ALDevice other) => Handle.Equals(other.Handle); /// <inheritdoc/> [ExcludeFromCodeCoverage] public override int GetHashCode() => HashCode.Combine(Handle); } }
38.850746
93
0.597772
[ "MIT" ]
KinsonDigital/CASL
CASL/OpenAL/ALDevice.cs
2,605
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using AccessibilityInsights.CommonUxComponents.Controls; using AccessibilityInsights.CommonUxComponents.Dialogs; using AccessibilityInsights.Enums; using AccessibilityInsights.SharedUx.Enums; using AccessibilityInsights.SharedUx.Highlighting; using AccessibilityInsights.SharedUx.Interfaces; using AccessibilityInsights.SharedUx.Settings; using AccessibilityInsights.SharedUx.Telemetry; using AccessibilityInsights.SharedUx.Utilities; using AccessibilityInsights.SharedUx.ViewModels; using Axe.Windows.Actions; using Axe.Windows.Actions.Contexts; using Axe.Windows.Actions.Enums; using Axe.Windows.Actions.Misc; using Axe.Windows.Core.Bases; using Axe.Windows.Desktop.Settings; using System; using System.Globalization; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Threading; namespace AccessibilityInsights.Modes { /// <summary> /// Interaction logic for SnapshotModeControl.xaml /// </summary> public partial class SnapshotModeControl : UserControl, IModeControl, IHierarchyAction { /// <summary> /// Element Context /// </summary> public ElementContext ElementContext { get; private set; } ///// <summary> ///// Current mode of control ///// </summary> //public SnapshotModes Mode { get; set; } /// <summary> /// MainWindow to access shared methods /// </summary> static MainWindow MainWin { get { return (MainWindow)Application.Current.MainWindow; } } /// <summary> /// App configation /// </summary> public static ConfigurationModel Configuration { get { return ConfigurationManager.GetDefaultInstance()?.AppConfig; } } /// <summary> /// Layout configuration /// </summary> public static AppLayout CurrentLayout { get { return ConfigurationManager.GetDefaultInstance()?.AppLayout; } } /// <summary> /// Indicate how to do the data context population. /// Live/Snapshot/Load /// </summary> public DataContextMode DataContextMode { get; set; } = DataContextMode.Test; /// <summary> /// Overriding LocalizedControlType /// </summary> /// <returns></returns> protected override AutomationPeer OnCreateAutomationPeer() { return new CustomControlOverridingAutomationPeer(this, "pane"); } /// <summary> /// Constructor /// </summary> public SnapshotModeControl() { InitializeComponent(); this.ctrlHierarchy.IsLiveMode = false; this.ctrlHierarchy.HierarchyActions = this; this.ctrlTabs.SwitchToServerLogin = MainWin.HandleConnectionConfigurationStart; } /// <summary> /// Event handler when node selection is changed in treeview. /// </summary> public void SelectedElementChanged() { A11yElement element = this.ctrlHierarchy.SelectedInHierarchyElement; // selection only when UI snapshot is done. if (element != null && this.IsVisible) { UpdateElementInfoUI(element); } } /// <summary> /// Update Element Info UI(Properties/Patterns/Tests) /// </summary> /// <param name="ecId"></param> public async Task SetElement(Guid ecId) { this.ctrlProgressRing.Activate(); EnableMenuButtons(this.DataContextMode != DataContextMode.Load); bool selectionFailure = false; try { this.ctrlHierarchy.IsEnabled = false; ElementContext ec = null; await Task.Run(() => { bool contextChanged = CaptureAction.SetTestModeDataContext(ecId, this.DataContextMode, Configuration.TreeViewMode); ec = GetDataAction.GetElementContext(ecId); if (contextChanged && this.DataContextMode != DataContextMode.Load) { // send telemetry of scan results. var dc = GetDataAction.GetElementDataContext(ecId); dc.PublishScanResults(); } }).ConfigureAwait(false); Application.Current.Dispatcher.Invoke(() => { if (ec != null && ec.DataContext != null) { this.ElementContext = ec; this.ctrlTabs.Clear(); if (!SelectAction.GetDefaultInstance().IsPaused) { this.ctrlHierarchy.CleanUpTreeView(); } this.ctrlHierarchy.SetElement(ec); this.ctrlTabs.SetElement(ec.Element, false, ec.Id); if (ec.DataContext.Screenshot == null && ec.DataContext.Mode != DataContextMode.Load) { Application.Current.MainWindow.WindowStyle = WindowStyle.ToolWindow; Application.Current.MainWindow.Visibility = Visibility.Hidden; HollowHighlightDriver.GetDefaultInstance().IsEnabled = false; this.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() => { ScreenShotAction.CaptureScreenShot(ecId); Application.Current.MainWindow.Visibility = Visibility.Visible; Application.Current.MainWindow.WindowStyle = WindowStyle.SingleBorderWindow; })).Wait(); } var imageOverlay = ImageOverlayDriver.GetDefaultInstance(); imageOverlay.SetImageElement(ecId); //disable button on highlighter. imageOverlay.SetHighlighterButtonClickHandler(null); if (Configuration.IsHighlighterOn) { imageOverlay.Show(); } } // if it is enforced to select a specific element(like fastpass click case) if (ec.DataContext.FocusedElementUniqueId.HasValue) { this.ctrlHierarchy.SelectElement(ec.DataContext.FocusedElementUniqueId.Value); } if (!ec.DataContext.Elements.TryGetValue(ec.DataContext.FocusedElementUniqueId ?? 0, out A11yElement selectedElement)) { selectedElement = ec.DataContext.Elements[0]; } AutomationProperties.SetName(this, string.Format(CultureInfo.InvariantCulture, Properties.Resources.SetElementInspectTestDetail, selectedElement.Glimpse)); FireAsyncContentLoadedEvent(AsyncContentLoadedState.Completed); // Set focus on hierarchy tree Dispatcher.InvokeAsync(() => this.ctrlHierarchy.SetFocusOnHierarchyTree(), DispatcherPriority.Input).Wait(); ec.DataContext.FocusedElementUniqueId = null; }); } #pragma warning disable CA1031 // Do not catch general exception types catch (Exception e) { e.ReportException(); Application.Current.Dispatcher.Invoke(() => { Application.Current.MainWindow.Visibility = Visibility.Visible; EnableMenuButtons(false); this.ElementContext = null; selectionFailure = true; }); } #pragma warning restore CA1031 // Do not catch general exception types finally { Application.Current.Dispatcher.Invoke(() => { this.ctrlProgressRing.Deactivate(); this.ctrlHierarchy.IsEnabled = true; // if focus has gone to the window, we set focus to the hierarchy control. We do this because disabling the hierarchy control // will throw keyboard focus to mainwindow, where it is not very useful. if (Keyboard.FocusedElement is Window) { this.ctrlHierarchy.Focus(); } if (selectionFailure) { MainWin.HandleFailedSelectionReset(); } else { // Set the right view state : if (MainWin.CurrentView is TestView iv && iv == TestView.ElementHowToFix) { MainWin.SetCurrentViewAndUpdateUI(TestView.ElementHowToFix); } else { MainWin.SetCurrentViewAndUpdateUI(TestView.ElementDetails); } } }); } } /// <summary> /// Enable menu buttons /// - Save /// - Refresh /// </summary> private void EnableMenuButtons(bool enable) { this.IsSaveEnabled = enable; this.IsRefreshEnabled = enable; } /// <summary> /// Fire Async Content Loaded Event to notify Snapshot mode data load completion. /// </summary> /// <param name="state"></param> private void FireAsyncContentLoadedEvent(AsyncContentLoadedState state) { if (AutomationPeer.ListenerExists(AutomationEvents.AsyncContentLoaded)) { UserControlAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as UserControlAutomationPeer; if (peer != null) { peer.RaiseAsyncContentLoadedEvent(new AsyncContentLoadedEventArgs(state, state == AsyncContentLoadedState.Beginning ? 0 : 100)); } } } /// <summary> /// Update Element Info UI. /// </summary> /// <param name="e"></param> private void UpdateElementInfoUI(A11yElement e) { this.ctrlTabs.SetElement(e, false, this.ElementContext.Id); ImageOverlayDriver.GetDefaultInstance().SetSingleElement(this.ElementContext.Id, e.UniqueId); } /// <summary> /// Hide control and hilighter /// </summary> public void HideControl() { UpdateConfigWithSize(); ImageOverlayDriver.GetDefaultInstance().ClearElements(); this.Visibility = Visibility.Collapsed; } /// <summary> /// Show control and hilighter /// </summary> public void ShowControl() { AdjustMainWindowSize(); if (Configuration.IsHighlighterOn) { ImageOverlayDriver.GetDefaultInstance().Show(); } this.Visibility = Visibility.Visible; Dispatcher.InvokeAsync(() => { this.SetFocusOnDefaultControl(); } , System.Windows.Threading.DispatcherPriority.Input); this.ctrlTabs.CurrentMode = (TestView)(MainWin.CurrentView) == TestView.ElementHowToFix ? InspectTabMode.TestHowToFix : InspectTabMode.TestProperties; } /// <summary> /// Update current view based on tab selection /// </summary> /// <param name="mode"></param> private static void UpdateMainWinView(InspectTabType type) { if (type == InspectTabType.HowToFix) { MainWin.SetCurrentViewAndUpdateUI(TestView.ElementHowToFix); } else if (type == InspectTabType.Details) { MainWin.SetCurrentViewAndUpdateUI(TestView.ElementDetails); } } /// <summary> /// Clear UI /// </summary> public void Clear() { this.ElementContext = null; ImageOverlayDriver.GetDefaultInstance().Clear(); this.ctrlHierarchy.Clear(); this.ctrlTabs.Clear(); } // <summary> // Store Window data for Snapshot Mode // </summary> public void UpdateConfigWithSize() { CurrentLayout.LayoutSnapshot.ColumnSnapWidth = this.columnSnap.Width.Value; } // <summary> // Updates Window size with stored data and adjusts layout for Snap Mode // </summary> public void AdjustMainWindowSize() { MainWin.SizeToContent = SizeToContent.Manual; this.columnSnap.Width = new GridLength(CurrentLayout.LayoutSnapshot.ColumnSnapWidth); this.ctrlHierarchy.IsLiveMode = false; this.gsMid.Visibility = Visibility.Visible; } /// <summary> /// Copy either selected properties or element data /// </summary> public void CopyToClipboard() { StringBuilder sb = new StringBuilder(); if(Keyboard.FocusedElement is ListViewItem lvi && lvi.DataContext is ScanListViewItemViewModel stvi) { ListView listView = ItemsControl.ItemsControlFromItemContainer(lvi) as ListView; foreach (var item in listView.SelectedItems) { var vm = item as ScanListViewItemViewModel; sb.AppendLine(vm.Header); sb.AppendLine(vm.HowToFixText); } } else if (Keyboard.FocusedElement is TextBox tb) { sb.Append(tb.SelectedText); } else if (this.ElementContext != null) { var se = this.ctrlHierarchy.SelectedElement ?? this.ElementContext.Element; // glimpse sb.AppendFormat(CultureInfo.InvariantCulture, "Glimpse: {0}", se.Glimpse); sb.AppendLine(); sb.AppendLine(); sb.AppendLine("Available properties"); // properties foreach (var p in se.Properties) { sb.AppendFormat(CultureInfo.InvariantCulture, "{0}: {1}", p.Value.Name, p.Value.TextValue); sb.AppendLine(); } sb.AppendLine(); sb.AppendLine("Available patterns:"); // patterns foreach (var pt in se.Patterns) { sb.Append(pt.Name); sb.AppendLine(); } } sb.CopyStringToClipboard(); sb.Clear(); } /// <summary> /// Refresh button is needed on main command bar /// if it is load mode(PlatformObject is null), disable it. /// </summary> public bool IsRefreshEnabled { get; private set; } /// <summary> /// Save button is neeeded on main command bar /// if it is load mode(PlatformObject is null), disable it. /// </summary> public bool IsSaveEnabled { get; private set; } /// <summary> /// Refresh Data /// it is called from state machine to handle Refresh button under title bar. /// </summary> public void Refresh() { RefreshHierarchy(true); } /// <summary> /// Refresh Hierarchy tree /// </summary> /// <param name="newData">true, get new datacontext</param> public void RefreshHierarchy(bool newData) { // data will be asked to be captured again. so set the current view right. MainWin.SetCurrentViewAndUpdateUI(InspectView.CapturingData); if (newData) { ImageOverlayDriver.ClearDefaultInstance(); var ecId = SelectAction.GetDefaultInstance().GetSelectedElementContextId().Value; SetDataAction.ReleaseDataContext(ecId); #pragma warning disable CS4014 // NOTE: We aren't awaiting this async call, so if you // touch it, consider if you need to add the await this.SetElement(ecId); #pragma warning restore CS4014 } else { #pragma warning disable CS4014 // NOTE: We aren't awaiting this async call, so if you // touch it, consider if you need to add the await this.SetElement(this.ElementContext.Id); #pragma warning restore CS4014 } } /// <summary> /// Save snapshot /// </summary> public void Save() { using (var dlg = new System.Windows.Forms.SaveFileDialog { #pragma warning disable CA1303 // Do not pass literals as localized parameters Filter = FileFilters.TestFileFilter, #pragma warning restore CA1303 // Do not pass literals as localized parameters InitialDirectory = Configuration.TestReportPath, AutoUpgradeEnabled = !SystemParameters.HighContrast, }) { dlg.FileName = dlg.InitialDirectory.GetSuggestedFileName(FileType.TestResults); Logger.PublishTelemetryEvent(TelemetryAction.Hierarchy_Save); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { SaveAction.SaveSnapshotZip(dlg.FileName, this.ElementContext.Id, this.ctrlHierarchy.SelectedElement.UniqueId, A11yFileMode.Inspect); } #pragma warning disable CA1031 // Do not catch general exception types catch (Exception ex) { ex.ReportException(); MessageDialog.Show(string.Format(CultureInfo.InvariantCulture, Properties.Resources.SaveException, ex.Message)); } #pragma warning restore CA1031 // Do not catch general exception types } } } /// <summary> /// Toggle highlight visibility /// </summary> /// <returns>Updated highlighter visibility</returns> public bool ToggleHighlighter() { var visible = !ImageOverlayDriver.GetDefaultInstance().IsVisible(); if (visible) { ImageOverlayDriver.GetDefaultInstance().Show(); ImageOverlayDriver.GetDefaultInstance().SetSingleElement(this.ElementContext.Id, this.ctrlHierarchy.SelectedInHierarchyElement.UniqueId); } else { ImageOverlayDriver.GetDefaultInstance().Hide(); } return visible; } /// <summary> /// Set focus on default control for mode /// </summary> public void SetFocusOnDefaultControl() { this.ctrlHierarchy.Focus(); } /// <summary> /// Wrapper to switch to server login for IHierarchyAction /// </summary> public void SwitchToServerLogin() { MainWin.HandleConnectionConfigurationStart(); } /// <summary> /// Wrapper to switch to events mode for IHierarchyAction /// </summary> public void HandleLiveToEvents(A11yElement el) { MainWin.HandleLiveToEvents(el); } /// <summary> /// Wrapper to file a bug for IHierarchyAction /// </summary> public void HandleFileBugLiveMode() { MainWin.HandleFileBugLiveMode(); } } }
37.709447
176
0.531127
[ "MIT" ]
lisli1/accessibility-insights-windows
src/AccessibilityInsights/Modes/SnapshotModeControl.xaml.cs
20,595
C#
using System; namespace _03.DebuggingExerciseTetris { public class DebuggingExerciseTetris { public static void Main() { int n = int.Parse(Console.ReadLine()); string currentDirection = Console.ReadLine(); while (currentDirection != "exit") { switch (currentDirection) { case "up": Up(n); break; case "right": Right(n); break; case "down": Down(n); break; case "left": Left(n); break; } currentDirection = Console.ReadLine(); } } private static void Left(int n) { for (int i = 0; i < n; i++) { Console.WriteLine(new string('.', n) + new string('*', n)); } for (int i = 0; i < n; i++) { Console.WriteLine(new string('*', 2 * n)); } for (int i = 0; i < n; i++) { Console.WriteLine(new string('.', n) + new string('*', n)); } } private static void Right(int n) { for (int i = 0; i < n; i++) { Console.WriteLine(new string('*', n) + new string('.', n)); } for (int i = 0; i < n; i++) { Console.WriteLine(new string('*', 2 * n)); } for (int i = 0; i < n; i++) { Console.WriteLine(new string('*', n) + new string('.', n)); } } private static void Up(int n) { for (int i = 0; i < n; i++) { Console.WriteLine(new string('.', n) + new string('*', n) + new string('.', n)); } for (int i = 0; i < n; i++) { Console.WriteLine(new string('*', n * 3)); } } private static void Down(int n) { for (int i = 0; i < n; i++) { Console.WriteLine(new string('*', n * 3)); } for (int i = 0; i < n; i++) { Console.WriteLine(new string('.', n) + new string('*', n) + new string('.', n)); } } } }
25.606061
96
0.341223
[ "MIT" ]
ivanlutov/Softuni-ProgrammingFundamentals
05.DebuggingExercise/03.DebuggingExerciseTetris/DebuggingExerciseTetris.cs
2,537
C#
namespace TaxService.Domain.Model { public class PlaceType { public int Id { get; set; } public string Name { get; set; } } }
17.222222
40
0.574194
[ "Unlicense" ]
falcevor/tax-service
src/TaxService.Domain/Model/PlaceType.cs
157
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="TimeSpanAxis.cs" company="OxyPlot"> // The MIT License (MIT) // // Copyright (c) 2012 Oystein Bjorke // // 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. // </copyright> // <summary> // Time axis. // </summary> // -------------------------------------------------------------------------------------------------------------------- namespace OxyPlot.Axes { using System; using System.Linq; /// <summary> /// Represents an axis presenting <see cref="System.TimeSpan"/> values. /// </summary> /// <remarks> /// The values should be in seconds. /// The StringFormat value can be used to force formatting of the axis values /// "h:mm" shows hours and minutes /// "m:ss" shows minutes and seconds /// </remarks> public class TimeSpanAxis : LinearAxis { /// <summary> /// Initializes a new instance of the <see cref = "TimeSpanAxis" /> class. /// </summary> public TimeSpanAxis() { } /// <summary> /// Initializes a new instance of the <see cref="TimeSpanAxis"/> class. /// </summary> /// <param name="pos"> /// The position. /// </param> /// <param name="title"> /// The axis title. /// </param> /// <param name="format"> /// The string format for the axis values. /// </param> public TimeSpanAxis(AxisPosition pos, string title = null, string format = "m:ss") : base(pos, title) { this.StringFormat = format; } /// <summary> /// Initializes a new instance of the <see cref="TimeSpanAxis"/> class. /// </summary> /// <param name="pos"> /// The position. /// </param> /// <param name="min"> /// The min. /// </param> /// <param name="max"> /// The max. /// </param> /// <param name="title"> /// The axis title. /// </param> /// <param name="format"> /// The string format for the axis values. /// </param> public TimeSpanAxis( AxisPosition pos = AxisPosition.Bottom, double min = double.NaN, double max = double.NaN, string title = null, string format = "m:ss") : base(pos, min, max, title) { this.StringFormat = format; } /// <summary> /// Converts a time span to a double. /// </summary> /// <param name="s"> /// The time span. /// </param> /// <returns> /// A double value. /// </returns> public static double ToDouble(TimeSpan s) { return s.TotalSeconds; } /// <summary> /// Converts a double to a time span. /// </summary> /// <param name="value"> /// The value. /// </param> /// <returns> /// A time span. /// </returns> public static TimeSpan ToTimeSpan(double value) { return TimeSpan.FromSeconds(value); } /// <summary> /// Formats the value. /// </summary> /// <param name="x"> /// The x. /// </param> /// <returns> /// The format value. /// </returns> public override string FormatValue(double x) { TimeSpan span = TimeSpan.FromSeconds(x); string s = this.ActualStringFormat ?? "h:mm:ss"; s = s.Replace("mm", span.Minutes.ToString("00")); s = s.Replace("ss", span.Seconds.ToString("00")); s = s.Replace("hh", span.Hours.ToString("00")); s = s.Replace("msec", span.Milliseconds.ToString("000")); s = s.Replace("m", ((int)span.TotalMinutes).ToString("0")); s = s.Replace("s", ((int)span.TotalSeconds).ToString("0")); s = s.Replace("h", ((int)span.TotalHours).ToString("0")); return s; } /// <summary> /// Gets the value from an axis coordinate, converts from double to the correct data type if necessary. e.g. DateTimeAxis returns the DateTime and CategoryAxis returns category strings. /// </summary> /// <param name="x">The coordinate.</param> /// <returns> /// The value. /// </returns> public override object GetValue(double x) { return TimeSpan.FromSeconds(x); } /// <summary> /// Calculates the actual interval. /// </summary> /// <param name="availableSize">Size of the available area.</param> /// <param name="maxIntervalSize">Maximum length of the intervals.</param> /// <returns> /// The calculate actual interval. /// </returns> protected override double CalculateActualInterval(double availableSize, double maxIntervalSize) { double range = Math.Abs(this.ActualMinimum - this.ActualMaximum); double interval = 1; var goodIntervals = new[] { 1.0, 5, 10, 30, 60, 120, 300, 600, 900, 1200, 1800, 3600 }; int maxNumberOfIntervals = Math.Max((int)(availableSize / maxIntervalSize), 2); while (true) { if (range / interval < maxNumberOfIntervals) { return interval; } double nextInterval = goodIntervals.FirstOrDefault(i => i > interval); if (Math.Abs(nextInterval) < double.Epsilon) { nextInterval = interval * 2; } interval = nextInterval; } } } }
35.218274
193
0.522917
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AlannaMuir/open-hardware-monitor
External/OxyPlot/OxyPlot/Axes/TimeSpanAxis.cs
6,940
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> //------------------------------------------------------------------------------ #pragma warning disable 1591 namespace IBI.DataAccess.DataSets { /// <summary> ///Represents a strongly typed in-memory cache of data. ///</summary> [global::System.Serializable()] [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] [global::System.Xml.Serialization.XmlRootAttribute("AlertsDataSet")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] public partial class AlertsDataSet : global::System.Data.DataSet { private gtfsrt_alert_denormalizedDataTable tablegtfsrt_alert_denormalized; private gtfsrt_alert_active_period_denormalizedDataTable tablegtfsrt_alert_active_period_denormalized; private gtfsrt_alert_informed_entity_denormalizedDataTable tablegtfsrt_alert_informed_entity_denormalized; private rt_alert_timesDataTable tablert_alert_times; private rt_alertDataTable tablert_alert; private rt_alert_active_periodDataTable tablert_alert_active_period; private rt_alert_informed_entityDataTable tablert_alert_informed_entity; private rt_alert_tempDataTable tablert_alert_temp; private rt_alert_active_period_tempDataTable tablert_alert_active_period_temp; private rt_alert_informed_entity_tempDataTable tablert_alert_informed_entity_temp; private global::System.Data.DataRelation relationrt_alert_rt_alert_informed_entity; private global::System.Data.DataRelation relationrt_alert_rt_alert_active_period; private global::System.Data.DataRelation relationrt_alert_temp_rt_alert_active_period_temp; private global::System.Data.DataRelation relationrt_alert_temp_rt_alert_informed_entity_temp; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public AlertsDataSet() { this.BeginInit(); this.InitClass(); global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; base.Relations.CollectionChanged += schemaChangedHandler; this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected AlertsDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context, false) { if ((this.IsBinarySerialized(info, context) == true)) { this.InitVars(false); global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); this.Tables.CollectionChanged += schemaChangedHandler1; this.Relations.CollectionChanged += schemaChangedHandler1; return; } string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { global::System.Data.DataSet ds = new global::System.Data.DataSet(); ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); if ((ds.Tables["gtfsrt_alert_denormalized"] != null)) { base.Tables.Add(new gtfsrt_alert_denormalizedDataTable(ds.Tables["gtfsrt_alert_denormalized"])); } if ((ds.Tables["gtfsrt_alert_active_period_denormalized"] != null)) { base.Tables.Add(new gtfsrt_alert_active_period_denormalizedDataTable(ds.Tables["gtfsrt_alert_active_period_denormalized"])); } if ((ds.Tables["gtfsrt_alert_informed_entity_denormalized"] != null)) { base.Tables.Add(new gtfsrt_alert_informed_entity_denormalizedDataTable(ds.Tables["gtfsrt_alert_informed_entity_denormalized"])); } if ((ds.Tables["rt_alert_times"] != null)) { base.Tables.Add(new rt_alert_timesDataTable(ds.Tables["rt_alert_times"])); } if ((ds.Tables["rt_alert"] != null)) { base.Tables.Add(new rt_alertDataTable(ds.Tables["rt_alert"])); } if ((ds.Tables["rt_alert_active_period"] != null)) { base.Tables.Add(new rt_alert_active_periodDataTable(ds.Tables["rt_alert_active_period"])); } if ((ds.Tables["rt_alert_informed_entity"] != null)) { base.Tables.Add(new rt_alert_informed_entityDataTable(ds.Tables["rt_alert_informed_entity"])); } if ((ds.Tables["rt_alert_temp"] != null)) { base.Tables.Add(new rt_alert_tempDataTable(ds.Tables["rt_alert_temp"])); } if ((ds.Tables["rt_alert_active_period_temp"] != null)) { base.Tables.Add(new rt_alert_active_period_tempDataTable(ds.Tables["rt_alert_active_period_temp"])); } if ((ds.Tables["rt_alert_informed_entity_temp"] != null)) { base.Tables.Add(new rt_alert_informed_entity_tempDataTable(ds.Tables["rt_alert_informed_entity_temp"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); this.InitVars(); } else { this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); } this.GetSerializationData(info, context); global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; this.Relations.CollectionChanged += schemaChangedHandler; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public gtfsrt_alert_denormalizedDataTable gtfsrt_alert_denormalized { get { return this.tablegtfsrt_alert_denormalized; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public gtfsrt_alert_active_period_denormalizedDataTable gtfsrt_alert_active_period_denormalized { get { return this.tablegtfsrt_alert_active_period_denormalized; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public gtfsrt_alert_informed_entity_denormalizedDataTable gtfsrt_alert_informed_entity_denormalized { get { return this.tablegtfsrt_alert_informed_entity_denormalized; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alert_timesDataTable rt_alert_times { get { return this.tablert_alert_times; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alertDataTable rt_alert { get { return this.tablert_alert; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alert_active_periodDataTable rt_alert_active_period { get { return this.tablert_alert_active_period; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alert_informed_entityDataTable rt_alert_informed_entity { get { return this.tablert_alert_informed_entity; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alert_tempDataTable rt_alert_temp { get { return this.tablert_alert_temp; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alert_active_period_tempDataTable rt_alert_active_period_temp { get { return this.tablert_alert_active_period_temp; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public rt_alert_informed_entity_tempDataTable rt_alert_informed_entity_temp { get { return this.tablert_alert_informed_entity_temp; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { get { return this._schemaSerializationMode; } set { this._schemaSerializationMode = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] public new global::System.Data.DataTableCollection Tables { get { return base.Tables; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] public new global::System.Data.DataRelationCollection Relations { get { return base.Relations; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void InitializeDerivedDataSet() { this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataSet Clone() { AlertsDataSet cln = ((AlertsDataSet)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override bool ShouldSerializeTables() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override bool ShouldSerializeRelations() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { this.Reset(); global::System.Data.DataSet ds = new global::System.Data.DataSet(); ds.ReadXml(reader); if ((ds.Tables["gtfsrt_alert_denormalized"] != null)) { base.Tables.Add(new gtfsrt_alert_denormalizedDataTable(ds.Tables["gtfsrt_alert_denormalized"])); } if ((ds.Tables["gtfsrt_alert_active_period_denormalized"] != null)) { base.Tables.Add(new gtfsrt_alert_active_period_denormalizedDataTable(ds.Tables["gtfsrt_alert_active_period_denormalized"])); } if ((ds.Tables["gtfsrt_alert_informed_entity_denormalized"] != null)) { base.Tables.Add(new gtfsrt_alert_informed_entity_denormalizedDataTable(ds.Tables["gtfsrt_alert_informed_entity_denormalized"])); } if ((ds.Tables["rt_alert_times"] != null)) { base.Tables.Add(new rt_alert_timesDataTable(ds.Tables["rt_alert_times"])); } if ((ds.Tables["rt_alert"] != null)) { base.Tables.Add(new rt_alertDataTable(ds.Tables["rt_alert"])); } if ((ds.Tables["rt_alert_active_period"] != null)) { base.Tables.Add(new rt_alert_active_periodDataTable(ds.Tables["rt_alert_active_period"])); } if ((ds.Tables["rt_alert_informed_entity"] != null)) { base.Tables.Add(new rt_alert_informed_entityDataTable(ds.Tables["rt_alert_informed_entity"])); } if ((ds.Tables["rt_alert_temp"] != null)) { base.Tables.Add(new rt_alert_tempDataTable(ds.Tables["rt_alert_temp"])); } if ((ds.Tables["rt_alert_active_period_temp"] != null)) { base.Tables.Add(new rt_alert_active_period_tempDataTable(ds.Tables["rt_alert_active_period_temp"])); } if ((ds.Tables["rt_alert_informed_entity_temp"] != null)) { base.Tables.Add(new rt_alert_informed_entity_tempDataTable(ds.Tables["rt_alert_informed_entity_temp"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); this.InitVars(); } else { this.ReadXml(reader); this.InitVars(); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); stream.Position = 0; return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.InitVars(true); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars(bool initTable) { this.tablegtfsrt_alert_denormalized = ((gtfsrt_alert_denormalizedDataTable)(base.Tables["gtfsrt_alert_denormalized"])); if ((initTable == true)) { if ((this.tablegtfsrt_alert_denormalized != null)) { this.tablegtfsrt_alert_denormalized.InitVars(); } } this.tablegtfsrt_alert_active_period_denormalized = ((gtfsrt_alert_active_period_denormalizedDataTable)(base.Tables["gtfsrt_alert_active_period_denormalized"])); if ((initTable == true)) { if ((this.tablegtfsrt_alert_active_period_denormalized != null)) { this.tablegtfsrt_alert_active_period_denormalized.InitVars(); } } this.tablegtfsrt_alert_informed_entity_denormalized = ((gtfsrt_alert_informed_entity_denormalizedDataTable)(base.Tables["gtfsrt_alert_informed_entity_denormalized"])); if ((initTable == true)) { if ((this.tablegtfsrt_alert_informed_entity_denormalized != null)) { this.tablegtfsrt_alert_informed_entity_denormalized.InitVars(); } } this.tablert_alert_times = ((rt_alert_timesDataTable)(base.Tables["rt_alert_times"])); if ((initTable == true)) { if ((this.tablert_alert_times != null)) { this.tablert_alert_times.InitVars(); } } this.tablert_alert = ((rt_alertDataTable)(base.Tables["rt_alert"])); if ((initTable == true)) { if ((this.tablert_alert != null)) { this.tablert_alert.InitVars(); } } this.tablert_alert_active_period = ((rt_alert_active_periodDataTable)(base.Tables["rt_alert_active_period"])); if ((initTable == true)) { if ((this.tablert_alert_active_period != null)) { this.tablert_alert_active_period.InitVars(); } } this.tablert_alert_informed_entity = ((rt_alert_informed_entityDataTable)(base.Tables["rt_alert_informed_entity"])); if ((initTable == true)) { if ((this.tablert_alert_informed_entity != null)) { this.tablert_alert_informed_entity.InitVars(); } } this.tablert_alert_temp = ((rt_alert_tempDataTable)(base.Tables["rt_alert_temp"])); if ((initTable == true)) { if ((this.tablert_alert_temp != null)) { this.tablert_alert_temp.InitVars(); } } this.tablert_alert_active_period_temp = ((rt_alert_active_period_tempDataTable)(base.Tables["rt_alert_active_period_temp"])); if ((initTable == true)) { if ((this.tablert_alert_active_period_temp != null)) { this.tablert_alert_active_period_temp.InitVars(); } } this.tablert_alert_informed_entity_temp = ((rt_alert_informed_entity_tempDataTable)(base.Tables["rt_alert_informed_entity_temp"])); if ((initTable == true)) { if ((this.tablert_alert_informed_entity_temp != null)) { this.tablert_alert_informed_entity_temp.InitVars(); } } this.relationrt_alert_rt_alert_informed_entity = this.Relations["rt_alert_rt_alert_informed_entity"]; this.relationrt_alert_rt_alert_active_period = this.Relations["rt_alert_rt_alert_active_period"]; this.relationrt_alert_temp_rt_alert_active_period_temp = this.Relations["rt_alert_temp_rt_alert_active_period_temp"]; this.relationrt_alert_temp_rt_alert_informed_entity_temp = this.Relations["rt_alert_temp_rt_alert_informed_entity_temp"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.DataSetName = "AlertsDataSet"; this.Prefix = ""; this.Namespace = "http://tempuri.org/AlertsDataSet.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tablegtfsrt_alert_denormalized = new gtfsrt_alert_denormalizedDataTable(); base.Tables.Add(this.tablegtfsrt_alert_denormalized); this.tablegtfsrt_alert_active_period_denormalized = new gtfsrt_alert_active_period_denormalizedDataTable(); base.Tables.Add(this.tablegtfsrt_alert_active_period_denormalized); this.tablegtfsrt_alert_informed_entity_denormalized = new gtfsrt_alert_informed_entity_denormalizedDataTable(); base.Tables.Add(this.tablegtfsrt_alert_informed_entity_denormalized); this.tablert_alert_times = new rt_alert_timesDataTable(); base.Tables.Add(this.tablert_alert_times); this.tablert_alert = new rt_alertDataTable(); base.Tables.Add(this.tablert_alert); this.tablert_alert_active_period = new rt_alert_active_periodDataTable(); base.Tables.Add(this.tablert_alert_active_period); this.tablert_alert_informed_entity = new rt_alert_informed_entityDataTable(); base.Tables.Add(this.tablert_alert_informed_entity); this.tablert_alert_temp = new rt_alert_tempDataTable(); base.Tables.Add(this.tablert_alert_temp); this.tablert_alert_active_period_temp = new rt_alert_active_period_tempDataTable(); base.Tables.Add(this.tablert_alert_active_period_temp); this.tablert_alert_informed_entity_temp = new rt_alert_informed_entity_tempDataTable(); base.Tables.Add(this.tablert_alert_informed_entity_temp); this.relationrt_alert_rt_alert_informed_entity = new global::System.Data.DataRelation("rt_alert_rt_alert_informed_entity", new global::System.Data.DataColumn[] { this.tablert_alert.alert_idColumn, this.tablert_alert.version_idColumn}, new global::System.Data.DataColumn[] { this.tablert_alert_informed_entity.alert_idColumn, this.tablert_alert_informed_entity.version_idColumn}, false); this.Relations.Add(this.relationrt_alert_rt_alert_informed_entity); this.relationrt_alert_rt_alert_active_period = new global::System.Data.DataRelation("rt_alert_rt_alert_active_period", new global::System.Data.DataColumn[] { this.tablert_alert.alert_idColumn, this.tablert_alert.version_idColumn}, new global::System.Data.DataColumn[] { this.tablert_alert_active_period.alert_idColumn, this.tablert_alert_active_period.version_idColumn}, false); this.Relations.Add(this.relationrt_alert_rt_alert_active_period); this.relationrt_alert_temp_rt_alert_active_period_temp = new global::System.Data.DataRelation("rt_alert_temp_rt_alert_active_period_temp", new global::System.Data.DataColumn[] { this.tablert_alert_temp.alert_idColumn, this.tablert_alert_temp.version_idColumn}, new global::System.Data.DataColumn[] { this.tablert_alert_active_period_temp.alert_idColumn, this.tablert_alert_active_period_temp.version_idColumn}, false); this.Relations.Add(this.relationrt_alert_temp_rt_alert_active_period_temp); this.relationrt_alert_temp_rt_alert_informed_entity_temp = new global::System.Data.DataRelation("rt_alert_temp_rt_alert_informed_entity_temp", new global::System.Data.DataColumn[] { this.tablert_alert_temp.alert_idColumn, this.tablert_alert_temp.version_idColumn}, new global::System.Data.DataColumn[] { this.tablert_alert_informed_entity_temp.alert_idColumn, this.tablert_alert_informed_entity_temp.version_idColumn}, false); this.Relations.Add(this.relationrt_alert_temp_rt_alert_informed_entity_temp); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializegtfsrt_alert_denormalized() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializegtfsrt_alert_active_period_denormalized() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializegtfsrt_alert_informed_entity_denormalized() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert_times() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert_active_period() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert_informed_entity() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert_temp() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert_active_period_temp() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializert_alert_informed_entity_temp() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { this.InitVars(); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void gtfsrt_alert_denormalizedRowChangeEventHandler(object sender, gtfsrt_alert_denormalizedRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void gtfsrt_alert_active_period_denormalizedRowChangeEventHandler(object sender, gtfsrt_alert_active_period_denormalizedRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void gtfsrt_alert_informed_entity_denormalizedRowChangeEventHandler(object sender, gtfsrt_alert_informed_entity_denormalizedRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alert_timesRowChangeEventHandler(object sender, rt_alert_timesRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alertRowChangeEventHandler(object sender, rt_alertRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alert_active_periodRowChangeEventHandler(object sender, rt_alert_active_periodRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alert_informed_entityRowChangeEventHandler(object sender, rt_alert_informed_entityRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alert_tempRowChangeEventHandler(object sender, rt_alert_tempRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alert_active_period_tempRowChangeEventHandler(object sender, rt_alert_active_period_tempRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void rt_alert_informed_entity_tempRowChangeEventHandler(object sender, rt_alert_informed_entity_tempRowChangeEvent e); /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class gtfsrt_alert_denormalizedDataTable : global::System.Data.TypedTableBase<gtfsrt_alert_denormalizedRow> { private global::System.Data.DataColumn columngtfs_realtime_version; private global::System.Data.DataColumn columnincrementality; private global::System.Data.DataColumn columnheader_timestamp; private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columncause; private global::System.Data.DataColumn columneffect; private global::System.Data.DataColumn columnheader_text; private global::System.Data.DataColumn columnheader_language; private global::System.Data.DataColumn columndescription_text; private global::System.Data.DataColumn columndescription_language; private global::System.Data.DataColumn columnurl; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedDataTable() { this.TableName = "gtfsrt_alert_denormalized"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal gtfsrt_alert_denormalizedDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected gtfsrt_alert_denormalizedDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn gtfs_realtime_versionColumn { get { return this.columngtfs_realtime_version; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn incrementalityColumn { get { return this.columnincrementality; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_timestampColumn { get { return this.columnheader_timestamp; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn causeColumn { get { return this.columncause; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn effectColumn { get { return this.columneffect; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_textColumn { get { return this.columnheader_text; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_languageColumn { get { return this.columnheader_language; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn description_textColumn { get { return this.columndescription_text; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn description_languageColumn { get { return this.columndescription_language; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn urlColumn { get { return this.columnurl; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedRow this[int index] { get { return ((gtfsrt_alert_denormalizedRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_denormalizedRowChangeEventHandler gtfsrt_alert_denormalizedRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_denormalizedRowChangeEventHandler gtfsrt_alert_denormalizedRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_denormalizedRowChangeEventHandler gtfsrt_alert_denormalizedRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_denormalizedRowChangeEventHandler gtfsrt_alert_denormalizedRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addgtfsrt_alert_denormalizedRow(gtfsrt_alert_denormalizedRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedRow Addgtfsrt_alert_denormalizedRow(string gtfs_realtime_version, string incrementality, int header_timestamp, string alert_id, string cause, string effect, string header_text, string header_language, string description_text, string description_language, string url) { gtfsrt_alert_denormalizedRow rowgtfsrt_alert_denormalizedRow = ((gtfsrt_alert_denormalizedRow)(this.NewRow())); object[] columnValuesArray = new object[] { gtfs_realtime_version, incrementality, header_timestamp, alert_id, cause, effect, header_text, header_language, description_text, description_language, url}; rowgtfsrt_alert_denormalizedRow.ItemArray = columnValuesArray; this.Rows.Add(rowgtfsrt_alert_denormalizedRow); return rowgtfsrt_alert_denormalizedRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { gtfsrt_alert_denormalizedDataTable cln = ((gtfsrt_alert_denormalizedDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new gtfsrt_alert_denormalizedDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columngtfs_realtime_version = base.Columns["gtfs_realtime_version"]; this.columnincrementality = base.Columns["incrementality"]; this.columnheader_timestamp = base.Columns["header_timestamp"]; this.columnalert_id = base.Columns["alert_id"]; this.columncause = base.Columns["cause"]; this.columneffect = base.Columns["effect"]; this.columnheader_text = base.Columns["header_text"]; this.columnheader_language = base.Columns["header_language"]; this.columndescription_text = base.Columns["description_text"]; this.columndescription_language = base.Columns["description_language"]; this.columnurl = base.Columns["url"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columngtfs_realtime_version = new global::System.Data.DataColumn("gtfs_realtime_version", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columngtfs_realtime_version); this.columnincrementality = new global::System.Data.DataColumn("incrementality", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnincrementality); this.columnheader_timestamp = new global::System.Data.DataColumn("header_timestamp", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_timestamp); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columncause = new global::System.Data.DataColumn("cause", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columncause); this.columneffect = new global::System.Data.DataColumn("effect", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columneffect); this.columnheader_text = new global::System.Data.DataColumn("header_text", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_text); this.columnheader_language = new global::System.Data.DataColumn("header_language", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_language); this.columndescription_text = new global::System.Data.DataColumn("description_text", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columndescription_text); this.columndescription_language = new global::System.Data.DataColumn("description_language", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columndescription_language); this.columnurl = new global::System.Data.DataColumn("url", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnurl); this.columngtfs_realtime_version.MaxLength = 255; this.columnincrementality.MaxLength = 255; this.columnheader_timestamp.AllowDBNull = false; this.columnalert_id.MaxLength = 255; this.columncause.MaxLength = 255; this.columneffect.MaxLength = 255; this.columnheader_text.MaxLength = 255; this.columnheader_language.MaxLength = 255; this.columndescription_text.MaxLength = 3100; this.columndescription_language.MaxLength = 255; this.columnurl.MaxLength = 255; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedRow Newgtfsrt_alert_denormalizedRow() { return ((gtfsrt_alert_denormalizedRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new gtfsrt_alert_denormalizedRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(gtfsrt_alert_denormalizedRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.gtfsrt_alert_denormalizedRowChanged != null)) { this.gtfsrt_alert_denormalizedRowChanged(this, new gtfsrt_alert_denormalizedRowChangeEvent(((gtfsrt_alert_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.gtfsrt_alert_denormalizedRowChanging != null)) { this.gtfsrt_alert_denormalizedRowChanging(this, new gtfsrt_alert_denormalizedRowChangeEvent(((gtfsrt_alert_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.gtfsrt_alert_denormalizedRowDeleted != null)) { this.gtfsrt_alert_denormalizedRowDeleted(this, new gtfsrt_alert_denormalizedRowChangeEvent(((gtfsrt_alert_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.gtfsrt_alert_denormalizedRowDeleting != null)) { this.gtfsrt_alert_denormalizedRowDeleting(this, new gtfsrt_alert_denormalizedRowChangeEvent(((gtfsrt_alert_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removegtfsrt_alert_denormalizedRow(gtfsrt_alert_denormalizedRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "gtfsrt_alert_denormalizedDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class gtfsrt_alert_active_period_denormalizedDataTable : global::System.Data.TypedTableBase<gtfsrt_alert_active_period_denormalizedRow> { private global::System.Data.DataColumn columnheader_timestamp; private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columnactive_period_start; private global::System.Data.DataColumn columnactive_period_end; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedDataTable() { this.TableName = "gtfsrt_alert_active_period_denormalized"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal gtfsrt_alert_active_period_denormalizedDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected gtfsrt_alert_active_period_denormalizedDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_timestampColumn { get { return this.columnheader_timestamp; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn active_period_startColumn { get { return this.columnactive_period_start; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn active_period_endColumn { get { return this.columnactive_period_end; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedRow this[int index] { get { return ((gtfsrt_alert_active_period_denormalizedRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_active_period_denormalizedRowChangeEventHandler gtfsrt_alert_active_period_denormalizedRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_active_period_denormalizedRowChangeEventHandler gtfsrt_alert_active_period_denormalizedRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_active_period_denormalizedRowChangeEventHandler gtfsrt_alert_active_period_denormalizedRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_active_period_denormalizedRowChangeEventHandler gtfsrt_alert_active_period_denormalizedRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addgtfsrt_alert_active_period_denormalizedRow(gtfsrt_alert_active_period_denormalizedRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedRow Addgtfsrt_alert_active_period_denormalizedRow(int header_timestamp, string alert_id, int active_period_start, int active_period_end) { gtfsrt_alert_active_period_denormalizedRow rowgtfsrt_alert_active_period_denormalizedRow = ((gtfsrt_alert_active_period_denormalizedRow)(this.NewRow())); object[] columnValuesArray = new object[] { header_timestamp, alert_id, active_period_start, active_period_end}; rowgtfsrt_alert_active_period_denormalizedRow.ItemArray = columnValuesArray; this.Rows.Add(rowgtfsrt_alert_active_period_denormalizedRow); return rowgtfsrt_alert_active_period_denormalizedRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { gtfsrt_alert_active_period_denormalizedDataTable cln = ((gtfsrt_alert_active_period_denormalizedDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new gtfsrt_alert_active_period_denormalizedDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnheader_timestamp = base.Columns["header_timestamp"]; this.columnalert_id = base.Columns["alert_id"]; this.columnactive_period_start = base.Columns["active_period_start"]; this.columnactive_period_end = base.Columns["active_period_end"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnheader_timestamp = new global::System.Data.DataColumn("header_timestamp", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_timestamp); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnactive_period_start = new global::System.Data.DataColumn("active_period_start", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnactive_period_start); this.columnactive_period_end = new global::System.Data.DataColumn("active_period_end", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnactive_period_end); this.columnheader_timestamp.AllowDBNull = false; this.columnalert_id.MaxLength = 255; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedRow Newgtfsrt_alert_active_period_denormalizedRow() { return ((gtfsrt_alert_active_period_denormalizedRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new gtfsrt_alert_active_period_denormalizedRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(gtfsrt_alert_active_period_denormalizedRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.gtfsrt_alert_active_period_denormalizedRowChanged != null)) { this.gtfsrt_alert_active_period_denormalizedRowChanged(this, new gtfsrt_alert_active_period_denormalizedRowChangeEvent(((gtfsrt_alert_active_period_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.gtfsrt_alert_active_period_denormalizedRowChanging != null)) { this.gtfsrt_alert_active_period_denormalizedRowChanging(this, new gtfsrt_alert_active_period_denormalizedRowChangeEvent(((gtfsrt_alert_active_period_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.gtfsrt_alert_active_period_denormalizedRowDeleted != null)) { this.gtfsrt_alert_active_period_denormalizedRowDeleted(this, new gtfsrt_alert_active_period_denormalizedRowChangeEvent(((gtfsrt_alert_active_period_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.gtfsrt_alert_active_period_denormalizedRowDeleting != null)) { this.gtfsrt_alert_active_period_denormalizedRowDeleting(this, new gtfsrt_alert_active_period_denormalizedRowChangeEvent(((gtfsrt_alert_active_period_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removegtfsrt_alert_active_period_denormalizedRow(gtfsrt_alert_active_period_denormalizedRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "gtfsrt_alert_active_period_denormalizedDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class gtfsrt_alert_informed_entity_denormalizedDataTable : global::System.Data.TypedTableBase<gtfsrt_alert_informed_entity_denormalizedRow> { private global::System.Data.DataColumn columnheader_timestamp; private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columnagency_id; private global::System.Data.DataColumn columnroute_id; private global::System.Data.DataColumn columnroute_type; private global::System.Data.DataColumn columntrip_id; private global::System.Data.DataColumn columnstop_id; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedDataTable() { this.TableName = "gtfsrt_alert_informed_entity_denormalized"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal gtfsrt_alert_informed_entity_denormalizedDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected gtfsrt_alert_informed_entity_denormalizedDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_timestampColumn { get { return this.columnheader_timestamp; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn agency_idColumn { get { return this.columnagency_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn route_idColumn { get { return this.columnroute_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn route_typeColumn { get { return this.columnroute_type; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn trip_idColumn { get { return this.columntrip_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn stop_idColumn { get { return this.columnstop_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedRow this[int index] { get { return ((gtfsrt_alert_informed_entity_denormalizedRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_informed_entity_denormalizedRowChangeEventHandler gtfsrt_alert_informed_entity_denormalizedRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_informed_entity_denormalizedRowChangeEventHandler gtfsrt_alert_informed_entity_denormalizedRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_informed_entity_denormalizedRowChangeEventHandler gtfsrt_alert_informed_entity_denormalizedRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event gtfsrt_alert_informed_entity_denormalizedRowChangeEventHandler gtfsrt_alert_informed_entity_denormalizedRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addgtfsrt_alert_informed_entity_denormalizedRow(gtfsrt_alert_informed_entity_denormalizedRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedRow Addgtfsrt_alert_informed_entity_denormalizedRow(int header_timestamp, string alert_id, string agency_id, string route_id, int route_type, string trip_id, string stop_id) { gtfsrt_alert_informed_entity_denormalizedRow rowgtfsrt_alert_informed_entity_denormalizedRow = ((gtfsrt_alert_informed_entity_denormalizedRow)(this.NewRow())); object[] columnValuesArray = new object[] { header_timestamp, alert_id, agency_id, route_id, route_type, trip_id, stop_id}; rowgtfsrt_alert_informed_entity_denormalizedRow.ItemArray = columnValuesArray; this.Rows.Add(rowgtfsrt_alert_informed_entity_denormalizedRow); return rowgtfsrt_alert_informed_entity_denormalizedRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { gtfsrt_alert_informed_entity_denormalizedDataTable cln = ((gtfsrt_alert_informed_entity_denormalizedDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new gtfsrt_alert_informed_entity_denormalizedDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnheader_timestamp = base.Columns["header_timestamp"]; this.columnalert_id = base.Columns["alert_id"]; this.columnagency_id = base.Columns["agency_id"]; this.columnroute_id = base.Columns["route_id"]; this.columnroute_type = base.Columns["route_type"]; this.columntrip_id = base.Columns["trip_id"]; this.columnstop_id = base.Columns["stop_id"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnheader_timestamp = new global::System.Data.DataColumn("header_timestamp", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_timestamp); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnagency_id = new global::System.Data.DataColumn("agency_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnagency_id); this.columnroute_id = new global::System.Data.DataColumn("route_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnroute_id); this.columnroute_type = new global::System.Data.DataColumn("route_type", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnroute_type); this.columntrip_id = new global::System.Data.DataColumn("trip_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntrip_id); this.columnstop_id = new global::System.Data.DataColumn("stop_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnstop_id); this.columnheader_timestamp.AllowDBNull = false; this.columnalert_id.MaxLength = 255; this.columnagency_id.MaxLength = 255; this.columnroute_id.MaxLength = 255; this.columntrip_id.MaxLength = 255; this.columnstop_id.MaxLength = 255; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedRow Newgtfsrt_alert_informed_entity_denormalizedRow() { return ((gtfsrt_alert_informed_entity_denormalizedRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new gtfsrt_alert_informed_entity_denormalizedRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(gtfsrt_alert_informed_entity_denormalizedRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.gtfsrt_alert_informed_entity_denormalizedRowChanged != null)) { this.gtfsrt_alert_informed_entity_denormalizedRowChanged(this, new gtfsrt_alert_informed_entity_denormalizedRowChangeEvent(((gtfsrt_alert_informed_entity_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.gtfsrt_alert_informed_entity_denormalizedRowChanging != null)) { this.gtfsrt_alert_informed_entity_denormalizedRowChanging(this, new gtfsrt_alert_informed_entity_denormalizedRowChangeEvent(((gtfsrt_alert_informed_entity_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.gtfsrt_alert_informed_entity_denormalizedRowDeleted != null)) { this.gtfsrt_alert_informed_entity_denormalizedRowDeleted(this, new gtfsrt_alert_informed_entity_denormalizedRowChangeEvent(((gtfsrt_alert_informed_entity_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.gtfsrt_alert_informed_entity_denormalizedRowDeleting != null)) { this.gtfsrt_alert_informed_entity_denormalizedRowDeleting(this, new gtfsrt_alert_informed_entity_denormalizedRowChangeEvent(((gtfsrt_alert_informed_entity_denormalizedRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removegtfsrt_alert_informed_entity_denormalizedRow(gtfsrt_alert_informed_entity_denormalizedRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "gtfsrt_alert_informed_entity_denormalizedDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alert_timesDataTable : global::System.Data.TypedTableBase<rt_alert_timesRow> { private global::System.Data.DataColumn columnfile_time; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesDataTable() { this.TableName = "rt_alert_times"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_timesDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alert_timesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn file_timeColumn { get { return this.columnfile_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesRow this[int index] { get { return ((rt_alert_timesRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_timesRowChangeEventHandler rt_alert_timesRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_timesRowChangeEventHandler rt_alert_timesRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_timesRowChangeEventHandler rt_alert_timesRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_timesRowChangeEventHandler rt_alert_timesRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alert_timesRow(rt_alert_timesRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesRow Addrt_alert_timesRow(int file_time) { rt_alert_timesRow rowrt_alert_timesRow = ((rt_alert_timesRow)(this.NewRow())); object[] columnValuesArray = new object[] { file_time}; rowrt_alert_timesRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alert_timesRow); return rowrt_alert_timesRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alert_timesDataTable cln = ((rt_alert_timesDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alert_timesDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnfile_time = base.Columns["file_time"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnfile_time = new global::System.Data.DataColumn("file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnfile_time); this.columnfile_time.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesRow Newrt_alert_timesRow() { return ((rt_alert_timesRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alert_timesRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alert_timesRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alert_timesRowChanged != null)) { this.rt_alert_timesRowChanged(this, new rt_alert_timesRowChangeEvent(((rt_alert_timesRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alert_timesRowChanging != null)) { this.rt_alert_timesRowChanging(this, new rt_alert_timesRowChangeEvent(((rt_alert_timesRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alert_timesRowDeleted != null)) { this.rt_alert_timesRowDeleted(this, new rt_alert_timesRowChangeEvent(((rt_alert_timesRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alert_timesRowDeleting != null)) { this.rt_alert_timesRowDeleting(this, new rt_alert_timesRowChangeEvent(((rt_alert_timesRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alert_timesRow(rt_alert_timesRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alert_timesDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alertDataTable : global::System.Data.TypedTableBase<rt_alertRow> { private global::System.Data.DataColumn columnrecord_id; private global::System.Data.DataColumn columnfile_time; private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columnversion_id; private global::System.Data.DataColumn columncause; private global::System.Data.DataColumn columneffect; private global::System.Data.DataColumn columnheader_text; private global::System.Data.DataColumn columndescription_text; private global::System.Data.DataColumn columnurl; private global::System.Data.DataColumn columnclosed; private global::System.Data.DataColumn columnfirst_file_time; private global::System.Data.DataColumn columnlast_file_time; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertDataTable() { this.TableName = "rt_alert"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alertDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alertDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn record_idColumn { get { return this.columnrecord_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn file_timeColumn { get { return this.columnfile_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn version_idColumn { get { return this.columnversion_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn causeColumn { get { return this.columncause; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn effectColumn { get { return this.columneffect; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_textColumn { get { return this.columnheader_text; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn description_textColumn { get { return this.columndescription_text; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn urlColumn { get { return this.columnurl; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn closedColumn { get { return this.columnclosed; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn first_file_timeColumn { get { return this.columnfirst_file_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn last_file_timeColumn { get { return this.columnlast_file_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow this[int index] { get { return ((rt_alertRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alertRowChangeEventHandler rt_alertRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alertRowChangeEventHandler rt_alertRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alertRowChangeEventHandler rt_alertRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alertRowChangeEventHandler rt_alertRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alertRow(rt_alertRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow Addrt_alertRow(int file_time, string alert_id, int version_id, string cause, string effect, string header_text, string description_text, string url, bool closed, int first_file_time, int last_file_time) { rt_alertRow rowrt_alertRow = ((rt_alertRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, file_time, alert_id, version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time}; rowrt_alertRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alertRow); return rowrt_alertRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow FindByalert_idversion_id(string alert_id, int version_id) { return ((rt_alertRow)(this.Rows.Find(new object[] { alert_id, version_id}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alertDataTable cln = ((rt_alertDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alertDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnrecord_id = base.Columns["record_id"]; this.columnfile_time = base.Columns["file_time"]; this.columnalert_id = base.Columns["alert_id"]; this.columnversion_id = base.Columns["version_id"]; this.columncause = base.Columns["cause"]; this.columneffect = base.Columns["effect"]; this.columnheader_text = base.Columns["header_text"]; this.columndescription_text = base.Columns["description_text"]; this.columnurl = base.Columns["url"]; this.columnclosed = base.Columns["closed"]; this.columnfirst_file_time = base.Columns["first_file_time"]; this.columnlast_file_time = base.Columns["last_file_time"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnrecord_id = new global::System.Data.DataColumn("record_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnrecord_id); this.columnfile_time = new global::System.Data.DataColumn("file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnfile_time); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnversion_id = new global::System.Data.DataColumn("version_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnversion_id); this.columncause = new global::System.Data.DataColumn("cause", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columncause); this.columneffect = new global::System.Data.DataColumn("effect", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columneffect); this.columnheader_text = new global::System.Data.DataColumn("header_text", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_text); this.columndescription_text = new global::System.Data.DataColumn("description_text", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columndescription_text); this.columnurl = new global::System.Data.DataColumn("url", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnurl); this.columnclosed = new global::System.Data.DataColumn("closed", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnclosed); this.columnfirst_file_time = new global::System.Data.DataColumn("first_file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnfirst_file_time); this.columnlast_file_time = new global::System.Data.DataColumn("last_file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnlast_file_time); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnalert_id, this.columnversion_id}, true)); this.columnrecord_id.AutoIncrement = true; this.columnrecord_id.AutoIncrementSeed = -1; this.columnrecord_id.AutoIncrementStep = -1; this.columnrecord_id.AllowDBNull = false; this.columnrecord_id.ReadOnly = true; this.columnfile_time.AllowDBNull = false; this.columnalert_id.AllowDBNull = false; this.columnalert_id.MaxLength = 255; this.columnversion_id.AllowDBNull = false; this.columncause.MaxLength = 255; this.columneffect.MaxLength = 255; this.columnheader_text.MaxLength = 255; this.columndescription_text.MaxLength = 3100; this.columnurl.MaxLength = 255; this.columnclosed.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow Newrt_alertRow() { return ((rt_alertRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alertRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alertRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alertRowChanged != null)) { this.rt_alertRowChanged(this, new rt_alertRowChangeEvent(((rt_alertRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alertRowChanging != null)) { this.rt_alertRowChanging(this, new rt_alertRowChangeEvent(((rt_alertRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alertRowDeleted != null)) { this.rt_alertRowDeleted(this, new rt_alertRowChangeEvent(((rt_alertRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alertRowDeleting != null)) { this.rt_alertRowDeleting(this, new rt_alertRowChangeEvent(((rt_alertRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alertRow(rt_alertRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alertDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alert_active_periodDataTable : global::System.Data.TypedTableBase<rt_alert_active_periodRow> { private global::System.Data.DataColumn columnversion_id; private global::System.Data.DataColumn columnactive_period_start; private global::System.Data.DataColumn columnactive_period_end; private global::System.Data.DataColumn columnalert_id; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodDataTable() { this.TableName = "rt_alert_active_period"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_active_periodDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alert_active_periodDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn version_idColumn { get { return this.columnversion_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn active_period_startColumn { get { return this.columnactive_period_start; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn active_period_endColumn { get { return this.columnactive_period_end; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodRow this[int index] { get { return ((rt_alert_active_periodRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_periodRowChangeEventHandler rt_alert_active_periodRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_periodRowChangeEventHandler rt_alert_active_periodRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_periodRowChangeEventHandler rt_alert_active_periodRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_periodRowChangeEventHandler rt_alert_active_periodRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alert_active_periodRow(rt_alert_active_periodRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodRow Addrt_alert_active_periodRow(int version_id, int active_period_start, int active_period_end, string alert_id) { rt_alert_active_periodRow rowrt_alert_active_periodRow = ((rt_alert_active_periodRow)(this.NewRow())); object[] columnValuesArray = new object[] { version_id, active_period_start, active_period_end, alert_id}; rowrt_alert_active_periodRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alert_active_periodRow); return rowrt_alert_active_periodRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alert_active_periodDataTable cln = ((rt_alert_active_periodDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alert_active_periodDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnversion_id = base.Columns["version_id"]; this.columnactive_period_start = base.Columns["active_period_start"]; this.columnactive_period_end = base.Columns["active_period_end"]; this.columnalert_id = base.Columns["alert_id"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnversion_id = new global::System.Data.DataColumn("version_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnversion_id); this.columnactive_period_start = new global::System.Data.DataColumn("active_period_start", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnactive_period_start); this.columnactive_period_end = new global::System.Data.DataColumn("active_period_end", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnactive_period_end); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnversion_id.AllowDBNull = false; this.columnalert_id.AllowDBNull = false; this.columnalert_id.MaxLength = 255; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodRow Newrt_alert_active_periodRow() { return ((rt_alert_active_periodRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alert_active_periodRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alert_active_periodRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alert_active_periodRowChanged != null)) { this.rt_alert_active_periodRowChanged(this, new rt_alert_active_periodRowChangeEvent(((rt_alert_active_periodRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alert_active_periodRowChanging != null)) { this.rt_alert_active_periodRowChanging(this, new rt_alert_active_periodRowChangeEvent(((rt_alert_active_periodRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alert_active_periodRowDeleted != null)) { this.rt_alert_active_periodRowDeleted(this, new rt_alert_active_periodRowChangeEvent(((rt_alert_active_periodRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alert_active_periodRowDeleting != null)) { this.rt_alert_active_periodRowDeleting(this, new rt_alert_active_periodRowChangeEvent(((rt_alert_active_periodRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alert_active_periodRow(rt_alert_active_periodRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alert_active_periodDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alert_informed_entityDataTable : global::System.Data.TypedTableBase<rt_alert_informed_entityRow> { private global::System.Data.DataColumn columnversion_id; private global::System.Data.DataColumn columnagency_id; private global::System.Data.DataColumn columnroute_id; private global::System.Data.DataColumn columnroute_type; private global::System.Data.DataColumn columntrip_id; private global::System.Data.DataColumn columnstop_id; private global::System.Data.DataColumn columnalert_id; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityDataTable() { this.TableName = "rt_alert_informed_entity"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_informed_entityDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alert_informed_entityDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn version_idColumn { get { return this.columnversion_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn agency_idColumn { get { return this.columnagency_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn route_idColumn { get { return this.columnroute_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn route_typeColumn { get { return this.columnroute_type; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn trip_idColumn { get { return this.columntrip_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn stop_idColumn { get { return this.columnstop_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityRow this[int index] { get { return ((rt_alert_informed_entityRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entityRowChangeEventHandler rt_alert_informed_entityRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entityRowChangeEventHandler rt_alert_informed_entityRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entityRowChangeEventHandler rt_alert_informed_entityRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entityRowChangeEventHandler rt_alert_informed_entityRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alert_informed_entityRow(rt_alert_informed_entityRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityRow Addrt_alert_informed_entityRow(int version_id, string agency_id, string route_id, int route_type, string trip_id, string stop_id, string alert_id) { rt_alert_informed_entityRow rowrt_alert_informed_entityRow = ((rt_alert_informed_entityRow)(this.NewRow())); object[] columnValuesArray = new object[] { version_id, agency_id, route_id, route_type, trip_id, stop_id, alert_id}; rowrt_alert_informed_entityRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alert_informed_entityRow); return rowrt_alert_informed_entityRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alert_informed_entityDataTable cln = ((rt_alert_informed_entityDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alert_informed_entityDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnversion_id = base.Columns["version_id"]; this.columnagency_id = base.Columns["agency_id"]; this.columnroute_id = base.Columns["route_id"]; this.columnroute_type = base.Columns["route_type"]; this.columntrip_id = base.Columns["trip_id"]; this.columnstop_id = base.Columns["stop_id"]; this.columnalert_id = base.Columns["alert_id"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnversion_id = new global::System.Data.DataColumn("version_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnversion_id); this.columnagency_id = new global::System.Data.DataColumn("agency_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnagency_id); this.columnroute_id = new global::System.Data.DataColumn("route_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnroute_id); this.columnroute_type = new global::System.Data.DataColumn("route_type", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnroute_type); this.columntrip_id = new global::System.Data.DataColumn("trip_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntrip_id); this.columnstop_id = new global::System.Data.DataColumn("stop_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnstop_id); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnversion_id.AllowDBNull = false; this.columnagency_id.MaxLength = 255; this.columnroute_id.MaxLength = 255; this.columntrip_id.MaxLength = 255; this.columnstop_id.MaxLength = 255; this.columnalert_id.AllowDBNull = false; this.columnalert_id.MaxLength = 255; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityRow Newrt_alert_informed_entityRow() { return ((rt_alert_informed_entityRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alert_informed_entityRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alert_informed_entityRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alert_informed_entityRowChanged != null)) { this.rt_alert_informed_entityRowChanged(this, new rt_alert_informed_entityRowChangeEvent(((rt_alert_informed_entityRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alert_informed_entityRowChanging != null)) { this.rt_alert_informed_entityRowChanging(this, new rt_alert_informed_entityRowChangeEvent(((rt_alert_informed_entityRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alert_informed_entityRowDeleted != null)) { this.rt_alert_informed_entityRowDeleted(this, new rt_alert_informed_entityRowChangeEvent(((rt_alert_informed_entityRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alert_informed_entityRowDeleting != null)) { this.rt_alert_informed_entityRowDeleting(this, new rt_alert_informed_entityRowChangeEvent(((rt_alert_informed_entityRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alert_informed_entityRow(rt_alert_informed_entityRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alert_informed_entityDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alert_tempDataTable : global::System.Data.TypedTableBase<rt_alert_tempRow> { private global::System.Data.DataColumn columnrecord_id; private global::System.Data.DataColumn columnfile_time; private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columnversion_id; private global::System.Data.DataColumn columncause; private global::System.Data.DataColumn columneffect; private global::System.Data.DataColumn columnheader_text; private global::System.Data.DataColumn columndescription_text; private global::System.Data.DataColumn columnurl; private global::System.Data.DataColumn columnclosed; private global::System.Data.DataColumn columnfirst_file_time; private global::System.Data.DataColumn columnlast_file_time; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempDataTable() { this.TableName = "rt_alert_temp"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_tempDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alert_tempDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn record_idColumn { get { return this.columnrecord_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn file_timeColumn { get { return this.columnfile_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn version_idColumn { get { return this.columnversion_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn causeColumn { get { return this.columncause; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn effectColumn { get { return this.columneffect; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn header_textColumn { get { return this.columnheader_text; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn description_textColumn { get { return this.columndescription_text; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn urlColumn { get { return this.columnurl; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn closedColumn { get { return this.columnclosed; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn first_file_timeColumn { get { return this.columnfirst_file_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn last_file_timeColumn { get { return this.columnlast_file_time; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow this[int index] { get { return ((rt_alert_tempRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_tempRowChangeEventHandler rt_alert_tempRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_tempRowChangeEventHandler rt_alert_tempRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_tempRowChangeEventHandler rt_alert_tempRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_tempRowChangeEventHandler rt_alert_tempRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alert_tempRow(rt_alert_tempRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow Addrt_alert_tempRow(int file_time, int alert_id, int version_id, string cause, string effect, string header_text, string description_text, string url, bool closed, int first_file_time, int last_file_time) { rt_alert_tempRow rowrt_alert_tempRow = ((rt_alert_tempRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, file_time, alert_id, version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time}; rowrt_alert_tempRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alert_tempRow); return rowrt_alert_tempRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow FindByalert_idversion_id(int alert_id, int version_id) { return ((rt_alert_tempRow)(this.Rows.Find(new object[] { alert_id, version_id}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alert_tempDataTable cln = ((rt_alert_tempDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alert_tempDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnrecord_id = base.Columns["record_id"]; this.columnfile_time = base.Columns["file_time"]; this.columnalert_id = base.Columns["alert_id"]; this.columnversion_id = base.Columns["version_id"]; this.columncause = base.Columns["cause"]; this.columneffect = base.Columns["effect"]; this.columnheader_text = base.Columns["header_text"]; this.columndescription_text = base.Columns["description_text"]; this.columnurl = base.Columns["url"]; this.columnclosed = base.Columns["closed"]; this.columnfirst_file_time = base.Columns["first_file_time"]; this.columnlast_file_time = base.Columns["last_file_time"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnrecord_id = new global::System.Data.DataColumn("record_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnrecord_id); this.columnfile_time = new global::System.Data.DataColumn("file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnfile_time); this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnversion_id = new global::System.Data.DataColumn("version_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnversion_id); this.columncause = new global::System.Data.DataColumn("cause", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columncause); this.columneffect = new global::System.Data.DataColumn("effect", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columneffect); this.columnheader_text = new global::System.Data.DataColumn("header_text", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnheader_text); this.columndescription_text = new global::System.Data.DataColumn("description_text", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columndescription_text); this.columnurl = new global::System.Data.DataColumn("url", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnurl); this.columnclosed = new global::System.Data.DataColumn("closed", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnclosed); this.columnfirst_file_time = new global::System.Data.DataColumn("first_file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnfirst_file_time); this.columnlast_file_time = new global::System.Data.DataColumn("last_file_time", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnlast_file_time); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnalert_id, this.columnversion_id}, true)); this.columnrecord_id.AutoIncrement = true; this.columnrecord_id.AutoIncrementSeed = -1; this.columnrecord_id.AutoIncrementStep = -1; this.columnrecord_id.AllowDBNull = false; this.columnrecord_id.ReadOnly = true; this.columnfile_time.AllowDBNull = false; this.columnalert_id.AllowDBNull = false; this.columnversion_id.AllowDBNull = false; this.columncause.MaxLength = 255; this.columneffect.MaxLength = 255; this.columnheader_text.MaxLength = 255; this.columndescription_text.MaxLength = 3100; this.columnurl.MaxLength = 255; this.columnclosed.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow Newrt_alert_tempRow() { return ((rt_alert_tempRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alert_tempRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alert_tempRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alert_tempRowChanged != null)) { this.rt_alert_tempRowChanged(this, new rt_alert_tempRowChangeEvent(((rt_alert_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alert_tempRowChanging != null)) { this.rt_alert_tempRowChanging(this, new rt_alert_tempRowChangeEvent(((rt_alert_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alert_tempRowDeleted != null)) { this.rt_alert_tempRowDeleted(this, new rt_alert_tempRowChangeEvent(((rt_alert_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alert_tempRowDeleting != null)) { this.rt_alert_tempRowDeleting(this, new rt_alert_tempRowChangeEvent(((rt_alert_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alert_tempRow(rt_alert_tempRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alert_tempDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alert_active_period_tempDataTable : global::System.Data.TypedTableBase<rt_alert_active_period_tempRow> { private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columnversion_id; private global::System.Data.DataColumn columnactive_period_start; private global::System.Data.DataColumn columnactive_period_end; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempDataTable() { this.TableName = "rt_alert_active_period_temp"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_active_period_tempDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alert_active_period_tempDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn version_idColumn { get { return this.columnversion_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn active_period_startColumn { get { return this.columnactive_period_start; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn active_period_endColumn { get { return this.columnactive_period_end; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempRow this[int index] { get { return ((rt_alert_active_period_tempRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_period_tempRowChangeEventHandler rt_alert_active_period_tempRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_period_tempRowChangeEventHandler rt_alert_active_period_tempRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_period_tempRowChangeEventHandler rt_alert_active_period_tempRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_active_period_tempRowChangeEventHandler rt_alert_active_period_tempRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alert_active_period_tempRow(rt_alert_active_period_tempRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempRow Addrt_alert_active_period_tempRow(int alert_id, int version_id, int active_period_start, int active_period_end) { rt_alert_active_period_tempRow rowrt_alert_active_period_tempRow = ((rt_alert_active_period_tempRow)(this.NewRow())); object[] columnValuesArray = new object[] { alert_id, version_id, active_period_start, active_period_end}; rowrt_alert_active_period_tempRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alert_active_period_tempRow); return rowrt_alert_active_period_tempRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alert_active_period_tempDataTable cln = ((rt_alert_active_period_tempDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alert_active_period_tempDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnalert_id = base.Columns["alert_id"]; this.columnversion_id = base.Columns["version_id"]; this.columnactive_period_start = base.Columns["active_period_start"]; this.columnactive_period_end = base.Columns["active_period_end"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnversion_id = new global::System.Data.DataColumn("version_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnversion_id); this.columnactive_period_start = new global::System.Data.DataColumn("active_period_start", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnactive_period_start); this.columnactive_period_end = new global::System.Data.DataColumn("active_period_end", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnactive_period_end); this.columnalert_id.AllowDBNull = false; this.columnversion_id.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempRow Newrt_alert_active_period_tempRow() { return ((rt_alert_active_period_tempRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alert_active_period_tempRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alert_active_period_tempRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alert_active_period_tempRowChanged != null)) { this.rt_alert_active_period_tempRowChanged(this, new rt_alert_active_period_tempRowChangeEvent(((rt_alert_active_period_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alert_active_period_tempRowChanging != null)) { this.rt_alert_active_period_tempRowChanging(this, new rt_alert_active_period_tempRowChangeEvent(((rt_alert_active_period_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alert_active_period_tempRowDeleted != null)) { this.rt_alert_active_period_tempRowDeleted(this, new rt_alert_active_period_tempRowChangeEvent(((rt_alert_active_period_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alert_active_period_tempRowDeleting != null)) { this.rt_alert_active_period_tempRowDeleting(this, new rt_alert_active_period_tempRowChangeEvent(((rt_alert_active_period_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alert_active_period_tempRow(rt_alert_active_period_tempRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alert_active_period_tempDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents the strongly named DataTable class. ///</summary> [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class rt_alert_informed_entity_tempDataTable : global::System.Data.TypedTableBase<rt_alert_informed_entity_tempRow> { private global::System.Data.DataColumn columnalert_id; private global::System.Data.DataColumn columnversion_id; private global::System.Data.DataColumn columnagency_id; private global::System.Data.DataColumn columnroute_id; private global::System.Data.DataColumn columnroute_type; private global::System.Data.DataColumn columntrip_id; private global::System.Data.DataColumn columnstop_id; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempDataTable() { this.TableName = "rt_alert_informed_entity_temp"; this.BeginInit(); this.InitClass(); this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_informed_entity_tempDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; } if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { this.Locale = table.Locale; } if ((table.Namespace != table.DataSet.Namespace)) { this.Namespace = table.Namespace; } this.Prefix = table.Prefix; this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected rt_alert_informed_entity_tempDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn alert_idColumn { get { return this.columnalert_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn version_idColumn { get { return this.columnversion_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn agency_idColumn { get { return this.columnagency_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn route_idColumn { get { return this.columnroute_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn route_typeColumn { get { return this.columnroute_type; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn trip_idColumn { get { return this.columntrip_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn stop_idColumn { get { return this.columnstop_id; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempRow this[int index] { get { return ((rt_alert_informed_entity_tempRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entity_tempRowChangeEventHandler rt_alert_informed_entity_tempRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entity_tempRowChangeEventHandler rt_alert_informed_entity_tempRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entity_tempRowChangeEventHandler rt_alert_informed_entity_tempRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public event rt_alert_informed_entity_tempRowChangeEventHandler rt_alert_informed_entity_tempRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Addrt_alert_informed_entity_tempRow(rt_alert_informed_entity_tempRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempRow Addrt_alert_informed_entity_tempRow(int alert_id, int version_id, string agency_id, string route_id, int route_type, string trip_id, string stop_id) { rt_alert_informed_entity_tempRow rowrt_alert_informed_entity_tempRow = ((rt_alert_informed_entity_tempRow)(this.NewRow())); object[] columnValuesArray = new object[] { alert_id, version_id, agency_id, route_id, route_type, trip_id, stop_id}; rowrt_alert_informed_entity_tempRow.ItemArray = columnValuesArray; this.Rows.Add(rowrt_alert_informed_entity_tempRow); return rowrt_alert_informed_entity_tempRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { rt_alert_informed_entity_tempDataTable cln = ((rt_alert_informed_entity_tempDataTable)(base.Clone())); cln.InitVars(); return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { return new rt_alert_informed_entity_tempDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { this.columnalert_id = base.Columns["alert_id"]; this.columnversion_id = base.Columns["version_id"]; this.columnagency_id = base.Columns["agency_id"]; this.columnroute_id = base.Columns["route_id"]; this.columnroute_type = base.Columns["route_type"]; this.columntrip_id = base.Columns["trip_id"]; this.columnstop_id = base.Columns["stop_id"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitClass() { this.columnalert_id = new global::System.Data.DataColumn("alert_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnalert_id); this.columnversion_id = new global::System.Data.DataColumn("version_id", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnversion_id); this.columnagency_id = new global::System.Data.DataColumn("agency_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnagency_id); this.columnroute_id = new global::System.Data.DataColumn("route_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnroute_id); this.columnroute_type = new global::System.Data.DataColumn("route_type", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnroute_type); this.columntrip_id = new global::System.Data.DataColumn("trip_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntrip_id); this.columnstop_id = new global::System.Data.DataColumn("stop_id", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnstop_id); this.columnalert_id.AllowDBNull = false; this.columnversion_id.AllowDBNull = false; this.columnagency_id.MaxLength = 255; this.columnroute_id.MaxLength = 255; this.columntrip_id.MaxLength = 255; this.columnstop_id.MaxLength = 255; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempRow Newrt_alert_informed_entity_tempRow() { return ((rt_alert_informed_entity_tempRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new rt_alert_informed_entity_tempRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { return typeof(rt_alert_informed_entity_tempRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.rt_alert_informed_entity_tempRowChanged != null)) { this.rt_alert_informed_entity_tempRowChanged(this, new rt_alert_informed_entity_tempRowChangeEvent(((rt_alert_informed_entity_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.rt_alert_informed_entity_tempRowChanging != null)) { this.rt_alert_informed_entity_tempRowChanging(this, new rt_alert_informed_entity_tempRowChangeEvent(((rt_alert_informed_entity_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.rt_alert_informed_entity_tempRowDeleted != null)) { this.rt_alert_informed_entity_tempRowDeleted(this, new rt_alert_informed_entity_tempRowChangeEvent(((rt_alert_informed_entity_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.rt_alert_informed_entity_tempRowDeleting != null)) { this.rt_alert_informed_entity_tempRowDeleting(this, new rt_alert_informed_entity_tempRowChangeEvent(((rt_alert_informed_entity_tempRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Removert_alert_informed_entity_tempRow(rt_alert_informed_entity_tempRow row) { this.Rows.Remove(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AlertsDataSet ds = new AlertsDataSet(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "rt_alert_informed_entity_tempDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte())); ) { ; } if ((s1.Position == s1.Length)) { return type; } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return type; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class gtfsrt_alert_denormalizedRow : global::System.Data.DataRow { private gtfsrt_alert_denormalizedDataTable tablegtfsrt_alert_denormalized; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal gtfsrt_alert_denormalizedRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablegtfsrt_alert_denormalized = ((gtfsrt_alert_denormalizedDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string gtfs_realtime_version { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.gtfs_realtime_versionColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'gtfs_realtime_version\' in table \'gtfsrt_alert_denormalized\'" + " is DBNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.gtfs_realtime_versionColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string incrementality { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.incrementalityColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'incrementality\' in table \'gtfsrt_alert_denormalized\' is DBN" + "ull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.incrementalityColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int header_timestamp { get { return ((int)(this[this.tablegtfsrt_alert_denormalized.header_timestampColumn])); } set { this[this.tablegtfsrt_alert_denormalized.header_timestampColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string alert_id { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.alert_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'alert_id\' in table \'gtfsrt_alert_denormalized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string cause { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.causeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'cause\' in table \'gtfsrt_alert_denormalized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.causeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string effect { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.effectColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'effect\' in table \'gtfsrt_alert_denormalized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.effectColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string header_text { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.header_textColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'header_text\' in table \'gtfsrt_alert_denormalized\' is DBNull" + ".", e); } } set { this[this.tablegtfsrt_alert_denormalized.header_textColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string header_language { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.header_languageColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'header_language\' in table \'gtfsrt_alert_denormalized\' is DB" + "Null.", e); } } set { this[this.tablegtfsrt_alert_denormalized.header_languageColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string description_text { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.description_textColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'description_text\' in table \'gtfsrt_alert_denormalized\' is D" + "BNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.description_textColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string description_language { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.description_languageColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'description_language\' in table \'gtfsrt_alert_denormalized\' " + "is DBNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.description_languageColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string url { get { try { return ((string)(this[this.tablegtfsrt_alert_denormalized.urlColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'gtfsrt_alert_denormalized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_denormalized.urlColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isgtfs_realtime_versionNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.gtfs_realtime_versionColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setgtfs_realtime_versionNull() { this[this.tablegtfsrt_alert_denormalized.gtfs_realtime_versionColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsincrementalityNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.incrementalityColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetincrementalityNull() { this[this.tablegtfsrt_alert_denormalized.incrementalityColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isalert_idNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.alert_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setalert_idNull() { this[this.tablegtfsrt_alert_denormalized.alert_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IscauseNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.causeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetcauseNull() { this[this.tablegtfsrt_alert_denormalized.causeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IseffectNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.effectColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SeteffectNull() { this[this.tablegtfsrt_alert_denormalized.effectColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isheader_textNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.header_textColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setheader_textNull() { this[this.tablegtfsrt_alert_denormalized.header_textColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isheader_languageNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.header_languageColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setheader_languageNull() { this[this.tablegtfsrt_alert_denormalized.header_languageColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isdescription_textNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.description_textColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setdescription_textNull() { this[this.tablegtfsrt_alert_denormalized.description_textColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isdescription_languageNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.description_languageColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setdescription_languageNull() { this[this.tablegtfsrt_alert_denormalized.description_languageColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsurlNull() { return this.IsNull(this.tablegtfsrt_alert_denormalized.urlColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SeturlNull() { this[this.tablegtfsrt_alert_denormalized.urlColumn] = global::System.Convert.DBNull; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class gtfsrt_alert_active_period_denormalizedRow : global::System.Data.DataRow { private gtfsrt_alert_active_period_denormalizedDataTable tablegtfsrt_alert_active_period_denormalized; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal gtfsrt_alert_active_period_denormalizedRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablegtfsrt_alert_active_period_denormalized = ((gtfsrt_alert_active_period_denormalizedDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int header_timestamp { get { return ((int)(this[this.tablegtfsrt_alert_active_period_denormalized.header_timestampColumn])); } set { this[this.tablegtfsrt_alert_active_period_denormalized.header_timestampColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string alert_id { get { try { return ((string)(this[this.tablegtfsrt_alert_active_period_denormalized.alert_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'alert_id\' in table \'gtfsrt_alert_active_period_denormalized" + "\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_active_period_denormalized.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int active_period_start { get { try { return ((int)(this[this.tablegtfsrt_alert_active_period_denormalized.active_period_startColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'active_period_start\' in table \'gtfsrt_alert_active_period_d" + "enormalized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_active_period_denormalized.active_period_startColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int active_period_end { get { try { return ((int)(this[this.tablegtfsrt_alert_active_period_denormalized.active_period_endColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'active_period_end\' in table \'gtfsrt_alert_active_period_den" + "ormalized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_active_period_denormalized.active_period_endColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isalert_idNull() { return this.IsNull(this.tablegtfsrt_alert_active_period_denormalized.alert_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setalert_idNull() { this[this.tablegtfsrt_alert_active_period_denormalized.alert_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isactive_period_startNull() { return this.IsNull(this.tablegtfsrt_alert_active_period_denormalized.active_period_startColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setactive_period_startNull() { this[this.tablegtfsrt_alert_active_period_denormalized.active_period_startColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isactive_period_endNull() { return this.IsNull(this.tablegtfsrt_alert_active_period_denormalized.active_period_endColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setactive_period_endNull() { this[this.tablegtfsrt_alert_active_period_denormalized.active_period_endColumn] = global::System.Convert.DBNull; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class gtfsrt_alert_informed_entity_denormalizedRow : global::System.Data.DataRow { private gtfsrt_alert_informed_entity_denormalizedDataTable tablegtfsrt_alert_informed_entity_denormalized; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal gtfsrt_alert_informed_entity_denormalizedRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablegtfsrt_alert_informed_entity_denormalized = ((gtfsrt_alert_informed_entity_denormalizedDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int header_timestamp { get { return ((int)(this[this.tablegtfsrt_alert_informed_entity_denormalized.header_timestampColumn])); } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.header_timestampColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string alert_id { get { try { return ((string)(this[this.tablegtfsrt_alert_informed_entity_denormalized.alert_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'alert_id\' in table \'gtfsrt_alert_informed_entity_denormaliz" + "ed\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string agency_id { get { try { return ((string)(this[this.tablegtfsrt_alert_informed_entity_denormalized.agency_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'agency_id\' in table \'gtfsrt_alert_informed_entity_denormali" + "zed\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.agency_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string route_id { get { try { return ((string)(this[this.tablegtfsrt_alert_informed_entity_denormalized.route_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'route_id\' in table \'gtfsrt_alert_informed_entity_denormaliz" + "ed\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.route_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int route_type { get { try { return ((int)(this[this.tablegtfsrt_alert_informed_entity_denormalized.route_typeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'route_type\' in table \'gtfsrt_alert_informed_entity_denormal" + "ized\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.route_typeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string trip_id { get { try { return ((string)(this[this.tablegtfsrt_alert_informed_entity_denormalized.trip_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'trip_id\' in table \'gtfsrt_alert_informed_entity_denormalize" + "d\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.trip_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string stop_id { get { try { return ((string)(this[this.tablegtfsrt_alert_informed_entity_denormalized.stop_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'stop_id\' in table \'gtfsrt_alert_informed_entity_denormalize" + "d\' is DBNull.", e); } } set { this[this.tablegtfsrt_alert_informed_entity_denormalized.stop_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isalert_idNull() { return this.IsNull(this.tablegtfsrt_alert_informed_entity_denormalized.alert_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setalert_idNull() { this[this.tablegtfsrt_alert_informed_entity_denormalized.alert_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isagency_idNull() { return this.IsNull(this.tablegtfsrt_alert_informed_entity_denormalized.agency_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setagency_idNull() { this[this.tablegtfsrt_alert_informed_entity_denormalized.agency_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isroute_idNull() { return this.IsNull(this.tablegtfsrt_alert_informed_entity_denormalized.route_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setroute_idNull() { this[this.tablegtfsrt_alert_informed_entity_denormalized.route_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isroute_typeNull() { return this.IsNull(this.tablegtfsrt_alert_informed_entity_denormalized.route_typeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setroute_typeNull() { this[this.tablegtfsrt_alert_informed_entity_denormalized.route_typeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Istrip_idNull() { return this.IsNull(this.tablegtfsrt_alert_informed_entity_denormalized.trip_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Settrip_idNull() { this[this.tablegtfsrt_alert_informed_entity_denormalized.trip_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isstop_idNull() { return this.IsNull(this.tablegtfsrt_alert_informed_entity_denormalized.stop_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setstop_idNull() { this[this.tablegtfsrt_alert_informed_entity_denormalized.stop_idColumn] = global::System.Convert.DBNull; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alert_timesRow : global::System.Data.DataRow { private rt_alert_timesDataTable tablert_alert_times; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_timesRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert_times = ((rt_alert_timesDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int file_time { get { return ((int)(this[this.tablert_alert_times.file_timeColumn])); } set { this[this.tablert_alert_times.file_timeColumn] = value; } } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alertRow : global::System.Data.DataRow { private rt_alertDataTable tablert_alert; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alertRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert = ((rt_alertDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int record_id { get { return ((int)(this[this.tablert_alert.record_idColumn])); } set { this[this.tablert_alert.record_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int file_time { get { return ((int)(this[this.tablert_alert.file_timeColumn])); } set { this[this.tablert_alert.file_timeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string alert_id { get { return ((string)(this[this.tablert_alert.alert_idColumn])); } set { this[this.tablert_alert.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int version_id { get { return ((int)(this[this.tablert_alert.version_idColumn])); } set { this[this.tablert_alert.version_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string cause { get { try { return ((string)(this[this.tablert_alert.causeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'cause\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.causeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string effect { get { try { return ((string)(this[this.tablert_alert.effectColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'effect\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.effectColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string header_text { get { try { return ((string)(this[this.tablert_alert.header_textColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'header_text\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.header_textColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string description_text { get { try { return ((string)(this[this.tablert_alert.description_textColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'description_text\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.description_textColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string url { get { try { return ((string)(this[this.tablert_alert.urlColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.urlColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool closed { get { return ((bool)(this[this.tablert_alert.closedColumn])); } set { this[this.tablert_alert.closedColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int first_file_time { get { try { return ((int)(this[this.tablert_alert.first_file_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'first_file_time\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.first_file_timeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int last_file_time { get { try { return ((int)(this[this.tablert_alert.last_file_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'last_file_time\' in table \'rt_alert\' is DBNull.", e); } } set { this[this.tablert_alert.last_file_timeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IscauseNull() { return this.IsNull(this.tablert_alert.causeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetcauseNull() { this[this.tablert_alert.causeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IseffectNull() { return this.IsNull(this.tablert_alert.effectColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SeteffectNull() { this[this.tablert_alert.effectColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isheader_textNull() { return this.IsNull(this.tablert_alert.header_textColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setheader_textNull() { this[this.tablert_alert.header_textColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isdescription_textNull() { return this.IsNull(this.tablert_alert.description_textColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setdescription_textNull() { this[this.tablert_alert.description_textColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsurlNull() { return this.IsNull(this.tablert_alert.urlColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SeturlNull() { this[this.tablert_alert.urlColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isfirst_file_timeNull() { return this.IsNull(this.tablert_alert.first_file_timeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setfirst_file_timeNull() { this[this.tablert_alert.first_file_timeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Islast_file_timeNull() { return this.IsNull(this.tablert_alert.last_file_timeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setlast_file_timeNull() { this[this.tablert_alert.last_file_timeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityRow[] Getrt_alert_informed_entityRows() { if ((this.Table.ChildRelations["rt_alert_rt_alert_informed_entity"] == null)) { return new rt_alert_informed_entityRow[0]; } else { return ((rt_alert_informed_entityRow[])(base.GetChildRows(this.Table.ChildRelations["rt_alert_rt_alert_informed_entity"]))); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodRow[] Getrt_alert_active_periodRows() { if ((this.Table.ChildRelations["rt_alert_rt_alert_active_period"] == null)) { return new rt_alert_active_periodRow[0]; } else { return ((rt_alert_active_periodRow[])(base.GetChildRows(this.Table.ChildRelations["rt_alert_rt_alert_active_period"]))); } } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alert_active_periodRow : global::System.Data.DataRow { private rt_alert_active_periodDataTable tablert_alert_active_period; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_active_periodRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert_active_period = ((rt_alert_active_periodDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int version_id { get { return ((int)(this[this.tablert_alert_active_period.version_idColumn])); } set { this[this.tablert_alert_active_period.version_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int active_period_start { get { try { return ((int)(this[this.tablert_alert_active_period.active_period_startColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'active_period_start\' in table \'rt_alert_active_period\' is D" + "BNull.", e); } } set { this[this.tablert_alert_active_period.active_period_startColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int active_period_end { get { try { return ((int)(this[this.tablert_alert_active_period.active_period_endColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'active_period_end\' in table \'rt_alert_active_period\' is DBN" + "ull.", e); } } set { this[this.tablert_alert_active_period.active_period_endColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string alert_id { get { return ((string)(this[this.tablert_alert_active_period.alert_idColumn])); } set { this[this.tablert_alert_active_period.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow rt_alertRowParent { get { return ((rt_alertRow)(this.GetParentRow(this.Table.ParentRelations["rt_alert_rt_alert_active_period"]))); } set { this.SetParentRow(value, this.Table.ParentRelations["rt_alert_rt_alert_active_period"]); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isactive_period_startNull() { return this.IsNull(this.tablert_alert_active_period.active_period_startColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setactive_period_startNull() { this[this.tablert_alert_active_period.active_period_startColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isactive_period_endNull() { return this.IsNull(this.tablert_alert_active_period.active_period_endColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setactive_period_endNull() { this[this.tablert_alert_active_period.active_period_endColumn] = global::System.Convert.DBNull; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alert_informed_entityRow : global::System.Data.DataRow { private rt_alert_informed_entityDataTable tablert_alert_informed_entity; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_informed_entityRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert_informed_entity = ((rt_alert_informed_entityDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int version_id { get { return ((int)(this[this.tablert_alert_informed_entity.version_idColumn])); } set { this[this.tablert_alert_informed_entity.version_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string agency_id { get { try { return ((string)(this[this.tablert_alert_informed_entity.agency_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'agency_id\' in table \'rt_alert_informed_entity\' is DBNull.", e); } } set { this[this.tablert_alert_informed_entity.agency_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string route_id { get { try { return ((string)(this[this.tablert_alert_informed_entity.route_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'route_id\' in table \'rt_alert_informed_entity\' is DBNull.", e); } } set { this[this.tablert_alert_informed_entity.route_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int route_type { get { try { return ((int)(this[this.tablert_alert_informed_entity.route_typeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'route_type\' in table \'rt_alert_informed_entity\' is DBNull.", e); } } set { this[this.tablert_alert_informed_entity.route_typeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string trip_id { get { try { return ((string)(this[this.tablert_alert_informed_entity.trip_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'trip_id\' in table \'rt_alert_informed_entity\' is DBNull.", e); } } set { this[this.tablert_alert_informed_entity.trip_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string stop_id { get { try { return ((string)(this[this.tablert_alert_informed_entity.stop_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'stop_id\' in table \'rt_alert_informed_entity\' is DBNull.", e); } } set { this[this.tablert_alert_informed_entity.stop_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string alert_id { get { return ((string)(this[this.tablert_alert_informed_entity.alert_idColumn])); } set { this[this.tablert_alert_informed_entity.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow rt_alertRowParent { get { return ((rt_alertRow)(this.GetParentRow(this.Table.ParentRelations["rt_alert_rt_alert_informed_entity"]))); } set { this.SetParentRow(value, this.Table.ParentRelations["rt_alert_rt_alert_informed_entity"]); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isagency_idNull() { return this.IsNull(this.tablert_alert_informed_entity.agency_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setagency_idNull() { this[this.tablert_alert_informed_entity.agency_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isroute_idNull() { return this.IsNull(this.tablert_alert_informed_entity.route_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setroute_idNull() { this[this.tablert_alert_informed_entity.route_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isroute_typeNull() { return this.IsNull(this.tablert_alert_informed_entity.route_typeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setroute_typeNull() { this[this.tablert_alert_informed_entity.route_typeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Istrip_idNull() { return this.IsNull(this.tablert_alert_informed_entity.trip_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Settrip_idNull() { this[this.tablert_alert_informed_entity.trip_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isstop_idNull() { return this.IsNull(this.tablert_alert_informed_entity.stop_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setstop_idNull() { this[this.tablert_alert_informed_entity.stop_idColumn] = global::System.Convert.DBNull; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alert_tempRow : global::System.Data.DataRow { private rt_alert_tempDataTable tablert_alert_temp; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_tempRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert_temp = ((rt_alert_tempDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int record_id { get { return ((int)(this[this.tablert_alert_temp.record_idColumn])); } set { this[this.tablert_alert_temp.record_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int file_time { get { return ((int)(this[this.tablert_alert_temp.file_timeColumn])); } set { this[this.tablert_alert_temp.file_timeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int alert_id { get { return ((int)(this[this.tablert_alert_temp.alert_idColumn])); } set { this[this.tablert_alert_temp.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int version_id { get { return ((int)(this[this.tablert_alert_temp.version_idColumn])); } set { this[this.tablert_alert_temp.version_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string cause { get { try { return ((string)(this[this.tablert_alert_temp.causeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'cause\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.causeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string effect { get { try { return ((string)(this[this.tablert_alert_temp.effectColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'effect\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.effectColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string header_text { get { try { return ((string)(this[this.tablert_alert_temp.header_textColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'header_text\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.header_textColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string description_text { get { try { return ((string)(this[this.tablert_alert_temp.description_textColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'description_text\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.description_textColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string url { get { try { return ((string)(this[this.tablert_alert_temp.urlColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.urlColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool closed { get { return ((bool)(this[this.tablert_alert_temp.closedColumn])); } set { this[this.tablert_alert_temp.closedColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int first_file_time { get { try { return ((int)(this[this.tablert_alert_temp.first_file_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'first_file_time\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.first_file_timeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int last_file_time { get { try { return ((int)(this[this.tablert_alert_temp.last_file_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'last_file_time\' in table \'rt_alert_temp\' is DBNull.", e); } } set { this[this.tablert_alert_temp.last_file_timeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IscauseNull() { return this.IsNull(this.tablert_alert_temp.causeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetcauseNull() { this[this.tablert_alert_temp.causeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IseffectNull() { return this.IsNull(this.tablert_alert_temp.effectColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SeteffectNull() { this[this.tablert_alert_temp.effectColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isheader_textNull() { return this.IsNull(this.tablert_alert_temp.header_textColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setheader_textNull() { this[this.tablert_alert_temp.header_textColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isdescription_textNull() { return this.IsNull(this.tablert_alert_temp.description_textColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setdescription_textNull() { this[this.tablert_alert_temp.description_textColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsurlNull() { return this.IsNull(this.tablert_alert_temp.urlColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SeturlNull() { this[this.tablert_alert_temp.urlColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isfirst_file_timeNull() { return this.IsNull(this.tablert_alert_temp.first_file_timeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setfirst_file_timeNull() { this[this.tablert_alert_temp.first_file_timeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Islast_file_timeNull() { return this.IsNull(this.tablert_alert_temp.last_file_timeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setlast_file_timeNull() { this[this.tablert_alert_temp.last_file_timeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempRow[] Getrt_alert_active_period_tempRows() { if ((this.Table.ChildRelations["rt_alert_temp_rt_alert_active_period_temp"] == null)) { return new rt_alert_active_period_tempRow[0]; } else { return ((rt_alert_active_period_tempRow[])(base.GetChildRows(this.Table.ChildRelations["rt_alert_temp_rt_alert_active_period_temp"]))); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempRow[] Getrt_alert_informed_entity_tempRows() { if ((this.Table.ChildRelations["rt_alert_temp_rt_alert_informed_entity_temp"] == null)) { return new rt_alert_informed_entity_tempRow[0]; } else { return ((rt_alert_informed_entity_tempRow[])(base.GetChildRows(this.Table.ChildRelations["rt_alert_temp_rt_alert_informed_entity_temp"]))); } } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alert_active_period_tempRow : global::System.Data.DataRow { private rt_alert_active_period_tempDataTable tablert_alert_active_period_temp; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_active_period_tempRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert_active_period_temp = ((rt_alert_active_period_tempDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int alert_id { get { return ((int)(this[this.tablert_alert_active_period_temp.alert_idColumn])); } set { this[this.tablert_alert_active_period_temp.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int version_id { get { return ((int)(this[this.tablert_alert_active_period_temp.version_idColumn])); } set { this[this.tablert_alert_active_period_temp.version_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int active_period_start { get { try { return ((int)(this[this.tablert_alert_active_period_temp.active_period_startColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'active_period_start\' in table \'rt_alert_active_period_temp\'" + " is DBNull.", e); } } set { this[this.tablert_alert_active_period_temp.active_period_startColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int active_period_end { get { try { return ((int)(this[this.tablert_alert_active_period_temp.active_period_endColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'active_period_end\' in table \'rt_alert_active_period_temp\' i" + "s DBNull.", e); } } set { this[this.tablert_alert_active_period_temp.active_period_endColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow rt_alert_tempRowParent { get { return ((rt_alert_tempRow)(this.GetParentRow(this.Table.ParentRelations["rt_alert_temp_rt_alert_active_period_temp"]))); } set { this.SetParentRow(value, this.Table.ParentRelations["rt_alert_temp_rt_alert_active_period_temp"]); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isactive_period_startNull() { return this.IsNull(this.tablert_alert_active_period_temp.active_period_startColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setactive_period_startNull() { this[this.tablert_alert_active_period_temp.active_period_startColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isactive_period_endNull() { return this.IsNull(this.tablert_alert_active_period_temp.active_period_endColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setactive_period_endNull() { this[this.tablert_alert_active_period_temp.active_period_endColumn] = global::System.Convert.DBNull; } } /// <summary> ///Represents strongly named DataRow class. ///</summary> public partial class rt_alert_informed_entity_tempRow : global::System.Data.DataRow { private rt_alert_informed_entity_tempDataTable tablert_alert_informed_entity_temp; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal rt_alert_informed_entity_tempRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablert_alert_informed_entity_temp = ((rt_alert_informed_entity_tempDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int alert_id { get { return ((int)(this[this.tablert_alert_informed_entity_temp.alert_idColumn])); } set { this[this.tablert_alert_informed_entity_temp.alert_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int version_id { get { return ((int)(this[this.tablert_alert_informed_entity_temp.version_idColumn])); } set { this[this.tablert_alert_informed_entity_temp.version_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string agency_id { get { try { return ((string)(this[this.tablert_alert_informed_entity_temp.agency_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'agency_id\' in table \'rt_alert_informed_entity_temp\' is DBNu" + "ll.", e); } } set { this[this.tablert_alert_informed_entity_temp.agency_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string route_id { get { try { return ((string)(this[this.tablert_alert_informed_entity_temp.route_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'route_id\' in table \'rt_alert_informed_entity_temp\' is DBNul" + "l.", e); } } set { this[this.tablert_alert_informed_entity_temp.route_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int route_type { get { try { return ((int)(this[this.tablert_alert_informed_entity_temp.route_typeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'route_type\' in table \'rt_alert_informed_entity_temp\' is DBN" + "ull.", e); } } set { this[this.tablert_alert_informed_entity_temp.route_typeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string trip_id { get { try { return ((string)(this[this.tablert_alert_informed_entity_temp.trip_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'trip_id\' in table \'rt_alert_informed_entity_temp\' is DBNull" + ".", e); } } set { this[this.tablert_alert_informed_entity_temp.trip_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string stop_id { get { try { return ((string)(this[this.tablert_alert_informed_entity_temp.stop_idColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'stop_id\' in table \'rt_alert_informed_entity_temp\' is DBNull" + ".", e); } } set { this[this.tablert_alert_informed_entity_temp.stop_idColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow rt_alert_tempRowParent { get { return ((rt_alert_tempRow)(this.GetParentRow(this.Table.ParentRelations["rt_alert_temp_rt_alert_informed_entity_temp"]))); } set { this.SetParentRow(value, this.Table.ParentRelations["rt_alert_temp_rt_alert_informed_entity_temp"]); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isagency_idNull() { return this.IsNull(this.tablert_alert_informed_entity_temp.agency_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setagency_idNull() { this[this.tablert_alert_informed_entity_temp.agency_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isroute_idNull() { return this.IsNull(this.tablert_alert_informed_entity_temp.route_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setroute_idNull() { this[this.tablert_alert_informed_entity_temp.route_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isroute_typeNull() { return this.IsNull(this.tablert_alert_informed_entity_temp.route_typeColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setroute_typeNull() { this[this.tablert_alert_informed_entity_temp.route_typeColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Istrip_idNull() { return this.IsNull(this.tablert_alert_informed_entity_temp.trip_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Settrip_idNull() { this[this.tablert_alert_informed_entity_temp.trip_idColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool Isstop_idNull() { return this.IsNull(this.tablert_alert_informed_entity_temp.stop_idColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void Setstop_idNull() { this[this.tablert_alert_informed_entity_temp.stop_idColumn] = global::System.Convert.DBNull; } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class gtfsrt_alert_denormalizedRowChangeEvent : global::System.EventArgs { private gtfsrt_alert_denormalizedRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedRowChangeEvent(gtfsrt_alert_denormalizedRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class gtfsrt_alert_active_period_denormalizedRowChangeEvent : global::System.EventArgs { private gtfsrt_alert_active_period_denormalizedRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedRowChangeEvent(gtfsrt_alert_active_period_denormalizedRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class gtfsrt_alert_informed_entity_denormalizedRowChangeEvent : global::System.EventArgs { private gtfsrt_alert_informed_entity_denormalizedRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedRowChangeEvent(gtfsrt_alert_informed_entity_denormalizedRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alert_timesRowChangeEvent : global::System.EventArgs { private rt_alert_timesRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesRowChangeEvent(rt_alert_timesRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alertRowChangeEvent : global::System.EventArgs { private rt_alertRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRowChangeEvent(rt_alertRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alert_active_periodRowChangeEvent : global::System.EventArgs { private rt_alert_active_periodRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodRowChangeEvent(rt_alert_active_periodRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alert_informed_entityRowChangeEvent : global::System.EventArgs { private rt_alert_informed_entityRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityRowChangeEvent(rt_alert_informed_entityRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alert_tempRowChangeEvent : global::System.EventArgs { private rt_alert_tempRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRowChangeEvent(rt_alert_tempRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alert_active_period_tempRowChangeEvent : global::System.EventArgs { private rt_alert_active_period_tempRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempRowChangeEvent(rt_alert_active_period_tempRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } /// <summary> ///Row event argument class ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public class rt_alert_informed_entity_tempRowChangeEvent : global::System.EventArgs { private rt_alert_informed_entity_tempRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempRowChangeEvent(rt_alert_informed_entity_tempRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempRow Row { get { return this.eventRow; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } } } namespace IBI.DataAccess.DataSets.AlertsDataSetTableAdapters { /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class gtfsrt_alert_denormalizedTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_denormalizedTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "gtfsrt_alert_denormalized"; tableMapping.ColumnMappings.Add("gtfs_realtime_version", "gtfs_realtime_version"); tableMapping.ColumnMappings.Add("incrementality", "incrementality"); tableMapping.ColumnMappings.Add("header_timestamp", "header_timestamp"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("cause", "cause"); tableMapping.ColumnMappings.Add("effect", "effect"); tableMapping.ColumnMappings.Add("header_text", "header_text"); tableMapping.ColumnMappings.Add("header_language", "header_language"); tableMapping.ColumnMappings.Add("description_text", "description_text"); tableMapping.ColumnMappings.Add("description_language", "description_language"); tableMapping.ColumnMappings.Add("url", "url"); this._adapter.TableMappings.Add(tableMapping); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = @"INSERT INTO [gtfsrt_alert_denormalized] ([gtfs_realtime_version], [incrementality], [header_timestamp], [alert_id], [cause], [effect], [header_text], [header_language], [description_text], [description_language], [url]) VALUES (@gtfs_realtime_version, @incrementality, @header_timestamp, @alert_id, @cause, @effect, @header_text, @header_language, @description_text, @description_language, @url)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gtfs_realtime_version", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gtfs_realtime_version", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@incrementality", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "incrementality", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_timestamp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_timestamp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cause", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cause", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_language", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_language", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description_language", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description_language", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT gtfs_realtime_version, incrementality, header_timestamp, alert_id, " + "cause, effect, header_text, header_language, description_text, description_langu" + "age, url\r\nFROM gtfsrt_alert_denormalized"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.gtfsrt_alert_denormalizedDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.gtfsrt_alert_denormalizedDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.gtfsrt_alert_denormalizedDataTable dataTable = new AlertsDataSet.gtfsrt_alert_denormalizedDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.gtfsrt_alert_denormalizedDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "gtfsrt_alert_denormalized"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] public virtual int Insert(string gtfs_realtime_version, string incrementality, int header_timestamp, string alert_id, string cause, string effect, string header_text, string header_language, string description_text, string description_language, string url) { if ((gtfs_realtime_version == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gtfs_realtime_version)); } if ((incrementality == null)) { this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(incrementality)); } this.Adapter.InsertCommand.Parameters[2].Value = ((int)(header_timestamp)); if ((alert_id == null)) { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[3].Value = ((string)(alert_id)); } if ((cause == null)) { this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[4].Value = ((string)(cause)); } if ((effect == null)) { this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[5].Value = ((string)(effect)); } if ((header_text == null)) { this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[6].Value = ((string)(header_text)); } if ((header_language == null)) { this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[7].Value = ((string)(header_language)); } if ((description_text == null)) { this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[8].Value = ((string)(description_text)); } if ((description_language == null)) { this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[9].Value = ((string)(description_language)); } if ((url == null)) { this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[10].Value = ((string)(url)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.InsertCommand.Connection.Open(); } try { int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.InsertCommand.Connection.Close(); } } } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class gtfsrt_alert_active_period_denormalizedTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_active_period_denormalizedTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "gtfsrt_alert_active_period_denormalized"; tableMapping.ColumnMappings.Add("header_timestamp", "header_timestamp"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("active_period_start", "active_period_start"); tableMapping.ColumnMappings.Add("active_period_end", "active_period_end"); this._adapter.TableMappings.Add(tableMapping); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [gtfsrt_alert_active_period_denormalized] ([header_timestamp], [alert" + "_id], [active_period_start], [active_period_end]) VALUES (@header_timestamp, @al" + "ert_id, @active_period_start, @active_period_end)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_timestamp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_timestamp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@active_period_start", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_start", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@active_period_end", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_end", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT header_timestamp, alert_id, active_period_start, active_period_end\r" + "\nFROM gtfsrt_alert_active_period_denormalized"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.gtfsrt_alert_active_period_denormalizedDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.gtfsrt_alert_active_period_denormalizedDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.gtfsrt_alert_active_period_denormalizedDataTable dataTable = new AlertsDataSet.gtfsrt_alert_active_period_denormalizedDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.gtfsrt_alert_active_period_denormalizedDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "gtfsrt_alert_active_period_denormalized"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] public virtual int Insert(int header_timestamp, string alert_id, global::System.Nullable<int> active_period_start, global::System.Nullable<int> active_period_end) { this.Adapter.InsertCommand.Parameters[0].Value = ((int)(header_timestamp)); if ((alert_id == null)) { this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(alert_id)); } if ((active_period_start.HasValue == true)) { this.Adapter.InsertCommand.Parameters[2].Value = ((int)(active_period_start.Value)); } else { this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; } if ((active_period_end.HasValue == true)) { this.Adapter.InsertCommand.Parameters[3].Value = ((int)(active_period_end.Value)); } else { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.InsertCommand.Connection.Open(); } try { int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.InsertCommand.Connection.Close(); } } } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class gtfsrt_alert_informed_entity_denormalizedTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public gtfsrt_alert_informed_entity_denormalizedTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "gtfsrt_alert_informed_entity_denormalized"; tableMapping.ColumnMappings.Add("header_timestamp", "header_timestamp"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("agency_id", "agency_id"); tableMapping.ColumnMappings.Add("route_id", "route_id"); tableMapping.ColumnMappings.Add("route_type", "route_type"); tableMapping.ColumnMappings.Add("trip_id", "trip_id"); tableMapping.ColumnMappings.Add("stop_id", "stop_id"); this._adapter.TableMappings.Add(tableMapping); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [gtfsrt_alert_informed_entity_denormalized] ([header_timestamp], [ale" + "rt_id], [agency_id], [route_id], [route_type], [trip_id], [stop_id]) VALUES (@he" + "ader_timestamp, @alert_id, @agency_id, @route_id, @route_type, @trip_id, @stop_i" + "d)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_timestamp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_timestamp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@agency_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "agency_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@route_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "route_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@route_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "route_type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@trip_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "trip_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stop_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stop_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT header_timestamp, alert_id, agency_id, route_id, route_type, trip_i" + "d, stop_id\r\nFROM gtfsrt_alert_informed_entity_denormalized"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.gtfsrt_alert_informed_entity_denormalizedDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.gtfsrt_alert_informed_entity_denormalizedDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.gtfsrt_alert_informed_entity_denormalizedDataTable dataTable = new AlertsDataSet.gtfsrt_alert_informed_entity_denormalizedDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.gtfsrt_alert_informed_entity_denormalizedDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "gtfsrt_alert_informed_entity_denormalized"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] public virtual int Insert(int header_timestamp, string alert_id, string agency_id, string route_id, global::System.Nullable<int> route_type, string trip_id, string stop_id) { this.Adapter.InsertCommand.Parameters[0].Value = ((int)(header_timestamp)); if ((alert_id == null)) { this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(alert_id)); } if ((agency_id == null)) { this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[2].Value = ((string)(agency_id)); } if ((route_id == null)) { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[3].Value = ((string)(route_id)); } if ((route_type.HasValue == true)) { this.Adapter.InsertCommand.Parameters[4].Value = ((int)(route_type.Value)); } else { this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; } if ((trip_id == null)) { this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[5].Value = ((string)(trip_id)); } if ((stop_id == null)) { this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[6].Value = ((string)(stop_id)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.InsertCommand.Connection.Open(); } try { int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.InsertCommand.Connection.Close(); } } } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alert_timesTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_timesTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert_times"; tableMapping.ColumnMappings.Add("file_time", "file_time"); this._adapter.TableMappings.Add(tableMapping); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT DISTINCT file_time\r\nFROM rt_alert\r\nORDER BY file_time"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = @"SELECT MIN(file_time) AS file_time FROM rt_alert WHERE (file_time > (SELECT file_time FROM rt_alert AS rt_alert_1 WHERE (record_id = @recordId)))"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@recordId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "record_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alert_timesDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alert_timesDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.rt_alert_timesDataTable dataTable = new AlertsDataSet.rt_alert_timesDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByNextFileTimeAfterAlert(AlertsDataSet.rt_alert_timesDataTable dataTable, int recordId) { this.Adapter.SelectCommand = this.CommandCollection[1]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(recordId)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_timesDataTable GetDataByNextFileTimeAfterAlert(int recordId) { this.Adapter.SelectCommand = this.CommandCollection[1]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(recordId)); AlertsDataSet.rt_alert_timesDataTable dataTable = new AlertsDataSet.rt_alert_timesDataTable(); this.Adapter.Fill(dataTable); return dataTable; } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alertTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alertTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert"; tableMapping.ColumnMappings.Add("record_id", "record_id"); tableMapping.ColumnMappings.Add("file_time", "file_time"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("version_id", "version_id"); tableMapping.ColumnMappings.Add("cause", "cause"); tableMapping.ColumnMappings.Add("effect", "effect"); tableMapping.ColumnMappings.Add("header_text", "header_text"); tableMapping.ColumnMappings.Add("description_text", "description_text"); tableMapping.ColumnMappings.Add("url", "url"); tableMapping.ColumnMappings.Add("closed", "closed"); tableMapping.ColumnMappings.Add("first_file_time", "first_file_time"); tableMapping.ColumnMappings.Add("last_file_time", "last_file_time"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; this._adapter.DeleteCommand.CommandText = "DELETE FROM [rt_alert] WHERE (([alert_id] = @Original_alert_id) AND ([version_id]" + " = @Original_version_id))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = @" INSERT INTO [rt_alert] ([file_time], [alert_id], [version_id], [cause], [effect], [header_text], [description_text], [url], [closed], [first_file_time], [last_file_time]) VALUES (@file_time, @alert_id, @version_id, @cause, @effect, @header_text, @description_text, @url, @closed, @first_file_time, @last_file_time); SELECT record_id, file_time, alert_id, version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time FROM rt_alert WHERE (alert_id = @alert_id) AND (version_id = @version_id)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cause", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cause", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@closed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "closed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@first_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@last_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = @" UPDATE [rt_alert] SET [file_time] = @file_time, [alert_id] = @alert_id, [version_id] = @version_id, [cause] = @cause, [effect] = @effect, [header_text] = @header_text, [description_text] = @description_text, [url] = @url, [closed] = @closed, [first_file_time] = @first_file_time, [last_file_time] = @last_file_time WHERE (([alert_id] = @Original_alert_id) AND ([version_id] = @Original_version_id)); SELECT record_id, file_time, alert_id, version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time FROM rt_alert WHERE (alert_id = @alert_id) AND (version_id = @version_id)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cause", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cause", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@closed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "closed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@first_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@last_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "\r\n SELECT record_id, file_time, alert_id, version_id," + " cause, effect, header_text, description_text, url, closed, first_file_time, las" + "t_file_time\r\n FROM rt_alert"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "SELECT alert_id, cause, closed, description_text, effect, file_time, header_text," + " record_id, url, version_id FROM rt_alert WHERE (alert_id = @alertId)"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = @"SELECT i.record_id, i.file_time, i.alert_id, i.version_id, i.cause, i.effect, i.header_text, i.description_text, i.url, i.closed, i.first_file_time, i.last_file_time FROM rt_alert AS i INNER JOIN (SELECT alert_id, MAX(version_id) AS version_id FROM rt_alert WHERE (alert_id IN ('000000')) GROUP BY alert_id) AS a ON a.version_id = i.version_id AND a.alert_id = i.alert_id"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = @"SELECT alerts.alert_id, alerts.cause, alerts.closed, alerts.description_text, alerts.effect, alerts.file_time, alerts.header_text, alerts.record_id, alerts.url, alerts.version_id FROM rt_alert AS alerts INNER JOIN (SELECT alert_id, MAX(version_id) AS maxVersion FROM rt_alert GROUP BY alert_id) AS maxAlerts ON alerts.alert_id = maxAlerts.alert_id AND alerts.version_id = maxAlerts.maxVersion WHERE (alerts.closed = 0)"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = "SELECT alert_id, cause, closed, description_text, effect, file_time, header_text," + " record_id, url, version_id FROM rt_alert WHERE (record_id = @recordId)"; this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@recordId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "record_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alertDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alertDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.rt_alertDataTable dataTable = new AlertsDataSet.rt_alertDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByAlertId(AlertsDataSet.rt_alertDataTable dataTable, string alertId) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alertDataTable GetDataByAlertId(string alertId) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } AlertsDataSet.rt_alertDataTable dataTable = new AlertsDataSet.rt_alertDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByMaxVersionForAlerts(AlertsDataSet.rt_alertDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alertDataTable GetDataByMaxVersionForAlerts() { this.Adapter.SelectCommand = this.CommandCollection[2]; AlertsDataSet.rt_alertDataTable dataTable = new AlertsDataSet.rt_alertDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByOpenAlerts(AlertsDataSet.rt_alertDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[3]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alertDataTable GetDataByOpenAlerts() { this.Adapter.SelectCommand = this.CommandCollection[3]; AlertsDataSet.rt_alertDataTable dataTable = new AlertsDataSet.rt_alertDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByRecordId(AlertsDataSet.rt_alertDataTable dataTable, int recordId) { this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(recordId)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alertDataTable GetDataByRecordId(int recordId) { this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(recordId)); AlertsDataSet.rt_alertDataTable dataTable = new AlertsDataSet.rt_alertDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.rt_alertDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "rt_alert"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] public virtual int Delete(string Original_alert_id, int Original_version_id) { if ((Original_alert_id == null)) { throw new global::System.ArgumentNullException("Original_alert_id"); } else { this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_alert_id)); } this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_version_id)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.DeleteCommand.Connection.Open(); } try { int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.DeleteCommand.Connection.Close(); } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] public virtual int Insert(int file_time, string alert_id, int version_id, string cause, string effect, string header_text, string description_text, string url, bool closed, global::System.Nullable<int> first_file_time, global::System.Nullable<int> last_file_time) { this.Adapter.InsertCommand.Parameters[0].Value = ((int)(file_time)); if ((alert_id == null)) { throw new global::System.ArgumentNullException("alert_id"); } else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(alert_id)); } this.Adapter.InsertCommand.Parameters[2].Value = ((int)(version_id)); if ((cause == null)) { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[3].Value = ((string)(cause)); } if ((effect == null)) { this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[4].Value = ((string)(effect)); } if ((header_text == null)) { this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[5].Value = ((string)(header_text)); } if ((description_text == null)) { this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[6].Value = ((string)(description_text)); } if ((url == null)) { this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[7].Value = ((string)(url)); } this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(closed)); if ((first_file_time.HasValue == true)) { this.Adapter.InsertCommand.Parameters[9].Value = ((int)(first_file_time.Value)); } else { this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; } if ((last_file_time.HasValue == true)) { this.Adapter.InsertCommand.Parameters[10].Value = ((int)(last_file_time.Value)); } else { this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.InsertCommand.Connection.Open(); } try { int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.InsertCommand.Connection.Close(); } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] public virtual int Update(int file_time, string alert_id, int version_id, string cause, string effect, string header_text, string description_text, string url, bool closed, global::System.Nullable<int> first_file_time, global::System.Nullable<int> last_file_time, string Original_alert_id, int Original_version_id) { this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(file_time)); if ((alert_id == null)) { throw new global::System.ArgumentNullException("alert_id"); } else { this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(alert_id)); } this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(version_id)); if ((cause == null)) { this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(cause)); } if ((effect == null)) { this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(effect)); } if ((header_text == null)) { this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(header_text)); } if ((description_text == null)) { this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(description_text)); } if ((url == null)) { this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(url)); } this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(closed)); if ((first_file_time.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(first_file_time.Value)); } else { this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; } if ((last_file_time.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(last_file_time.Value)); } else { this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; } if ((Original_alert_id == null)) { throw new global::System.ArgumentNullException("Original_alert_id"); } else { this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_alert_id)); } this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_version_id)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.UpdateCommand.Connection.Open(); } try { int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.UpdateCommand.Connection.Close(); } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] public virtual int Update(int file_time, string cause, string effect, string header_text, string description_text, string url, bool closed, global::System.Nullable<int> first_file_time, global::System.Nullable<int> last_file_time, string Original_alert_id, int Original_version_id) { return this.Update(file_time, Original_alert_id, Original_version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time, Original_alert_id, Original_version_id); } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alert_active_periodTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_periodTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert_active_period"; tableMapping.ColumnMappings.Add("version_id", "version_id"); tableMapping.ColumnMappings.Add("active_period_start", "active_period_start"); tableMapping.ColumnMappings.Add("active_period_end", "active_period_end"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); this._adapter.TableMappings.Add(tableMapping); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [rt_alert_active_period] ([version_id], [active_period_start], [activ" + "e_period_end], [alert_id]) VALUES (@version_id, @active_period_start, @active_pe" + "riod_end, @alert_id)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@active_period_start", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_start", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@active_period_end", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_end", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = @"UPDATE rt_alert_active_period SET active_period_start = @activePeriodStart, active_period_end = @activePeriodEnd WHERE (alert_id = @alertId) AND (version_id = @versionId) AND (active_period_start = @oldActivePeriodStart) AND (active_period_end = @oldActivePeriodEnd)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@activePeriodStart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_start", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@activePeriodEnd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_end", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@versionId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@oldActivePeriodStart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_start", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@oldActivePeriodEnd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "active_period_end", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT version_id, active_period_start, active_period_end, alert_id\r\nFROM " + " rt_alert_active_period"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "SELECT active_period_end, active_period_start, alert_id, version_id FROM rt_alert" + "_active_period WHERE (alert_id = @alertId)"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = "SELECT active_period_end, active_period_start, alert_id, version_id FROM rt_alert" + "_active_period WHERE (alert_id = @alertId) AND (version_id = @versionId)"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@versionId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = @"SELECT i.alert_id, i.version_id, i.active_period_start, i.active_period_end FROM rt_alert_active_period AS i INNER JOIN (SELECT alert_id, MAX(version_id) AS version_id FROM rt_alert WHERE (alert_id IN ('000000')) GROUP BY alert_id) AS a ON a.version_id = i.version_id AND a.alert_id = i.alert_id"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alert_active_periodDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alert_active_periodDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.rt_alert_active_periodDataTable dataTable = new AlertsDataSet.rt_alert_active_periodDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByAlertId(AlertsDataSet.rt_alert_active_periodDataTable dataTable, string alertId) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_active_periodDataTable GetDataByAlertId(string alertId) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } AlertsDataSet.rt_alert_active_periodDataTable dataTable = new AlertsDataSet.rt_alert_active_periodDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByAlertIdVersionId(AlertsDataSet.rt_alert_active_periodDataTable dataTable, string alertId, int versionId) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } this.Adapter.SelectCommand.Parameters[1].Value = ((int)(versionId)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_active_periodDataTable GetDataByAlertIdVersionId(string alertId, int versionId) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } this.Adapter.SelectCommand.Parameters[1].Value = ((int)(versionId)); AlertsDataSet.rt_alert_active_periodDataTable dataTable = new AlertsDataSet.rt_alert_active_periodDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByMaxVersionForAlerts(AlertsDataSet.rt_alert_active_periodDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[3]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_active_periodDataTable GetDataByMaxVersionForAlerts() { this.Adapter.SelectCommand = this.CommandCollection[3]; AlertsDataSet.rt_alert_active_periodDataTable dataTable = new AlertsDataSet.rt_alert_active_periodDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.rt_alert_active_periodDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "rt_alert_active_period"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alert_informed_entityTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entityTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert_informed_entity"; tableMapping.ColumnMappings.Add("version_id", "version_id"); tableMapping.ColumnMappings.Add("agency_id", "agency_id"); tableMapping.ColumnMappings.Add("route_id", "route_id"); tableMapping.ColumnMappings.Add("route_type", "route_type"); tableMapping.ColumnMappings.Add("trip_id", "trip_id"); tableMapping.ColumnMappings.Add("stop_id", "stop_id"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); this._adapter.TableMappings.Add(tableMapping); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [rt_alert_informed_entity] ([version_id], [agency_id], [route_id], [r" + "oute_type], [trip_id], [stop_id], [alert_id]) VALUES (@version_id, @agency_id, @" + "route_id, @route_type, @trip_id, @stop_id, @alert_id)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@agency_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "agency_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@route_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "route_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@route_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "route_type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@trip_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "trip_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stop_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stop_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = "UPDATE rt_alert_informed_entity\r\nSET agency_id = @agencyId, " + "route_id = @routeId, route_type = @routeType, trip_id = @tripId, stop_id = @stop" + "Id\r\nWHERE (alert_id = @alertId) AND (version_id = @versionId)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@agencyId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "agency_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@routeId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "route_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@routeType", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "route_type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tripId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "trip_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stopId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "stop_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@versionId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT version_id, agency_id, route_id, route_type, trip_id, stop_id, aler" + "t_id\r\nFROM rt_alert_informed_entity"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "SELECT agency_id, alert_id, route_id, route_type, stop_id, trip_id, version_id FR" + "OM rt_alert_informed_entity WHERE (alert_id = @alertId)"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = "SELECT agency_id, alert_id, route_id, route_type, stop_id, trip_id, version_id FR" + "OM rt_alert_informed_entity WHERE (alert_id = @alertId) AND (version_id = @versi" + "onId)"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alertId", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@versionId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = @"SELECT i.alert_id, i.version_id, i.agency_id, i.route_id, i.route_type, i.trip_id, i.stop_id FROM rt_alert_informed_entity AS i INNER JOIN (SELECT alert_id, MAX(version_id) AS version_id FROM rt_alert WHERE (alert_id IN ('000000')) GROUP BY alert_id) AS a ON a.version_id = i.version_id AND a.alert_id = i.alert_id"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alert_informed_entityDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alert_informed_entityDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AlertsDataSet.rt_alert_informed_entityDataTable dataTable = new AlertsDataSet.rt_alert_informed_entityDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByAlertId(AlertsDataSet.rt_alert_informed_entityDataTable dataTable, string alertId) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_informed_entityDataTable GetDataByAlertId(string alertId) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } AlertsDataSet.rt_alert_informed_entityDataTable dataTable = new AlertsDataSet.rt_alert_informed_entityDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByAlertIdVersionId(AlertsDataSet.rt_alert_informed_entityDataTable dataTable, string alertId, int versionId) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } this.Adapter.SelectCommand.Parameters[1].Value = ((int)(versionId)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_informed_entityDataTable GetDataByAlertIdVersionId(string alertId, int versionId) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((alertId == null)) { throw new global::System.ArgumentNullException("alertId"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(alertId)); } this.Adapter.SelectCommand.Parameters[1].Value = ((int)(versionId)); AlertsDataSet.rt_alert_informed_entityDataTable dataTable = new AlertsDataSet.rt_alert_informed_entityDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByMaxVersionForAlerts(AlertsDataSet.rt_alert_informed_entityDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[3]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual AlertsDataSet.rt_alert_informed_entityDataTable GetDataByMaxVersionForAlerts() { this.Adapter.SelectCommand = this.CommandCollection[3]; AlertsDataSet.rt_alert_informed_entityDataTable dataTable = new AlertsDataSet.rt_alert_informed_entityDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.rt_alert_informed_entityDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "rt_alert_informed_entity"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alert_tempTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_tempTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert_temp"; tableMapping.ColumnMappings.Add("record_id", "record_id"); tableMapping.ColumnMappings.Add("file_time", "file_time"); tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("version_id", "version_id"); tableMapping.ColumnMappings.Add("cause", "cause"); tableMapping.ColumnMappings.Add("effect", "effect"); tableMapping.ColumnMappings.Add("header_text", "header_text"); tableMapping.ColumnMappings.Add("description_text", "description_text"); tableMapping.ColumnMappings.Add("url", "url"); tableMapping.ColumnMappings.Add("closed", "closed"); tableMapping.ColumnMappings.Add("first_file_time", "first_file_time"); tableMapping.ColumnMappings.Add("last_file_time", "last_file_time"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; this._adapter.DeleteCommand.CommandText = "DELETE FROM [rt_alert_temp] WHERE (([alert_id] = @Original_alert_id) AND ([versio" + "n_id] = @Original_version_id))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_alert_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = @"INSERT INTO [rt_alert_temp] ([file_time], [alert_id], [version_id], [cause], [effect], [header_text], [description_text], [url], [closed], [first_file_time], [last_file_time]) VALUES (@file_time, @alert_id, @version_id, @cause, @effect, @header_text, @description_text, @url, @closed, @first_file_time, @last_file_time)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cause", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cause", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@closed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "closed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@first_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@last_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = @"UPDATE [rt_alert_temp] SET [file_time] = @file_time, [alert_id] = @alert_id, [version_id] = @version_id, [cause] = @cause, [effect] = @effect, [header_text] = @header_text, [description_text] = @description_text, [url] = @url, [closed] = @closed, [first_file_time] = @first_file_time, [last_file_time] = @last_file_time WHERE (([alert_id] = @Original_alert_id) AND ([version_id] = @Original_version_id))"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alert_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cause", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cause", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description_text", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description_text", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@closed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "closed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@first_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@last_file_time", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_alert_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "alert_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_version_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "version_id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT record_id, file_time, alert_id, version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time FROM rt_alert_temp WHERE (first_file_time >= @start) OR (first_file_time IS NULL) AND (file_time >= @start) ORDER BY first_file_time"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@start", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "first_file_time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "DELETE FROM [rt_alert_temp] "; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = "DELETE FROM rt_alert_temp\r\nWHERE (first_file_time >= @start) OR\r\n " + " (first_file_time IS NULL) AND (file_time >= @start)"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@start", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "first_file_time", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = @"INSERT INTO rt_alert_temp ([record_id], [file_time] ,[alert_id] ,[version_id] ,[cause] ,[effect] ,[header_text] ,[description_text] ,[url] ,[closed] ,[first_file_time] ,[last_file_time]) SELECT [record_id], [file_time] ,[alert_id] ,[version_id] ,[cause] ,[effect] ,[header_text] ,[description_text] ,[url] ,[closed] ,[first_file_time] ,[last_file_time] FROM rt_alert"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = "SELECT COUNT(*) FROM rt_alert_temp"; this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alert_tempDataTable dataTable, global::System.Nullable<int> start) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((start.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(start.Value)); } else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alert_tempDataTable GetData(global::System.Nullable<int> start) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((start.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(start.Value)); } else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } AlertsDataSet.rt_alert_tempDataTable dataTable = new AlertsDataSet.rt_alert_tempDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet.rt_alert_tempDataTable dataTable) { return this.Adapter.Update(dataTable); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(AlertsDataSet dataSet) { return this.Adapter.Update(dataSet, "rt_alert_temp"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow dataRow) { return this.Adapter.Update(new global::System.Data.DataRow[] { dataRow}); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(global::System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] public virtual int Delete(int Original_alert_id, int Original_version_id) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_alert_id)); this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_version_id)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.DeleteCommand.Connection.Open(); } try { int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.DeleteCommand.Connection.Close(); } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] public virtual int Insert(int file_time, int alert_id, int version_id, string cause, string effect, string header_text, string description_text, string url, bool closed, global::System.Nullable<int> first_file_time, global::System.Nullable<int> last_file_time) { this.Adapter.InsertCommand.Parameters[0].Value = ((int)(file_time)); this.Adapter.InsertCommand.Parameters[1].Value = ((int)(alert_id)); this.Adapter.InsertCommand.Parameters[2].Value = ((int)(version_id)); if ((cause == null)) { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[3].Value = ((string)(cause)); } if ((effect == null)) { this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[4].Value = ((string)(effect)); } if ((header_text == null)) { this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[5].Value = ((string)(header_text)); } if ((description_text == null)) { this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[6].Value = ((string)(description_text)); } if ((url == null)) { this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[7].Value = ((string)(url)); } this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(closed)); if ((first_file_time.HasValue == true)) { this.Adapter.InsertCommand.Parameters[9].Value = ((int)(first_file_time.Value)); } else { this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; } if ((last_file_time.HasValue == true)) { this.Adapter.InsertCommand.Parameters[10].Value = ((int)(last_file_time.Value)); } else { this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.InsertCommand.Connection.Open(); } try { int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.InsertCommand.Connection.Close(); } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] public virtual int Update(int file_time, int alert_id, int version_id, string cause, string effect, string header_text, string description_text, string url, bool closed, global::System.Nullable<int> first_file_time, global::System.Nullable<int> last_file_time, int Original_alert_id, int Original_version_id) { this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(file_time)); this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(alert_id)); this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(version_id)); if ((cause == null)) { this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(cause)); } if ((effect == null)) { this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(effect)); } if ((header_text == null)) { this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(header_text)); } if ((description_text == null)) { this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(description_text)); } if ((url == null)) { this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(url)); } this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(closed)); if ((first_file_time.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(first_file_time.Value)); } else { this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; } if ((last_file_time.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(last_file_time.Value)); } else { this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; } this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_alert_id)); this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_version_id)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { this.Adapter.UpdateCommand.Connection.Open(); } try { int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { this.Adapter.UpdateCommand.Connection.Close(); } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] public virtual int Update(int file_time, string cause, string effect, string header_text, string description_text, string url, bool closed, global::System.Nullable<int> first_file_time, global::System.Nullable<int> last_file_time, int Original_alert_id, int Original_version_id) { return this.Update(file_time, Original_alert_id, Original_version_id, cause, effect, header_text, description_text, url, closed, first_file_time, last_file_time, Original_alert_id, Original_version_id); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteAll() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteQuery(global::System.Nullable<int> start) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; if ((start.HasValue == true)) { command.Parameters[0].Value = ((int)(start.Value)); } else { command.Parameters[0].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] public virtual int InsertFromMainTable() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual global::System.Nullable<int> SelectCount() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } object returnValue; try { returnValue = command.ExecuteScalar(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } if (((returnValue == null) || (returnValue.GetType() == typeof(global::System.DBNull)))) { return new global::System.Nullable<int>(); } else { return new global::System.Nullable<int>(((int)(returnValue))); } } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alert_active_period_tempTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_active_period_tempTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert_active_period_temp"; tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("version_id", "version_id"); tableMapping.ColumnMappings.Add("active_period_start", "active_period_start"); tableMapping.ColumnMappings.Add("active_period_end", "active_period_end"); this._adapter.TableMappings.Add(tableMapping); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT b.alert_id, b.version_id, b.active_period_start, b.active_period_end FROM rt_alert_active_period_temp AS b INNER JOIN (SELECT alert_id, version_id FROM rt_alert_temp WHERE (first_file_time >= @start) OR (first_file_time IS NULL) AND (file_time >= @start)) AS a ON a.alert_id = b.alert_id AND a.version_id = b.version_id"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@start", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "DELETE FROM rt_alert_active_period_temp"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = @"DELETE FROM rt_alert_active_period_temp WHERE EXISTS (SELECT 1 AS Expr1 FROM rt_alert_temp WHERE (first_file_time >= @start) AND (rt_alert_active_period_temp.alert_id = alert_id) AND (rt_alert_active_period_temp.version_id = version_id) OR (first_file_time IS NULL) AND (rt_alert_active_period_temp.alert_id = alert_id) AND (rt_alert_active_period_temp.version_id = version_id) AND (file_time >= @start))"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@start", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = "insert into rt_alert_active_period_temp select * from rt_alert_active_period"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alert_active_period_tempDataTable dataTable, global::System.Nullable<int> start) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((start.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(start.Value)); } else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alert_active_period_tempDataTable GetData(global::System.Nullable<int> start) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((start.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(start.Value)); } else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } AlertsDataSet.rt_alert_active_period_tempDataTable dataTable = new AlertsDataSet.rt_alert_active_period_tempDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteAll() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteQuery(global::System.Nullable<int> start) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; if ((start.HasValue == true)) { command.Parameters[0].Value = ((int)(start.Value)); } else { command.Parameters[0].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] public virtual int InsertFromMainTable() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } } /// <summary> ///Represents the connection and commands used to retrieve and save data. ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DataObjectAttribute(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class rt_alert_informed_entity_tempTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; private global::System.Data.SqlClient.SqlConnection _connection; private global::System.Data.SqlClient.SqlTransaction _transaction; private global::System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public rt_alert_informed_entity_tempTableAdapter() { this.ClearBeforeFill = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal global::System.Data.SqlClient.SqlTransaction Transaction { get { return this._transaction; } set { this._transaction = value; for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { this.Adapter.UpdateCommand.Transaction = this._transaction; } } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitAdapter() { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "rt_alert_informed_entity_temp"; tableMapping.ColumnMappings.Add("alert_id", "alert_id"); tableMapping.ColumnMappings.Add("version_id", "version_id"); tableMapping.ColumnMappings.Add("agency_id", "agency_id"); tableMapping.ColumnMappings.Add("route_id", "route_id"); tableMapping.ColumnMappings.Add("route_type", "route_type"); tableMapping.ColumnMappings.Add("trip_id", "trip_id"); tableMapping.ColumnMappings.Add("stop_id", "stop_id"); this._adapter.TableMappings.Add(tableMapping); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitConnection() { this._connection = new global::System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::IBI.DataAccess.Properties.Settings.Default.mbta_performanceConnectionString; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT b.alert_id, b.version_id, b.agency_id, b.route_id, b.route_type, b.trip_id, b.stop_id FROM rt_alert_informed_entity_temp AS b INNER JOIN (SELECT alert_id, version_id FROM rt_alert_temp WHERE (first_file_time >= @start) OR (first_file_time IS NULL) AND (file_time >= @start)) AS a ON a.alert_id = b.alert_id AND a.version_id = b.version_id"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@start", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "DELETE FROM rt_alert_informed_entity_temp"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = @"delete from rt_alert_informed_entity_temp where exists (select 1 from rt_alert_temp where (first_file_time >= @start or (first_file_time is null and file_time >= @start)) and rt_alert_informed_entity_temp.alert_id = rt_alert_temp.alert_id AND rt_alert_informed_entity_temp.version_id = rt_alert_temp.version_id)"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@start", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = "insert into rt_alert_informed_entity_temp select * from rt_alert_informed_entity"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(AlertsDataSet.rt_alert_informed_entity_tempDataTable dataTable, global::System.Nullable<int> start) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((start.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(start.Value)); } else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] public virtual AlertsDataSet.rt_alert_informed_entity_tempDataTable GetData(global::System.Nullable<int> start) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((start.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(start.Value)); } else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } AlertsDataSet.rt_alert_informed_entity_tempDataTable dataTable = new AlertsDataSet.rt_alert_informed_entity_tempDataTable(); this.Adapter.Fill(dataTable); return dataTable; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteAll() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteQuery(global::System.Nullable<int> start) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; if ((start.HasValue == true)) { command.Parameters[0].Value = ((int)(start.Value)); } else { command.Parameters[0].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] public virtual int InsertFromMainTable() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { command.Connection.Open(); } int returnValue; try { returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { command.Connection.Close(); } } return returnValue; } } /// <summary> ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios ///</summary> [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] public partial class TableAdapterManager : global::System.ComponentModel.Component { private UpdateOrderOption _updateOrder; private gtfsrt_alert_denormalizedTableAdapter _gtfsrt_alert_denormalizedTableAdapter; private gtfsrt_alert_active_period_denormalizedTableAdapter _gtfsrt_alert_active_period_denormalizedTableAdapter; private gtfsrt_alert_informed_entity_denormalizedTableAdapter _gtfsrt_alert_informed_entity_denormalizedTableAdapter; private rt_alertTableAdapter _rt_alertTableAdapter; private rt_alert_active_periodTableAdapter _rt_alert_active_periodTableAdapter; private rt_alert_informed_entityTableAdapter _rt_alert_informed_entityTableAdapter; private rt_alert_tempTableAdapter _rt_alert_tempTableAdapter; private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public UpdateOrderOption UpdateOrder { get { return this._updateOrder; } set { this._updateOrder = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public gtfsrt_alert_denormalizedTableAdapter gtfsrt_alert_denormalizedTableAdapter { get { return this._gtfsrt_alert_denormalizedTableAdapter; } set { this._gtfsrt_alert_denormalizedTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public gtfsrt_alert_active_period_denormalizedTableAdapter gtfsrt_alert_active_period_denormalizedTableAdapter { get { return this._gtfsrt_alert_active_period_denormalizedTableAdapter; } set { this._gtfsrt_alert_active_period_denormalizedTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public gtfsrt_alert_informed_entity_denormalizedTableAdapter gtfsrt_alert_informed_entity_denormalizedTableAdapter { get { return this._gtfsrt_alert_informed_entity_denormalizedTableAdapter; } set { this._gtfsrt_alert_informed_entity_denormalizedTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public rt_alertTableAdapter rt_alertTableAdapter { get { return this._rt_alertTableAdapter; } set { this._rt_alertTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public rt_alert_active_periodTableAdapter rt_alert_active_periodTableAdapter { get { return this._rt_alert_active_periodTableAdapter; } set { this._rt_alert_active_periodTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public rt_alert_informed_entityTableAdapter rt_alert_informed_entityTableAdapter { get { return this._rt_alert_informed_entityTableAdapter; } set { this._rt_alert_informed_entityTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] public rt_alert_tempTableAdapter rt_alert_tempTableAdapter { get { return this._rt_alert_tempTableAdapter; } set { this._rt_alert_tempTableAdapter = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { get { return this._backupDataSetBeforeUpdate; } set { this._backupDataSetBeforeUpdate = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public global::System.Data.IDbConnection Connection { get { if ((this._connection != null)) { return this._connection; } if (((this._gtfsrt_alert_denormalizedTableAdapter != null) && (this._gtfsrt_alert_denormalizedTableAdapter.Connection != null))) { return this._gtfsrt_alert_denormalizedTableAdapter.Connection; } if (((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null) && (this._gtfsrt_alert_active_period_denormalizedTableAdapter.Connection != null))) { return this._gtfsrt_alert_active_period_denormalizedTableAdapter.Connection; } if (((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null) && (this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Connection != null))) { return this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Connection; } if (((this._rt_alertTableAdapter != null) && (this._rt_alertTableAdapter.Connection != null))) { return this._rt_alertTableAdapter.Connection; } if (((this._rt_alert_active_periodTableAdapter != null) && (this._rt_alert_active_periodTableAdapter.Connection != null))) { return this._rt_alert_active_periodTableAdapter.Connection; } if (((this._rt_alert_informed_entityTableAdapter != null) && (this._rt_alert_informed_entityTableAdapter.Connection != null))) { return this._rt_alert_informed_entityTableAdapter.Connection; } if (((this._rt_alert_tempTableAdapter != null) && (this._rt_alert_tempTableAdapter.Connection != null))) { return this._rt_alert_tempTableAdapter.Connection; } return null; } set { this._connection = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] public int TableAdapterInstanceCount { get { int count = 0; if ((this._gtfsrt_alert_denormalizedTableAdapter != null)) { count = (count + 1); } if ((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null)) { count = (count + 1); } if ((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null)) { count = (count + 1); } if ((this._rt_alertTableAdapter != null)) { count = (count + 1); } if ((this._rt_alert_active_periodTableAdapter != null)) { count = (count + 1); } if ((this._rt_alert_informed_entityTableAdapter != null)) { count = (count + 1); } if ((this._rt_alert_tempTableAdapter != null)) { count = (count + 1); } return count; } } /// <summary> ///Update rows in top-down order. ///</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateUpdatedRows(AlertsDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) { int result = 0; if ((this._rt_alertTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.rt_alert.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._rt_alertTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } if ((this._rt_alert_tempTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.rt_alert_temp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._rt_alert_tempTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } if ((this._gtfsrt_alert_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.gtfsrt_alert_denormalized.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._gtfsrt_alert_denormalizedTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } if ((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.gtfsrt_alert_active_period_denormalized.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._gtfsrt_alert_active_period_denormalizedTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } if ((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.gtfsrt_alert_informed_entity_denormalized.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } if ((this._rt_alert_active_periodTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.rt_alert_active_period.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._rt_alert_active_periodTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } if ((this._rt_alert_informed_entityTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.rt_alert_informed_entity.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { result = (result + this._rt_alert_informed_entityTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } return result; } /// <summary> ///Insert rows in top-down order. ///</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateInsertedRows(AlertsDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) { int result = 0; if ((this._rt_alertTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.rt_alert.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._rt_alertTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } if ((this._rt_alert_tempTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.rt_alert_temp.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._rt_alert_tempTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } if ((this._gtfsrt_alert_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.gtfsrt_alert_denormalized.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._gtfsrt_alert_denormalizedTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } if ((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.gtfsrt_alert_active_period_denormalized.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._gtfsrt_alert_active_period_denormalizedTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } if ((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.gtfsrt_alert_informed_entity_denormalized.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } if ((this._rt_alert_active_periodTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.rt_alert_active_period.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._rt_alert_active_periodTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } if ((this._rt_alert_informed_entityTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.rt_alert_informed_entity.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { result = (result + this._rt_alert_informed_entityTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } return result; } /// <summary> ///Delete rows in bottom-up order. ///</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(AlertsDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) { int result = 0; if ((this._rt_alert_informed_entityTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.rt_alert_informed_entity.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._rt_alert_informed_entityTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } if ((this._rt_alert_active_periodTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.rt_alert_active_period.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._rt_alert_active_periodTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } if ((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.gtfsrt_alert_informed_entity_denormalized.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } if ((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.gtfsrt_alert_active_period_denormalized.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._gtfsrt_alert_active_period_denormalizedTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } if ((this._gtfsrt_alert_denormalizedTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.gtfsrt_alert_denormalized.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._gtfsrt_alert_denormalizedTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } if ((this._rt_alert_tempTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.rt_alert_temp.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._rt_alert_tempTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } if ((this._rt_alertTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.rt_alert.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { result = (result + this._rt_alertTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } return result; } /// <summary> ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first ///</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) { if (((updatedRows == null) || (updatedRows.Length < 1))) { return updatedRows; } if (((allAddedRows == null) || (allAddedRows.Count < 1))) { return updatedRows; } global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>(); for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { global::System.Data.DataRow row = updatedRows[i]; if ((allAddedRows.Contains(row) == false)) { realUpdatedRows.Add(row); } } return realUpdatedRows.ToArray(); } /// <summary> ///Update all changes to the dataset. ///</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public virtual int UpdateAll(AlertsDataSet dataSet) { if ((dataSet == null)) { throw new global::System.ArgumentNullException("dataSet"); } if ((dataSet.HasChanges() == false)) { return 0; } if (((this._gtfsrt_alert_denormalizedTableAdapter != null) && (this.MatchTableAdapterConnection(this._gtfsrt_alert_denormalizedTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } if (((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null) && (this.MatchTableAdapterConnection(this._gtfsrt_alert_active_period_denormalizedTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } if (((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null) && (this.MatchTableAdapterConnection(this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } if (((this._rt_alertTableAdapter != null) && (this.MatchTableAdapterConnection(this._rt_alertTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } if (((this._rt_alert_active_periodTableAdapter != null) && (this.MatchTableAdapterConnection(this._rt_alert_active_periodTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } if (((this._rt_alert_informed_entityTableAdapter != null) && (this.MatchTableAdapterConnection(this._rt_alert_informed_entityTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } if (((this._rt_alert_tempTableAdapter != null) && (this.MatchTableAdapterConnection(this._rt_alert_tempTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + "ger TableAdapter property to a valid TableAdapter instance."); } bool workConnOpened = false; if (((workConnection.State & global::System.Data.ConnectionState.Broken) == global::System.Data.ConnectionState.Broken)) { workConnection.Close(); } if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { workConnection.Open(); workConnOpened = true; } global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); if ((workTransaction == null)) { throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + "ctions or the current state is not allowing the transaction to begin."); } global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>(); global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>(); global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>(); global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>(); int result = 0; global::System.Data.DataSet backupDataSet = null; if (this.BackupDataSetBeforeUpdate) { backupDataSet = new global::System.Data.DataSet(); backupDataSet.Merge(dataSet); } try { // ---- Prepare for update ----------- // if ((this._gtfsrt_alert_denormalizedTableAdapter != null)) { revertConnections.Add(this._gtfsrt_alert_denormalizedTableAdapter, this._gtfsrt_alert_denormalizedTableAdapter.Connection); this._gtfsrt_alert_denormalizedTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._gtfsrt_alert_denormalizedTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._gtfsrt_alert_denormalizedTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._gtfsrt_alert_denormalizedTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._gtfsrt_alert_denormalizedTableAdapter.Adapter); } } if ((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null)) { revertConnections.Add(this._gtfsrt_alert_active_period_denormalizedTableAdapter, this._gtfsrt_alert_active_period_denormalizedTableAdapter.Connection); this._gtfsrt_alert_active_period_denormalizedTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._gtfsrt_alert_active_period_denormalizedTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._gtfsrt_alert_active_period_denormalizedTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._gtfsrt_alert_active_period_denormalizedTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._gtfsrt_alert_active_period_denormalizedTableAdapter.Adapter); } } if ((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null)) { revertConnections.Add(this._gtfsrt_alert_informed_entity_denormalizedTableAdapter, this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Connection); this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Adapter); } } if ((this._rt_alertTableAdapter != null)) { revertConnections.Add(this._rt_alertTableAdapter, this._rt_alertTableAdapter.Connection); this._rt_alertTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._rt_alertTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._rt_alertTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._rt_alertTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._rt_alertTableAdapter.Adapter); } } if ((this._rt_alert_active_periodTableAdapter != null)) { revertConnections.Add(this._rt_alert_active_periodTableAdapter, this._rt_alert_active_periodTableAdapter.Connection); this._rt_alert_active_periodTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._rt_alert_active_periodTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._rt_alert_active_periodTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._rt_alert_active_periodTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._rt_alert_active_periodTableAdapter.Adapter); } } if ((this._rt_alert_informed_entityTableAdapter != null)) { revertConnections.Add(this._rt_alert_informed_entityTableAdapter, this._rt_alert_informed_entityTableAdapter.Connection); this._rt_alert_informed_entityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._rt_alert_informed_entityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._rt_alert_informed_entityTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._rt_alert_informed_entityTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._rt_alert_informed_entityTableAdapter.Adapter); } } if ((this._rt_alert_tempTableAdapter != null)) { revertConnections.Add(this._rt_alert_tempTableAdapter, this._rt_alert_tempTableAdapter.Connection); this._rt_alert_tempTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); this._rt_alert_tempTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); if (this._rt_alert_tempTableAdapter.Adapter.AcceptChangesDuringUpdate) { this._rt_alert_tempTableAdapter.Adapter.AcceptChangesDuringUpdate = false; adaptersWithAcceptChangesDuringUpdate.Add(this._rt_alert_tempTableAdapter.Adapter); } } // //---- Perform updates ----------- // if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); } else { result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); } result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); // //---- Commit updates ----------- // workTransaction.Commit(); if ((0 < allAddedRows.Count)) { global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; allAddedRows.CopyTo(rows); for (int i = 0; (i < rows.Length); i = (i + 1)) { global::System.Data.DataRow row = rows[i]; row.AcceptChanges(); } } if ((0 < allChangedRows.Count)) { global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; allChangedRows.CopyTo(rows); for (int i = 0; (i < rows.Length); i = (i + 1)) { global::System.Data.DataRow row = rows[i]; row.AcceptChanges(); } } } catch (global::System.Exception ex) { workTransaction.Rollback(); // ---- Restore the dataset ----------- if (this.BackupDataSetBeforeUpdate) { global::System.Diagnostics.Debug.Assert((backupDataSet != null)); dataSet.Clear(); dataSet.Merge(backupDataSet); } else { if ((0 < allAddedRows.Count)) { global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; allAddedRows.CopyTo(rows); for (int i = 0; (i < rows.Length); i = (i + 1)) { global::System.Data.DataRow row = rows[i]; row.AcceptChanges(); row.SetAdded(); } } } throw ex; } finally { if (workConnOpened) { workConnection.Close(); } if ((this._gtfsrt_alert_denormalizedTableAdapter != null)) { this._gtfsrt_alert_denormalizedTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._gtfsrt_alert_denormalizedTableAdapter])); this._gtfsrt_alert_denormalizedTableAdapter.Transaction = null; } if ((this._gtfsrt_alert_active_period_denormalizedTableAdapter != null)) { this._gtfsrt_alert_active_period_denormalizedTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._gtfsrt_alert_active_period_denormalizedTableAdapter])); this._gtfsrt_alert_active_period_denormalizedTableAdapter.Transaction = null; } if ((this._gtfsrt_alert_informed_entity_denormalizedTableAdapter != null)) { this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._gtfsrt_alert_informed_entity_denormalizedTableAdapter])); this._gtfsrt_alert_informed_entity_denormalizedTableAdapter.Transaction = null; } if ((this._rt_alertTableAdapter != null)) { this._rt_alertTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rt_alertTableAdapter])); this._rt_alertTableAdapter.Transaction = null; } if ((this._rt_alert_active_periodTableAdapter != null)) { this._rt_alert_active_periodTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rt_alert_active_periodTableAdapter])); this._rt_alert_active_periodTableAdapter.Transaction = null; } if ((this._rt_alert_informed_entityTableAdapter != null)) { this._rt_alert_informed_entityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rt_alert_informed_entityTableAdapter])); this._rt_alert_informed_entityTableAdapter.Transaction = null; } if ((this._rt_alert_tempTableAdapter != null)) { this._rt_alert_tempTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rt_alert_tempTableAdapter])); this._rt_alert_tempTableAdapter.Transaction = null; } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); for (int i = 0; (i < adapters.Length); i = (i + 1)) { global::System.Data.Common.DataAdapter adapter = adapters[i]; adapter.AcceptChangesDuringUpdate = true; } } } return result; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { if ((this._connection != null)) { return true; } if (((this.Connection == null) || (inputConnection == null))) { return true; } if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { return true; } return false; } /// <summary> ///Update Order Option ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public enum UpdateOrderOption { InsertUpdateDelete = 0, UpdateInsertDelete = 1, } /// <summary> ///Used to sort self-referenced table's rows ///</summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> { private global::System.Data.DataRelation _relation; private int _childFirst; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { this._relation = relation; if (childFirst) { this._childFirst = -1; } else { this._childFirst = 1; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { global::System.Diagnostics.Debug.Assert((row != null)); global::System.Data.DataRow root = row; distance = 0; global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>(); traversedRows[row] = row; global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); for ( ; ((parent != null) && (traversedRows.ContainsKey(parent) == false)); ) { distance = (distance + 1); root = parent; traversedRows[parent] = parent; parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); } if ((distance == 0)) { traversedRows.Clear(); traversedRows[row] = row; parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); for ( ; ((parent != null) && (traversedRows.ContainsKey(parent) == false)); ) { distance = (distance + 1); root = parent; traversedRows[parent] = parent; parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); } } return root; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { if (object.ReferenceEquals(row1, row2)) { return 0; } if ((row1 == null)) { return -1; } if ((row2 == null)) { return 1; } int distance1 = 0; global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); int distance2 = 0; global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); if (object.ReferenceEquals(root1, root2)) { return (this._childFirst * distance1.CompareTo(distance2)); } else { global::System.Diagnostics.Debug.Assert(((root1.Table != null) && (root2.Table != null))); if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { return -1; } else { return 1; } } } } } } #pragma warning restore 1591
60.39538
475
0.619409
[ "MIT" ]
ibi-group/transit-performance
DataAccess/DataSets/AlertsDataSet.Designer.cs
630,107
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace RestWithAsp_Net5Udemy { public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); }); } }
26.037037
70
0.650071
[ "Apache-2.0" ]
wahlfernando/RequestWithAsp-Net5Udemy
01_RestWithAsp-Net5Udemy/RestWithAsp-Net5Udemy/RestWithAsp-Net5Udemy/Program.cs
703
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System; namespace Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Storage { internal class ConfigurationChangeWatcherPauser : IDisposable { private readonly IConfigurationChangeWatcher watcher; public ConfigurationChangeWatcherPauser(IConfigurationChangeWatcher watcher) { this.watcher = watcher; if(watcher != null) watcher.StopWatching(); } public void Dispose() { if(watcher != null) watcher.StartWatching(); } } }
27.75
121
0.683183
[ "Apache-2.0" ]
EnterpriseLibrary/common-infrastructure
source/Src/Common/Configuration/Storage/ConfigurationChangeWatcherPauser.cs
666
C#
using System.Linq; using Honeypot.Services.Contracts; using Honeypot.Tests.Account; using Honeypot.Tests.Tests; using Xunit; namespace Honeypot.Tests { public class AuthorServiceTests : BaseTest { private readonly IAuthorService authorService; public AuthorServiceTests(BaseTestFixture fixture) : base(fixture) { this.authorService = fixture.Provider.GetService(typeof(IAuthorService)) as IAuthorService; this.SeedData(); } private void SeedData() { this.DeleteAuthorsData(); this.CreateAuthorData(); } [Fact] public void AuthorExists_ShouldReturnTrue_WhenAuthorExists() { var resultFromService = this.authorService.AuthorExists(TestsConstants.FirstName, TestsConstants.LastName); Assert.True(resultFromService); } [Fact] public void AuthorExists_ShouldReturnFalse_WhenAuthorDoesntExists() { var resultFromService = this.authorService.AuthorExists(TestsConstants.FirstNameNonExistent, TestsConstants.LastNameNonExistent); Assert.False(resultFromService); } [Fact] public void GetAuthorById_ShouldReturnAuthor() { var author = this.authorService.GetAuthorById(TestsConstants.Id1); Assert.Equal(TestsConstants.Id1, author.Id); } [Fact] public void GetAllAuthors_ShouldReturnAllAuthors() { var authorsFromService = this.authorService.GetAllAuthors(); var correctAuthors = this.context.Authors.ToList(); Assert.Equal(correctAuthors, authorsFromService); } [Fact] public void GetAuthorByName_ShouldReturnAuthor() { var authorFromService = this.authorService.GetAuthorByName(TestsConstants.FirstName, TestsConstants.LastName); var correctAuthor = this.context.Authors.FirstOrDefault(x => x.FirstName == TestsConstants.FirstName && x.LastName == TestsConstants.LastName); Assert.Equal(correctAuthor, authorFromService); } } }
33.538462
141
0.65367
[ "MIT" ]
rdineva/Honeypot
Honeypot/Honeypot.Tests/Tests/AuthorServiceTests.cs
2,182
C#
namespace AJS.Data.Models.Enums { /// <summary> /// ServiceCategory Language Enum /// </summary> public enum ServiceCategoryLanguage { bg = 0, en = 1, } }
16.333333
39
0.545918
[ "Apache-2.0" ]
Valentin9003/AJS
AJS.Data/Models/Enums/ServiceCategoryLanguage.cs
198
C#
// <auto-generated /> using BattleCards.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace BattleCards.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "5.0.3") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("BattleCards.Models.Card", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property<int>("Attack") .HasColumnType("int"); b.Property<string>("Description") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property<int>("Health") .HasColumnType("int"); b.Property<string>("ImageUrl") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Keyword") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Name") .IsRequired() .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.HasKey("Id"); b.ToTable("Cards"); }); modelBuilder.Entity("BattleCards.Models.User", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("Email") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Password") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Username") .IsRequired() .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.HasKey("Id"); b.ToTable("Users"); }); modelBuilder.Entity("BattleCards.Models.UserCard", b => { b.Property<string>("UserId") .HasColumnType("nvarchar(450)"); b.Property<int>("CardId") .HasColumnType("int"); b.HasKey("UserId", "CardId"); b.HasIndex("CardId"); b.ToTable("UserCards"); }); modelBuilder.Entity("BattleCards.Models.UserCard", b => { b.HasOne("BattleCards.Models.Card", "Card") .WithMany("UserCards") .HasForeignKey("CardId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("BattleCards.Models.User", "User") .WithMany("UserCards") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Card"); b.Navigation("User"); }); modelBuilder.Entity("BattleCards.Models.Card", b => { b.Navigation("UserCards"); }); modelBuilder.Entity("BattleCards.Models.User", b => { b.Navigation("UserCards"); }); #pragma warning restore 612, 618 } } }
34.267717
125
0.461627
[ "MIT" ]
tonchevaAleksandra/C-Sharp-Web-Development-SoftUni-Problems
C# Web Basic/BattleCards/BattleCards/Migrations/ApplicationDbContextModelSnapshot.cs
4,354
C#
using System.Web.Mvc; using Orchard.Environment.Configuration; namespace Orchard.MultiTenancy.Extensions { public static class UrlHelperExtensions { public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) { //info: (heskew) might not keep the port/vdir insertion around beyond... var port = string.Empty; string host = urlHelper.RequestContext.HttpContext.Request.Headers["Host"]; if (host.Contains(":")) port = host.Substring(host.IndexOf(":")); var result = string.Format("http://{0}", !string.IsNullOrEmpty(tenantShellSettings.RequestUrlHost) ? tenantShellSettings.RequestUrlHost + port : host); var applicationPath = urlHelper.RequestContext.HttpContext.Request.ApplicationPath; if (!string.IsNullOrEmpty(applicationPath) && !string.Equals(applicationPath, "/")) result += applicationPath; if (!string.IsNullOrEmpty(tenantShellSettings.RequestUrlPrefix)) result += "/" + tenantShellSettings.RequestUrlPrefix; return result; } } }
45.071429
99
0.607765
[ "BSD-3-Clause" ]
jdages/AndrewsHouse
src/Orchard.Web/Modules/Orchard.MultiTenancy/Extensions/UrlHelperExtensions.cs
1,264
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** 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.AzureNative.Web.V20190801 { /// <summary> /// A web app, a mobile app backend, or an API app. /// </summary> [AzureNativeResourceType("azure-native:web/v20190801:WebApp")] public partial class WebApp : Pulumi.CustomResource { /// <summary> /// Management information availability state for the app. /// </summary> [Output("availabilityState")] public Output<string> AvailabilityState { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; to enable client affinity; &lt;code&gt;false&lt;/code&gt; to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is &lt;code&gt;true&lt;/code&gt;. /// </summary> [Output("clientAffinityEnabled")] public Output<bool?> ClientAffinityEnabled { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; to enable client certificate authentication (TLS mutual authentication); otherwise, &lt;code&gt;false&lt;/code&gt;. Default is &lt;code&gt;false&lt;/code&gt;. /// </summary> [Output("clientCertEnabled")] public Output<bool?> ClientCertEnabled { get; private set; } = null!; /// <summary> /// client certificate authentication comma-separated exclusion paths /// </summary> [Output("clientCertExclusionPaths")] public Output<string?> ClientCertExclusionPaths { get; private set; } = null!; /// <summary> /// If specified during app creation, the app is cloned from a source app. /// </summary> [Output("cloningInfo")] public Output<Outputs.CloningInfoResponse?> CloningInfo { get; private set; } = null!; /// <summary> /// Size of the function container. /// </summary> [Output("containerSize")] public Output<int?> ContainerSize { get; private set; } = null!; /// <summary> /// Maximum allowed daily memory-time quota (applicable on dynamic apps only). /// </summary> [Output("dailyMemoryTimeQuota")] public Output<int?> DailyMemoryTimeQuota { get; private set; } = null!; /// <summary> /// Default hostname of the app. Read-only. /// </summary> [Output("defaultHostName")] public Output<string> DefaultHostName { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; if the app is enabled; otherwise, &lt;code&gt;false&lt;/code&gt;. Setting this value to false disables the app (takes the app offline). /// </summary> [Output("enabled")] public Output<bool?> Enabled { get; private set; } = null!; /// <summary> /// Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, /// the app is not served on those hostnames. /// </summary> [Output("enabledHostNames")] public Output<ImmutableArray<string>> EnabledHostNames { get; private set; } = null!; /// <summary> /// Hostname SSL states are used to manage the SSL bindings for app's hostnames. /// </summary> [Output("hostNameSslStates")] public Output<ImmutableArray<Outputs.HostNameSslStateResponse>> HostNameSslStates { get; private set; } = null!; /// <summary> /// Hostnames associated with the app. /// </summary> [Output("hostNames")] public Output<ImmutableArray<string>> HostNames { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; to disable the public hostnames of the app; otherwise, &lt;code&gt;false&lt;/code&gt;. /// If &lt;code&gt;true&lt;/code&gt;, the app is only accessible via API management process. /// </summary> [Output("hostNamesDisabled")] public Output<bool?> HostNamesDisabled { get; private set; } = null!; /// <summary> /// App Service Environment to use for the app. /// </summary> [Output("hostingEnvironmentProfile")] public Output<Outputs.HostingEnvironmentProfileResponse?> HostingEnvironmentProfile { get; private set; } = null!; /// <summary> /// HttpsOnly: configures a web site to accept only https requests. Issues redirect for /// http requests /// </summary> [Output("httpsOnly")] public Output<bool?> HttpsOnly { get; private set; } = null!; /// <summary> /// Hyper-V sandbox. /// </summary> [Output("hyperV")] public Output<bool?> HyperV { get; private set; } = null!; /// <summary> /// Managed service identity. /// </summary> [Output("identity")] public Output<Outputs.ManagedServiceIdentityResponse?> Identity { get; private set; } = null!; /// <summary> /// Specifies an operation id if this site has a pending operation. /// </summary> [Output("inProgressOperationId")] public Output<string> InProgressOperationId { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; if the app is a default container; otherwise, &lt;code&gt;false&lt;/code&gt;. /// </summary> [Output("isDefaultContainer")] public Output<bool> IsDefaultContainer { get; private set; } = null!; /// <summary> /// Obsolete: Hyper-V sandbox. /// </summary> [Output("isXenon")] public Output<bool?> IsXenon { get; private set; } = null!; /// <summary> /// Kind of resource. /// </summary> [Output("kind")] public Output<string?> Kind { get; private set; } = null!; /// <summary> /// Last time the app was modified, in UTC. Read-only. /// </summary> [Output("lastModifiedTimeUtc")] public Output<string> LastModifiedTimeUtc { get; private set; } = null!; /// <summary> /// Resource Location. /// </summary> [Output("location")] public Output<string> Location { get; private set; } = null!; /// <summary> /// Maximum number of workers. /// This only applies to Functions container. /// </summary> [Output("maxNumberOfWorkers")] public Output<int> MaxNumberOfWorkers { get; private set; } = null!; /// <summary> /// Resource Name. /// </summary> [Output("name")] public Output<string> Name { get; private set; } = null!; /// <summary> /// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. /// </summary> [Output("outboundIpAddresses")] public Output<string> OutboundIpAddresses { get; private set; } = null!; /// <summary> /// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only. /// </summary> [Output("possibleOutboundIpAddresses")] public Output<string> PossibleOutboundIpAddresses { get; private set; } = null!; /// <summary> /// Site redundancy mode /// </summary> [Output("redundancyMode")] public Output<string?> RedundancyMode { get; private set; } = null!; /// <summary> /// Name of the repository site. /// </summary> [Output("repositorySiteName")] public Output<string> RepositorySiteName { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; if reserved; otherwise, &lt;code&gt;false&lt;/code&gt;. /// </summary> [Output("reserved")] public Output<bool?> Reserved { get; private set; } = null!; /// <summary> /// Name of the resource group the app belongs to. Read-only. /// </summary> [Output("resourceGroup")] public Output<string> ResourceGroup { get; private set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; to stop SCM (KUDU) site when the app is stopped; otherwise, &lt;code&gt;false&lt;/code&gt;. The default is &lt;code&gt;false&lt;/code&gt;. /// </summary> [Output("scmSiteAlsoStopped")] public Output<bool?> ScmSiteAlsoStopped { get; private set; } = null!; /// <summary> /// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". /// </summary> [Output("serverFarmId")] public Output<string?> ServerFarmId { get; private set; } = null!; /// <summary> /// Configuration of the app. /// </summary> [Output("siteConfig")] public Output<Outputs.SiteConfigResponse?> SiteConfig { get; private set; } = null!; /// <summary> /// Status of the last deployment slot swap operation. /// </summary> [Output("slotSwapStatus")] public Output<Outputs.SlotSwapStatusResponse> SlotSwapStatus { get; private set; } = null!; /// <summary> /// Current state of the app. /// </summary> [Output("state")] public Output<string> State { get; private set; } = null!; /// <summary> /// App suspended till in case memory-time quota is exceeded. /// </summary> [Output("suspendedTill")] public Output<string> SuspendedTill { get; private set; } = null!; /// <summary> /// Resource tags. /// </summary> [Output("tags")] public Output<ImmutableDictionary<string, string>?> Tags { get; private set; } = null!; /// <summary> /// Specifies which deployment slot this app will swap into. Read-only. /// </summary> [Output("targetSwapSlot")] public Output<string> TargetSwapSlot { get; private set; } = null!; /// <summary> /// Azure Traffic Manager hostnames associated with the app. Read-only. /// </summary> [Output("trafficManagerHostNames")] public Output<ImmutableArray<string>> TrafficManagerHostNames { get; private set; } = null!; /// <summary> /// Resource type. /// </summary> [Output("type")] public Output<string> Type { get; private set; } = null!; /// <summary> /// State indicating whether the app has exceeded its quota usage. Read-only. /// </summary> [Output("usageState")] public Output<string> UsageState { get; private set; } = null!; /// <summary> /// Create a WebApp 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 WebApp(string name, WebAppArgs args, CustomResourceOptions? options = null) : base("azure-native:web/v20190801:WebApp", name, args ?? new WebAppArgs(), MakeResourceOptions(options, "")) { } private WebApp(string name, Input<string> id, CustomResourceOptions? options = null) : base("azure-native:web/v20190801:WebApp", name, null, MakeResourceOptions(options, id)) { } private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:web/v20190801:WebApp"}, new Pulumi.Alias { Type = "azure-native:web:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/latest:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/latest:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20150801:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20150801:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20160801:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20160801:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20180201:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20180201:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20181101:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20181101:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20200601:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20200601:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20200901:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20200901:WebApp"}, new Pulumi.Alias { Type = "azure-native:web/v20201001:WebApp"}, new Pulumi.Alias { Type = "azure-nextgen:web/v20201001:WebApp"}, }, }; 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 WebApp 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="options">A bag of options that control this resource's behavior</param> public static WebApp Get(string name, Input<string> id, CustomResourceOptions? options = null) { return new WebApp(name, id, options); } } public sealed class WebAppArgs : Pulumi.ResourceArgs { /// <summary> /// &lt;code&gt;true&lt;/code&gt; to enable client affinity; &lt;code&gt;false&lt;/code&gt; to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is &lt;code&gt;true&lt;/code&gt;. /// </summary> [Input("clientAffinityEnabled")] public Input<bool>? ClientAffinityEnabled { get; set; } /// <summary> /// &lt;code&gt;true&lt;/code&gt; to enable client certificate authentication (TLS mutual authentication); otherwise, &lt;code&gt;false&lt;/code&gt;. Default is &lt;code&gt;false&lt;/code&gt;. /// </summary> [Input("clientCertEnabled")] public Input<bool>? ClientCertEnabled { get; set; } /// <summary> /// client certificate authentication comma-separated exclusion paths /// </summary> [Input("clientCertExclusionPaths")] public Input<string>? ClientCertExclusionPaths { get; set; } /// <summary> /// If specified during app creation, the app is cloned from a source app. /// </summary> [Input("cloningInfo")] public Input<Inputs.CloningInfoArgs>? CloningInfo { get; set; } /// <summary> /// Size of the function container. /// </summary> [Input("containerSize")] public Input<int>? ContainerSize { get; set; } /// <summary> /// Maximum allowed daily memory-time quota (applicable on dynamic apps only). /// </summary> [Input("dailyMemoryTimeQuota")] public Input<int>? DailyMemoryTimeQuota { get; set; } /// <summary> /// &lt;code&gt;true&lt;/code&gt; if the app is enabled; otherwise, &lt;code&gt;false&lt;/code&gt;. Setting this value to false disables the app (takes the app offline). /// </summary> [Input("enabled")] public Input<bool>? Enabled { get; set; } [Input("hostNameSslStates")] private InputList<Inputs.HostNameSslStateArgs>? _hostNameSslStates; /// <summary> /// Hostname SSL states are used to manage the SSL bindings for app's hostnames. /// </summary> public InputList<Inputs.HostNameSslStateArgs> HostNameSslStates { get => _hostNameSslStates ?? (_hostNameSslStates = new InputList<Inputs.HostNameSslStateArgs>()); set => _hostNameSslStates = value; } /// <summary> /// &lt;code&gt;true&lt;/code&gt; to disable the public hostnames of the app; otherwise, &lt;code&gt;false&lt;/code&gt;. /// If &lt;code&gt;true&lt;/code&gt;, the app is only accessible via API management process. /// </summary> [Input("hostNamesDisabled")] public Input<bool>? HostNamesDisabled { get; set; } /// <summary> /// App Service Environment to use for the app. /// </summary> [Input("hostingEnvironmentProfile")] public Input<Inputs.HostingEnvironmentProfileArgs>? HostingEnvironmentProfile { get; set; } /// <summary> /// HttpsOnly: configures a web site to accept only https requests. Issues redirect for /// http requests /// </summary> [Input("httpsOnly")] public Input<bool>? HttpsOnly { get; set; } /// <summary> /// Hyper-V sandbox. /// </summary> [Input("hyperV")] public Input<bool>? HyperV { get; set; } /// <summary> /// Managed service identity. /// </summary> [Input("identity")] public Input<Inputs.ManagedServiceIdentityArgs>? Identity { get; set; } /// <summary> /// Obsolete: Hyper-V sandbox. /// </summary> [Input("isXenon")] public Input<bool>? IsXenon { get; set; } /// <summary> /// Kind of resource. /// </summary> [Input("kind")] public Input<string>? Kind { get; set; } /// <summary> /// Resource Location. /// </summary> [Input("location")] public Input<string>? Location { get; set; } /// <summary> /// Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. /// </summary> [Input("name")] public Input<string>? Name { get; set; } /// <summary> /// Site redundancy mode /// </summary> [Input("redundancyMode")] public Input<Pulumi.AzureNative.Web.V20190801.RedundancyMode>? RedundancyMode { get; set; } /// <summary> /// &lt;code&gt;true&lt;/code&gt; if reserved; otherwise, &lt;code&gt;false&lt;/code&gt;. /// </summary> [Input("reserved")] public Input<bool>? Reserved { get; set; } /// <summary> /// Name of the resource group to which the resource belongs. /// </summary> [Input("resourceGroupName", required: true)] public Input<string> ResourceGroupName { get; set; } = null!; /// <summary> /// &lt;code&gt;true&lt;/code&gt; to stop SCM (KUDU) site when the app is stopped; otherwise, &lt;code&gt;false&lt;/code&gt;. The default is &lt;code&gt;false&lt;/code&gt;. /// </summary> [Input("scmSiteAlsoStopped")] public Input<bool>? ScmSiteAlsoStopped { get; set; } /// <summary> /// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". /// </summary> [Input("serverFarmId")] public Input<string>? ServerFarmId { get; set; } /// <summary> /// Configuration of the app. /// </summary> [Input("siteConfig")] public Input<Inputs.SiteConfigArgs>? SiteConfig { get; set; } [Input("tags")] private InputMap<string>? _tags; /// <summary> /// Resource tags. /// </summary> public InputMap<string> Tags { get => _tags ?? (_tags = new InputMap<string>()); set => _tags = value; } public WebAppArgs() { HyperV = false; IsXenon = false; Reserved = false; ScmSiteAlsoStopped = false; } } }
41.775591
253
0.583828
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Web/V20190801/WebApp.cs
21,222
C#
using GizmoFort.Connector.ERPNext.PublicInterfaces; using GizmoFort.Connector.ERPNext.PublicInterfaces.SubServices; using GizmoFort.Connector.ERPNext.PublicTypes; namespace GizmoFort.Connector.ERPNext.ERPTypes.Uy_uy_chart_template { public class Uy_uy_chart_templateService : SubServiceBase<ERPUy_uy_chart_template> { public Uy_uy_chart_templateService(ERPNextClient client) : base(DocType.Uy_uy_chart_template, client) { } protected override ERPUy_uy_chart_template fromERPObject(ERPObject obj) { return new ERPUy_uy_chart_template(obj); } } }
36.117647
86
0.765472
[ "MIT" ]
dmequus/gizmofort.connector.erpnext
Libs/GizmoFort.Connector.ERPNext/ERPTypes/Uy_uy_chart_template/Uy_uy_chart_templateService.cs
614
C#
using System; namespace BuiltCloud.Portal { public static class CsHtmlExtensions { public static string ToLocalString(this DateTime date) { return date.ToLocalTime().ToString("yyyy/MM/dd HH:mm:ss"); } } }
22.083333
71
0.6
[ "MIT" ]
BuiltCloud/BuiltCloud
BuiltCloud.Dashboard/Portal/Extensions/CsHtmlExtensions.cs
267
C#
//----------------------------------------------------------------------- // <copyright file="QueryMapper.cs" company="Akka.NET Project"> // Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net> // </copyright> //----------------------------------------------------------------------- using System; using System.Data.Common; namespace Akka.Persistence.Sql.Common.Snapshot { /// <summary> /// Mapper used to map results of snapshot SELECT queries into valid snapshot objects. /// </summary> public interface ISnapshotQueryMapper { /// <summary> /// Map data found under current cursor pointed by SQL data reader into <see cref="SelectedSnapshot"/> instance. /// </summary> SelectedSnapshot Map(DbDataReader reader); } internal class DefaultSnapshotQueryMapper : ISnapshotQueryMapper { private readonly Akka.Serialization.Serialization _serialization; public DefaultSnapshotQueryMapper(Akka.Serialization.Serialization serialization) { _serialization = serialization; } public SelectedSnapshot Map(DbDataReader reader) { var persistenceId = reader.GetString(0); var sequenceNr = reader.GetInt64(1); var timestamp = reader.GetDateTime(2); var metadata = new SnapshotMetadata(persistenceId, sequenceNr, timestamp); var snapshot = GetSnapshot(reader); return new SelectedSnapshot(metadata, snapshot); } private object GetSnapshot(DbDataReader reader) { var type = Type.GetType(reader.GetString(3), true); var serializer = _serialization.FindSerializerForType(type); var binary = (byte[])reader[4]; var obj = serializer.FromBinary(binary, type); return obj; } } }
35.089286
120
0.599491
[ "Apache-2.0" ]
to11mtm/akka.net
src/contrib/persistence/Akka.Persistence.Sql.Common/Snapshot/QueryMapper.cs
1,967
C#
using Caliburn.Micro; namespace LayoutTest.Features.Shell { public interface IViewModelLocator { T GetInstance<T>() where T : class, IScreen; } }
18.555556
52
0.676647
[ "MIT" ]
ardune/layouttest
LayoutTest/Features/Shell/IViewModelLocator.cs
169
C#
using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using Microsoft.WindowsAzure.Storage.Blob; using SendGrid.Helpers.Mail; namespace GLEIF.FunctionApp { public static class SendEmail { [FunctionName("SendEmail")] public static void Run( [BlobTrigger("gleif-val/{name}.csv", Connection = "GleifBlobStorage")/*, Disable()*/] CloudBlockBlob inputBlob, [SendGrid(ApiKey = "SendGridAPIKey", To = "azure@modus.nl", From = "no-reply@modus.nl")] out SendGridMessage message, string name, string blobTrigger, ILogger logger, ExecutionContext context) { logger.LogInformation("Sending Email '{0}'...", blobTrigger); message = new SendGridMessage(); message.Subject = string.Format("New Validation file '{0}'", inputBlob.Name); message.PlainTextContent = inputBlob.Uri.ToString(); } } }
35.481481
129
0.634656
[ "MIT" ]
modusnl/GLEIF
FunctionApp/SendEmail.cs
958
C#
using System; using System.ComponentModel; using PluginCore.Localization; namespace PluginCore.Localization { [AttributeUsage(AttributeTargets.All)] public class LocalizedCategoryAttribute : CategoryAttribute { public LocalizedCategoryAttribute(String key) : base(key) { } /// <summary> /// Gets the localized string /// </summary> protected override String GetLocalizedString(String key) { return TextHelper.GetString(key); } } [AttributeUsage(AttributeTargets.All)] public class LocalizedDescriptionAttribute : DescriptionAttribute { private Boolean initialized = false; public LocalizedDescriptionAttribute(String key) : base(key) { } /// <summary> /// Gets the description of the string /// </summary> public override string Description { get { if (!initialized) { String key = base.Description; DescriptionValue = TextHelper.GetString(key); if (DescriptionValue == null) DescriptionValue = String.Empty; initialized = true; } return DescriptionValue; } } } [AttributeUsage(AttributeTargets.All)] public class StringValueAttribute : Attribute { private String value; public StringValueAttribute(String value) { this.value = value; } /// <summary> /// Gets the string value of the class /// </summary> public String Value { get { return this.value; } } } }
25.144928
82
0.561383
[ "MIT" ]
SlavaRa/flashdevelop-macros
PluginCore/PluginCore/Localization/Attributes.cs
1,735
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 Microsoft.VisualStudio.Language.NavigateTo.Interfaces; namespace Microsoft.CodeAnalysis.Editor.Implementation.NavigateTo { internal sealed class DefaultNavigateToPreviewService : INavigateToPreviewService { public int GetProvisionalViewingStatus(Document document) { return 0; } public bool CanPreview(Document document) { return true; } public void PreviewItem(INavigateToItemDisplay itemDisplay) { } } }
28.541667
160
0.689051
[ "Apache-2.0" ]
0x53A/roslyn
src/EditorFeatures/Core/Implementation/NavigateTo/DefaultNavigateToPreviewService.cs
685
C#
namespace MyFems.Clients.Shared.Models; public class AppSettings { public string DbConnection { get; set; } public string ServiceUri { get; set; } }
19.875
44
0.716981
[ "MIT" ]
assassin9018/FyFems
Shared/Models/AppSettings.cs
161
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Esfa.Recruit.Provider.Web.ViewModels.Part1.Dates; using FluentAssertions; using Xunit; using ErrMsg = Esfa.Recruit.Shared.Web.ViewModels.ValidationMessages.DateValidationMessages; namespace Esfa.Recruit.Provider.UnitTests.Provider.Web.ViewModels.Dates { public class DatesEditModelTests { public static IEnumerable<object[]> InvalidDatesData => new List<object[]> { //ClosingDate new object[] { nameof(DatesEditModel.ClosingDay), "aa", nameof(DatesEditModel.ClosingDate), ErrMsg.TypeOfDate.ClosingDate}, new object[] { nameof(DatesEditModel.ClosingDay), "32", nameof(DatesEditModel.ClosingDate), ErrMsg.TypeOfDate.ClosingDate}, new object[] { nameof(DatesEditModel.ClosingMonth), "aa", nameof(DatesEditModel.ClosingDate), ErrMsg.TypeOfDate.ClosingDate}, new object[] { nameof(DatesEditModel.ClosingMonth), "13", nameof(DatesEditModel.ClosingDate), ErrMsg.TypeOfDate.ClosingDate}, new object[] { nameof(DatesEditModel.ClosingYear), "aa", nameof(DatesEditModel.ClosingDate), ErrMsg.TypeOfDate.ClosingDate}, new object[] { nameof(DatesEditModel.ClosingYear), "18", nameof(DatesEditModel.ClosingDate), ErrMsg.TypeOfDate.ClosingDate}, //StartDate new object[] { nameof(DatesEditModel.StartDay), "aa", nameof(DatesEditModel.StartDate), ErrMsg.TypeOfDate.StartDate}, new object[] { nameof(DatesEditModel.StartDay), "32", nameof(DatesEditModel.StartDate), ErrMsg.TypeOfDate.StartDate}, new object[] { nameof(DatesEditModel.StartMonth), "aa", nameof(DatesEditModel.StartDate), ErrMsg.TypeOfDate.StartDate}, new object[] { nameof(DatesEditModel.StartMonth), "13", nameof(DatesEditModel.StartDate), ErrMsg.TypeOfDate.StartDate}, new object[] { nameof(DatesEditModel.StartYear), "aa", nameof(DatesEditModel.StartDate), ErrMsg.TypeOfDate.StartDate}, new object[] { nameof(DatesEditModel.StartYear), "18", nameof(DatesEditModel.StartDate), ErrMsg.TypeOfDate.StartDate} }; [Theory] [MemberData(nameof(InvalidDatesData))] public void ShouldErrorIfClosingDateIsInvalid(string propertyName, object actualPropertyValue, string expectedErrorPropertyName, string expectedErrorMessage) { //a valid model var m = new DatesEditModel { VacancyId = Guid.Parse("53b54daa-4702-4b69-97e5-12123a59f8ad"), ClosingDay = "01", ClosingMonth = "3", ClosingYear = "2018", StartDay = "7", StartMonth = "04", StartYear = "2018" }; var context = new ValidationContext(m, null, null); var result = new List<ValidationResult>(); //ensure we are starting with a valid model var isInitiallyValid = Validator.TryValidateObject(m, context, result, true); isInitiallyValid.Should().BeTrue(); //set the property we are testing m.GetType().GetProperty(propertyName).SetValue(m, actualPropertyValue); // Act var isValid = Validator.TryValidateObject(m, context, result, true); isValid.Should().BeFalse(); result.Should().HaveCount(1); result.Single(r => r.MemberNames.Single() == expectedErrorPropertyName).ErrorMessage.Should().Be(expectedErrorMessage); } } }
50.232877
165
0.655031
[ "MIT" ]
SkillsFundingAgency/das-recru
src/Provider/UnitTests/Provider.Web/ViewModels/Dates/DatesEditModelTests.cs
3,669
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. using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace System.Threading { /// <summary> /// Propagates notification that operations should be canceled. /// </summary> /// <remarks> /// <para> /// A <see cref="CancellationToken"/> may be created directly in an unchangeable canceled or non-canceled state /// using the CancellationToken's constructors. However, to have a CancellationToken that can change /// from a non-canceled to a canceled state, /// <see cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> must be used. /// CancellationTokenSource exposes the associated CancellationToken that may be canceled by the source through its /// <see cref="System.Threading.CancellationTokenSource.Token">Token</see> property. /// </para> /// <para> /// Once canceled, a token may not transition to a non-canceled state, and a token whose /// <see cref="CanBeCanceled"/> is false will never change to one that can be canceled. /// </para> /// <para> /// All members of this struct are thread-safe and may be used concurrently from multiple threads. /// </para> /// </remarks> [DebuggerDisplay("IsCancellationRequested = {IsCancellationRequested}")] public readonly struct CancellationToken { // The backing TokenSource. // if null, it implicitly represents the same thing as new CancellationToken(false). // When required, it will be instantiated to reflect this. private readonly CancellationTokenSource? _source; // !! warning. If more fields are added, the assumptions in CreateLinkedToken may no longer be valid private static readonly Action<object?> s_actionToActionObjShunt = obj => { Debug.Assert(obj is Action, $"Expected {typeof(Action)}, got {obj}"); ((Action)obj)(); }; /// <summary> /// Returns an empty CancellationToken value. /// </summary> /// <remarks> /// The <see cref="CancellationToken"/> value returned by this property will be non-cancelable by default. /// </remarks> public static CancellationToken None => default; /// <summary> /// Gets whether cancellation has been requested for this token. /// </summary> /// <value>Whether cancellation has been requested for this token.</value> /// <remarks> /// <para> /// This property indicates whether cancellation has been requested for this token, /// either through the token initially being constructed in a canceled state, or through /// calling <see cref="System.Threading.CancellationTokenSource.Cancel()">Cancel</see> /// on the token's associated <see cref="CancellationTokenSource"/>. /// </para> /// <para> /// If this property is true, it only guarantees that cancellation has been requested. /// It does not guarantee that every registered handler /// has finished executing, nor that cancellation requests have finished propagating /// to all registered handlers. Additional synchronization may be required, /// particularly in situations where related objects are being canceled concurrently. /// </para> /// </remarks> public bool IsCancellationRequested => _source != null && _source.IsCancellationRequested; /// <summary> /// Gets whether this token is capable of being in the canceled state. /// </summary> /// <remarks> /// If CanBeCanceled returns false, it is guaranteed that the token will never transition /// into a canceled state, meaning that <see cref="IsCancellationRequested"/> will never /// return true. /// </remarks> public bool CanBeCanceled => _source != null; /// <summary> /// Gets a <see cref="System.Threading.WaitHandle"/> that is signaled when the token is canceled.</summary> /// <remarks> /// Accessing this property causes a <see cref="System.Threading.WaitHandle">WaitHandle</see> /// to be instantiated. It is preferable to only use this property when necessary, and to then /// dispose the associated <see cref="CancellationTokenSource"/> instance at the earliest opportunity (disposing /// the source will dispose of this allocated handle). The handle should not be closed or disposed directly. /// </remarks> /// <exception cref="System.ObjectDisposedException">The associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> public WaitHandle WaitHandle => (_source ?? CancellationTokenSource.s_neverCanceledSource).WaitHandle; // public CancellationToken() // this constructor is implicit for structs // -> this should behaves exactly as for new CancellationToken(false) /// <summary> /// Internal constructor only a CancellationTokenSource should create a CancellationToken /// </summary> internal CancellationToken(CancellationTokenSource? source) => _source = source; /// <summary> /// Initializes the <see cref="System.Threading.CancellationToken">CancellationToken</see>. /// </summary> /// <param name="canceled"> /// The canceled state for the token. /// </param> /// <remarks> /// Tokens created with this constructor will remain in the canceled state specified /// by the <paramref name="canceled"/> parameter. If <paramref name="canceled"/> is false, /// both <see cref="CanBeCanceled"/> and <see cref="IsCancellationRequested"/> will be false. /// If <paramref name="canceled"/> is true, /// both <see cref="CanBeCanceled"/> and <see cref="IsCancellationRequested"/> will be true. /// </remarks> public CancellationToken(bool canceled) : this(canceled ? CancellationTokenSource.s_canceledSource : null) { } /// <summary> /// Registers a delegate that will be called when this <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled. /// </summary> /// <remarks> /// <para> /// If this token is already in the canceled state, the /// delegate will be run immediately and synchronously. Any exception the delegate generates will be /// propagated out of this method call. /// </para> /// <para> /// The current <see cref="System.Threading.ExecutionContext">ExecutionContext</see>, if one exists, will be captured /// along with the delegate and will be used when executing it. /// </para> /// </remarks> /// <param name="callback">The delegate to be executed when the <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled.</param> /// <returns>The <see cref="System.Threading.CancellationTokenRegistration"/> instance that can /// be used to unregister the callback.</returns> /// <exception cref="System.ArgumentNullException"><paramref name="callback"/> is null.</exception> public CancellationTokenRegistration Register(Action callback) => Register( s_actionToActionObjShunt, callback ?? throw new ArgumentNullException(nameof(callback)), useSynchronizationContext: false, useExecutionContext: true); /// <summary> /// Registers a delegate that will be called when this /// <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled. /// </summary> /// <remarks> /// <para> /// If this token is already in the canceled state, the /// delegate will be run immediately and synchronously. Any exception the delegate generates will be /// propagated out of this method call. /// </para> /// <para> /// The current <see cref="System.Threading.ExecutionContext">ExecutionContext</see>, if one exists, will be captured /// along with the delegate and will be used when executing it. /// </para> /// </remarks> /// <param name="callback">The delegate to be executed when the <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled.</param> /// <param name="useSynchronizationContext">A Boolean value that indicates whether to capture /// the current <see cref="System.Threading.SynchronizationContext">SynchronizationContext</see> and use it /// when invoking the <paramref name="callback"/>.</param> /// <returns>The <see cref="System.Threading.CancellationTokenRegistration"/> instance that can /// be used to unregister the callback.</returns> /// <exception cref="System.ArgumentNullException"><paramref name="callback"/> is null.</exception> public CancellationTokenRegistration Register(Action callback, bool useSynchronizationContext) => Register( s_actionToActionObjShunt, callback ?? throw new ArgumentNullException(nameof(callback)), useSynchronizationContext, useExecutionContext: true); /// <summary> /// Registers a delegate that will be called when this /// <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled. /// </summary> /// <remarks> /// <para> /// If this token is already in the canceled state, the /// delegate will be run immediately and synchronously. Any exception the delegate generates will be /// propagated out of this method call. /// </para> /// <para> /// The current <see cref="System.Threading.ExecutionContext">ExecutionContext</see>, if one exists, will be captured /// along with the delegate and will be used when executing it. /// </para> /// </remarks> /// <param name="callback">The delegate to be executed when the <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled.</param> /// <param name="state">The state to pass to the <paramref name="callback"/> when the delegate is invoked. This may be null.</param> /// <returns>The <see cref="System.Threading.CancellationTokenRegistration"/> instance that can /// be used to unregister the callback.</returns> /// <exception cref="System.ArgumentNullException"><paramref name="callback"/> is null.</exception> public CancellationTokenRegistration Register(Action<object?> callback, object? state) => Register(callback, state, useSynchronizationContext: false, useExecutionContext: true); /// <summary> /// Registers a delegate that will be called when this /// <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled. /// </summary> /// <remarks> /// <para> /// If this token is already in the canceled state, the /// delegate will be run immediately and synchronously. Any exception the delegate generates will be /// propagated out of this method call. /// </para> /// <para> /// The current <see cref="System.Threading.ExecutionContext">ExecutionContext</see>, if one exists, /// will be captured along with the delegate and will be used when executing it. /// </para> /// </remarks> /// <param name="callback">The delegate to be executed when the <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled.</param> /// <param name="state">The state to pass to the <paramref name="callback"/> when the delegate is invoked. This may be null.</param> /// <param name="useSynchronizationContext">A Boolean value that indicates whether to capture /// the current <see cref="System.Threading.SynchronizationContext">SynchronizationContext</see> and use it /// when invoking the <paramref name="callback"/>.</param> /// <returns>The <see cref="System.Threading.CancellationTokenRegistration"/> instance that can /// be used to unregister the callback.</returns> /// <exception cref="System.ArgumentNullException"><paramref name="callback"/> is null.</exception> /// <exception cref="System.ObjectDisposedException">The associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> public CancellationTokenRegistration Register(Action<object?> callback, object? state, bool useSynchronizationContext) => Register(callback, state, useSynchronizationContext, useExecutionContext: true); /// <summary> /// Registers a delegate that will be called when this /// <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled. /// </summary> /// <remarks> /// <para> /// If this token is already in the canceled state, the delegate will be run immediately and synchronously. /// Any exception the delegate generates will be propagated out of this method call. /// </para> /// <para> /// <see cref="System.Threading.ExecutionContext">ExecutionContext</see> is not captured nor flowed /// to the callback's invocation. /// </para> /// </remarks> /// <param name="callback">The delegate to be executed when the <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled.</param> /// <param name="state">The state to pass to the <paramref name="callback"/> when the delegate is invoked. This may be null.</param> /// <returns>The <see cref="System.Threading.CancellationTokenRegistration"/> instance that can /// be used to unregister the callback.</returns> /// <exception cref="System.ArgumentNullException"><paramref name="callback"/> is null.</exception> public CancellationTokenRegistration UnsafeRegister(Action<object?> callback, object? state) => Register(callback, state, useSynchronizationContext: false, useExecutionContext: false); /// <summary> /// Registers a delegate that will be called when this /// <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled. /// </summary> /// <remarks> /// <para> /// If this token is already in the canceled state, the /// delegate will be run immediately and synchronously. Any exception the delegate generates will be /// propagated out of this method call. /// </para> /// </remarks> /// <param name="callback">The delegate to be executed when the <see cref="System.Threading.CancellationToken">CancellationToken</see> is canceled.</param> /// <param name="state">The state to pass to the <paramref name="callback"/> when the delegate is invoked. This may be null.</param> /// <param name="useSynchronizationContext">A Boolean value that indicates whether to capture /// the current <see cref="System.Threading.SynchronizationContext">SynchronizationContext</see> and use it /// when invoking the <paramref name="callback"/>.</param> /// <returns>The <see cref="System.Threading.CancellationTokenRegistration"/> instance that can /// be used to unregister the callback.</returns> /// <exception cref="System.ArgumentNullException"><paramref name="callback"/> is null.</exception> /// <exception cref="System.ObjectDisposedException">The associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> private CancellationTokenRegistration Register(Action<object?> callback, object? state, bool useSynchronizationContext, bool useExecutionContext) { if (callback == null) throw new ArgumentNullException(nameof(callback)); CancellationTokenSource? source = _source; return source != null ? source.InternalRegister(callback, state, useSynchronizationContext ? SynchronizationContext.Current : null, useExecutionContext ? ExecutionContext.Capture() : null) : default; // Nothing to do for tokens than can never reach the canceled state. Give back a dummy registration. } /// <summary> /// Determines whether the current <see cref="System.Threading.CancellationToken">CancellationToken</see> instance is equal to the /// specified token. /// </summary> /// <param name="other">The other <see cref="System.Threading.CancellationToken">CancellationToken</see> to which to compare this /// instance.</param> /// <returns>True if the instances are equal; otherwise, false. Two tokens are equal if they are associated /// with the same <see cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> or if they were both constructed /// from public CancellationToken constructors and their <see cref="IsCancellationRequested"/> values are equal.</returns> public bool Equals(CancellationToken other) => _source == other._source; /// <summary> /// Determines whether the current <see cref="System.Threading.CancellationToken">CancellationToken</see> instance is equal to the /// specified <see cref="object"/>. /// </summary> /// <param name="other">The other object to which to compare this instance.</param> /// <returns>True if <paramref name="other"/> is a <see cref="System.Threading.CancellationToken">CancellationToken</see> /// and if the two instances are equal; otherwise, false. Two tokens are equal if they are associated /// with the same <see cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> or if they were both constructed /// from public CancellationToken constructors and their <see cref="IsCancellationRequested"/> values are equal.</returns> /// <exception cref="System.ObjectDisposedException">An associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> public override bool Equals(object? other) => other is CancellationToken && Equals((CancellationToken)other); /// <summary> /// Serves as a hash function for a <see cref="System.Threading.CancellationToken">CancellationToken</see>. /// </summary> /// <returns>A hash code for the current <see cref="System.Threading.CancellationToken">CancellationToken</see> instance.</returns> public override int GetHashCode() => (_source ?? CancellationTokenSource.s_neverCanceledSource).GetHashCode(); /// <summary> /// Determines whether two <see cref="System.Threading.CancellationToken">CancellationToken</see> instances are equal. /// </summary> /// <param name="left">The first instance.</param> /// <param name="right">The second instance.</param> /// <returns>True if the instances are equal; otherwise, false.</returns> /// <exception cref="System.ObjectDisposedException">An associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> public static bool operator ==(CancellationToken left, CancellationToken right) => left.Equals(right); /// <summary> /// Determines whether two <see cref="System.Threading.CancellationToken">CancellationToken</see> instances are not equal. /// </summary> /// <param name="left">The first instance.</param> /// <param name="right">The second instance.</param> /// <returns>True if the instances are not equal; otherwise, false.</returns> /// <exception cref="System.ObjectDisposedException">An associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> public static bool operator !=(CancellationToken left, CancellationToken right) => !left.Equals(right); /// <summary> /// Throws a <see cref="System.OperationCanceledException">OperationCanceledException</see> if /// this token has had cancellation requested. /// </summary> /// <remarks> /// This method provides functionality equivalent to: /// <code> /// if (token.IsCancellationRequested) /// throw new OperationCanceledException(token); /// </code> /// </remarks> /// <exception cref="System.OperationCanceledException">The token has had cancellation requested.</exception> /// <exception cref="System.ObjectDisposedException">The associated <see /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception> public void ThrowIfCancellationRequested() { if (IsCancellationRequested) ThrowOperationCanceledException(); } // Throws an OCE; separated out to enable better inlining of ThrowIfCancellationRequested [DoesNotReturn] private void ThrowOperationCanceledException() => throw new OperationCanceledException(SR.OperationCanceled, this); } }
61.294118
182
0.666255
[ "MIT" ]
6opuc/coreclr
src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs
21,882
C#
using CommunityToolkit.Mvvm.DependencyInjection; using Inventory.Application.ViewModels.ProductsViewModels; using Microsoft.UI.Xaml.Controls; namespace Inventory.Presentation.Views.ProductsViews; public sealed partial class ProductsView : Page { public ProductsView() { ViewModel = Ioc.Default.GetRequiredService<ProductsViewModel>(); InitializeComponent(); } public ProductsViewModel ViewModel { get; } }
27.5625
72
0.768707
[ "MIT" ]
LeftTwixWand/Inventory
src/Inventory.Presentation/Views/ProductsViews/ProductsView.xaml.cs
443
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class collisionStop : MonoBehaviour { private myTouchPad touchPad; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnTriggerEnter(Collider collider) { Debug.Log("HIT WALL 1"); if (collider.gameObject.tag == "wall") { touchPad.SetMove(false); Debug.Log("HIT WALL2"); } } }
17.896552
47
0.599229
[ "MIT" ]
RealityVirtually2019/scalenaut
Aeronaut2.0/Assets/collisionStop.cs
521
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.IIS.Administration { using AspNetCore.Builder; using AspNetCore.Mvc.Internal; public static class ExceptionHandlerExtensions { public static IApplicationBuilder UseErrorHandler(this IApplicationBuilder builder) { // The framework error handler allows us to control the response headers even on unhandled server errors. var exceptionHandlerOptions = new ExceptionHandlerOptions(); exceptionHandlerOptions.ExceptionHandler = context => { return TaskCache.CompletedTask; }; // // Framework error handling // builder.UseExceptionHandler(exceptionHandlerOptions); // // Custom error handling // builder.UseMiddleware<ErrorHandler>(); return builder; } } }
31.088235
117
0.640492
[ "MIT" ]
SpillChek2/IIS.Administration
src/Microsoft.IIS.Administration/Errors/ExceptionHandlerExtensions.cs
1,059
C#
using MYOB.AccountRight.SDK.Communication; using MYOB.AccountRight.SDK.Contracts; using MYOB.AccountRight.SDK.Contracts.Version2; using MYOB.AccountRight.SDK.Contracts.Version2.Purchase; using System; using System.Collections.Generic; using System.Net; using System.Threading; using System.Threading.Tasks; namespace MYOB.AccountRight.SDK.Services.Version2.Purchase { /// <summary> /// A service that provides access to the <see cref="BillAttachmentWrapper"/> resource /// </summary> public class ItemBillAttachmentService : MutableService<BillAttachmentWrapper> { /// <summary> /// Initialise a service that can use <see cref="BillAttachmentWrapper"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public ItemBillAttachmentService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { } /// <summary> /// The route to the service (after the company file identifier) /// </summary> public override string Route { get { return "/Purchase/Bill/Item/{uid}/Attachment"; } } #region Insert Operations /// <summary> /// Adds an Attachment to a Bill /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">Guid of the Bill we're adding an Attachment to</param> /// <param name="entity">The request Object</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="errorLevel">Treat warnings as errors</param> /// <returns>The <see cref="BillAttachmentWrapper"/></returns> public BillAttachmentWrapper InsertEx(CompanyFile cf, Guid billUid, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { var queryString = GenerateQueryString(errorLevel, true); return MakeApiPostRequestSync<BillAttachmentWrapper, BillAttachmentWrapper>(BuildUri(cf, billUid, null, queryString), entity, credentials).Value; } #if ASYNC /// <summary> /// Adds an Attachment to a Bill asynchronously /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">Guid of the Bill we're adding an Attachment to</param> /// <param name="entity">The request Object</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="errorLevel">Treat warnings as errors</param> /// <returns>The <see cref="BillAttachmentWrapper"/></returns> public Task<BillAttachmentWrapper> InsertExAsync(CompanyFile cf, BillAttachmentWrapper entity, Guid billUid, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { var queryString = GenerateQueryString(errorLevel, true); return MakeApiPostRequestAsync<BillAttachmentWrapper, BillAttachmentWrapper>(BuildUri(cf, billUid, null, queryString), entity, credentials); } #endif #endregion #region Get Operations /// <summary> /// Gets an Spend Money Attachment object /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">UID of the Bill</param> /// <param name="attachmentUid">UID of the Attachment to Delete</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="eTag">The <see cref="BaseEntity.ETag" /> from a previously fetched entity</param> /// <returns>The <see cref="BillAttachmentWrapper"/></returns> public BillAttachmentWrapper Get(CompanyFile cf, Guid billUid, Guid attachmentUid, ICompanyFileCredentials credentials, string eTag = null) { return MakeApiGetRequestSync<BillAttachmentWrapper>(BuildUri(cf, billUid, attachmentUid, null), credentials, null); } # if ASYNC /// <summary> /// Gets a Bill Attachment object /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">UID of the Bill</param> /// <param name="attachmentUid">UID of the Attachment to Delete</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="eTag">The <see cref="BaseEntity.ETag" /> from a previously fetched entity</param> /// <returns>The <see cref="BillAttachmentWrapper"/></returns> public Task<BillAttachmentWrapper> GetAsync(CompanyFile cf, Guid billUid, Guid attachmentUid, ICompanyFileCredentials credentials, string eTag = null) { return MakeApiGetRequestAsync<BillAttachmentWrapper>(BuildUri(cf, billUid, attachmentUid, null), credentials, CancellationToken.None, eTag); } #endif /// <summary> /// Retrieves list of Attachments /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">UID of the Bill</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="etag">The <see cref="BaseEntity.ETag" /> from a previously fetched entity</param> /// <returns>The <see cref="BillAttachmentWrapper"/> containing the array of attachments</returns> public BillAttachmentWrapper GetRange(CompanyFile cf, Guid billUid, ICompanyFileCredentials credentials, string etag = null) { return MakeApiGetRequestSync<BillAttachmentWrapper>(BuildUri(cf, billUid, null, null), credentials, etag); } /// <summary> /// Retrieves list of Attachments but asyncronously /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">UID of the Bill</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="etag">The <see cref="BaseEntity.ETag" /> from a previously fetched entity</param> /// <returns>The <see cref="BillAttachmentWrapper"/> containing the array of attachments</returns> public Task<BillAttachmentWrapper> GetRangeAsync(CompanyFile cf, Guid billUid, ICompanyFileCredentials credentials, string etag = null) { return MakeApiGetRequestAsync<BillAttachmentWrapper>(BuildUri(cf, billUid, null, null), credentials, etag); } #endregion #region Delete Operations /// <summary> /// Delete a Bill Attachment /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">UID of the Bill</param> /// <param name="attachmentUid">UID of the Attachment to Delete</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="errorLevel">Treat warnings as errors</param> public void Delete(CompanyFile cf, Guid billUid, Guid attachmentUid, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { var queryString = GenerateQueryString(errorLevel); MakeApiDeleteRequestSync(BuildUri(cf, billUid, attachmentUid, queryString), credentials); } #if ASYNC /// <summary> /// Delete a Spend Money Attachment asynchronously /// </summary> /// <param name="cf">A company file that has been retrieved</param> /// <param name="billUid">UID of the Bill</param> /// <param name="attachmentUid">UID of the Attachment to Delete</param> /// <param name="credentials">The credentials to access the company file</param> /// <param name="errorLevel">Treat warnings as errors</param> /// <returns></returns> public Task DeleteAsync(CompanyFile cf, Guid billUid, Guid attachmentUid, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { var queryString = GenerateQueryString(errorLevel); return MakeApiDeleteRequestAsync(BuildUri(cf, billUid, attachmentUid, queryString), credentials, CancellationToken.None); } #endif #endregion // Cannot use any Base Class operations for this endpoint #region Base Class Overrides /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="errorLevel"></param> public override void Delete(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, Action<HttpStatusCode> onComplete, Action<Uri, Exception> onError, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> public override void Delete(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task DeleteAsync(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, CancellationToken cancellationToken, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task DeleteAsync(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="errorLevel"></param> public override void Update(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, Action<HttpStatusCode, string> onComplete, Action<Uri, Exception> onError, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="eTag"></param> public override void Get(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, Action<HttpStatusCode, BillAttachmentWrapper> onComplete, Action<Uri, Exception> onError, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="eTag"></param> /// <returns></returns> public override BillAttachmentWrapper Get(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uri"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="eTag"></param> public override void Get(CompanyFile cf, Uri uri, ICompanyFileCredentials credentials, Action<HttpStatusCode, BillAttachmentWrapper> onComplete, Action<Uri, Exception> onError, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uri"></param> /// <param name="credentials"></param> /// <param name="eTag"></param> /// <returns></returns> public override BillAttachmentWrapper Get(CompanyFile cf, Uri uri, ICompanyFileCredentials credentials, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="eTag"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> GetAsync(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, CancellationToken cancellationToken, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uid"></param> /// <param name="credentials"></param> /// <param name="eTag"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> GetAsync(CompanyFile cf, Guid uid, ICompanyFileCredentials credentials, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uri"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="eTag"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> GetAsync(CompanyFile cf, Uri uri, ICompanyFileCredentials credentials, CancellationToken cancellationToken, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="uri"></param> /// <param name="credentials"></param> /// <param name="eTag"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> GetAsync(CompanyFile cf, Uri uri, ICompanyFileCredentials credentials, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="queryString"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="eTag"></param> public override void GetRange(CompanyFile cf, string queryString, ICompanyFileCredentials credentials, Action<HttpStatusCode, PagedCollection<BillAttachmentWrapper>> onComplete, Action<Uri, Exception> onError, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="queryString"></param> /// <param name="credentials"></param> /// <param name="eTag"></param> /// <returns></returns> public override PagedCollection<BillAttachmentWrapper> GetRange(CompanyFile cf, string queryString, ICompanyFileCredentials credentials, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="queryString"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="eTag"></param> /// <returns></returns> public override Task<PagedCollection<BillAttachmentWrapper>> GetRangeAsync(CompanyFile cf, string queryString, ICompanyFileCredentials credentials, CancellationToken cancellationToken, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="queryString"></param> /// <param name="credentials"></param> /// <param name="eTag"></param> /// <returns></returns> public override Task<PagedCollection<BillAttachmentWrapper>> GetRangeAsync(CompanyFile cf, string queryString, ICompanyFileCredentials credentials, string eTag = null) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="errorLevel"></param> public override void Insert(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, Action<HttpStatusCode, string> onComplete, Action<Uri, Exception> onError, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override string Insert(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<string> InsertAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, CancellationToken cancellationToken, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<string> InsertAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="errorLevel"></param> public override void InsertEx(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, Action<HttpStatusCode, string, BillAttachmentWrapper> onComplete, Action<Uri, Exception> onError, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override BillAttachmentWrapper InsertEx(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> InsertExAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, CancellationToken cancellationToken, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override string Update(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// DO NOT USE THIS INHERITED MEMBER /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> InsertExAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<string> UpdateAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, CancellationToken cancellationToken, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<string> UpdateAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="onComplete"></param> /// <param name="onError"></param> /// <param name="errorLevel"></param> public override void UpdateEx(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, Action<HttpStatusCode, string, BillAttachmentWrapper> onComplete, Action<Uri, Exception> onError, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override BillAttachmentWrapper UpdateEx(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="cancellationToken"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> UpdateExAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, CancellationToken cancellationToken, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } /// <summary> /// Update not supported for this resource /// </summary> /// <param name="cf"></param> /// <param name="entity"></param> /// <param name="credentials"></param> /// <param name="errorLevel"></param> /// <returns></returns> public override Task<BillAttachmentWrapper> UpdateExAsync(CompanyFile cf, BillAttachmentWrapper entity, ICompanyFileCredentials credentials, ErrorLevel errorLevel = ErrorLevel.IgnoreWarnings) { throw new NotImplementedException(); } #endregion /// <exclude/> private string GenerateQueryString(ErrorLevel errorLevel, bool returnBody = false) { var qs = new List<string>(); if (errorLevel == ErrorLevel.WarningsAsErrors) qs.Add("warningsAsErrors=true"); if (returnBody) qs.Add("returnBody=true"); if (!Configuration.GenerateUris) qs.Add("generateUris=false"); return string.Join("&", qs.ToArray()); } /// <exclude /> // Examples: // baseUrl/Purchase/Bill/Item/billUid/Attachment/attachmentUid // baseUrl/Purchase/Bill/Item/billUid/Attachment public Uri BuildUri(CompanyFile companyFile, Guid billUid, Guid? attachmentUid = null, string queryString = null) { var qs = string.IsNullOrEmpty(queryString) ? string.Empty : queryString; var attchUid = attachmentUid.HasValue ? "/" + attachmentUid.ToString() : string.Empty; return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Item", billUid.ToString(), "/Attachment", attchUid, qs)); } } }
46.392971
269
0.617519
[ "MIT" ]
AnshumanSaurabhMYOB/AccountRight_Live_API_.Net_SDK
MYOB.API.SDK/SDK.NET45/Services/Version2/Purchase/ItemBillAttachmentService.cs
29,044
C#
// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. using System; using System.Runtime.InteropServices; namespace Epic.OnlineServices.Presence { /// <summary> /// An individual presence data record that belongs to a <see cref="Info" /> object. This object is released when its parent <see cref="Info" /> object is released. /// <seealso cref="Info" /> /// </summary> public class DataRecord { /// <summary> /// API Version for the <see cref="DataRecord" /> struct /// </summary> public int ApiVersion { get { return 1; } } /// <summary> /// The name of this data /// </summary> public string Key { get; set; } /// <summary> /// The value of this data /// </summary> public string Value { get; set; } } [StructLayout(LayoutKind.Sequential, Pack = 8)] internal struct DataRecordInternal : IDisposable { private int m_ApiVersion; [MarshalAs(UnmanagedType.LPStr)] private string m_Key; [MarshalAs(UnmanagedType.LPStr)] private string m_Value; public int ApiVersion { get { var value = Helper.GetDefault<int>(); Helper.TryMarshalGet(m_ApiVersion, out value); return value; } set { Helper.TryMarshalSet(ref m_ApiVersion, value); } } public string Key { get { var value = Helper.GetDefault<string>(); Helper.TryMarshalGet(m_Key, out value); return value; } set { Helper.TryMarshalSet(ref m_Key, value); } } public string Value { get { var value = Helper.GetDefault<string>(); Helper.TryMarshalGet(m_Value, out value); return value; } set { Helper.TryMarshalSet(ref m_Value, value); } } public void Dispose() { } } }
22.584416
165
0.66245
[ "MIT" ]
okamototomoyuki/unity_eos_chat
Assets/ExternalAsset/EOS-SDK-CSharp-13812567-1.7/SDK/Source/Generated/Presence/DataRecord.cs
1,739
C#
using EPiServer.Framework.Localization; using Foundation.Cms.Attributes; using Foundation.Features.MyOrganization.Organization; using Mediachase.Commerce.Customers; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Text.RegularExpressions; using System.Web.Mvc; namespace Foundation.Features.MyAccount.CreditCard { /// <summary> /// Use to store detail information of credit card /// </summary> public class CreditCardModel : IDataErrorInfo { protected readonly LocalizationService LocalizationService; private static readonly string[] ValidatedProperties = { "CreditCardNumber", "CreditCardSecurityCode", "ExpirationYear", "ExpirationMonth", }; public List<SelectListItem> Months { get; set; } public List<SelectListItem> Years { get; set; } public List<SelectListItem> Types { get; set; } public string CreditCardTypeFriendlyName { get; set; } public string CreditCardId { get; set; } public OrganizationModel Organization { get; set; } [Display(Name = "Organization")] [Required(ErrorMessage = "Organization is required")] public string OrganizationId { get; set; } public CustomerContact CurrentContact { get; set; } [LocalizedDisplay("/CreditCard/Labels/CreditCardName")] [LocalizedRequired("/CreditCard/Empty/CreditCardName")] public string CreditCardName { get; set; } [LocalizedDisplay("/CreditCard/Labels/CreditCardNumber")] [LocalizedRequired("/CreditCard/Empty/CreditCardNumber")] public string CreditCardNumber { get; set; } public string LastFourDigit => CreditCardNumber.Substring(CreditCardNumber.Length - 4); [LocalizedDisplay("/CreditCard/Labels/CreditCardSecurityCode")] [LocalizedRequired("/CreditCard/Empty/CreditCardSecurityCode")] public string CreditCardSecurityCode { get; set; } [LocalizedDisplay("/CreditCard/Labels/ExpirationMonth")] [LocalizedRequired("/CreditCard/Empty/ExpirationMonth")] public int? ExpirationMonth { get; set; } [LocalizedDisplay("/CreditCard/Labels/ExpirationYear")] [LocalizedRequired("/CreditCard/Empty/ExpirationYear")] public int? ExpirationYear { get; set; } public Mediachase.Commerce.Customers.CreditCard.eCreditCardType CreditCardType { get; set; } string IDataErrorInfo.Error => null; string IDataErrorInfo.this[string columnName] => GetValidationError(columnName); public CreditCardModel() { LocalizationService = LocalizationService.Current; InitializeValues(); } public CreditCardModel(LocalizationService localizationService) { LocalizationService = localizationService; InitializeValues(); } public bool ValidateData() => IsValid; private bool IsValid { get { foreach (var property in ValidatedProperties) { if (GetValidationError(property) != null) { return false; } } return true; } } private string GetValidationError(string property) { string error = null; switch (property) { case "CreditCardNumber": error = ValidateCreditCardNumber(); break; case "CreditCardSecurityCode": error = ValidateCreditCardSecurityCode(); break; case "ExpirationYear": error = ValidateExpirationYear(); break; case "ExpirationMonth": error = ValidateExpirationMonth(); break; default: break; } return error; } private string ValidateExpirationMonth() { if (ExpirationYear == DateTime.Now.Year && ExpirationMonth < DateTime.Now.Month) { return LocalizationService.GetString("/CreditCard/ValidationErrors/ExpirationMonth", "Expiration month can't be older than the current month"); } return null; } private string ValidateExpirationYear() { if (ExpirationYear < DateTime.Now.Year) { return LocalizationService.GetString("/CreditCard/ValidationErrors/ExpirationYear", "Expiration year can't be older than the current year"); } return null; } private string ValidateCreditCardSecurityCode() { if (string.IsNullOrEmpty(CreditCardSecurityCode)) { return LocalizationService.GetString("/CreditCard/Empty/CreditCardSecurityCode", "Security code is required"); } if (!Regex.IsMatch(CreditCardSecurityCode, "^[0-9]{3}$")) { return LocalizationService.GetString("/CreditCard/ValidationErrors/CreditCardSecurityCode", "The CSV code should be 3 digits"); } return null; } private string ValidateCreditCardNumber() { if (string.IsNullOrEmpty(CreditCardNumber)) { return LocalizationService.GetString("/CreditCard/Empty/CreditCardNumber", "Credit card number is required"); } return null; } private void InitializeValues() { Months = new List<SelectListItem>(); Years = new List<SelectListItem>(); Types = new List<SelectListItem>(); for (var i = 1; i < 13; i++) { Months.Add(new SelectListItem { Text = i.ToString(CultureInfo.InvariantCulture), Value = i.ToString(CultureInfo.InvariantCulture) }); } for (var i = 0; i < 7; i++) { var year = (DateTime.Now.Year + i).ToString(CultureInfo.InvariantCulture); Years.Add(new SelectListItem { Text = year, Value = year }); } var listType = Enum.GetValues(typeof(Mediachase.Commerce.Customers.CreditCard.eCreditCardType)); foreach (Mediachase.Commerce.Customers.CreditCard.eCreditCardType ct in listType) { Types.Add(new SelectListItem { Text = ct.ToString(), Value = ((int)ct).ToString() }); } } } }
32.493023
159
0.575007
[ "Apache-2.0" ]
CalinL/Foundation
src/Foundation/Features/MyAccount/CreditCard/CreditCardModel.cs
6,986
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using Statiq.Common; namespace Statiq.Tables { /// <summary> /// Converts CSV content to HTML tables. /// </summary> /// <remarks> /// This module reads the content of each input document as CSV and outputs an HTML <c>&lt;table&gt;</c> tag /// containing the CSV content. No <c>&lt;html&gt;</c> or <c>&lt;body&gt;</c> tags are output. The input CSV /// content must use <c>,</c> as separator and enclose every value in <c>"</c>. /// </remarks> /// <category name="Content" /> public class RenderCsvAsHtml : ParallelSyncModule { private bool _firstLineHeader = false; /// <summary> /// Treats the first line of input content as a header and generates <c>&lt;th&gt;</c> tags in the output table. /// </summary> /// <returns>The current module instance.</returns> public RenderCsvAsHtml WithHeader() { _firstLineHeader = true; return this; } protected override IEnumerable<IDocument> ExecuteInput(IDocument input, IExecutionContext context) { IEnumerable<IEnumerable<string>> records; using (Stream stream = input.GetContentStream()) { records = CsvHelper.GetTable(stream); } StringBuilder builder = new StringBuilder(); bool firstLine = true; builder.AppendLine("<table>"); foreach (IEnumerable<string> row in records) { builder.AppendLine("<tr>"); foreach (string cell in row) { if (_firstLineHeader && firstLine) { builder.AppendLine($"<th>{cell}</th>"); } else { builder.AppendLine($"<td>{cell}</td>"); } } builder.AppendLine("</tr>"); firstLine = false; } builder.Append("</table>"); return input.Clone(context.GetContentProvider(builder.ToString(), MediaTypes.Html)).Yield(); } } }
35.184615
120
0.536948
[ "MIT" ]
flcdrg/Statiq.Framework
src/extensions/Statiq.Tables/RenderCsvAsHtml.cs
2,289
C#
/* * convertapi * * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.ComponentModel.DataAnnotations; using SwaggerDateConverter = Cloudmersive.APIClient.NET.DocumentAndDataConvert.Client.SwaggerDateConverter; namespace Cloudmersive.APIClient.NET.DocumentAndDataConvert.Model { /// <summary> /// Top-level Comment in a Word Document /// </summary> [DataContract] public partial class DocxTopLevelComment : IEquatable<DocxTopLevelComment>, IValidatableObject { /// <summary> /// Initializes a new instance of the <see cref="DocxTopLevelComment" /> class. /// </summary> /// <param name="path">Path to the comment in the document.</param> /// <param name="author">Author name of the comment.</param> /// <param name="authorInitials">Initials of the author of the comment.</param> /// <param name="commentText">Text content of the comment.</param> /// <param name="commentDate">Date timestamp of the comment.</param> /// <param name="replyChildComments">Child comments, that are replies to this one.</param> /// <param name="done">True if this comment is marked as Done in Word, otherwise it is false.</param> public DocxTopLevelComment(string path = default(string), string author = default(string), string authorInitials = default(string), string commentText = default(string), DateTime? commentDate = default(DateTime?), List<DocxComment> replyChildComments = default(List<DocxComment>), bool? done = default(bool?)) { this.Path = path; this.Author = author; this.AuthorInitials = authorInitials; this.CommentText = commentText; this.CommentDate = commentDate; this.ReplyChildComments = replyChildComments; this.Done = done; } /// <summary> /// Path to the comment in the document /// </summary> /// <value>Path to the comment in the document</value> [DataMember(Name="Path", EmitDefaultValue=false)] public string Path { get; set; } /// <summary> /// Author name of the comment /// </summary> /// <value>Author name of the comment</value> [DataMember(Name="Author", EmitDefaultValue=false)] public string Author { get; set; } /// <summary> /// Initials of the author of the comment /// </summary> /// <value>Initials of the author of the comment</value> [DataMember(Name="AuthorInitials", EmitDefaultValue=false)] public string AuthorInitials { get; set; } /// <summary> /// Text content of the comment /// </summary> /// <value>Text content of the comment</value> [DataMember(Name="CommentText", EmitDefaultValue=false)] public string CommentText { get; set; } /// <summary> /// Date timestamp of the comment /// </summary> /// <value>Date timestamp of the comment</value> [DataMember(Name="CommentDate", EmitDefaultValue=false)] public DateTime? CommentDate { get; set; } /// <summary> /// Child comments, that are replies to this one /// </summary> /// <value>Child comments, that are replies to this one</value> [DataMember(Name="ReplyChildComments", EmitDefaultValue=false)] public List<DocxComment> ReplyChildComments { get; set; } /// <summary> /// True if this comment is marked as Done in Word, otherwise it is false /// </summary> /// <value>True if this comment is marked as Done in Word, otherwise it is false</value> [DataMember(Name="Done", EmitDefaultValue=false)] public bool? Done { get; set; } /// <summary> /// Returns the string presentation of the object /// </summary> /// <returns>String presentation of the object</returns> public override string ToString() { var sb = new StringBuilder(); sb.Append("class DocxTopLevelComment {\n"); sb.Append(" Path: ").Append(Path).Append("\n"); sb.Append(" Author: ").Append(Author).Append("\n"); sb.Append(" AuthorInitials: ").Append(AuthorInitials).Append("\n"); sb.Append(" CommentText: ").Append(CommentText).Append("\n"); sb.Append(" CommentDate: ").Append(CommentDate).Append("\n"); sb.Append(" ReplyChildComments: ").Append(ReplyChildComments).Append("\n"); sb.Append(" Done: ").Append(Done).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// <summary> /// Returns the JSON string presentation of the object /// </summary> /// <returns>JSON string presentation of the object</returns> public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// <summary> /// Returns true if objects are equal /// </summary> /// <param name="input">Object to be compared</param> /// <returns>Boolean</returns> public override bool Equals(object input) { return this.Equals(input as DocxTopLevelComment); } /// <summary> /// Returns true if DocxTopLevelComment instances are equal /// </summary> /// <param name="input">Instance of DocxTopLevelComment to be compared</param> /// <returns>Boolean</returns> public bool Equals(DocxTopLevelComment input) { if (input == null) return false; return ( this.Path == input.Path || (this.Path != null && this.Path.Equals(input.Path)) ) && ( this.Author == input.Author || (this.Author != null && this.Author.Equals(input.Author)) ) && ( this.AuthorInitials == input.AuthorInitials || (this.AuthorInitials != null && this.AuthorInitials.Equals(input.AuthorInitials)) ) && ( this.CommentText == input.CommentText || (this.CommentText != null && this.CommentText.Equals(input.CommentText)) ) && ( this.CommentDate == input.CommentDate || (this.CommentDate != null && this.CommentDate.Equals(input.CommentDate)) ) && ( this.ReplyChildComments == input.ReplyChildComments || this.ReplyChildComments != null && this.ReplyChildComments.SequenceEqual(input.ReplyChildComments) ) && ( this.Done == input.Done || (this.Done != null && this.Done.Equals(input.Done)) ); } /// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Path != null) hashCode = hashCode * 59 + this.Path.GetHashCode(); if (this.Author != null) hashCode = hashCode * 59 + this.Author.GetHashCode(); if (this.AuthorInitials != null) hashCode = hashCode * 59 + this.AuthorInitials.GetHashCode(); if (this.CommentText != null) hashCode = hashCode * 59 + this.CommentText.GetHashCode(); if (this.CommentDate != null) hashCode = hashCode * 59 + this.CommentDate.GetHashCode(); if (this.ReplyChildComments != null) hashCode = hashCode * 59 + this.ReplyChildComments.GetHashCode(); if (this.Done != null) hashCode = hashCode * 59 + this.Done.GetHashCode(); return hashCode; } } /// <summary> /// To validate all properties of the instance /// </summary> /// <param name="validationContext">Validation context</param> /// <returns>Validation Result</returns> IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }
40.394737
317
0.562541
[ "Apache-2.0" ]
Cloudmersive/Cloudmersive.APIClient.NET.DocumentAndDataConvert
client/src/Cloudmersive.APIClient.NET.DocumentAndDataConvert/Model/DocxTopLevelComment.cs
9,210
C#
using System; using System.Collections.Generic; using System.Text; using Xunit; using UnitTestExample; using System.IO; namespace UnitTestDemo { public class FileExampleTest { [Fact] public void LoadTextFile_ValidFileNameLenght_ReturnTrue() { //Ei staattinen joten tehdään olio FileExample fileExample = new FileExample(); ////Actual var actual = fileExample.LoadTextFile("Tämä on validi tiedoston nimi"); //Assert Assert.True(actual.Length > 0); } [Fact] public void LoadTextFile_InvalidFileNameLenght_ReturnException() { //Ei staattinen joten tehdään olio FileExample fileExample = new FileExample(); //Actual, ei tarvittu lambda lauseen vuoksi(Assert) //var actual = fileExample.LoadTextFile("Tämä on validi tiedoston nimi"); //Assert vaihtoehtoinen //Assert.Throws<FileNotFoundException>(() => fileExample.LoadTextFile("")); Assert.Throws<ArgumentException>("file", () => fileExample.LoadTextFile("")); } } }
31.351351
89
0.617241
[ "MIT" ]
MikkoTKaipainen/UnitTest
UnitTestExample/UnitTestDemo/FileExampleTest.cs
1,170
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BenchProcessor { public class ItemIndexList: List<int> { public ItemIndexList() { Code = ""; } public new void Add(int index) { base.Add(index); if (Code.Equals("")) { Code += index; } else { Code += "-" + index; } } public String Code { get; internal set; } } }
17.878788
49
0.461017
[ "Apache-2.0" ]
abutun/bench-processor
BenchProcessor/ItemIndexList.cs
592
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using ZarzadzanieNotatkami.Models; namespace ZarzadzanieNotatkami.Migrations { [DbContext(typeof(NotesDBContext))] [Migration("20200207120820_CreateDB")] partial class CreateDB { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.2.6-servicing-10079") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("ZarzadzanieNotatkami.Models.Note", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property<string>("Text"); b.Property<string>("Title"); b.HasKey("Id"); b.ToTable("Notes"); }); #pragma warning restore 612, 618 } } }
34.731707
125
0.647472
[ "MIT" ]
traktor90/ZarzadzanieNotatkami
ZarzadzanieNotatkami/Migrations/20200207120820_CreateDB.Designer.cs
1,426
C#
/********************************************************************** * Copyright © 2009, 2010, 2011, 2012 OPC Foundation, Inc. * * The source code and all binaries built with the OPC .NET 3.0 source * code are subject to the terms of the Express Interface Public * License (Xi-PL). See http://www.opcfoundation.org/License/Xi-PL/ * * The source code may be distributed from an OPC member company in * its original or modified form to its customers and to any others who * have software that needs to interoperate with the OPC member's OPC * .NET 3.0 products. No other redistribution is permitted. * * You must not remove this notice, or any other, from this software. * *********************************************************************/ using System.Runtime.Serialization; using System.Collections.Generic; namespace Xi.Contracts.Data { /// <summary> /// <para>This class defines the configuration of a category. /// Categories are defined as groupings of alarms and events /// for reporting purposes.</para> /// <para>The concepts for categories accessible through /// this interface are defined in EEMUA Publication 191 "Alarm /// Systems: A Guide to Design, Management and Procurement". /// See http://www.eemua.org</para> /// <para>EEMUA Publication 191 recommends that "Grouping /// of alarms into categories and providing facilities to select /// alarm lists filtered on these categories is a highly desirable /// feature."</para> /// <para>A category may be composed of either alarms or events, /// but not both. The EventTypes and AlarmDescriptions members of /// this class are used to list the the alarms or events that /// belong to the category. One of these must be present, and the /// other must be null.</para> /// <para>Occurrences of the alarms or event type that belong to /// this category are reported using event messages that /// contain the fields listed in the EventMessageFields member /// of this class.</para> /// <para>Note that alarms or events that are assigned to a /// given category may change during the life of a system.</para> /// </summary> [DataContract(Namespace = "urn:xi/data")] public class CategoryConfiguration { /// <summary> /// The identifier for the category. /// </summary> [DataMember] public uint CategoryId; /// <summary> /// The name of the category. /// </summary> [DataMember] public string? Name; /// <summary> /// The text description of the category. /// </summary> [DataMember] public string? Description; /// <summary> /// The event type associated with this category. /// </summary> [DataMember] public EventType EventType; /// <summary> /// Event message fields supported by the server that the client /// can add to event messages sent for the category. A flag is /// included for each field that indicates whether or not it /// can be used for filtering. /// </summary> [DataMember] public List<ParameterDefinition?>? EventMessageFields; /// <summary> /// The list of Alarms that have been assigned to this Category. /// If this member is null the category is configured to report /// events. /// </summary> [DataMember] public List<AlarmDescription?>? AlarmDescriptions; } }
39.238095
71
0.67415
[ "MIT" ]
ru-petrovi4/Ssz.Utils
Ssz.Xi.Client/Xi.Contracts/Data/CategoryConfiguration.cs
3,297
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.ModelConfiguration.Edm { using System.Collections.Generic; using System.Data.Entity.Core.Metadata.Edm; using System.Data.Entity.Utilities; using System.Diagnostics.CodeAnalysis; internal static class ComplexTypeExtensions { [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Used by test code.")] public static EdmProperty AddComplexProperty( this ComplexType complexType, string name, ComplexType targetComplexType) { DebugCheck.NotNull(complexType); DebugCheck.NotNull(complexType.Properties); DebugCheck.NotEmpty(name); DebugCheck.NotNull(targetComplexType); var property = EdmProperty.Complex(name, targetComplexType); complexType.AddMember(property); return property; } public static object GetConfiguration(this ComplexType complexType) { DebugCheck.NotNull(complexType); return complexType.Annotations.GetConfiguration(); } public static Type GetClrType(this ComplexType complexType) { DebugCheck.NotNull(complexType); return complexType.Annotations.GetClrType(); } internal static IEnumerable<ComplexType> ToHierarchy(this ComplexType edmType) { return EdmType.SafeTraverseHierarchy(edmType); } } }
34.081633
133
0.653293
[ "Apache-2.0" ]
TerraVenil/entityframework
src/EntityFramework/ModelConfiguration/Edm/ComplexTypeExtensions.cs
1,670
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace MakeAnObjectSerializeItself { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } }
23.826087
66
0.59854
[ "MIT" ]
JianGuoWan/third-edition
VS2012/Chapter_13/MakeAnObjectSerializeItself/Program.cs
550
C#
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(BulgarianCreators.Web.App_Start.NinjectWebCommon), "Start")] [assembly: WebActivatorEx.ApplicationShutdownMethodAttribute(typeof(BulgarianCreators.Web.App_Start.NinjectWebCommon), "Stop")] namespace BulgarianCreators.Web.App_Start { using System; using System.Web; using Microsoft.Web.Infrastructure.DynamicModuleHelper; using Ninject; using Ninject.Web.Common; using Ninject.Extensions.Factory; using Ninject.Extensions.Conventions; using Data; using BulgarianCreators.Models.Factories; using Mapping; using Data.Services.Contracts; using Data.Services; using NinjectModules; public static class NinjectWebCommon { private static readonly Bootstrapper bootstrapper = new Bootstrapper(); /// <summary> /// Starts the application /// </summary> public static void Start() { DynamicModuleUtility.RegisterModule(typeof(OnePerRequestHttpModule)); DynamicModuleUtility.RegisterModule(typeof(NinjectHttpModule)); bootstrapper.Initialize(CreateKernel); } /// <summary> /// Stops the application. /// </summary> public static void Stop() { bootstrapper.ShutDown(); } /// <summary> /// Creates the kernel that will manage your application. /// </summary> /// <returns>The created kernel.</returns> private static IKernel CreateKernel() { var kernel = new StandardKernel(); try { kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => new Bootstrapper().Kernel); kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>(); RegisterServices(kernel); return kernel; } catch { kernel.Dispose(); throw; } } /// <summary> /// Load your modules or register your services here! /// </summary> /// <param name="kernel">The kernel.</param> private static void RegisterServices(IKernel kernel) { kernel.Bind(typeof(ICreatorsDbContext), typeof(ICreatorsDbSaveChangesContext)) .To<CreatorsDbContext>().InRequestScope(); //kernel.Bind(typeof(ICreatorsDbSaveChangesContext)) // .To<CreatorsDbContext>().InRequestScope(); kernel.Load(new AutoMapperModule()); kernel.Bind<IPostService>().To<PostService>(); kernel.Bind<ICategoryService>().To<CategoryService>(); kernel.Bind<IUserService>().To<UserService>(); kernel.Bind(r => r .FromAssemblyContaining<IPostFactory>() .SelectAllClasses() .BindAllInterfaces()); kernel.Bind( r => r.FromAssemblyContaining<IPostFactory>() .SelectAllInterfaces() .EndingWith("Factory") .BindToFactory()); } } }
32.298969
127
0.595276
[ "MIT" ]
bbojkov/ContentCreators
BulgarianCreators.Web/App_Start/NinjectWebCommon.cs
3,133
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 managedblockchain-2018-09-24.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.ManagedBlockchain.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ManagedBlockchain.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LogConfigurations Object /// </summary> public class LogConfigurationsUnmarshaller : IUnmarshaller<LogConfigurations, XmlUnmarshallerContext>, IUnmarshaller<LogConfigurations, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> LogConfigurations IUnmarshaller<LogConfigurations, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LogConfigurations Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; LogConfigurations unmarshalledObject = new LogConfigurations(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Cloudwatch", targetDepth)) { var unmarshaller = LogConfigurationUnmarshaller.Instance; unmarshalledObject.Cloudwatch = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static LogConfigurationsUnmarshaller _instance = new LogConfigurationsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LogConfigurationsUnmarshaller Instance { get { return _instance; } } } }
34.228261
164
0.64846
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ManagedBlockchain/Generated/Model/Internal/MarshallTransformations/LogConfigurationsUnmarshaller.cs
3,149
C#
using System; using System.IO; using System.Linq; using Pure.Core; using Pure.Cryptography.ECC; using Pure.IO; using Pure.SmartContract; using Pure.VM; namespace Pure.Wallets { class AnonymousVerificationContract : Contract, IEquatable<AnonymousVerificationContract>, ISerializable { public UInt160 PublicKeyHash; private string _address; public string Address { get { if (_address == null) { _address = Wallet.ToAddress(ScriptHash); } return _address; } } public int Size => PublicKeyHash.Size + ParameterList.GetVarSize() + Script.GetVarSize(); public static AnonymousVerificationContract Create(UInt160 publicKeyHash, ContractParameterType[] parameterList, byte[] redeemScript) { return new AnonymousVerificationContract { Script = redeemScript, ParameterList = parameterList, PublicKeyHash = publicKeyHash }; } public static AnonymousVerificationContract CreateMultiSigContract(UInt160 publicKeyHash, int m, params ECPoint[] publicKeys) { return new AnonymousVerificationContract { Script = CreateMultiSigRedeemScript(m, publicKeys), ParameterList = Enumerable.Repeat(ContractParameterType.Signature, m).ToArray(), PublicKeyHash = publicKeyHash }; } public static AnonymousVerificationContract CreateSignatureContract(ECPoint publicKey) { return new AnonymousVerificationContract { Script = CreateSignatureRedeemScript(publicKey), ParameterList = new[] { ContractParameterType.Signature }, PublicKeyHash = publicKey.EncodePoint(true).ToScriptHash(), }; } public void Serialize(BinaryWriter writer) { writer.Write(PublicKeyHash); writer.WriteVarBytes(ParameterList.Cast<byte>().ToArray()); writer.WriteVarBytes(Script); } public void Deserialize(BinaryReader reader) { PublicKeyHash = reader.ReadSerializable<UInt160>(); ParameterList = reader.ReadVarBytes().Select(p => (ContractParameterType)p).ToArray(); Script = reader.ReadVarBytes(); } public bool Equals(AnonymousVerificationContract other) { if (ReferenceEquals(this, other)) return true; if (ReferenceEquals(null, other)) return false; return ScriptHash.Equals(other.ScriptHash); } public override bool Equals(object obj) { return Equals(obj as AnonymousVerificationContract); } public override int GetHashCode() { return ScriptHash.GetHashCode(); } } }
31.197917
141
0.599666
[ "MIT" ]
AlexRos101/QURAS_CORE
PureCore/Wallets/AnonymousVerificationContract.cs
2,997
C#