content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using TupacAmaru.Yacep.Exceptions; using TupacAmaru.Yacep.Utils; namespace TupacAmaru.Yacep.Symbols { public sealed class LiteralValue { public LiteralValue(string literal, object value) { if (literal.ContainsSpace()) throw new CannotContainsSpacesException("Literal"); if (value is Delegate) throw new UnsupportedLiteralValueException(); Literal = literal; Value = value; } public string Literal { get; } public object Value { get; } } }
26.681818
67
0.608177
[ "MIT" ]
tupac-amaru/YACEP
src/TupacAmaru.Yacep/Symbols/LiteralValue.cs
589
C#
using System.Runtime.CompilerServices; using System; using System.IO; using System.Text; [assembly: Xamarin.Forms.Dependency (typeof (SquadBuilder.SaveAndLoad))] namespace SquadBuilder { public class SaveAndLoad : ISaveAndLoad { public bool FileExists (string filename) { var documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); var filePath = Path.Combine (documentsPath, filename); return File.Exists (filePath); } public void SaveText (string filename, string text) { var documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); var filePath = Path.Combine (documentsPath, filename); File.WriteAllText (filePath, text); } public string LoadText (string filename) { var documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); var filePath = Path.Combine (documentsPath, filename); string text = File.ReadAllText (filePath); return ReplaceSymbols (text); } public void DeleteFile (string filename) { var documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); var filePath = Path.Combine (documentsPath, filename); if (File.Exists (filePath)) File.Delete (filePath); } public string GetPath (string filename) { var documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); return Path.Combine (documentsPath, filename); } public string ReplaceSymbols (string text) { StringBuilder sb = new StringBuilder (text); sb.Replace ("{hit}", "<font face='xwing-miniatures'>d</font>"); sb.Replace ("{crit}", "<font face='xwing-miniatures'>c</font>"); sb.Replace ("\n\n", "<br><br>"); sb.Replace ("{focus}", "<font face='xwing-miniatures'>f</font>"); sb.Replace ("{evade}", "<font face='xwing-miniatures'>e</font>"); sb.Replace ("{astromech droid}", "<font face='xwing-miniatures'>A</font>"); sb.Replace ("{bomb}", "<font face='xwing-miniatures'>B</font>"); sb.Replace ("{cannon}", "<font face='xwing-miniatures'>C</font>"); sb.Replace ("{cargo}", "<font face='xwing-miniatures'>G</font>"); sb.Replace ("{crew}", "<font face='xwing-miniatures'>W</font>"); sb.Replace ("{elite pilot talent}", "<font face='xwing-miniatures'>E</font>"); sb.Replace ("{hardpoint}", "<font face='xwing-miniatures'>H</font>"); sb.Replace ("{illicit}", "<font face='xwing-miniatures'>I</font>"); sb.Replace ("{missile}", "<font face='xwing-miniatures'>M</font>"); sb.Replace ("{modification}", "<font face='xwing-miniatures'>m</font>"); sb.Replace ("{salvaged astromech}", "<font face='xwing-miniatures'>V</font>"); sb.Replace ("{system}", "<font face='xwing-miniatures'>S</font>"); sb.Replace ("{team}", "<font face='xwing-miniatures'>T</font>"); sb.Replace ("{title}", "<font face='xwing-miniatures'>t</font>"); sb.Replace ("{torpedo}", "<font face='xwing-miniatures'>P</font>"); sb.Replace ("{turret}", "<font face='xwing-miniatures'>U</font>"); sb.Replace ("{tech}", "<font face='xwing-miniatures'>X</font>"); sb.Replace ("{turn left}", "<font face='xwing-miniatures'>4</font>"); sb.Replace ("{turn right}", "<font face='xwing-miniatures'>6</font>"); sb.Replace ("{bank left}", "<font face='xwing-miniatures'>7</font>"); sb.Replace ("{bank right}", "<font face='xwing-miniatures'>9</font>"); sb.Replace ("{straight}", "<font face='xwing-miniatures'>8</font>"); sb.Replace ("{sloop left}", "<font face='xwing-miniatures'>1</font>"); sb.Replace ("{sloop right}", "<font face='xwing-miniatures'>3</font>"); sb.Replace ("{troll left}", "<font face='xwing-miniatures'>:</font>"); sb.Replace ("{troll right}", "<font face='xwing-miniatures'>&#59;</font>"); sb.Replace ("{kturn}", "<font face='xwing-miniatures'>2</font>"); sb.Replace ("{boost}", "<font face='xwing-miniatures'>b</font>"); sb.Replace ("{barrel roll}", "<font face='xwing-miniatures'>r</font>"); sb.Replace ("{target lock}", "<font face='xwing-miniatures'>l</font>"); sb.Replace ("{cloak}", "<font face='xwing-miniatures'>k</font>"); sb.Replace ("{slam}", "<font face='xwing-miniatures'>s</font>"); sb.Replace ("{jam}", "<font face='xwing-miniatures'>j</font>"); sb.Replace ("{stop}", "<font face='xwing-miniatures'>5</font>"); sb.Replace ("Action:", "<b>Action:</b>"); sb.Replace ("Attack:", "<b>Attack:</b>"); sb.Replace ("Attack (Target Lock):", "<b>Attack (Target Lock):</b>"); sb.Replace ("Attack (Focus):", "<b>Attack (Focus):</b>"); sb.Replace ("detonates", "<b>detonates</b>"); sb.Replace ("Detonation:", "<b>Detonation:</b>"); return sb.ToString (); } } }
53.8
97
0.633643
[ "MIT" ]
timrisi/AuroraSquadBuilder
iOS/SaveAndLoad.cs
5,382
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; using System.Device.Gpio; using System.Device.Spi; using Iot.Device.Mcp25xxx.Register; namespace Iot.Device.Mcp25xxx { /// <summary> /// A general purpose driver for the Microchip MCP25 CAN controller device family. /// </summary> public abstract class Mcp25xxx : IDisposable { private readonly int _reset; private readonly int _tx0rts; private readonly int _tx1rts; private readonly int _tx2rts; private readonly int _interrupt; private readonly int _rx0bf; private readonly int _rx1bf; private readonly int _clkout; internal GpioController _gpioController; private bool _shouldDispose; private SpiDevice _spiDevice; /// <summary> /// A general purpose driver for the Microchip MCP25 CAN controller device family. /// </summary> /// <param name="spiDevice">The SPI device used for communication.</param> /// <param name="reset">The output pin number that is connected to Reset.</param> /// <param name="tx0rts">The output pin number that is connected to Tx0RTS.</param> /// <param name="tx1rts">The output pin number that is connected to Tx1RTS.</param> /// <param name="tx2rts">The output pin number that is connected to Tx2RTS.</param> /// <param name="interrupt">The input pin number that is connected to INT.</param> /// <param name="rx0bf">The input pin number that is connected to Rx0BF.</param> /// <param name="rx1bf">The input pin number that is connected to Rx1BF.</param> /// <param name="clkout">The input pin number that is connected to CLKOUT.</param> /// <param name="gpioController"> /// The GPIO controller for defined external pins. If not specified, the default controller will be used. /// </param> /// <param name="shouldDispose">True to dispose the Gpio Controller</param> public Mcp25xxx( SpiDevice spiDevice, int reset = -1, int tx0rts = -1, int tx1rts = -1, int tx2rts = -1, int interrupt = -1, int rx0bf = -1, int rx1bf = -1, int clkout = -1, GpioController gpioController = null, bool shouldDispose = true) { _spiDevice = spiDevice; _shouldDispose = gpioController == null ? true : shouldDispose; _reset = reset; _tx0rts = tx0rts; _tx1rts = tx1rts; _tx2rts = tx2rts; _interrupt = interrupt; _rx0bf = rx0bf; _rx1bf = rx1bf; _clkout = clkout; // Only need master controller if there are external pins provided. if (_reset != -1 || _tx0rts != -1 || _tx1rts != -1 || _tx2rts != -1 || _interrupt != -1 || _rx0bf != -1 || _rx1bf != -1 || _clkout != -1) { _gpioController = gpioController ?? new GpioController(); if (_reset != -1) { _gpioController.OpenPin(_reset, PinMode.Output); ResetPin = PinValue.Low; } if (_tx0rts != -1) { _gpioController.OpenPin(_tx0rts, PinMode.Output); } if (_tx1rts != -1) { _gpioController.OpenPin(_tx1rts, PinMode.Output); } if (_tx2rts != -1) { _gpioController.OpenPin(_tx2rts, PinMode.Output); } if (_interrupt != -1) { _gpioController.OpenPin(_interrupt, PinMode.Input); } if (_rx0bf != -1) { _gpioController.OpenPin(_rx0bf, PinMode.Input); } if (_rx1bf != -1) { _gpioController.OpenPin(_rx1bf, PinMode.Input); } if (_clkout != -1) { _gpioController.OpenPin(_clkout, PinMode.Input); } } } /// <summary> /// Writes a value to Tx0RTS pin. /// </summary> public PinValue Tx0RtsPin { set { _gpioController.Write(_tx0rts, value); } } /// <summary> /// Writes a value to Tx1RTS pin. /// </summary> public PinValue Tx1RtsPin { set { _gpioController.Write(_tx1rts, value); } } /// <summary> /// Writes a value to Tx2RTS pin. /// </summary> public PinValue Tx2RtsPin { set { _gpioController.Write(_tx2rts, value); } } /// <summary> /// Writes a value to Reset pin. /// </summary> public PinValue ResetPin { set { _gpioController.Write(_reset, value); } } /// <summary> /// Reads the current value of Interrupt pin. /// </summary> public PinValue InterruptPin { get { return _gpioController.Read(_interrupt); } } /// <summary> /// Reads the current value of Rx0BF pin. /// </summary> public PinValue Rx0BfPin { get { return _gpioController.Read(_rx0bf); } } /// <summary> /// Reads the current value of Rx1BF pin. /// </summary> public PinValue Rx1BfPin { get { return _gpioController.Read(_rx1bf); } } /// <summary> /// Resets the internal registers to the default state and sets Configuration mode. /// </summary> public void Reset() { _spiDevice.WriteByte((byte)InstructionFormat.Reset); } /// <summary> /// Reads data from the register beginning at the selected address. /// </summary> /// <param name="address">The address to read.</param> /// <returns>The value of address read.</returns> public byte Read(Address address) { const byte dontCare = 0x00; ReadOnlySpan<byte> writeBuffer = stackalloc byte[] { (byte)InstructionFormat.Read, (byte)address, dontCare }; Span<byte> readBuffer = stackalloc byte[3]; _spiDevice.TransferFullDuplex(writeBuffer, readBuffer); return readBuffer[2]; } /// <summary> /// When reading a receive buffer, reduces the overhead of a normal READ /// command by placing the Address Pointer at one of four locations for the receive buffer. /// </summary> /// <param name="addressPointer">The Address Pointer to one of four locations for the receive buffer.</param> /// <param name="byteCount">Number of bytes to read. This must be one or more to read.</param> /// <returns>The value of address read.</returns> public byte[] ReadRxBuffer(RxBufferAddressPointer addressPointer, int byteCount = 1) { if (byteCount < 1) { throw new ArgumentException($"Invalid number of bytes {byteCount}.", nameof(byteCount)); } const int StackThreshold = 31; // Usually won't read more than this at a time. Span<byte> writeBuffer = byteCount < StackThreshold ? stackalloc byte[byteCount + 1] : new byte[byteCount + 1]; Span<byte> readBuffer = byteCount < StackThreshold ? stackalloc byte[byteCount + 1] : new byte[byteCount + 1]; // This instruction has a base value of 0x90. // The 2nd and 3rd bits are used for the pointer address for reading. writeBuffer[0] = (byte)((byte)InstructionFormat.ReadRxBuffer | ((byte)addressPointer << 1)); _spiDevice.TransferFullDuplex(writeBuffer, readBuffer); return readBuffer.Slice(1).ToArray(); } /// <summary> /// Writes one byte to the register beginning at the selected address. /// </summary> /// <param name="address">The address to write the data.</param> /// <param name="value">The value to be written.</param> public void WriteByte(Address address, byte value) { ReadOnlySpan<byte> buffer = stackalloc byte[1] { value }; Write(address, buffer); } /// <summary> /// Writes a byte to the selected register address. /// </summary> /// <param name="register">The register to write the data.</param> public void WriteByte(IRegister register) { Write(register.Address, new byte[] { register.ToByte() }); } /// <summary> /// Writes data to the register beginning at the selected address. /// </summary> /// <param name="address">The starting address to write data.</param> /// <param name="buffer">The buffer that contains the data to be written.</param> public void Write(Address address, ReadOnlySpan<byte> buffer) { Span<byte> writeBuffer = stackalloc byte[buffer.Length + 2]; writeBuffer[0] = (byte)InstructionFormat.Write; writeBuffer[1] = (byte)address; buffer.CopyTo(writeBuffer.Slice(2)); _spiDevice.Write(writeBuffer); } /// <summary> /// When loading a transmit buffer, reduces the overhead of a normal WRITE /// command by placing the Address Pointer at one of six locations for transmit buffer. /// </summary> /// <param name="addressPointer">The Address Pointer to one of six locations for the transmit buffer.</param> /// <param name="buffer">The data to load in transmit buffer.</param> public void LoadTxBuffer(TxBufferAddressPointer addressPointer, ReadOnlySpan<byte> buffer) { Span<byte> writeBuffer = stackalloc byte[buffer.Length + 1]; // This instruction has a base value of 0x90. // The 3 lower bits are used for the pointer address for loading. writeBuffer[0] = (byte)((byte)InstructionFormat.LoadTxBuffer + (byte)addressPointer); buffer.CopyTo(writeBuffer.Slice(1)); _spiDevice.Write(writeBuffer); } /// <summary> /// Instructs the controller to begin the message transmission sequence for any of the transmit buffers. /// </summary> /// <param name="txb0">Instructs the controller to begin the message transmission sequence for TxB0.</param> /// <param name="txb1">Instructs the controller to begin the message transmission sequence for TxB1.</param> /// <param name="txb2">Instructs the controller to begin the message transmission sequence for TxB2.</param> public void RequestToSend(bool txb0, bool txb1, bool txb2) { byte GetInstructionFormat() { // This instruction has a base value of 0xA0. // The 3 lower bits are used for the pointer address for reading. byte value = (byte)InstructionFormat.RequestToSend; if (txb0) { value |= 0x01; } if (txb1) { value |= 0x02; } if (txb2) { value |= 0x04; } return value; } byte instructionFormat = GetInstructionFormat(); _spiDevice.WriteByte(instructionFormat); } /// <summary> /// Quick polling command that reads several Status bits for transmit and receive functions. /// </summary> /// <returns>The response from READ STATUS instruction.</returns> public ReadStatusResponse ReadStatus() { const byte dontCare = 0x00; ReadOnlySpan<byte> writeBuffer = stackalloc byte[] { (byte)InstructionFormat.ReadStatus, dontCare }; Span<byte> readBuffer = stackalloc byte[2]; _spiDevice.TransferFullDuplex(writeBuffer, readBuffer); ReadStatusResponse readStatusResponse = (ReadStatusResponse)readBuffer[1]; return readStatusResponse; } /// <summary> /// Quick polling command that indicates a filter match and message type /// (standard, extended and/or remote) of the received message. /// </summary> /// <returns>Response from RX STATUS instruction.</returns> public RxStatusResponse RxStatus() { const byte dontCare = 0x00; ReadOnlySpan<byte> writeBuffer = stackalloc byte[] { (byte)InstructionFormat.RxStatus, dontCare }; Span<byte> readBuffer = stackalloc byte[2]; _spiDevice.TransferFullDuplex(writeBuffer, readBuffer); RxStatusResponse rxStatusResponse = new RxStatusResponse(readBuffer[1]); return rxStatusResponse; } /// <summary> /// Allows the user to set or clear individual bits in a particular register. /// Not all registers can be bit modified with this command. /// </summary> /// <param name="address">The address to write data.</param> /// <param name="mask">The mask to determine which bits in the register will be allowed to change. /// A '1' will allow a bit to change while a '0' will not.</param> /// <param name="value">The value to be written.</param> public void BitModify(Address address, byte mask, byte value) { Span<byte> writeBuffer = stackalloc byte[] { (byte)InstructionFormat.BitModify, (byte)address, mask, value }; _spiDevice.Write(writeBuffer); } /// <inheritdoc/> public void Dispose() { if (_shouldDispose) { _gpioController?.Dispose(); _gpioController = null; } _spiDevice?.Dispose(); _spiDevice = null; } } }
35.895735
117
0.536308
[ "MIT" ]
Raregine/iot
src/devices/Mcp25xxx/Mcp25xxx.cs
15,150
C#
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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. // File MS.Internal.AppModel.IEnumIDList.cs // Automatically generated contract file. using System.Collections.Generic; using System.IO; using System.Text; using System.Diagnostics.Contracts; using System; // Disable the "this variable is not used" warning as every field would imply it. #pragma warning disable 0414 // Disable the "this variable is never assigned to". #pragma warning disable 0067 // Disable the "this event is never assigned to". #pragma warning disable 0649 // Disable the "this variable is never used". #pragma warning disable 0169 // Disable the "new keyword not required" warning. #pragma warning disable 0109 // Disable the "extern without DllImport" warning. #pragma warning disable 0626 // Disable the "could hide other member" warning, can happen on certain properties. #pragma warning disable 0108 namespace MS.Internal.AppModel { internal partial interface IEnumIDList { #region Methods and constructors IEnumIDList Clone(); void Reset(); #endregion } }
43.2
463
0.772222
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/PresentationFramework/Sources/MS.Internal.AppModel.IEnumIDList.cs
2,160
C#
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace VXDesign.Store.DevTools.Modules.SimpleNoteService.Server.Controllers { [Route("/")] public class HomeController : Controller { /// <summary> /// Loads the Web application /// </summary> /// <returns>Prepared content of the application</returns> [ProducesResponseType(StatusCodes.Status200OK)] public IActionResult Index() { return File("~/index.html", "text/html"); } /// <summary> /// Sends "bad request" response /// </summary> /// <returns>Error with message</returns> [ProducesResponseType(StatusCodes.Status400BadRequest)] [HttpGet("Error")] public IActionResult Error() { return BadRequest("Error page"); } } }
29
78
0.595402
[ "MIT" ]
GUSAR1T0/VXDS-DEV-TOOLS
DevTools/Modules/SimpleNoteService/Server/Controllers/HomeController.cs
872
C#
using Bailiwick.Models; using Bailiwick.Models.Phrases; using System.Linq; namespace Bailiwick.Analysis.PhraseBuilders.Nouns.BuilderStates { internal class Adjective : BaseState { public override WordClassType GeneralWordClass { get { return WordClassType.Adjective; } } public override IPhrase Build(IContext c) { IPhrase result; if (c.Accepted.Any(x => x.IsSuperlative()) ) { result = new SuperlativePhrase(); // TODO: Need to check for implied superlative "the most important" } else if (c.Accepted.Any(x => x.GeneralWordClass == WordClassType.GenitiveMarker)) { result = new NounPhrase(); // TODO: Split and create two phrases } else if (c.TryConvert.ToAgent(c.Accepted.Last())) { result = new NounPhrase(); } else if (c.Previous.GeneralWordClass == WordClassType.Article || c.Previous.GeneralWordClass == WordClassType.Determiner) { c.ForceConvert.ToAgent(c.Accepted.Last()); result = new NounPhrase(); } else { result = new AdjectivePhrase(); } foreach (var w in c.Accepted) result.AddTail(w); return (result.Head != null) ? result : null; } #region Event Handlers public override IState OnAdjective(IContext c) { c.AcceptCurrent(); return this; } public override IState OnAdverb(IContext c) { return AcceptAndDone; } public override IState OnConjunction(IContext c) { if( c.Current.IsCoordinatingConjunction() ) return xSimpleList; return xConjunction; } public override IState OnDeterminer(IContext c) { if (c.Current.IsPostDeterminer()) return Determiner; return base.OnDeterminer(c); } public override IState OnPunctuation(IContext c) { if( c.Current.Normalized == "," ) return xSimpleList; return base.OnPunctuation(c); } public override IState OnVerb(IContext c) { return ChooseVerbPsuedoState(c); } #endregion } }
27.186813
133
0.534762
[ "MIT" ]
JeffreyMFarley/Bailiwick
Bailiwick/Analysis/PhraseBuilders/Nouns/BuilderStates/Adjective.cs
2,476
C#
using Boardgame; using HarmonyLib; namespace PyrrhasUtils.Patches { [HarmonyPatch] public static class ContextPatch { public static GameContext Context; [HarmonyPatch(typeof(GameStartup), MethodType.Constructor)] public static void Postfix(ref GameContext ___gameContext) { Context = ___gameContext; } } }
22.117647
67
0.664894
[ "MIT" ]
PyrrhaDevs/DemeoMods
PyrrhasUtils/Patches/ContextPatch.cs
378
C#
/* * Copyright (C) Sportradar AG. See LICENSE for full license governing this code */ using System; using System.Globalization; using App.Metrics; using Microsoft.Extensions.Logging; using Dawn; using Microsoft.Extensions.Logging.Abstractions; using Sportradar.OddsFeed.SDK.API; using Sportradar.OddsFeed.SDK.API.EventArguments; using Sportradar.OddsFeed.SDK.DemoProject.Utils; using Sportradar.OddsFeed.SDK.Entities; using Sportradar.OddsFeed.SDK.Entities.REST; namespace Sportradar.OddsFeed.SDK.DemoProject.Example { ///<summary> /// A complete example using <see cref="ISpecificEntityDispatcher{T}"/> for various <see cref="ISportEvent"/> displaying all <see cref="ICompetition"/> info with Markets and Outcomes /// </summary> public class CompleteInfo { private CultureInfo _culture; private readonly TaskProcessor _taskProcessor = new TaskProcessor(TimeSpan.FromSeconds(20)); private readonly ILogger _log; private readonly ILoggerFactory _loggerFactory; private readonly IMetricsRoot _metricsRoot; public CompleteInfo(ILoggerFactory loggerFactory = null) { _loggerFactory = loggerFactory; _log = _loggerFactory?.CreateLogger(typeof(CompleteInfo)) ?? new NullLogger<CompleteInfo>(); _metricsRoot = new MetricsBuilder() .Configuration.Configure( options => { options.DefaultContextLabel = "DemoProject"; options.Enabled = true; options.ReportingEnabled = true; }) .OutputMetrics.AsPlainText() .Build(); } public void Run(MessageInterest messageInterest, CultureInfo culture) { Console.WriteLine(string.Empty); _log.LogInformation("Running the OddsFeed SDK Complete example"); var configuration = Feed.GetConfigurationBuilder().BuildFromConfigFile(); var oddsFeed = new Feed(configuration, _loggerFactory, _metricsRoot); AttachToFeedEvents(oddsFeed); _log.LogInformation("Creating IOddsFeedSessions"); var session = oddsFeed.CreateBuilder() .SetMessageInterest(messageInterest) .Build(); _culture = culture; var marketWriter = new MarketWriter(_taskProcessor, _culture, _log); var sportEntityWriter = new SportEntityWriter(_taskProcessor, _culture, false, _log); _log.LogInformation("Creating entity specific dispatchers"); var matchDispatcher = session.CreateSportSpecificMessageDispatcher<IMatch>(); var stageDispatcher = session.CreateSportSpecificMessageDispatcher<IStage>(); var tournamentDispatcher = session.CreateSportSpecificMessageDispatcher<ITournament>(); var basicTournamentDispatcher = session.CreateSportSpecificMessageDispatcher<IBasicTournament>(); var seasonDispatcher = session.CreateSportSpecificMessageDispatcher<ISeason>(); _log.LogInformation("Creating event processors"); var defaultEventsProcessor = new EntityProcessor<ISportEvent>(session, sportEntityWriter, marketWriter, _log); var matchEventsProcessor = new SpecificEntityProcessor<IMatch>(matchDispatcher, sportEntityWriter, marketWriter, _log); var stageEventsProcessor = new SpecificEntityProcessor<IStage>(stageDispatcher, sportEntityWriter, marketWriter, _log); var tournamentEventsProcessor = new SpecificEntityProcessor<ITournament>(tournamentDispatcher, sportEntityWriter, marketWriter, _log); var basicTournamentEventsProcessor = new SpecificEntityProcessor<IBasicTournament>(basicTournamentDispatcher, sportEntityWriter, marketWriter, _log); var seasonEventsProcessor = new SpecificEntityProcessor<ISeason>(seasonDispatcher, sportEntityWriter, marketWriter, _log); _log.LogInformation("Opening event processors"); defaultEventsProcessor.Open(); matchEventsProcessor.Open(); stageEventsProcessor.Open(); tournamentEventsProcessor.Open(); basicTournamentEventsProcessor.Open(); seasonEventsProcessor.Open(); _log.LogInformation("Opening the feed instance"); oddsFeed.Open(); _log.LogInformation("Example successfully started. Hit <enter> to quit"); Console.WriteLine(string.Empty); Console.ReadLine(); _log.LogInformation("Closing / disposing the feed"); oddsFeed.Close(); DetachFromFeedEvents(oddsFeed); _log.LogInformation("Closing event processors"); defaultEventsProcessor.Close(); matchEventsProcessor.Close(); stageEventsProcessor.Close(); tournamentEventsProcessor.Close(); basicTournamentEventsProcessor.Close(); seasonEventsProcessor.Close(); _log.LogInformation("Waiting for asynchronous operations to complete"); var waitResult = _taskProcessor.WaitForTasks(); _log.LogInformation($"Waiting for tasks completed. Result:{waitResult}"); _log.LogInformation("Stopped"); } /// <summary> /// Attaches to events raised by <see cref="IOddsFeed"/> /// </summary> /// <param name="oddsFeed">A <see cref="IOddsFeed"/> instance </param> private void AttachToFeedEvents(IOddsFeed oddsFeed) { Guard.Argument(oddsFeed, nameof(oddsFeed)).NotNull(); _log.LogInformation("Attaching to feed events"); oddsFeed.ProducerUp += OnProducerUp; oddsFeed.ProducerDown += OnProducerDown; oddsFeed.Disconnected += OnDisconnected; oddsFeed.Closed += OnClosed; } /// <summary> /// Detaches from events defined by <see cref="IOddsFeed"/> /// </summary> /// <param name="oddsFeed">A <see cref="IOddsFeed"/> instance</param> private void DetachFromFeedEvents(IOddsFeed oddsFeed) { Guard.Argument(oddsFeed, nameof(oddsFeed)).NotNull(); _log.LogInformation("Detaching from feed events"); oddsFeed.ProducerUp -= OnProducerUp; oddsFeed.ProducerDown -= OnProducerDown; oddsFeed.Disconnected -= OnDisconnected; oddsFeed.Closed -= OnClosed; } /// <summary> /// Invoked when the connection to the feed is lost /// </summary> /// <param name="sender">The instance raising the event</param> /// <param name="e">The event arguments</param> private void OnDisconnected(object sender, EventArgs e) { _log.LogWarning("Connection to the feed lost"); } /// <summary> /// Invoked when the feed is closed /// </summary> /// <param name="sender">The instance raising the event</param> /// <param name="e">The event arguments</param> private void OnClosed(object sender, FeedCloseEventArgs e) { _log.LogWarning($"The feed is closed with the reason: {e.GetReason()}"); } /// <summary> /// Invoked when a product associated with the feed goes down /// </summary> /// <param name="sender">The instance raising the event</param> /// <param name="e">The event arguments</param> private void OnProducerDown(object sender, ProducerStatusChangeEventArgs e) { _log.LogWarning($"Producer {e.GetProducerStatusChange().Producer} is down"); } /// <summary> /// Invoked when a product associated with the feed goes up /// </summary> /// <param name="sender">The instance raising the event</param> /// <param name="e">The event arguments</param> private void OnProducerUp(object sender, ProducerStatusChangeEventArgs e) { _log.LogInformation($"Producer {e.GetProducerStatusChange().Producer} is up"); } } }
43.084211
186
0.646347
[ "Apache-2.0" ]
sportradar/UnifiedOddsSdkNetCore
src/Sportradar.OddsFeed.SDK.DemoProject/Example/CompleteInfo.cs
8,188
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: EntityCollectionRequestBuilder.cs.tt namespace Microsoft.Graph { using System; using System.Collections.Generic; /// <summary> /// The type CallAudioRoutingGroupsCollectionRequestBuilder. /// </summary> public partial class CallAudioRoutingGroupsCollectionRequestBuilder : BaseRequestBuilder, ICallAudioRoutingGroupsCollectionRequestBuilder { /// <summary> /// Constructs a new CallAudioRoutingGroupsCollectionRequestBuilder. /// </summary> /// <param name="requestUrl">The URL for the built request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> public CallAudioRoutingGroupsCollectionRequestBuilder( string requestUrl, IBaseClient client) : base(requestUrl, client) { } /// <summary> /// Builds the request. /// </summary> /// <returns>The built request.</returns> public ICallAudioRoutingGroupsCollectionRequest Request() { return this.Request(null); } /// <summary> /// Builds the request. /// </summary> /// <param name="options">The query and header options for the request.</param> /// <returns>The built request.</returns> public ICallAudioRoutingGroupsCollectionRequest Request(IEnumerable<Option> options) { return new CallAudioRoutingGroupsCollectionRequest(this.RequestUrl, this.Client, options); } /// <summary> /// Gets an <see cref="IAudioRoutingGroupRequestBuilder"/> for the specified CallAudioRoutingGroup. /// </summary> /// <param name="id">The ID for the CallAudioRoutingGroup.</param> /// <returns>The <see cref="IAudioRoutingGroupRequestBuilder"/>.</returns> public IAudioRoutingGroupRequestBuilder this[string id] { get { return new AudioRoutingGroupRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); } } } }
38.560606
153
0.6
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/CallAudioRoutingGroupsCollectionRequestBuilder.cs
2,545
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.AzureIntegrationMigration.Runner.Core { /// <summary> /// Defines an interface for a component that runs in the Verify stage. /// </summary> public interface IStageVerifier : IStageRunner { } }
23.888889
75
0.730233
[ "MIT" ]
345James/aimcore
src/Microsoft.AzureIntegrationMigration.Runner/Core/IStageVerifier.cs
430
C#
using System; using System.Collections.Generic; using Legacy.Core.Combat; using Legacy.Core.Entities; using Legacy.Core.PartyManagement; using Legacy.Utilities; namespace Legacy.Core.Spells.CharacterSpells.Warfare { public class CharacterWarfareFuriousBlow : CharacterSpell { public CharacterWarfareFuriousBlow() : base(ECharacterSpell.WARFARE_FURIOUS_BLOW) { } public override Boolean HasResources(Character p_sorcerer) { return p_sorcerer.ManaPoints >= 1; } public override void UseResources(Character p_sorcerer) { p_sorcerer.ChangeMP(-p_sorcerer.ManaPoints); } protected override List<AttackResult> MeleeAttackMonster(Character p_attacker, Monster p_target) { LegacyLogger.Log(p_attacker.ManaPoints * m_staticData.AdditionalValue * 100f + "%"); return p_attacker.FightHandler.ExecuteMeleeAttack(false, p_attacker.ManaPoints * m_staticData.AdditionalValue, false, false, true); } public override void FillDescriptionValues(Single p_magicFactor) { SetDescriptionValue(0, m_staticData.AdditionalValue * 100f); } } }
28.184211
134
0.787115
[ "MIT" ]
Albeoris/MMXLegacy
Legacy.Core/Core/Spells/CharacterSpells/Warfare/CharacterWarfareFuriousBlow.cs
1,073
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ------------------------------------ using System.Management.Automation; using Commands.Security; using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using Microsoft.Azure.Commands.Security.Common; using Microsoft.Azure.Commands.Security.Models.Locations; using Microsoft.Azure.Commands.Security.Models.SecurityContacts; using Microsoft.Azure.Commands.SecurityCenter.Common; using Microsoft.Rest.Azure; namespace Microsoft.Azure.Commands.Security.Cmdlets.Locations { [Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SecurityLocation", DefaultParameterSetName = ParameterSetNames.SubscriptionScope), OutputType(typeof(PSSecurityLocation))] public class GetLocations : SecurityCenterCmdletBase { [Parameter(ParameterSetName = ParameterSetNames.SubscriptionLevelResource, Mandatory = true, HelpMessage = ParameterHelpMessages.ResourceName)] [ValidateNotNullOrEmpty] [LocationCompleter("Microsoft.Security/locations")] public string Name { get; set; } [Parameter(ParameterSetName = ParameterSetNames.ResourceId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = ParameterHelpMessages.ResourceId)] [ValidateNotNullOrEmpty] public string ResourceId { get; set; } public override void ExecuteCmdlet() { switch (ParameterSetName) { case ParameterSetNames.SubscriptionScope: var locations = SecurityCenterClient.Locations.ListWithHttpMessagesAsync().GetAwaiter().GetResult().Body; WriteObject(locations.ConvertToPSType(), enumerateCollection: true); break; case ParameterSetNames.SubscriptionLevelResource: SecurityCenterClient.AscLocation = Name; var location = SecurityCenterClient.Locations.GetWithHttpMessagesAsync().GetAwaiter().GetResult().Body; WriteObject(location.ConvertToPSType(), enumerateCollection: false); break; case ParameterSetNames.ResourceId: SecurityCenterClient.AscLocation = AzureIdUtilities.GetResourceName(ResourceId); location = SecurityCenterClient.Locations.GetWithHttpMessagesAsync().GetAwaiter().GetResult().Body; WriteObject(location.ConvertToPSType(), enumerateCollection: false); break; default: throw new PSInvalidOperationException(); } } } }
52.730159
209
0.670981
[ "MIT" ]
3quanfeng/azure-powershell
src/Security/Security/Cmdlets/Locations/GetLocations.cs
3,262
C#
using System; namespace Account.Events { public class InvalidOperationAttempted { public InvalidOperationAttempted() { Time = DateTimeOffset.UtcNow; } public string Description { get; set;} public DateTimeOffset Time {get;set;} public override string ToString() { return $"{Time} Attempted Invalid Action: {Description}"; } } }
22.833333
69
0.618005
[ "MIT" ]
TopSwagCode/marten-bank-sample
src/Models/Events/InvalidActionAttempted.cs
411
C#
using System.Web.Mvc; namespace vts.Web { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
20.083333
80
0.639004
[ "MIT" ]
Georgekibet/VoteTalyingSystem
Web/vts.Web/App_Start/FilterConfig.cs
243
C#
using FubuMVC.Core.Assets; using FubuMVC.Core.Continuations; using FubuMVC.Core.UI; using FubuValidation; using HtmlTags; namespace FubuMVC.Validation.StoryTeller { public class InlineModel { [Required] public string Name { get; set; } [Email] public string Email { get; set; } } public class InlineModelEndpoint { private readonly FubuHtmlDocument<InlineModel> _page; public InlineModelEndpoint(FubuHtmlDocument<InlineModel> page) { _page = page; } public FubuHtmlDocument<InlineModel> get_inline_model(InlineModel request) { _page.Add(new HtmlTag("h1").Text("Inline Errors")); _page.Add(createForm()); _page.Add(_page.WriteScriptTags()); return _page; } public FubuContinuation post_inline_model(InlineModel model) { return FubuContinuation.RedirectTo(new InlineModel(), "GET"); } private HtmlTag createForm() { var form = _page.FormFor<InlineModel>(); form.Append(_page.Edit(x => x.Name)); form.Append(_page.Edit(x => x.Email)); form.Append(new HtmlTag("input").Attr("type", "submit").Attr("value", "Submit").Id("Model")); form.Id("InlineModel"); return form; } } }
24.02
97
0.680266
[ "Apache-2.0" ]
DovetailSoftware/fubuvalidation
src/FubuMVC.Validation.StoryTeller/InlineModel.cs
1,203
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v10/enums/feed_status.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Google.Ads.GoogleAds.V10.Enums { /// <summary>Holder for reflection information generated from google/ads/googleads/v10/enums/feed_status.proto</summary> public static partial class FeedStatusReflection { #region Descriptor /// <summary>File descriptor for google/ads/googleads/v10/enums/feed_status.proto</summary> public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static FeedStatusReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTAvZW51bXMvZmVlZF9zdGF0dXMu", "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMC5lbnVtcxocZ29vZ2xl", "L2FwaS9hbm5vdGF0aW9ucy5wcm90byJWCg5GZWVkU3RhdHVzRW51bSJECgpG", "ZWVkU3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VO", "QUJMRUQQAhILCgdSRU1PVkVEEANC6QEKImNvbS5nb29nbGUuYWRzLmdvb2ds", "ZWFkcy52MTAuZW51bXNCD0ZlZWRTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29s", "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEw", "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEw", "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEwXEVudW1z6gIiR29v", "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEwOjpFbnVtc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V10.Enums.FeedStatusEnum), global::Google.Ads.GoogleAds.V10.Enums.FeedStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V10.Enums.FeedStatusEnum.Types.FeedStatus) }, null, null) })); } #endregion } #region Messages /// <summary> /// Container for enum describing possible statuses of a feed. /// </summary> public sealed partial class FeedStatusEnum : pb::IMessage<FeedStatusEnum> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<FeedStatusEnum> _parser = new pb::MessageParser<FeedStatusEnum>(() => new FeedStatusEnum()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser<FeedStatusEnum> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Ads.GoogleAds.V10.Enums.FeedStatusReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FeedStatusEnum() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FeedStatusEnum(FeedStatusEnum other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FeedStatusEnum Clone() { return new FeedStatusEnum(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FeedStatusEnum); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FeedStatusEnum other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FeedStatusEnum other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif #region Nested types /// <summary>Container for nested types declared in the FeedStatusEnum message type.</summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// <summary> /// Possible statuses of a feed. /// </summary> public enum FeedStatus { /// <summary> /// Not specified. /// </summary> [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, /// <summary> /// Used for return value only. Represents value unknown in this version. /// </summary> [pbr::OriginalName("UNKNOWN")] Unknown = 1, /// <summary> /// Feed is enabled. /// </summary> [pbr::OriginalName("ENABLED")] Enabled = 2, /// <summary> /// Feed has been removed. /// </summary> [pbr::OriginalName("REMOVED")] Removed = 3, } } #endregion } #endregion } #endregion Designer generated code
37.666667
279
0.69497
[ "Apache-2.0" ]
friedenberg/google-ads-dotnet
src/V10/Services/FeedStatus.g.cs
8,927
C#
// Copyright 2016-2021 Rik Essenius // // 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.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Reflection; using System.Xml; using FixtureExplorer.Helpers; namespace FixtureExplorer { /// <summary>Definition of a generic TableType fixture. Uses the Template pattern</summary> public abstract class TableTypeFixture { private readonly string _assemblyName; private Assembly _assembly; /// <summary>Initialize TableTypeFixture with an assembly name</summary> protected TableTypeFixture(string assemblyName) => _assemblyName = assemblyName; /// <returns>The list of public non-static classes in the assembly (which FitSharp can work with)</returns> /// <remarks>If a class is sealed and abstract, it's a static class. We exclude exception or attribute classes</remarks> protected IEnumerable<Type> ClassesVisibleToFitNesse { get { return FixtureAssembly().GetTypes().Where(t => t.IsPublic && t.IsClass && !(t.IsSealed && t.IsAbstract) && !t.IsSubclassOf(typeof(Exception)) && !t.IsSubclassOf(typeof(Attribute))); } } /// <summary>Create the DoTable result list with a header row.</summary> protected abstract List<object> ListWithHeaderRow { get; } /// <summary>Add an item to the DoTable result list.</summary> protected abstract void AddToList(List<object> result, Type type); /// <summary>The Table Table interface for FitSharp</summary> /// <param name="table">ignored, required for the interface</param> /// <remarks>uses the Template pattern, ListWithHeaderRow and AddToList are overriden in derived classes</remarks> [SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "FitSharp signature")] public List<object> DoTable(List<List<string>> table) { var returnList = ListWithHeaderRow; foreach (var type in ClassesVisibleToFitNesse.OrderBy(type => type.Name)) { AddToList(returnList, type); } return returnList; } /// <summary>Memory function delivering the assembly to work with</summary> private Assembly FixtureAssembly() { if (_assembly == null) { var locator = new AssemblyLocator(_assemblyName, "."); _assembly = Assembly.LoadFrom(Path.GetFullPath(locator.FindAssemblyPath())); } return _assembly; } /// <returns>the input in the format for reporting in an output cell</returns> protected static string Report(string input) => "report:" + input; } }
42.5625
128
0.659031
[ "Apache-2.0" ]
essenius/FitNesseFitSharpFixtureExplorer
FixtureExplorer/FixtureExplorer/TableTypeFixture.cs
3,407
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. // // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ // ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ // ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ // ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ // ------------------------------------------------ // // This file is automatically generated. // Please do not edit these files manually. // // ------------------------------------------------ using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text.Json; using System.Text.Json.Serialization; #nullable restore namespace Elastic.Clients.Elasticsearch.Snapshot { public partial class IndexDetails { [JsonInclude] [JsonPropertyName("max_segments_per_shard")] public long MaxSegmentsPerShard { get; init; } [JsonInclude] [JsonPropertyName("shard_count")] public int ShardCount { get; init; } [JsonInclude] [JsonPropertyName("size")] public Elastic.Clients.Elasticsearch.ByteSize? Size { get; init; } [JsonInclude] [JsonPropertyName("size_in_bytes")] public long SizeInBytes { get; init; } } }
30.555556
76
0.530909
[ "Apache-2.0" ]
SimonCropp/elasticsearch-net
src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs
1,821
C#
namespace Nature { using Xunit; public class DoubleComparerTests { [Fact] public void Ctor() { var target = new DoubleComparer(); Assert.Equal(target.AbsoluteTolerance, 0.0); Assert.Equal(target.RelativeTolerance, 0.0); target = DoubleComparer.FromAbsoluteTolerance(1.0); Assert.Equal(target.AbsoluteTolerance, 1.0); Assert.Equal(target.RelativeTolerance, 0.0); target = DoubleComparer.FromRelativeTolerance(1.0e-2); Assert.Equal(target.AbsoluteTolerance, 0.0); Assert.Equal(target.RelativeTolerance, 1.0e-2); target = DoubleComparer.FromAbsoluteAndRelativeTolerances(1.0, 1.0e-2); Assert.Equal(target.AbsoluteTolerance, 1.0); Assert.Equal(target.RelativeTolerance, 1.0e-2); target = DoubleComparer.FromAbsoluteAndRelativeTolerances(-1.0, -2.0); Assert.Equal(target.AbsoluteTolerance, 1.0); Assert.Equal(target.RelativeTolerance, 2.0); } [Fact] public void Equal() { var target = new DoubleComparer(); Assert.Equal(1.0, 1.0, target); Assert.NotEqual(1.0, 1.0 + 1.0e-10, target); target = DoubleComparer.FromAbsoluteTolerance(1.0); Assert.Equal(1.0, 2.0, target); Assert.Equal(0.0, 1.0, target); Assert.Equal(-1.0, 0.0, target); Assert.NotEqual(1.0, 3.0, target); Assert.NotEqual(-1.0, 1.0, target); target = DoubleComparer.FromRelativeTolerance(1.0e-2); Assert.Equal(1.0, 1.01, target); Assert.NotEqual(1.0, 1.02, target); Assert.Equal(-1.0, -1.01, target); Assert.NotEqual(-1.0, -1.02, target); //target = DoubleEqualityComparer.FromAbsoluteAndRelativeTolerances(1.0, 1.0e-2); //Assert.Equal(target.AbsoluteTolerance, 1.0); //Assert.Equal(target.RelativeTolerance, 1.0e-2); } } }
35.448276
93
0.581712
[ "MIT" ]
AlexeyEvlampiev/Nature
tests/XUnitTest.Nature/DoubleComparerTests.cs
2,058
C#
#pragma warning disable 1591 // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> // ------------------------------------------------------------------------------ [assembly: Android.Runtime.ResourceDesignerAttribute("NullableDatePicker.Droid.Resource", IsApplication=true)] namespace NullableDatePicker.Droid { [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] public partial class Resource { static Resource() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } public static void UpdateIdValues() { global::Xamarin.Forms.Platform.Android.Resource.Attribute.actionBarSize = global::NullableDatePicker.Droid.Resource.Attribute.actionBarSize; } public partial class Animation { // aapt resource value: 0x7f040000 public const int abc_fade_in = 2130968576; // aapt resource value: 0x7f040001 public const int abc_fade_out = 2130968577; // aapt resource value: 0x7f040002 public const int abc_grow_fade_in_from_bottom = 2130968578; // aapt resource value: 0x7f040003 public const int abc_popup_enter = 2130968579; // aapt resource value: 0x7f040004 public const int abc_popup_exit = 2130968580; // aapt resource value: 0x7f040005 public const int abc_shrink_fade_out_from_bottom = 2130968581; // aapt resource value: 0x7f040006 public const int abc_slide_in_bottom = 2130968582; // aapt resource value: 0x7f040007 public const int abc_slide_in_top = 2130968583; // aapt resource value: 0x7f040008 public const int abc_slide_out_bottom = 2130968584; // aapt resource value: 0x7f040009 public const int abc_slide_out_top = 2130968585; // aapt resource value: 0x7f04000a public const int design_bottom_sheet_slide_in = 2130968586; // aapt resource value: 0x7f04000b public const int design_bottom_sheet_slide_out = 2130968587; // aapt resource value: 0x7f04000c public const int design_fab_in = 2130968588; // aapt resource value: 0x7f04000d public const int design_fab_out = 2130968589; // aapt resource value: 0x7f04000e public const int design_snackbar_in = 2130968590; // aapt resource value: 0x7f04000f public const int design_snackbar_out = 2130968591; static Animation() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Animation() { } } public partial class Attribute { // aapt resource value: 0x7f010004 public const int MediaRouteControllerWindowBackground = 2130771972; // aapt resource value: 0x7f010061 public const int actionBarDivider = 2130772065; // aapt resource value: 0x7f010062 public const int actionBarItemBackground = 2130772066; // aapt resource value: 0x7f01005b public const int actionBarPopupTheme = 2130772059; // aapt resource value: 0x7f010060 public const int actionBarSize = 2130772064; // aapt resource value: 0x7f01005d public const int actionBarSplitStyle = 2130772061; // aapt resource value: 0x7f01005c public const int actionBarStyle = 2130772060; // aapt resource value: 0x7f010057 public const int actionBarTabBarStyle = 2130772055; // aapt resource value: 0x7f010056 public const int actionBarTabStyle = 2130772054; // aapt resource value: 0x7f010058 public const int actionBarTabTextStyle = 2130772056; // aapt resource value: 0x7f01005e public const int actionBarTheme = 2130772062; // aapt resource value: 0x7f01005f public const int actionBarWidgetTheme = 2130772063; // aapt resource value: 0x7f01007b public const int actionButtonStyle = 2130772091; // aapt resource value: 0x7f010077 public const int actionDropDownStyle = 2130772087; // aapt resource value: 0x7f0100c9 public const int actionLayout = 2130772169; // aapt resource value: 0x7f010063 public const int actionMenuTextAppearance = 2130772067; // aapt resource value: 0x7f010064 public const int actionMenuTextColor = 2130772068; // aapt resource value: 0x7f010067 public const int actionModeBackground = 2130772071; // aapt resource value: 0x7f010066 public const int actionModeCloseButtonStyle = 2130772070; // aapt resource value: 0x7f010069 public const int actionModeCloseDrawable = 2130772073; // aapt resource value: 0x7f01006b public const int actionModeCopyDrawable = 2130772075; // aapt resource value: 0x7f01006a public const int actionModeCutDrawable = 2130772074; // aapt resource value: 0x7f01006f public const int actionModeFindDrawable = 2130772079; // aapt resource value: 0x7f01006c public const int actionModePasteDrawable = 2130772076; // aapt resource value: 0x7f010071 public const int actionModePopupWindowStyle = 2130772081; // aapt resource value: 0x7f01006d public const int actionModeSelectAllDrawable = 2130772077; // aapt resource value: 0x7f01006e public const int actionModeShareDrawable = 2130772078; // aapt resource value: 0x7f010068 public const int actionModeSplitBackground = 2130772072; // aapt resource value: 0x7f010065 public const int actionModeStyle = 2130772069; // aapt resource value: 0x7f010070 public const int actionModeWebSearchDrawable = 2130772080; // aapt resource value: 0x7f010059 public const int actionOverflowButtonStyle = 2130772057; // aapt resource value: 0x7f01005a public const int actionOverflowMenuStyle = 2130772058; // aapt resource value: 0x7f0100cb public const int actionProviderClass = 2130772171; // aapt resource value: 0x7f0100ca public const int actionViewClass = 2130772170; // aapt resource value: 0x7f010083 public const int activityChooserViewStyle = 2130772099; // aapt resource value: 0x7f0100a6 public const int alertDialogButtonGroupStyle = 2130772134; // aapt resource value: 0x7f0100a7 public const int alertDialogCenterButtons = 2130772135; // aapt resource value: 0x7f0100a5 public const int alertDialogStyle = 2130772133; // aapt resource value: 0x7f0100a8 public const int alertDialogTheme = 2130772136; // aapt resource value: 0x7f0100ba public const int allowStacking = 2130772154; // aapt resource value: 0x7f0100c1 public const int arrowHeadLength = 2130772161; // aapt resource value: 0x7f0100c2 public const int arrowShaftLength = 2130772162; // aapt resource value: 0x7f0100ad public const int autoCompleteTextViewStyle = 2130772141; // aapt resource value: 0x7f010032 public const int background = 2130772018; // aapt resource value: 0x7f010034 public const int backgroundSplit = 2130772020; // aapt resource value: 0x7f010033 public const int backgroundStacked = 2130772019; // aapt resource value: 0x7f0100f5 public const int backgroundTint = 2130772213; // aapt resource value: 0x7f0100f6 public const int backgroundTintMode = 2130772214; // aapt resource value: 0x7f0100c3 public const int barLength = 2130772163; // aapt resource value: 0x7f0100fb public const int behavior_hideable = 2130772219; // aapt resource value: 0x7f010121 public const int behavior_overlapTop = 2130772257; // aapt resource value: 0x7f0100fa public const int behavior_peekHeight = 2130772218; // aapt resource value: 0x7f010117 public const int borderWidth = 2130772247; // aapt resource value: 0x7f010080 public const int borderlessButtonStyle = 2130772096; // aapt resource value: 0x7f010111 public const int bottomSheetDialogTheme = 2130772241; // aapt resource value: 0x7f010112 public const int bottomSheetStyle = 2130772242; // aapt resource value: 0x7f01007d public const int buttonBarButtonStyle = 2130772093; // aapt resource value: 0x7f0100ab public const int buttonBarNegativeButtonStyle = 2130772139; // aapt resource value: 0x7f0100ac public const int buttonBarNeutralButtonStyle = 2130772140; // aapt resource value: 0x7f0100aa public const int buttonBarPositiveButtonStyle = 2130772138; // aapt resource value: 0x7f01007c public const int buttonBarStyle = 2130772092; // aapt resource value: 0x7f010045 public const int buttonPanelSideLayout = 2130772037; // aapt resource value: 0x7f0100ae public const int buttonStyle = 2130772142; // aapt resource value: 0x7f0100af public const int buttonStyleSmall = 2130772143; // aapt resource value: 0x7f0100bb public const int buttonTint = 2130772155; // aapt resource value: 0x7f0100bc public const int buttonTintMode = 2130772156; // aapt resource value: 0x7f01001b public const int cardBackgroundColor = 2130771995; // aapt resource value: 0x7f01001c public const int cardCornerRadius = 2130771996; // aapt resource value: 0x7f01001d public const int cardElevation = 2130771997; // aapt resource value: 0x7f01001e public const int cardMaxElevation = 2130771998; // aapt resource value: 0x7f010020 public const int cardPreventCornerOverlap = 2130772000; // aapt resource value: 0x7f01001f public const int cardUseCompatPadding = 2130771999; // aapt resource value: 0x7f0100b0 public const int checkboxStyle = 2130772144; // aapt resource value: 0x7f0100b1 public const int checkedTextViewStyle = 2130772145; // aapt resource value: 0x7f0100d3 public const int closeIcon = 2130772179; // aapt resource value: 0x7f010042 public const int closeItemLayout = 2130772034; // aapt resource value: 0x7f0100ec public const int collapseContentDescription = 2130772204; // aapt resource value: 0x7f0100eb public const int collapseIcon = 2130772203; // aapt resource value: 0x7f010108 public const int collapsedTitleGravity = 2130772232; // aapt resource value: 0x7f010104 public const int collapsedTitleTextAppearance = 2130772228; // aapt resource value: 0x7f0100bd public const int color = 2130772157; // aapt resource value: 0x7f01009e public const int colorAccent = 2130772126; // aapt resource value: 0x7f0100a2 public const int colorButtonNormal = 2130772130; // aapt resource value: 0x7f0100a0 public const int colorControlActivated = 2130772128; // aapt resource value: 0x7f0100a1 public const int colorControlHighlight = 2130772129; // aapt resource value: 0x7f01009f public const int colorControlNormal = 2130772127; // aapt resource value: 0x7f01009c public const int colorPrimary = 2130772124; // aapt resource value: 0x7f01009d public const int colorPrimaryDark = 2130772125; // aapt resource value: 0x7f0100a3 public const int colorSwitchThumbNormal = 2130772131; // aapt resource value: 0x7f0100d8 public const int commitIcon = 2130772184; // aapt resource value: 0x7f01003d public const int contentInsetEnd = 2130772029; // aapt resource value: 0x7f01003e public const int contentInsetLeft = 2130772030; // aapt resource value: 0x7f01003f public const int contentInsetRight = 2130772031; // aapt resource value: 0x7f01003c public const int contentInsetStart = 2130772028; // aapt resource value: 0x7f010021 public const int contentPadding = 2130772001; // aapt resource value: 0x7f010025 public const int contentPaddingBottom = 2130772005; // aapt resource value: 0x7f010022 public const int contentPaddingLeft = 2130772002; // aapt resource value: 0x7f010023 public const int contentPaddingRight = 2130772003; // aapt resource value: 0x7f010024 public const int contentPaddingTop = 2130772004; // aapt resource value: 0x7f010105 public const int contentScrim = 2130772229; // aapt resource value: 0x7f0100a4 public const int controlBackground = 2130772132; // aapt resource value: 0x7f010137 public const int counterEnabled = 2130772279; // aapt resource value: 0x7f010138 public const int counterMaxLength = 2130772280; // aapt resource value: 0x7f01013a public const int counterOverflowTextAppearance = 2130772282; // aapt resource value: 0x7f010139 public const int counterTextAppearance = 2130772281; // aapt resource value: 0x7f010035 public const int customNavigationLayout = 2130772021; // aapt resource value: 0x7f0100d2 public const int defaultQueryHint = 2130772178; // aapt resource value: 0x7f010075 public const int dialogPreferredPadding = 2130772085; // aapt resource value: 0x7f010074 public const int dialogTheme = 2130772084; // aapt resource value: 0x7f01002b public const int displayOptions = 2130772011; // aapt resource value: 0x7f010031 public const int divider = 2130772017; // aapt resource value: 0x7f010082 public const int dividerHorizontal = 2130772098; // aapt resource value: 0x7f0100c7 public const int dividerPadding = 2130772167; // aapt resource value: 0x7f010081 public const int dividerVertical = 2130772097; // aapt resource value: 0x7f0100bf public const int drawableSize = 2130772159; // aapt resource value: 0x7f010026 public const int drawerArrowStyle = 2130772006; // aapt resource value: 0x7f010094 public const int dropDownListViewStyle = 2130772116; // aapt resource value: 0x7f010078 public const int dropdownListPreferredItemHeight = 2130772088; // aapt resource value: 0x7f010089 public const int editTextBackground = 2130772105; // aapt resource value: 0x7f010088 public const int editTextColor = 2130772104; // aapt resource value: 0x7f0100b2 public const int editTextStyle = 2130772146; // aapt resource value: 0x7f010040 public const int elevation = 2130772032; // aapt resource value: 0x7f010135 public const int errorEnabled = 2130772277; // aapt resource value: 0x7f010136 public const int errorTextAppearance = 2130772278; // aapt resource value: 0x7f010044 public const int expandActivityOverflowButtonDrawable = 2130772036; // aapt resource value: 0x7f0100f7 public const int expanded = 2130772215; // aapt resource value: 0x7f010109 public const int expandedTitleGravity = 2130772233; // aapt resource value: 0x7f0100fe public const int expandedTitleMargin = 2130772222; // aapt resource value: 0x7f010102 public const int expandedTitleMarginBottom = 2130772226; // aapt resource value: 0x7f010101 public const int expandedTitleMarginEnd = 2130772225; // aapt resource value: 0x7f0100ff public const int expandedTitleMarginStart = 2130772223; // aapt resource value: 0x7f010100 public const int expandedTitleMarginTop = 2130772224; // aapt resource value: 0x7f010103 public const int expandedTitleTextAppearance = 2130772227; // aapt resource value: 0x7f01001a public const int externalRouteEnabledDrawable = 2130771994; // aapt resource value: 0x7f010115 public const int fabSize = 2130772245; // aapt resource value: 0x7f010119 public const int foregroundInsidePadding = 2130772249; // aapt resource value: 0x7f0100c0 public const int gapBetweenBars = 2130772160; // aapt resource value: 0x7f0100d4 public const int goIcon = 2130772180; // aapt resource value: 0x7f01011f public const int headerLayout = 2130772255; // aapt resource value: 0x7f010027 public const int height = 2130772007; // aapt resource value: 0x7f01003b public const int hideOnContentScroll = 2130772027; // aapt resource value: 0x7f01013b public const int hintAnimationEnabled = 2130772283; // aapt resource value: 0x7f010134 public const int hintEnabled = 2130772276; // aapt resource value: 0x7f010133 public const int hintTextAppearance = 2130772275; // aapt resource value: 0x7f01007a public const int homeAsUpIndicator = 2130772090; // aapt resource value: 0x7f010036 public const int homeLayout = 2130772022; // aapt resource value: 0x7f01002f public const int icon = 2130772015; // aapt resource value: 0x7f0100d0 public const int iconifiedByDefault = 2130772176; // aapt resource value: 0x7f01008a public const int imageButtonStyle = 2130772106; // aapt resource value: 0x7f010038 public const int indeterminateProgressStyle = 2130772024; // aapt resource value: 0x7f010043 public const int initialActivityCount = 2130772035; // aapt resource value: 0x7f010120 public const int insetForeground = 2130772256; // aapt resource value: 0x7f010028 public const int isLightTheme = 2130772008; // aapt resource value: 0x7f01011d public const int itemBackground = 2130772253; // aapt resource value: 0x7f01011b public const int itemIconTint = 2130772251; // aapt resource value: 0x7f01003a public const int itemPadding = 2130772026; // aapt resource value: 0x7f01011e public const int itemTextAppearance = 2130772254; // aapt resource value: 0x7f01011c public const int itemTextColor = 2130772252; // aapt resource value: 0x7f01010b public const int keylines = 2130772235; // aapt resource value: 0x7f0100cf public const int layout = 2130772175; // aapt resource value: 0x7f010000 public const int layoutManager = 2130771968; // aapt resource value: 0x7f01010e public const int layout_anchor = 2130772238; // aapt resource value: 0x7f010110 public const int layout_anchorGravity = 2130772240; // aapt resource value: 0x7f01010d public const int layout_behavior = 2130772237; // aapt resource value: 0x7f0100fc public const int layout_collapseMode = 2130772220; // aapt resource value: 0x7f0100fd public const int layout_collapseParallaxMultiplier = 2130772221; // aapt resource value: 0x7f01010f public const int layout_keyline = 2130772239; // aapt resource value: 0x7f0100f8 public const int layout_scrollFlags = 2130772216; // aapt resource value: 0x7f0100f9 public const int layout_scrollInterpolator = 2130772217; // aapt resource value: 0x7f01009b public const int listChoiceBackgroundIndicator = 2130772123; // aapt resource value: 0x7f010076 public const int listDividerAlertDialog = 2130772086; // aapt resource value: 0x7f010049 public const int listItemLayout = 2130772041; // aapt resource value: 0x7f010046 public const int listLayout = 2130772038; // aapt resource value: 0x7f010095 public const int listPopupWindowStyle = 2130772117; // aapt resource value: 0x7f01008f public const int listPreferredItemHeight = 2130772111; // aapt resource value: 0x7f010091 public const int listPreferredItemHeightLarge = 2130772113; // aapt resource value: 0x7f010090 public const int listPreferredItemHeightSmall = 2130772112; // aapt resource value: 0x7f010092 public const int listPreferredItemPaddingLeft = 2130772114; // aapt resource value: 0x7f010093 public const int listPreferredItemPaddingRight = 2130772115; // aapt resource value: 0x7f010030 public const int logo = 2130772016; // aapt resource value: 0x7f0100ef public const int logoDescription = 2130772207; // aapt resource value: 0x7f010122 public const int maxActionInlineWidth = 2130772258; // aapt resource value: 0x7f0100ea public const int maxButtonHeight = 2130772202; // aapt resource value: 0x7f0100c5 public const int measureWithLargestChild = 2130772165; // aapt resource value: 0x7f010005 public const int mediaRouteAudioTrackDrawable = 2130771973; // aapt resource value: 0x7f010006 public const int mediaRouteBluetoothIconDrawable = 2130771974; // aapt resource value: 0x7f010007 public const int mediaRouteButtonStyle = 2130771975; // aapt resource value: 0x7f010008 public const int mediaRouteCastDrawable = 2130771976; // aapt resource value: 0x7f010009 public const int mediaRouteChooserPrimaryTextStyle = 2130771977; // aapt resource value: 0x7f01000a public const int mediaRouteChooserSecondaryTextStyle = 2130771978; // aapt resource value: 0x7f01000b public const int mediaRouteCloseDrawable = 2130771979; // aapt resource value: 0x7f01000c public const int mediaRouteCollapseGroupDrawable = 2130771980; // aapt resource value: 0x7f01000d public const int mediaRouteConnectingDrawable = 2130771981; // aapt resource value: 0x7f01000e public const int mediaRouteControllerPrimaryTextStyle = 2130771982; // aapt resource value: 0x7f01000f public const int mediaRouteControllerSecondaryTextStyle = 2130771983; // aapt resource value: 0x7f010010 public const int mediaRouteControllerTitleTextStyle = 2130771984; // aapt resource value: 0x7f010011 public const int mediaRouteDefaultIconDrawable = 2130771985; // aapt resource value: 0x7f010012 public const int mediaRouteExpandGroupDrawable = 2130771986; // aapt resource value: 0x7f010013 public const int mediaRouteOffDrawable = 2130771987; // aapt resource value: 0x7f010014 public const int mediaRouteOnDrawable = 2130771988; // aapt resource value: 0x7f010015 public const int mediaRoutePauseDrawable = 2130771989; // aapt resource value: 0x7f010016 public const int mediaRoutePlayDrawable = 2130771990; // aapt resource value: 0x7f010017 public const int mediaRouteSpeakerGroupIconDrawable = 2130771991; // aapt resource value: 0x7f010018 public const int mediaRouteSpeakerIconDrawable = 2130771992; // aapt resource value: 0x7f010019 public const int mediaRouteTvIconDrawable = 2130771993; // aapt resource value: 0x7f01011a public const int menu = 2130772250; // aapt resource value: 0x7f010047 public const int multiChoiceItemLayout = 2130772039; // aapt resource value: 0x7f0100ee public const int navigationContentDescription = 2130772206; // aapt resource value: 0x7f0100ed public const int navigationIcon = 2130772205; // aapt resource value: 0x7f01002a public const int navigationMode = 2130772010; // aapt resource value: 0x7f0100cd public const int overlapAnchor = 2130772173; // aapt resource value: 0x7f0100f3 public const int paddingEnd = 2130772211; // aapt resource value: 0x7f0100f2 public const int paddingStart = 2130772210; // aapt resource value: 0x7f010098 public const int panelBackground = 2130772120; // aapt resource value: 0x7f01009a public const int panelMenuListTheme = 2130772122; // aapt resource value: 0x7f010099 public const int panelMenuListWidth = 2130772121; // aapt resource value: 0x7f010086 public const int popupMenuStyle = 2130772102; // aapt resource value: 0x7f010041 public const int popupTheme = 2130772033; // aapt resource value: 0x7f010087 public const int popupWindowStyle = 2130772103; // aapt resource value: 0x7f0100cc public const int preserveIconSpacing = 2130772172; // aapt resource value: 0x7f010116 public const int pressedTranslationZ = 2130772246; // aapt resource value: 0x7f010039 public const int progressBarPadding = 2130772025; // aapt resource value: 0x7f010037 public const int progressBarStyle = 2130772023; // aapt resource value: 0x7f0100da public const int queryBackground = 2130772186; // aapt resource value: 0x7f0100d1 public const int queryHint = 2130772177; // aapt resource value: 0x7f0100b3 public const int radioButtonStyle = 2130772147; // aapt resource value: 0x7f0100b4 public const int ratingBarStyle = 2130772148; // aapt resource value: 0x7f0100b5 public const int ratingBarStyleIndicator = 2130772149; // aapt resource value: 0x7f0100b6 public const int ratingBarStyleSmall = 2130772150; // aapt resource value: 0x7f010002 public const int reverseLayout = 2130771970; // aapt resource value: 0x7f010114 public const int rippleColor = 2130772244; // aapt resource value: 0x7f0100d6 public const int searchHintIcon = 2130772182; // aapt resource value: 0x7f0100d5 public const int searchIcon = 2130772181; // aapt resource value: 0x7f01008e public const int searchViewStyle = 2130772110; // aapt resource value: 0x7f0100b7 public const int seekBarStyle = 2130772151; // aapt resource value: 0x7f01007e public const int selectableItemBackground = 2130772094; // aapt resource value: 0x7f01007f public const int selectableItemBackgroundBorderless = 2130772095; // aapt resource value: 0x7f0100c8 public const int showAsAction = 2130772168; // aapt resource value: 0x7f0100c6 public const int showDividers = 2130772166; // aapt resource value: 0x7f0100e2 public const int showText = 2130772194; // aapt resource value: 0x7f010048 public const int singleChoiceItemLayout = 2130772040; // aapt resource value: 0x7f010001 public const int spanCount = 2130771969; // aapt resource value: 0x7f0100be public const int spinBars = 2130772158; // aapt resource value: 0x7f010079 public const int spinnerDropDownItemStyle = 2130772089; // aapt resource value: 0x7f0100b8 public const int spinnerStyle = 2130772152; // aapt resource value: 0x7f0100e1 public const int splitTrack = 2130772193; // aapt resource value: 0x7f01004a public const int srcCompat = 2130772042; // aapt resource value: 0x7f010003 public const int stackFromEnd = 2130771971; // aapt resource value: 0x7f0100ce public const int state_above_anchor = 2130772174; // aapt resource value: 0x7f01010c public const int statusBarBackground = 2130772236; // aapt resource value: 0x7f010106 public const int statusBarScrim = 2130772230; // aapt resource value: 0x7f0100db public const int submitBackground = 2130772187; // aapt resource value: 0x7f01002c public const int subtitle = 2130772012; // aapt resource value: 0x7f0100e4 public const int subtitleTextAppearance = 2130772196; // aapt resource value: 0x7f0100f1 public const int subtitleTextColor = 2130772209; // aapt resource value: 0x7f01002e public const int subtitleTextStyle = 2130772014; // aapt resource value: 0x7f0100d9 public const int suggestionRowLayout = 2130772185; // aapt resource value: 0x7f0100df public const int switchMinWidth = 2130772191; // aapt resource value: 0x7f0100e0 public const int switchPadding = 2130772192; // aapt resource value: 0x7f0100b9 public const int switchStyle = 2130772153; // aapt resource value: 0x7f0100de public const int switchTextAppearance = 2130772190; // aapt resource value: 0x7f010126 public const int tabBackground = 2130772262; // aapt resource value: 0x7f010125 public const int tabContentStart = 2130772261; // aapt resource value: 0x7f010128 public const int tabGravity = 2130772264; // aapt resource value: 0x7f010123 public const int tabIndicatorColor = 2130772259; // aapt resource value: 0x7f010124 public const int tabIndicatorHeight = 2130772260; // aapt resource value: 0x7f01012a public const int tabMaxWidth = 2130772266; // aapt resource value: 0x7f010129 public const int tabMinWidth = 2130772265; // aapt resource value: 0x7f010127 public const int tabMode = 2130772263; // aapt resource value: 0x7f010132 public const int tabPadding = 2130772274; // aapt resource value: 0x7f010131 public const int tabPaddingBottom = 2130772273; // aapt resource value: 0x7f010130 public const int tabPaddingEnd = 2130772272; // aapt resource value: 0x7f01012e public const int tabPaddingStart = 2130772270; // aapt resource value: 0x7f01012f public const int tabPaddingTop = 2130772271; // aapt resource value: 0x7f01012d public const int tabSelectedTextColor = 2130772269; // aapt resource value: 0x7f01012b public const int tabTextAppearance = 2130772267; // aapt resource value: 0x7f01012c public const int tabTextColor = 2130772268; // aapt resource value: 0x7f01004b public const int textAllCaps = 2130772043; // aapt resource value: 0x7f010072 public const int textAppearanceLargePopupMenu = 2130772082; // aapt resource value: 0x7f010096 public const int textAppearanceListItem = 2130772118; // aapt resource value: 0x7f010097 public const int textAppearanceListItemSmall = 2130772119; // aapt resource value: 0x7f01008c public const int textAppearanceSearchResultSubtitle = 2130772108; // aapt resource value: 0x7f01008b public const int textAppearanceSearchResultTitle = 2130772107; // aapt resource value: 0x7f010073 public const int textAppearanceSmallPopupMenu = 2130772083; // aapt resource value: 0x7f0100a9 public const int textColorAlertDialogListItem = 2130772137; // aapt resource value: 0x7f010113 public const int textColorError = 2130772243; // aapt resource value: 0x7f01008d public const int textColorSearchUrl = 2130772109; // aapt resource value: 0x7f0100f4 public const int theme = 2130772212; // aapt resource value: 0x7f0100c4 public const int thickness = 2130772164; // aapt resource value: 0x7f0100dd public const int thumbTextPadding = 2130772189; // aapt resource value: 0x7f010029 public const int title = 2130772009; // aapt resource value: 0x7f01010a public const int titleEnabled = 2130772234; // aapt resource value: 0x7f0100e9 public const int titleMarginBottom = 2130772201; // aapt resource value: 0x7f0100e7 public const int titleMarginEnd = 2130772199; // aapt resource value: 0x7f0100e6 public const int titleMarginStart = 2130772198; // aapt resource value: 0x7f0100e8 public const int titleMarginTop = 2130772200; // aapt resource value: 0x7f0100e5 public const int titleMargins = 2130772197; // aapt resource value: 0x7f0100e3 public const int titleTextAppearance = 2130772195; // aapt resource value: 0x7f0100f0 public const int titleTextColor = 2130772208; // aapt resource value: 0x7f01002d public const int titleTextStyle = 2130772013; // aapt resource value: 0x7f010107 public const int toolbarId = 2130772231; // aapt resource value: 0x7f010085 public const int toolbarNavigationButtonStyle = 2130772101; // aapt resource value: 0x7f010084 public const int toolbarStyle = 2130772100; // aapt resource value: 0x7f0100dc public const int track = 2130772188; // aapt resource value: 0x7f010118 public const int useCompatPadding = 2130772248; // aapt resource value: 0x7f0100d7 public const int voiceIcon = 2130772183; // aapt resource value: 0x7f01004c public const int windowActionBar = 2130772044; // aapt resource value: 0x7f01004e public const int windowActionBarOverlay = 2130772046; // aapt resource value: 0x7f01004f public const int windowActionModeOverlay = 2130772047; // aapt resource value: 0x7f010053 public const int windowFixedHeightMajor = 2130772051; // aapt resource value: 0x7f010051 public const int windowFixedHeightMinor = 2130772049; // aapt resource value: 0x7f010050 public const int windowFixedWidthMajor = 2130772048; // aapt resource value: 0x7f010052 public const int windowFixedWidthMinor = 2130772050; // aapt resource value: 0x7f010054 public const int windowMinWidthMajor = 2130772052; // aapt resource value: 0x7f010055 public const int windowMinWidthMinor = 2130772053; // aapt resource value: 0x7f01004d public const int windowNoTitle = 2130772045; static Attribute() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Attribute() { } } public partial class Boolean { // aapt resource value: 0x7f0c0003 public const int abc_action_bar_embed_tabs = 2131492867; // aapt resource value: 0x7f0c0001 public const int abc_action_bar_embed_tabs_pre_jb = 2131492865; // aapt resource value: 0x7f0c0004 public const int abc_action_bar_expanded_action_views_exclusive = 2131492868; // aapt resource value: 0x7f0c0000 public const int abc_allow_stacked_button_bar = 2131492864; // aapt resource value: 0x7f0c0005 public const int abc_config_actionMenuItemAllCaps = 2131492869; // aapt resource value: 0x7f0c0002 public const int abc_config_allowActionMenuItemTextWithIcon = 2131492866; // aapt resource value: 0x7f0c0006 public const int abc_config_closeDialogWhenTouchOutside = 2131492870; // aapt resource value: 0x7f0c0007 public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131492871; static Boolean() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Boolean() { } } public partial class Color { // aapt resource value: 0x7f0b0048 public const int abc_background_cache_hint_selector_material_dark = 2131427400; // aapt resource value: 0x7f0b0049 public const int abc_background_cache_hint_selector_material_light = 2131427401; // aapt resource value: 0x7f0b004a public const int abc_color_highlight_material = 2131427402; // aapt resource value: 0x7f0b0004 public const int abc_input_method_navigation_guard = 2131427332; // aapt resource value: 0x7f0b004b public const int abc_primary_text_disable_only_material_dark = 2131427403; // aapt resource value: 0x7f0b004c public const int abc_primary_text_disable_only_material_light = 2131427404; // aapt resource value: 0x7f0b004d public const int abc_primary_text_material_dark = 2131427405; // aapt resource value: 0x7f0b004e public const int abc_primary_text_material_light = 2131427406; // aapt resource value: 0x7f0b004f public const int abc_search_url_text = 2131427407; // aapt resource value: 0x7f0b0005 public const int abc_search_url_text_normal = 2131427333; // aapt resource value: 0x7f0b0006 public const int abc_search_url_text_pressed = 2131427334; // aapt resource value: 0x7f0b0007 public const int abc_search_url_text_selected = 2131427335; // aapt resource value: 0x7f0b0050 public const int abc_secondary_text_material_dark = 2131427408; // aapt resource value: 0x7f0b0051 public const int abc_secondary_text_material_light = 2131427409; // aapt resource value: 0x7f0b0008 public const int accent_material_dark = 2131427336; // aapt resource value: 0x7f0b0009 public const int accent_material_light = 2131427337; // aapt resource value: 0x7f0b000a public const int background_floating_material_dark = 2131427338; // aapt resource value: 0x7f0b000b public const int background_floating_material_light = 2131427339; // aapt resource value: 0x7f0b000c public const int background_material_dark = 2131427340; // aapt resource value: 0x7f0b000d public const int background_material_light = 2131427341; // aapt resource value: 0x7f0b000e public const int bright_foreground_disabled_material_dark = 2131427342; // aapt resource value: 0x7f0b000f public const int bright_foreground_disabled_material_light = 2131427343; // aapt resource value: 0x7f0b0010 public const int bright_foreground_inverse_material_dark = 2131427344; // aapt resource value: 0x7f0b0011 public const int bright_foreground_inverse_material_light = 2131427345; // aapt resource value: 0x7f0b0012 public const int bright_foreground_material_dark = 2131427346; // aapt resource value: 0x7f0b0013 public const int bright_foreground_material_light = 2131427347; // aapt resource value: 0x7f0b0014 public const int button_material_dark = 2131427348; // aapt resource value: 0x7f0b0015 public const int button_material_light = 2131427349; // aapt resource value: 0x7f0b0000 public const int cardview_dark_background = 2131427328; // aapt resource value: 0x7f0b0001 public const int cardview_light_background = 2131427329; // aapt resource value: 0x7f0b0002 public const int cardview_shadow_end_color = 2131427330; // aapt resource value: 0x7f0b0003 public const int cardview_shadow_start_color = 2131427331; // aapt resource value: 0x7f0b003e public const int design_fab_shadow_end_color = 2131427390; // aapt resource value: 0x7f0b003f public const int design_fab_shadow_mid_color = 2131427391; // aapt resource value: 0x7f0b0040 public const int design_fab_shadow_start_color = 2131427392; // aapt resource value: 0x7f0b0041 public const int design_fab_stroke_end_inner_color = 2131427393; // aapt resource value: 0x7f0b0042 public const int design_fab_stroke_end_outer_color = 2131427394; // aapt resource value: 0x7f0b0043 public const int design_fab_stroke_top_inner_color = 2131427395; // aapt resource value: 0x7f0b0044 public const int design_fab_stroke_top_outer_color = 2131427396; // aapt resource value: 0x7f0b0045 public const int design_snackbar_background_color = 2131427397; // aapt resource value: 0x7f0b0046 public const int design_textinput_error_color_dark = 2131427398; // aapt resource value: 0x7f0b0047 public const int design_textinput_error_color_light = 2131427399; // aapt resource value: 0x7f0b0016 public const int dim_foreground_disabled_material_dark = 2131427350; // aapt resource value: 0x7f0b0017 public const int dim_foreground_disabled_material_light = 2131427351; // aapt resource value: 0x7f0b0018 public const int dim_foreground_material_dark = 2131427352; // aapt resource value: 0x7f0b0019 public const int dim_foreground_material_light = 2131427353; // aapt resource value: 0x7f0b001a public const int foreground_material_dark = 2131427354; // aapt resource value: 0x7f0b001b public const int foreground_material_light = 2131427355; // aapt resource value: 0x7f0b001c public const int highlighted_text_material_dark = 2131427356; // aapt resource value: 0x7f0b001d public const int highlighted_text_material_light = 2131427357; // aapt resource value: 0x7f0b001e public const int hint_foreground_material_dark = 2131427358; // aapt resource value: 0x7f0b001f public const int hint_foreground_material_light = 2131427359; // aapt resource value: 0x7f0b0020 public const int material_blue_grey_800 = 2131427360; // aapt resource value: 0x7f0b0021 public const int material_blue_grey_900 = 2131427361; // aapt resource value: 0x7f0b0022 public const int material_blue_grey_950 = 2131427362; // aapt resource value: 0x7f0b0023 public const int material_deep_teal_200 = 2131427363; // aapt resource value: 0x7f0b0024 public const int material_deep_teal_500 = 2131427364; // aapt resource value: 0x7f0b0025 public const int material_grey_100 = 2131427365; // aapt resource value: 0x7f0b0026 public const int material_grey_300 = 2131427366; // aapt resource value: 0x7f0b0027 public const int material_grey_50 = 2131427367; // aapt resource value: 0x7f0b0028 public const int material_grey_600 = 2131427368; // aapt resource value: 0x7f0b0029 public const int material_grey_800 = 2131427369; // aapt resource value: 0x7f0b002a public const int material_grey_850 = 2131427370; // aapt resource value: 0x7f0b002b public const int material_grey_900 = 2131427371; // aapt resource value: 0x7f0b002c public const int primary_dark_material_dark = 2131427372; // aapt resource value: 0x7f0b002d public const int primary_dark_material_light = 2131427373; // aapt resource value: 0x7f0b002e public const int primary_material_dark = 2131427374; // aapt resource value: 0x7f0b002f public const int primary_material_light = 2131427375; // aapt resource value: 0x7f0b0030 public const int primary_text_default_material_dark = 2131427376; // aapt resource value: 0x7f0b0031 public const int primary_text_default_material_light = 2131427377; // aapt resource value: 0x7f0b0032 public const int primary_text_disabled_material_dark = 2131427378; // aapt resource value: 0x7f0b0033 public const int primary_text_disabled_material_light = 2131427379; // aapt resource value: 0x7f0b0034 public const int ripple_material_dark = 2131427380; // aapt resource value: 0x7f0b0035 public const int ripple_material_light = 2131427381; // aapt resource value: 0x7f0b0036 public const int secondary_text_default_material_dark = 2131427382; // aapt resource value: 0x7f0b0037 public const int secondary_text_default_material_light = 2131427383; // aapt resource value: 0x7f0b0038 public const int secondary_text_disabled_material_dark = 2131427384; // aapt resource value: 0x7f0b0039 public const int secondary_text_disabled_material_light = 2131427385; // aapt resource value: 0x7f0b003a public const int switch_thumb_disabled_material_dark = 2131427386; // aapt resource value: 0x7f0b003b public const int switch_thumb_disabled_material_light = 2131427387; // aapt resource value: 0x7f0b0052 public const int switch_thumb_material_dark = 2131427410; // aapt resource value: 0x7f0b0053 public const int switch_thumb_material_light = 2131427411; // aapt resource value: 0x7f0b003c public const int switch_thumb_normal_material_dark = 2131427388; // aapt resource value: 0x7f0b003d public const int switch_thumb_normal_material_light = 2131427389; static Color() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Color() { } } public partial class Dimension { // aapt resource value: 0x7f060019 public const int abc_action_bar_content_inset_material = 2131099673; // aapt resource value: 0x7f06000d public const int abc_action_bar_default_height_material = 2131099661; // aapt resource value: 0x7f06001a public const int abc_action_bar_default_padding_end_material = 2131099674; // aapt resource value: 0x7f06001b public const int abc_action_bar_default_padding_start_material = 2131099675; // aapt resource value: 0x7f06001d public const int abc_action_bar_icon_vertical_padding_material = 2131099677; // aapt resource value: 0x7f06001e public const int abc_action_bar_overflow_padding_end_material = 2131099678; // aapt resource value: 0x7f06001f public const int abc_action_bar_overflow_padding_start_material = 2131099679; // aapt resource value: 0x7f06000e public const int abc_action_bar_progress_bar_size = 2131099662; // aapt resource value: 0x7f060020 public const int abc_action_bar_stacked_max_height = 2131099680; // aapt resource value: 0x7f060021 public const int abc_action_bar_stacked_tab_max_width = 2131099681; // aapt resource value: 0x7f060022 public const int abc_action_bar_subtitle_bottom_margin_material = 2131099682; // aapt resource value: 0x7f060023 public const int abc_action_bar_subtitle_top_margin_material = 2131099683; // aapt resource value: 0x7f060024 public const int abc_action_button_min_height_material = 2131099684; // aapt resource value: 0x7f060025 public const int abc_action_button_min_width_material = 2131099685; // aapt resource value: 0x7f060026 public const int abc_action_button_min_width_overflow_material = 2131099686; // aapt resource value: 0x7f06000c public const int abc_alert_dialog_button_bar_height = 2131099660; // aapt resource value: 0x7f060027 public const int abc_button_inset_horizontal_material = 2131099687; // aapt resource value: 0x7f060028 public const int abc_button_inset_vertical_material = 2131099688; // aapt resource value: 0x7f060029 public const int abc_button_padding_horizontal_material = 2131099689; // aapt resource value: 0x7f06002a public const int abc_button_padding_vertical_material = 2131099690; // aapt resource value: 0x7f060011 public const int abc_config_prefDialogWidth = 2131099665; // aapt resource value: 0x7f06002b public const int abc_control_corner_material = 2131099691; // aapt resource value: 0x7f06002c public const int abc_control_inset_material = 2131099692; // aapt resource value: 0x7f06002d public const int abc_control_padding_material = 2131099693; // aapt resource value: 0x7f060012 public const int abc_dialog_fixed_height_major = 2131099666; // aapt resource value: 0x7f060013 public const int abc_dialog_fixed_height_minor = 2131099667; // aapt resource value: 0x7f060014 public const int abc_dialog_fixed_width_major = 2131099668; // aapt resource value: 0x7f060015 public const int abc_dialog_fixed_width_minor = 2131099669; // aapt resource value: 0x7f06002e public const int abc_dialog_list_padding_vertical_material = 2131099694; // aapt resource value: 0x7f060016 public const int abc_dialog_min_width_major = 2131099670; // aapt resource value: 0x7f060017 public const int abc_dialog_min_width_minor = 2131099671; // aapt resource value: 0x7f06002f public const int abc_dialog_padding_material = 2131099695; // aapt resource value: 0x7f060030 public const int abc_dialog_padding_top_material = 2131099696; // aapt resource value: 0x7f060031 public const int abc_disabled_alpha_material_dark = 2131099697; // aapt resource value: 0x7f060032 public const int abc_disabled_alpha_material_light = 2131099698; // aapt resource value: 0x7f060033 public const int abc_dropdownitem_icon_width = 2131099699; // aapt resource value: 0x7f060034 public const int abc_dropdownitem_text_padding_left = 2131099700; // aapt resource value: 0x7f060035 public const int abc_dropdownitem_text_padding_right = 2131099701; // aapt resource value: 0x7f060036 public const int abc_edit_text_inset_bottom_material = 2131099702; // aapt resource value: 0x7f060037 public const int abc_edit_text_inset_horizontal_material = 2131099703; // aapt resource value: 0x7f060038 public const int abc_edit_text_inset_top_material = 2131099704; // aapt resource value: 0x7f060039 public const int abc_floating_window_z = 2131099705; // aapt resource value: 0x7f06003a public const int abc_list_item_padding_horizontal_material = 2131099706; // aapt resource value: 0x7f06003b public const int abc_panel_menu_list_width = 2131099707; // aapt resource value: 0x7f06003c public const int abc_search_view_preferred_width = 2131099708; // aapt resource value: 0x7f060018 public const int abc_search_view_text_min_width = 2131099672; // aapt resource value: 0x7f06003d public const int abc_seekbar_track_background_height_material = 2131099709; // aapt resource value: 0x7f06003e public const int abc_seekbar_track_progress_height_material = 2131099710; // aapt resource value: 0x7f06003f public const int abc_select_dialog_padding_start_material = 2131099711; // aapt resource value: 0x7f06001c public const int abc_switch_padding = 2131099676; // aapt resource value: 0x7f060040 public const int abc_text_size_body_1_material = 2131099712; // aapt resource value: 0x7f060041 public const int abc_text_size_body_2_material = 2131099713; // aapt resource value: 0x7f060042 public const int abc_text_size_button_material = 2131099714; // aapt resource value: 0x7f060043 public const int abc_text_size_caption_material = 2131099715; // aapt resource value: 0x7f060044 public const int abc_text_size_display_1_material = 2131099716; // aapt resource value: 0x7f060045 public const int abc_text_size_display_2_material = 2131099717; // aapt resource value: 0x7f060046 public const int abc_text_size_display_3_material = 2131099718; // aapt resource value: 0x7f060047 public const int abc_text_size_display_4_material = 2131099719; // aapt resource value: 0x7f060048 public const int abc_text_size_headline_material = 2131099720; // aapt resource value: 0x7f060049 public const int abc_text_size_large_material = 2131099721; // aapt resource value: 0x7f06004a public const int abc_text_size_medium_material = 2131099722; // aapt resource value: 0x7f06004b public const int abc_text_size_menu_material = 2131099723; // aapt resource value: 0x7f06004c public const int abc_text_size_small_material = 2131099724; // aapt resource value: 0x7f06004d public const int abc_text_size_subhead_material = 2131099725; // aapt resource value: 0x7f06000f public const int abc_text_size_subtitle_material_toolbar = 2131099663; // aapt resource value: 0x7f06004e public const int abc_text_size_title_material = 2131099726; // aapt resource value: 0x7f060010 public const int abc_text_size_title_material_toolbar = 2131099664; // aapt resource value: 0x7f060009 public const int cardview_compat_inset_shadow = 2131099657; // aapt resource value: 0x7f06000a public const int cardview_default_elevation = 2131099658; // aapt resource value: 0x7f06000b public const int cardview_default_radius = 2131099659; // aapt resource value: 0x7f06005f public const int design_appbar_elevation = 2131099743; // aapt resource value: 0x7f060060 public const int design_bottom_sheet_modal_elevation = 2131099744; // aapt resource value: 0x7f060061 public const int design_bottom_sheet_modal_peek_height = 2131099745; // aapt resource value: 0x7f060062 public const int design_fab_border_width = 2131099746; // aapt resource value: 0x7f060063 public const int design_fab_elevation = 2131099747; // aapt resource value: 0x7f060064 public const int design_fab_image_size = 2131099748; // aapt resource value: 0x7f060065 public const int design_fab_size_mini = 2131099749; // aapt resource value: 0x7f060066 public const int design_fab_size_normal = 2131099750; // aapt resource value: 0x7f060067 public const int design_fab_translation_z_pressed = 2131099751; // aapt resource value: 0x7f060068 public const int design_navigation_elevation = 2131099752; // aapt resource value: 0x7f060069 public const int design_navigation_icon_padding = 2131099753; // aapt resource value: 0x7f06006a public const int design_navigation_icon_size = 2131099754; // aapt resource value: 0x7f060057 public const int design_navigation_max_width = 2131099735; // aapt resource value: 0x7f06006b public const int design_navigation_padding_bottom = 2131099755; // aapt resource value: 0x7f06006c public const int design_navigation_separator_vertical_padding = 2131099756; // aapt resource value: 0x7f060058 public const int design_snackbar_action_inline_max_width = 2131099736; // aapt resource value: 0x7f060059 public const int design_snackbar_background_corner_radius = 2131099737; // aapt resource value: 0x7f06006d public const int design_snackbar_elevation = 2131099757; // aapt resource value: 0x7f06005a public const int design_snackbar_extra_spacing_horizontal = 2131099738; // aapt resource value: 0x7f06005b public const int design_snackbar_max_width = 2131099739; // aapt resource value: 0x7f06005c public const int design_snackbar_min_width = 2131099740; // aapt resource value: 0x7f06006e public const int design_snackbar_padding_horizontal = 2131099758; // aapt resource value: 0x7f06006f public const int design_snackbar_padding_vertical = 2131099759; // aapt resource value: 0x7f06005d public const int design_snackbar_padding_vertical_2lines = 2131099741; // aapt resource value: 0x7f060070 public const int design_snackbar_text_size = 2131099760; // aapt resource value: 0x7f060071 public const int design_tab_max_width = 2131099761; // aapt resource value: 0x7f06005e public const int design_tab_scrollable_min_width = 2131099742; // aapt resource value: 0x7f060072 public const int design_tab_text_size = 2131099762; // aapt resource value: 0x7f060073 public const int design_tab_text_size_2line = 2131099763; // aapt resource value: 0x7f06004f public const int disabled_alpha_material_dark = 2131099727; // aapt resource value: 0x7f060050 public const int disabled_alpha_material_light = 2131099728; // aapt resource value: 0x7f060051 public const int highlight_alpha_material_colored = 2131099729; // aapt resource value: 0x7f060052 public const int highlight_alpha_material_dark = 2131099730; // aapt resource value: 0x7f060053 public const int highlight_alpha_material_light = 2131099731; // aapt resource value: 0x7f060000 public const int item_touch_helper_max_drag_scroll_per_frame = 2131099648; // aapt resource value: 0x7f060001 public const int item_touch_helper_swipe_escape_max_velocity = 2131099649; // aapt resource value: 0x7f060002 public const int item_touch_helper_swipe_escape_velocity = 2131099650; // aapt resource value: 0x7f060003 public const int mr_controller_volume_group_list_item_height = 2131099651; // aapt resource value: 0x7f060004 public const int mr_controller_volume_group_list_item_icon_size = 2131099652; // aapt resource value: 0x7f060005 public const int mr_controller_volume_group_list_max_height = 2131099653; // aapt resource value: 0x7f060008 public const int mr_controller_volume_group_list_padding_top = 2131099656; // aapt resource value: 0x7f060006 public const int mr_dialog_fixed_width_major = 2131099654; // aapt resource value: 0x7f060007 public const int mr_dialog_fixed_width_minor = 2131099655; // aapt resource value: 0x7f060054 public const int notification_large_icon_height = 2131099732; // aapt resource value: 0x7f060055 public const int notification_large_icon_width = 2131099733; // aapt resource value: 0x7f060056 public const int notification_subtext_size = 2131099734; static Dimension() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Dimension() { } } public partial class Drawable { // aapt resource value: 0x7f020000 public const int abc_ab_share_pack_mtrl_alpha = 2130837504; // aapt resource value: 0x7f020001 public const int abc_action_bar_item_background_material = 2130837505; // aapt resource value: 0x7f020002 public const int abc_btn_borderless_material = 2130837506; // aapt resource value: 0x7f020003 public const int abc_btn_check_material = 2130837507; // aapt resource value: 0x7f020004 public const int abc_btn_check_to_on_mtrl_000 = 2130837508; // aapt resource value: 0x7f020005 public const int abc_btn_check_to_on_mtrl_015 = 2130837509; // aapt resource value: 0x7f020006 public const int abc_btn_colored_material = 2130837510; // aapt resource value: 0x7f020007 public const int abc_btn_default_mtrl_shape = 2130837511; // aapt resource value: 0x7f020008 public const int abc_btn_radio_material = 2130837512; // aapt resource value: 0x7f020009 public const int abc_btn_radio_to_on_mtrl_000 = 2130837513; // aapt resource value: 0x7f02000a public const int abc_btn_radio_to_on_mtrl_015 = 2130837514; // aapt resource value: 0x7f02000b public const int abc_btn_rating_star_off_mtrl_alpha = 2130837515; // aapt resource value: 0x7f02000c public const int abc_btn_rating_star_on_mtrl_alpha = 2130837516; // aapt resource value: 0x7f02000d public const int abc_btn_switch_to_on_mtrl_00001 = 2130837517; // aapt resource value: 0x7f02000e public const int abc_btn_switch_to_on_mtrl_00012 = 2130837518; // aapt resource value: 0x7f02000f public const int abc_cab_background_internal_bg = 2130837519; // aapt resource value: 0x7f020010 public const int abc_cab_background_top_material = 2130837520; // aapt resource value: 0x7f020011 public const int abc_cab_background_top_mtrl_alpha = 2130837521; // aapt resource value: 0x7f020012 public const int abc_control_background_material = 2130837522; // aapt resource value: 0x7f020013 public const int abc_dialog_material_background_dark = 2130837523; // aapt resource value: 0x7f020014 public const int abc_dialog_material_background_light = 2130837524; // aapt resource value: 0x7f020015 public const int abc_edit_text_material = 2130837525; // aapt resource value: 0x7f020016 public const int abc_ic_ab_back_mtrl_am_alpha = 2130837526; // aapt resource value: 0x7f020017 public const int abc_ic_clear_mtrl_alpha = 2130837527; // aapt resource value: 0x7f020018 public const int abc_ic_commit_search_api_mtrl_alpha = 2130837528; // aapt resource value: 0x7f020019 public const int abc_ic_go_search_api_mtrl_alpha = 2130837529; // aapt resource value: 0x7f02001a public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837530; // aapt resource value: 0x7f02001b public const int abc_ic_menu_cut_mtrl_alpha = 2130837531; // aapt resource value: 0x7f02001c public const int abc_ic_menu_moreoverflow_mtrl_alpha = 2130837532; // aapt resource value: 0x7f02001d public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837533; // aapt resource value: 0x7f02001e public const int abc_ic_menu_selectall_mtrl_alpha = 2130837534; // aapt resource value: 0x7f02001f public const int abc_ic_menu_share_mtrl_alpha = 2130837535; // aapt resource value: 0x7f020020 public const int abc_ic_search_api_mtrl_alpha = 2130837536; // aapt resource value: 0x7f020021 public const int abc_ic_star_black_16dp = 2130837537; // aapt resource value: 0x7f020022 public const int abc_ic_star_black_36dp = 2130837538; // aapt resource value: 0x7f020023 public const int abc_ic_star_half_black_16dp = 2130837539; // aapt resource value: 0x7f020024 public const int abc_ic_star_half_black_36dp = 2130837540; // aapt resource value: 0x7f020025 public const int abc_ic_voice_search_api_mtrl_alpha = 2130837541; // aapt resource value: 0x7f020026 public const int abc_item_background_holo_dark = 2130837542; // aapt resource value: 0x7f020027 public const int abc_item_background_holo_light = 2130837543; // aapt resource value: 0x7f020028 public const int abc_list_divider_mtrl_alpha = 2130837544; // aapt resource value: 0x7f020029 public const int abc_list_focused_holo = 2130837545; // aapt resource value: 0x7f02002a public const int abc_list_longpressed_holo = 2130837546; // aapt resource value: 0x7f02002b public const int abc_list_pressed_holo_dark = 2130837547; // aapt resource value: 0x7f02002c public const int abc_list_pressed_holo_light = 2130837548; // aapt resource value: 0x7f02002d public const int abc_list_selector_background_transition_holo_dark = 2130837549; // aapt resource value: 0x7f02002e public const int abc_list_selector_background_transition_holo_light = 2130837550; // aapt resource value: 0x7f02002f public const int abc_list_selector_disabled_holo_dark = 2130837551; // aapt resource value: 0x7f020030 public const int abc_list_selector_disabled_holo_light = 2130837552; // aapt resource value: 0x7f020031 public const int abc_list_selector_holo_dark = 2130837553; // aapt resource value: 0x7f020032 public const int abc_list_selector_holo_light = 2130837554; // aapt resource value: 0x7f020033 public const int abc_menu_hardkey_panel_mtrl_mult = 2130837555; // aapt resource value: 0x7f020034 public const int abc_popup_background_mtrl_mult = 2130837556; // aapt resource value: 0x7f020035 public const int abc_ratingbar_full_material = 2130837557; // aapt resource value: 0x7f020036 public const int abc_ratingbar_indicator_material = 2130837558; // aapt resource value: 0x7f020037 public const int abc_ratingbar_small_material = 2130837559; // aapt resource value: 0x7f020038 public const int abc_scrubber_control_off_mtrl_alpha = 2130837560; // aapt resource value: 0x7f020039 public const int abc_scrubber_control_to_pressed_mtrl_000 = 2130837561; // aapt resource value: 0x7f02003a public const int abc_scrubber_control_to_pressed_mtrl_005 = 2130837562; // aapt resource value: 0x7f02003b public const int abc_scrubber_primary_mtrl_alpha = 2130837563; // aapt resource value: 0x7f02003c public const int abc_scrubber_track_mtrl_alpha = 2130837564; // aapt resource value: 0x7f02003d public const int abc_seekbar_thumb_material = 2130837565; // aapt resource value: 0x7f02003e public const int abc_seekbar_track_material = 2130837566; // aapt resource value: 0x7f02003f public const int abc_spinner_mtrl_am_alpha = 2130837567; // aapt resource value: 0x7f020040 public const int abc_spinner_textfield_background_material = 2130837568; // aapt resource value: 0x7f020041 public const int abc_switch_thumb_material = 2130837569; // aapt resource value: 0x7f020042 public const int abc_switch_track_mtrl_alpha = 2130837570; // aapt resource value: 0x7f020043 public const int abc_tab_indicator_material = 2130837571; // aapt resource value: 0x7f020044 public const int abc_tab_indicator_mtrl_alpha = 2130837572; // aapt resource value: 0x7f020045 public const int abc_text_cursor_material = 2130837573; // aapt resource value: 0x7f020046 public const int abc_textfield_activated_mtrl_alpha = 2130837574; // aapt resource value: 0x7f020047 public const int abc_textfield_default_mtrl_alpha = 2130837575; // aapt resource value: 0x7f020048 public const int abc_textfield_search_activated_mtrl_alpha = 2130837576; // aapt resource value: 0x7f020049 public const int abc_textfield_search_default_mtrl_alpha = 2130837577; // aapt resource value: 0x7f02004a public const int abc_textfield_search_material = 2130837578; // aapt resource value: 0x7f02004b public const int design_fab_background = 2130837579; // aapt resource value: 0x7f02004c public const int design_snackbar_background = 2130837580; // aapt resource value: 0x7f02004d public const int ic_audiotrack = 2130837581; // aapt resource value: 0x7f02004e public const int ic_audiotrack_light = 2130837582; // aapt resource value: 0x7f02004f public const int ic_bluetooth_grey = 2130837583; // aapt resource value: 0x7f020050 public const int ic_bluetooth_white = 2130837584; // aapt resource value: 0x7f020051 public const int ic_cast_dark = 2130837585; // aapt resource value: 0x7f020052 public const int ic_cast_disabled_light = 2130837586; // aapt resource value: 0x7f020053 public const int ic_cast_grey = 2130837587; // aapt resource value: 0x7f020054 public const int ic_cast_light = 2130837588; // aapt resource value: 0x7f020055 public const int ic_cast_off_light = 2130837589; // aapt resource value: 0x7f020056 public const int ic_cast_on_0_light = 2130837590; // aapt resource value: 0x7f020057 public const int ic_cast_on_1_light = 2130837591; // aapt resource value: 0x7f020058 public const int ic_cast_on_2_light = 2130837592; // aapt resource value: 0x7f020059 public const int ic_cast_on_light = 2130837593; // aapt resource value: 0x7f02005a public const int ic_cast_white = 2130837594; // aapt resource value: 0x7f02005b public const int ic_close_dark = 2130837595; // aapt resource value: 0x7f02005c public const int ic_close_light = 2130837596; // aapt resource value: 0x7f02005d public const int ic_collapse = 2130837597; // aapt resource value: 0x7f02005e public const int ic_collapse_00000 = 2130837598; // aapt resource value: 0x7f02005f public const int ic_collapse_00001 = 2130837599; // aapt resource value: 0x7f020060 public const int ic_collapse_00002 = 2130837600; // aapt resource value: 0x7f020061 public const int ic_collapse_00003 = 2130837601; // aapt resource value: 0x7f020062 public const int ic_collapse_00004 = 2130837602; // aapt resource value: 0x7f020063 public const int ic_collapse_00005 = 2130837603; // aapt resource value: 0x7f020064 public const int ic_collapse_00006 = 2130837604; // aapt resource value: 0x7f020065 public const int ic_collapse_00007 = 2130837605; // aapt resource value: 0x7f020066 public const int ic_collapse_00008 = 2130837606; // aapt resource value: 0x7f020067 public const int ic_collapse_00009 = 2130837607; // aapt resource value: 0x7f020068 public const int ic_collapse_00010 = 2130837608; // aapt resource value: 0x7f020069 public const int ic_collapse_00011 = 2130837609; // aapt resource value: 0x7f02006a public const int ic_collapse_00012 = 2130837610; // aapt resource value: 0x7f02006b public const int ic_collapse_00013 = 2130837611; // aapt resource value: 0x7f02006c public const int ic_collapse_00014 = 2130837612; // aapt resource value: 0x7f02006d public const int ic_collapse_00015 = 2130837613; // aapt resource value: 0x7f02006e public const int ic_expand = 2130837614; // aapt resource value: 0x7f02006f public const int ic_expand_00000 = 2130837615; // aapt resource value: 0x7f020070 public const int ic_expand_00001 = 2130837616; // aapt resource value: 0x7f020071 public const int ic_expand_00002 = 2130837617; // aapt resource value: 0x7f020072 public const int ic_expand_00003 = 2130837618; // aapt resource value: 0x7f020073 public const int ic_expand_00004 = 2130837619; // aapt resource value: 0x7f020074 public const int ic_expand_00005 = 2130837620; // aapt resource value: 0x7f020075 public const int ic_expand_00006 = 2130837621; // aapt resource value: 0x7f020076 public const int ic_expand_00007 = 2130837622; // aapt resource value: 0x7f020077 public const int ic_expand_00008 = 2130837623; // aapt resource value: 0x7f020078 public const int ic_expand_00009 = 2130837624; // aapt resource value: 0x7f020079 public const int ic_expand_00010 = 2130837625; // aapt resource value: 0x7f02007a public const int ic_expand_00011 = 2130837626; // aapt resource value: 0x7f02007b public const int ic_expand_00012 = 2130837627; // aapt resource value: 0x7f02007c public const int ic_expand_00013 = 2130837628; // aapt resource value: 0x7f02007d public const int ic_expand_00014 = 2130837629; // aapt resource value: 0x7f02007e public const int ic_expand_00015 = 2130837630; // aapt resource value: 0x7f02007f public const int ic_media_pause = 2130837631; // aapt resource value: 0x7f020080 public const int ic_media_play = 2130837632; // aapt resource value: 0x7f020081 public const int ic_media_route_disabled_mono_dark = 2130837633; // aapt resource value: 0x7f020082 public const int ic_media_route_off_mono_dark = 2130837634; // aapt resource value: 0x7f020083 public const int ic_media_route_on_0_mono_dark = 2130837635; // aapt resource value: 0x7f020084 public const int ic_media_route_on_1_mono_dark = 2130837636; // aapt resource value: 0x7f020085 public const int ic_media_route_on_2_mono_dark = 2130837637; // aapt resource value: 0x7f020086 public const int ic_media_route_on_mono_dark = 2130837638; // aapt resource value: 0x7f020087 public const int ic_pause_dark = 2130837639; // aapt resource value: 0x7f020088 public const int ic_pause_light = 2130837640; // aapt resource value: 0x7f020089 public const int ic_play_dark = 2130837641; // aapt resource value: 0x7f02008a public const int ic_play_light = 2130837642; // aapt resource value: 0x7f02008b public const int ic_speaker_dark = 2130837643; // aapt resource value: 0x7f02008c public const int ic_speaker_group_dark = 2130837644; // aapt resource value: 0x7f02008d public const int ic_speaker_group_light = 2130837645; // aapt resource value: 0x7f02008e public const int ic_speaker_light = 2130837646; // aapt resource value: 0x7f02008f public const int ic_tv_dark = 2130837647; // aapt resource value: 0x7f020090 public const int ic_tv_light = 2130837648; // aapt resource value: 0x7f020091 public const int icon = 2130837649; // aapt resource value: 0x7f020092 public const int mr_dialog_material_background_dark = 2130837650; // aapt resource value: 0x7f020093 public const int mr_dialog_material_background_light = 2130837651; // aapt resource value: 0x7f020094 public const int mr_ic_audiotrack_light = 2130837652; // aapt resource value: 0x7f020095 public const int mr_ic_cast_dark = 2130837653; // aapt resource value: 0x7f020096 public const int mr_ic_cast_light = 2130837654; // aapt resource value: 0x7f020097 public const int mr_ic_close_dark = 2130837655; // aapt resource value: 0x7f020098 public const int mr_ic_close_light = 2130837656; // aapt resource value: 0x7f020099 public const int mr_ic_media_route_connecting_mono_dark = 2130837657; // aapt resource value: 0x7f02009a public const int mr_ic_media_route_connecting_mono_light = 2130837658; // aapt resource value: 0x7f02009b public const int mr_ic_media_route_mono_dark = 2130837659; // aapt resource value: 0x7f02009c public const int mr_ic_media_route_mono_light = 2130837660; // aapt resource value: 0x7f02009d public const int mr_ic_pause_dark = 2130837661; // aapt resource value: 0x7f02009e public const int mr_ic_pause_light = 2130837662; // aapt resource value: 0x7f02009f public const int mr_ic_play_dark = 2130837663; // aapt resource value: 0x7f0200a0 public const int mr_ic_play_light = 2130837664; // aapt resource value: 0x7f0200a1 public const int notification_template_icon_bg = 2130837665; static Drawable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Drawable() { } } public partial class Id { // aapt resource value: 0x7f07008b public const int action0 = 2131165323; // aapt resource value: 0x7f07005a public const int action_bar = 2131165274; // aapt resource value: 0x7f070001 public const int action_bar_activity_content = 2131165185; // aapt resource value: 0x7f070059 public const int action_bar_container = 2131165273; // aapt resource value: 0x7f070055 public const int action_bar_root = 2131165269; // aapt resource value: 0x7f070002 public const int action_bar_spinner = 2131165186; // aapt resource value: 0x7f07003b public const int action_bar_subtitle = 2131165243; // aapt resource value: 0x7f07003a public const int action_bar_title = 2131165242; // aapt resource value: 0x7f07005b public const int action_context_bar = 2131165275; // aapt resource value: 0x7f07008f public const int action_divider = 2131165327; // aapt resource value: 0x7f070003 public const int action_menu_divider = 2131165187; // aapt resource value: 0x7f070004 public const int action_menu_presenter = 2131165188; // aapt resource value: 0x7f070057 public const int action_mode_bar = 2131165271; // aapt resource value: 0x7f070056 public const int action_mode_bar_stub = 2131165270; // aapt resource value: 0x7f07003c public const int action_mode_close_button = 2131165244; // aapt resource value: 0x7f07003d public const int activity_chooser_view_content = 2131165245; // aapt resource value: 0x7f070049 public const int alertTitle = 2131165257; // aapt resource value: 0x7f07001e public const int always = 2131165214; // aapt resource value: 0x7f07001b public const int beginning = 2131165211; // aapt resource value: 0x7f07002a public const int bottom = 2131165226; // aapt resource value: 0x7f070044 public const int buttonPanel = 2131165252; // aapt resource value: 0x7f07008c public const int cancel_action = 2131165324; // aapt resource value: 0x7f07002b public const int center = 2131165227; // aapt resource value: 0x7f07002c public const int center_horizontal = 2131165228; // aapt resource value: 0x7f07002d public const int center_vertical = 2131165229; // aapt resource value: 0x7f070052 public const int checkbox = 2131165266; // aapt resource value: 0x7f070092 public const int chronometer = 2131165330; // aapt resource value: 0x7f070033 public const int clip_horizontal = 2131165235; // aapt resource value: 0x7f070034 public const int clip_vertical = 2131165236; // aapt resource value: 0x7f07001f public const int collapseActionView = 2131165215; // aapt resource value: 0x7f07004a public const int contentPanel = 2131165258; // aapt resource value: 0x7f070050 public const int custom = 2131165264; // aapt resource value: 0x7f07004f public const int customPanel = 2131165263; // aapt resource value: 0x7f070058 public const int decor_content_parent = 2131165272; // aapt resource value: 0x7f070040 public const int default_activity_button = 2131165248; // aapt resource value: 0x7f07006a public const int design_bottom_sheet = 2131165290; // aapt resource value: 0x7f070071 public const int design_menu_item_action_area = 2131165297; // aapt resource value: 0x7f070070 public const int design_menu_item_action_area_stub = 2131165296; // aapt resource value: 0x7f07006f public const int design_menu_item_text = 2131165295; // aapt resource value: 0x7f07006e public const int design_navigation_view = 2131165294; // aapt resource value: 0x7f07000e public const int disableHome = 2131165198; // aapt resource value: 0x7f07005c public const int edit_query = 2131165276; // aapt resource value: 0x7f07001c public const int end = 2131165212; // aapt resource value: 0x7f070097 public const int end_padder = 2131165335; // aapt resource value: 0x7f070023 public const int enterAlways = 2131165219; // aapt resource value: 0x7f070024 public const int enterAlwaysCollapsed = 2131165220; // aapt resource value: 0x7f070025 public const int exitUntilCollapsed = 2131165221; // aapt resource value: 0x7f07003e public const int expand_activities_button = 2131165246; // aapt resource value: 0x7f070051 public const int expanded_menu = 2131165265; // aapt resource value: 0x7f070035 public const int fill = 2131165237; // aapt resource value: 0x7f070036 public const int fill_horizontal = 2131165238; // aapt resource value: 0x7f07002e public const int fill_vertical = 2131165230; // aapt resource value: 0x7f070038 public const int @fixed = 2131165240; // aapt resource value: 0x7f070005 public const int home = 2131165189; // aapt resource value: 0x7f07000f public const int homeAsUp = 2131165199; // aapt resource value: 0x7f070042 public const int icon = 2131165250; // aapt resource value: 0x7f070020 public const int ifRoom = 2131165216; // aapt resource value: 0x7f07003f public const int image = 2131165247; // aapt resource value: 0x7f070096 public const int info = 2131165334; // aapt resource value: 0x7f070000 public const int item_touch_helper_previous_elevation = 2131165184; // aapt resource value: 0x7f07002f public const int left = 2131165231; // aapt resource value: 0x7f070090 public const int line1 = 2131165328; // aapt resource value: 0x7f070094 public const int line3 = 2131165332; // aapt resource value: 0x7f07000b public const int listMode = 2131165195; // aapt resource value: 0x7f070041 public const int list_item = 2131165249; // aapt resource value: 0x7f07008e public const int media_actions = 2131165326; // aapt resource value: 0x7f07001d public const int middle = 2131165213; // aapt resource value: 0x7f070037 public const int mini = 2131165239; // aapt resource value: 0x7f07007d public const int mr_art = 2131165309; // aapt resource value: 0x7f070072 public const int mr_chooser_list = 2131165298; // aapt resource value: 0x7f070075 public const int mr_chooser_route_desc = 2131165301; // aapt resource value: 0x7f070073 public const int mr_chooser_route_icon = 2131165299; // aapt resource value: 0x7f070074 public const int mr_chooser_route_name = 2131165300; // aapt resource value: 0x7f07007a public const int mr_close = 2131165306; // aapt resource value: 0x7f070080 public const int mr_control_divider = 2131165312; // aapt resource value: 0x7f070086 public const int mr_control_play_pause = 2131165318; // aapt resource value: 0x7f070089 public const int mr_control_subtitle = 2131165321; // aapt resource value: 0x7f070088 public const int mr_control_title = 2131165320; // aapt resource value: 0x7f070087 public const int mr_control_title_container = 2131165319; // aapt resource value: 0x7f07007b public const int mr_custom_control = 2131165307; // aapt resource value: 0x7f07007c public const int mr_default_control = 2131165308; // aapt resource value: 0x7f070077 public const int mr_dialog_area = 2131165303; // aapt resource value: 0x7f070076 public const int mr_expandable_area = 2131165302; // aapt resource value: 0x7f07008a public const int mr_group_expand_collapse = 2131165322; // aapt resource value: 0x7f07007e public const int mr_media_main_control = 2131165310; // aapt resource value: 0x7f070079 public const int mr_name = 2131165305; // aapt resource value: 0x7f07007f public const int mr_playback_control = 2131165311; // aapt resource value: 0x7f070078 public const int mr_title_bar = 2131165304; // aapt resource value: 0x7f070081 public const int mr_volume_control = 2131165313; // aapt resource value: 0x7f070082 public const int mr_volume_group_list = 2131165314; // aapt resource value: 0x7f070084 public const int mr_volume_item_icon = 2131165316; // aapt resource value: 0x7f070085 public const int mr_volume_slider = 2131165317; // aapt resource value: 0x7f070016 public const int multiply = 2131165206; // aapt resource value: 0x7f07006d public const int navigation_header_container = 2131165293; // aapt resource value: 0x7f070021 public const int never = 2131165217; // aapt resource value: 0x7f070010 public const int none = 2131165200; // aapt resource value: 0x7f07000c public const int normal = 2131165196; // aapt resource value: 0x7f070028 public const int parallax = 2131165224; // aapt resource value: 0x7f070046 public const int parentPanel = 2131165254; // aapt resource value: 0x7f070029 public const int pin = 2131165225; // aapt resource value: 0x7f070006 public const int progress_circular = 2131165190; // aapt resource value: 0x7f070007 public const int progress_horizontal = 2131165191; // aapt resource value: 0x7f070054 public const int radio = 2131165268; // aapt resource value: 0x7f070030 public const int right = 2131165232; // aapt resource value: 0x7f070017 public const int screen = 2131165207; // aapt resource value: 0x7f070026 public const int scroll = 2131165222; // aapt resource value: 0x7f07004e public const int scrollIndicatorDown = 2131165262; // aapt resource value: 0x7f07004b public const int scrollIndicatorUp = 2131165259; // aapt resource value: 0x7f07004c public const int scrollView = 2131165260; // aapt resource value: 0x7f070039 public const int scrollable = 2131165241; // aapt resource value: 0x7f07005e public const int search_badge = 2131165278; // aapt resource value: 0x7f07005d public const int search_bar = 2131165277; // aapt resource value: 0x7f07005f public const int search_button = 2131165279; // aapt resource value: 0x7f070064 public const int search_close_btn = 2131165284; // aapt resource value: 0x7f070060 public const int search_edit_frame = 2131165280; // aapt resource value: 0x7f070066 public const int search_go_btn = 2131165286; // aapt resource value: 0x7f070061 public const int search_mag_icon = 2131165281; // aapt resource value: 0x7f070062 public const int search_plate = 2131165282; // aapt resource value: 0x7f070063 public const int search_src_text = 2131165283; // aapt resource value: 0x7f070067 public const int search_voice_btn = 2131165287; // aapt resource value: 0x7f070068 public const int select_dialog_listview = 2131165288; // aapt resource value: 0x7f070053 public const int shortcut = 2131165267; // aapt resource value: 0x7f070011 public const int showCustom = 2131165201; // aapt resource value: 0x7f070012 public const int showHome = 2131165202; // aapt resource value: 0x7f070013 public const int showTitle = 2131165203; // aapt resource value: 0x7f070098 public const int sliding_tabs = 2131165336; // aapt resource value: 0x7f07006c public const int snackbar_action = 2131165292; // aapt resource value: 0x7f07006b public const int snackbar_text = 2131165291; // aapt resource value: 0x7f070027 public const int snap = 2131165223; // aapt resource value: 0x7f070045 public const int spacer = 2131165253; // aapt resource value: 0x7f070008 public const int split_action_bar = 2131165192; // aapt resource value: 0x7f070018 public const int src_atop = 2131165208; // aapt resource value: 0x7f070019 public const int src_in = 2131165209; // aapt resource value: 0x7f07001a public const int src_over = 2131165210; // aapt resource value: 0x7f070031 public const int start = 2131165233; // aapt resource value: 0x7f07008d public const int status_bar_latest_event_content = 2131165325; // aapt resource value: 0x7f070065 public const int submit_area = 2131165285; // aapt resource value: 0x7f07000d public const int tabMode = 2131165197; // aapt resource value: 0x7f070095 public const int text = 2131165333; // aapt resource value: 0x7f070093 public const int text2 = 2131165331; // aapt resource value: 0x7f07004d public const int textSpacerNoButtons = 2131165261; // aapt resource value: 0x7f070091 public const int time = 2131165329; // aapt resource value: 0x7f070043 public const int title = 2131165251; // aapt resource value: 0x7f070048 public const int title_template = 2131165256; // aapt resource value: 0x7f070099 public const int toolbar = 2131165337; // aapt resource value: 0x7f070032 public const int top = 2131165234; // aapt resource value: 0x7f070047 public const int topPanel = 2131165255; // aapt resource value: 0x7f070069 public const int touch_outside = 2131165289; // aapt resource value: 0x7f070009 public const int up = 2131165193; // aapt resource value: 0x7f070014 public const int useLogo = 2131165204; // aapt resource value: 0x7f07000a public const int view_offset_helper = 2131165194; // aapt resource value: 0x7f070083 public const int volume_item_container = 2131165315; // aapt resource value: 0x7f070022 public const int withText = 2131165218; // aapt resource value: 0x7f070015 public const int wrap_content = 2131165205; static Id() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Id() { } } public partial class Integer { // aapt resource value: 0x7f090004 public const int abc_config_activityDefaultDur = 2131296260; // aapt resource value: 0x7f090005 public const int abc_config_activityShortDur = 2131296261; // aapt resource value: 0x7f090003 public const int abc_max_action_buttons = 2131296259; // aapt resource value: 0x7f090009 public const int bottom_sheet_slide_duration = 2131296265; // aapt resource value: 0x7f090006 public const int cancel_button_image_alpha = 2131296262; // aapt resource value: 0x7f090008 public const int design_snackbar_text_max_lines = 2131296264; // aapt resource value: 0x7f090000 public const int mr_controller_volume_group_list_animation_duration_ms = 2131296256; // aapt resource value: 0x7f090001 public const int mr_controller_volume_group_list_fade_in_duration_ms = 2131296257; // aapt resource value: 0x7f090002 public const int mr_controller_volume_group_list_fade_out_duration_ms = 2131296258; // aapt resource value: 0x7f090007 public const int status_bar_notification_info_maxnum = 2131296263; static Integer() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Integer() { } } public partial class Interpolator { // aapt resource value: 0x7f050000 public const int mr_fast_out_slow_in = 2131034112; // aapt resource value: 0x7f050001 public const int mr_linear_out_slow_in = 2131034113; static Interpolator() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Interpolator() { } } public partial class Layout { // aapt resource value: 0x7f030000 public const int abc_action_bar_title_item = 2130903040; // aapt resource value: 0x7f030001 public const int abc_action_bar_up_container = 2130903041; // aapt resource value: 0x7f030002 public const int abc_action_bar_view_list_nav_layout = 2130903042; // aapt resource value: 0x7f030003 public const int abc_action_menu_item_layout = 2130903043; // aapt resource value: 0x7f030004 public const int abc_action_menu_layout = 2130903044; // aapt resource value: 0x7f030005 public const int abc_action_mode_bar = 2130903045; // aapt resource value: 0x7f030006 public const int abc_action_mode_close_item_material = 2130903046; // aapt resource value: 0x7f030007 public const int abc_activity_chooser_view = 2130903047; // aapt resource value: 0x7f030008 public const int abc_activity_chooser_view_list_item = 2130903048; // aapt resource value: 0x7f030009 public const int abc_alert_dialog_button_bar_material = 2130903049; // aapt resource value: 0x7f03000a public const int abc_alert_dialog_material = 2130903050; // aapt resource value: 0x7f03000b public const int abc_dialog_title_material = 2130903051; // aapt resource value: 0x7f03000c public const int abc_expanded_menu_layout = 2130903052; // aapt resource value: 0x7f03000d public const int abc_list_menu_item_checkbox = 2130903053; // aapt resource value: 0x7f03000e public const int abc_list_menu_item_icon = 2130903054; // aapt resource value: 0x7f03000f public const int abc_list_menu_item_layout = 2130903055; // aapt resource value: 0x7f030010 public const int abc_list_menu_item_radio = 2130903056; // aapt resource value: 0x7f030011 public const int abc_popup_menu_item_layout = 2130903057; // aapt resource value: 0x7f030012 public const int abc_screen_content_include = 2130903058; // aapt resource value: 0x7f030013 public const int abc_screen_simple = 2130903059; // aapt resource value: 0x7f030014 public const int abc_screen_simple_overlay_action_mode = 2130903060; // aapt resource value: 0x7f030015 public const int abc_screen_toolbar = 2130903061; // aapt resource value: 0x7f030016 public const int abc_search_dropdown_item_icons_2line = 2130903062; // aapt resource value: 0x7f030017 public const int abc_search_view = 2130903063; // aapt resource value: 0x7f030018 public const int abc_select_dialog_material = 2130903064; // aapt resource value: 0x7f030019 public const int design_bottom_sheet_dialog = 2130903065; // aapt resource value: 0x7f03001a public const int design_layout_snackbar = 2130903066; // aapt resource value: 0x7f03001b public const int design_layout_snackbar_include = 2130903067; // aapt resource value: 0x7f03001c public const int design_layout_tab_icon = 2130903068; // aapt resource value: 0x7f03001d public const int design_layout_tab_text = 2130903069; // aapt resource value: 0x7f03001e public const int design_menu_item_action_area = 2130903070; // aapt resource value: 0x7f03001f public const int design_navigation_item = 2130903071; // aapt resource value: 0x7f030020 public const int design_navigation_item_header = 2130903072; // aapt resource value: 0x7f030021 public const int design_navigation_item_separator = 2130903073; // aapt resource value: 0x7f030022 public const int design_navigation_item_subheader = 2130903074; // aapt resource value: 0x7f030023 public const int design_navigation_menu = 2130903075; // aapt resource value: 0x7f030024 public const int design_navigation_menu_item = 2130903076; // aapt resource value: 0x7f030025 public const int mr_chooser_dialog = 2130903077; // aapt resource value: 0x7f030026 public const int mr_chooser_list_item = 2130903078; // aapt resource value: 0x7f030027 public const int mr_controller_material_dialog_b = 2130903079; // aapt resource value: 0x7f030028 public const int mr_controller_volume_item = 2130903080; // aapt resource value: 0x7f030029 public const int mr_playback_control = 2130903081; // aapt resource value: 0x7f03002a public const int mr_volume_control = 2130903082; // aapt resource value: 0x7f03002b public const int notification_media_action = 2130903083; // aapt resource value: 0x7f03002c public const int notification_media_cancel_action = 2130903084; // aapt resource value: 0x7f03002d public const int notification_template_big_media = 2130903085; // aapt resource value: 0x7f03002e public const int notification_template_big_media_narrow = 2130903086; // aapt resource value: 0x7f03002f public const int notification_template_lines = 2130903087; // aapt resource value: 0x7f030030 public const int notification_template_media = 2130903088; // aapt resource value: 0x7f030031 public const int notification_template_part_chronometer = 2130903089; // aapt resource value: 0x7f030032 public const int notification_template_part_time = 2130903090; // aapt resource value: 0x7f030033 public const int select_dialog_item_material = 2130903091; // aapt resource value: 0x7f030034 public const int select_dialog_multichoice_material = 2130903092; // aapt resource value: 0x7f030035 public const int select_dialog_singlechoice_material = 2130903093; // aapt resource value: 0x7f030036 public const int support_simple_spinner_dropdown_item = 2130903094; // aapt resource value: 0x7f030037 public const int Tabbar = 2130903095; // aapt resource value: 0x7f030038 public const int Toolbar = 2130903096; static Layout() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Layout() { } } public partial class String { // aapt resource value: 0x7f08000f public const int abc_action_bar_home_description = 2131230735; // aapt resource value: 0x7f080010 public const int abc_action_bar_home_description_format = 2131230736; // aapt resource value: 0x7f080011 public const int abc_action_bar_home_subtitle_description_format = 2131230737; // aapt resource value: 0x7f080012 public const int abc_action_bar_up_description = 2131230738; // aapt resource value: 0x7f080013 public const int abc_action_menu_overflow_description = 2131230739; // aapt resource value: 0x7f080014 public const int abc_action_mode_done = 2131230740; // aapt resource value: 0x7f080015 public const int abc_activity_chooser_view_see_all = 2131230741; // aapt resource value: 0x7f080016 public const int abc_activitychooserview_choose_application = 2131230742; // aapt resource value: 0x7f080017 public const int abc_capital_off = 2131230743; // aapt resource value: 0x7f080018 public const int abc_capital_on = 2131230744; // aapt resource value: 0x7f080019 public const int abc_search_hint = 2131230745; // aapt resource value: 0x7f08001a public const int abc_searchview_description_clear = 2131230746; // aapt resource value: 0x7f08001b public const int abc_searchview_description_query = 2131230747; // aapt resource value: 0x7f08001c public const int abc_searchview_description_search = 2131230748; // aapt resource value: 0x7f08001d public const int abc_searchview_description_submit = 2131230749; // aapt resource value: 0x7f08001e public const int abc_searchview_description_voice = 2131230750; // aapt resource value: 0x7f08001f public const int abc_shareactionprovider_share_with = 2131230751; // aapt resource value: 0x7f080020 public const int abc_shareactionprovider_share_with_application = 2131230752; // aapt resource value: 0x7f080021 public const int abc_toolbar_collapse_description = 2131230753; // aapt resource value: 0x7f080023 public const int appbar_scrolling_view_behavior = 2131230755; // aapt resource value: 0x7f080024 public const int bottom_sheet_behavior = 2131230756; // aapt resource value: 0x7f080025 public const int character_counter_pattern = 2131230757; // aapt resource value: 0x7f080000 public const int mr_button_content_description = 2131230720; // aapt resource value: 0x7f080001 public const int mr_chooser_searching = 2131230721; // aapt resource value: 0x7f080002 public const int mr_chooser_title = 2131230722; // aapt resource value: 0x7f080003 public const int mr_controller_casting_screen = 2131230723; // aapt resource value: 0x7f080004 public const int mr_controller_close_description = 2131230724; // aapt resource value: 0x7f080005 public const int mr_controller_collapse_group = 2131230725; // aapt resource value: 0x7f080006 public const int mr_controller_disconnect = 2131230726; // aapt resource value: 0x7f080007 public const int mr_controller_expand_group = 2131230727; // aapt resource value: 0x7f080008 public const int mr_controller_no_info_available = 2131230728; // aapt resource value: 0x7f080009 public const int mr_controller_no_media_selected = 2131230729; // aapt resource value: 0x7f08000a public const int mr_controller_pause = 2131230730; // aapt resource value: 0x7f08000b public const int mr_controller_play = 2131230731; // aapt resource value: 0x7f08000c public const int mr_controller_stop = 2131230732; // aapt resource value: 0x7f08000d public const int mr_system_route_name = 2131230733; // aapt resource value: 0x7f08000e public const int mr_user_route_category_name = 2131230734; // aapt resource value: 0x7f080022 public const int status_bar_notification_info_overflow = 2131230754; static String() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private String() { } } public partial class Style { // aapt resource value: 0x7f0a00a1 public const int AlertDialog_AppCompat = 2131361953; // aapt resource value: 0x7f0a00a2 public const int AlertDialog_AppCompat_Light = 2131361954; // aapt resource value: 0x7f0a00a3 public const int Animation_AppCompat_Dialog = 2131361955; // aapt resource value: 0x7f0a00a4 public const int Animation_AppCompat_DropDownUp = 2131361956; // aapt resource value: 0x7f0a015a public const int Animation_Design_BottomSheetDialog = 2131362138; // aapt resource value: 0x7f0a0174 public const int AppCompatDialogStyle = 2131362164; // aapt resource value: 0x7f0a00a5 public const int Base_AlertDialog_AppCompat = 2131361957; // aapt resource value: 0x7f0a00a6 public const int Base_AlertDialog_AppCompat_Light = 2131361958; // aapt resource value: 0x7f0a00a7 public const int Base_Animation_AppCompat_Dialog = 2131361959; // aapt resource value: 0x7f0a00a8 public const int Base_Animation_AppCompat_DropDownUp = 2131361960; // aapt resource value: 0x7f0a0018 public const int Base_CardView = 2131361816; // aapt resource value: 0x7f0a00a9 public const int Base_DialogWindowTitle_AppCompat = 2131361961; // aapt resource value: 0x7f0a00aa public const int Base_DialogWindowTitleBackground_AppCompat = 2131361962; // aapt resource value: 0x7f0a0051 public const int Base_TextAppearance_AppCompat = 2131361873; // aapt resource value: 0x7f0a0052 public const int Base_TextAppearance_AppCompat_Body1 = 2131361874; // aapt resource value: 0x7f0a0053 public const int Base_TextAppearance_AppCompat_Body2 = 2131361875; // aapt resource value: 0x7f0a003b public const int Base_TextAppearance_AppCompat_Button = 2131361851; // aapt resource value: 0x7f0a0054 public const int Base_TextAppearance_AppCompat_Caption = 2131361876; // aapt resource value: 0x7f0a0055 public const int Base_TextAppearance_AppCompat_Display1 = 2131361877; // aapt resource value: 0x7f0a0056 public const int Base_TextAppearance_AppCompat_Display2 = 2131361878; // aapt resource value: 0x7f0a0057 public const int Base_TextAppearance_AppCompat_Display3 = 2131361879; // aapt resource value: 0x7f0a0058 public const int Base_TextAppearance_AppCompat_Display4 = 2131361880; // aapt resource value: 0x7f0a0059 public const int Base_TextAppearance_AppCompat_Headline = 2131361881; // aapt resource value: 0x7f0a0026 public const int Base_TextAppearance_AppCompat_Inverse = 2131361830; // aapt resource value: 0x7f0a005a public const int Base_TextAppearance_AppCompat_Large = 2131361882; // aapt resource value: 0x7f0a0027 public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131361831; // aapt resource value: 0x7f0a005b public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131361883; // aapt resource value: 0x7f0a005c public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131361884; // aapt resource value: 0x7f0a005d public const int Base_TextAppearance_AppCompat_Medium = 2131361885; // aapt resource value: 0x7f0a0028 public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131361832; // aapt resource value: 0x7f0a005e public const int Base_TextAppearance_AppCompat_Menu = 2131361886; // aapt resource value: 0x7f0a00ab public const int Base_TextAppearance_AppCompat_SearchResult = 2131361963; // aapt resource value: 0x7f0a005f public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131361887; // aapt resource value: 0x7f0a0060 public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131361888; // aapt resource value: 0x7f0a0061 public const int Base_TextAppearance_AppCompat_Small = 2131361889; // aapt resource value: 0x7f0a0029 public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131361833; // aapt resource value: 0x7f0a0062 public const int Base_TextAppearance_AppCompat_Subhead = 2131361890; // aapt resource value: 0x7f0a002a public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131361834; // aapt resource value: 0x7f0a0063 public const int Base_TextAppearance_AppCompat_Title = 2131361891; // aapt resource value: 0x7f0a002b public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131361835; // aapt resource value: 0x7f0a009a public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131361946; // aapt resource value: 0x7f0a0064 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131361892; // aapt resource value: 0x7f0a0065 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131361893; // aapt resource value: 0x7f0a0066 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131361894; // aapt resource value: 0x7f0a0067 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131361895; // aapt resource value: 0x7f0a0068 public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131361896; // aapt resource value: 0x7f0a0069 public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131361897; // aapt resource value: 0x7f0a006a public const int Base_TextAppearance_AppCompat_Widget_Button = 2131361898; // aapt resource value: 0x7f0a009b public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131361947; // aapt resource value: 0x7f0a00ac public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131361964; // aapt resource value: 0x7f0a006b public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131361899; // aapt resource value: 0x7f0a006c public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131361900; // aapt resource value: 0x7f0a006d public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131361901; // aapt resource value: 0x7f0a006e public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131361902; // aapt resource value: 0x7f0a00ad public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131361965; // aapt resource value: 0x7f0a006f public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131361903; // aapt resource value: 0x7f0a0070 public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131361904; // aapt resource value: 0x7f0a0071 public const int Base_Theme_AppCompat = 2131361905; // aapt resource value: 0x7f0a00ae public const int Base_Theme_AppCompat_CompactMenu = 2131361966; // aapt resource value: 0x7f0a002c public const int Base_Theme_AppCompat_Dialog = 2131361836; // aapt resource value: 0x7f0a00af public const int Base_Theme_AppCompat_Dialog_Alert = 2131361967; // aapt resource value: 0x7f0a00b0 public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131361968; // aapt resource value: 0x7f0a00b1 public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131361969; // aapt resource value: 0x7f0a001c public const int Base_Theme_AppCompat_DialogWhenLarge = 2131361820; // aapt resource value: 0x7f0a0072 public const int Base_Theme_AppCompat_Light = 2131361906; // aapt resource value: 0x7f0a00b2 public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131361970; // aapt resource value: 0x7f0a002d public const int Base_Theme_AppCompat_Light_Dialog = 2131361837; // aapt resource value: 0x7f0a00b3 public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131361971; // aapt resource value: 0x7f0a00b4 public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131361972; // aapt resource value: 0x7f0a00b5 public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131361973; // aapt resource value: 0x7f0a001d public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131361821; // aapt resource value: 0x7f0a00b6 public const int Base_ThemeOverlay_AppCompat = 2131361974; // aapt resource value: 0x7f0a00b7 public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131361975; // aapt resource value: 0x7f0a00b8 public const int Base_ThemeOverlay_AppCompat_Dark = 2131361976; // aapt resource value: 0x7f0a00b9 public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131361977; // aapt resource value: 0x7f0a00ba public const int Base_ThemeOverlay_AppCompat_Light = 2131361978; // aapt resource value: 0x7f0a002e public const int Base_V11_Theme_AppCompat_Dialog = 2131361838; // aapt resource value: 0x7f0a002f public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131361839; // aapt resource value: 0x7f0a0037 public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131361847; // aapt resource value: 0x7f0a0038 public const int Base_V12_Widget_AppCompat_EditText = 2131361848; // aapt resource value: 0x7f0a0073 public const int Base_V21_Theme_AppCompat = 2131361907; // aapt resource value: 0x7f0a0074 public const int Base_V21_Theme_AppCompat_Dialog = 2131361908; // aapt resource value: 0x7f0a0075 public const int Base_V21_Theme_AppCompat_Light = 2131361909; // aapt resource value: 0x7f0a0076 public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131361910; // aapt resource value: 0x7f0a0098 public const int Base_V22_Theme_AppCompat = 2131361944; // aapt resource value: 0x7f0a0099 public const int Base_V22_Theme_AppCompat_Light = 2131361945; // aapt resource value: 0x7f0a009c public const int Base_V23_Theme_AppCompat = 2131361948; // aapt resource value: 0x7f0a009d public const int Base_V23_Theme_AppCompat_Light = 2131361949; // aapt resource value: 0x7f0a00bb public const int Base_V7_Theme_AppCompat = 2131361979; // aapt resource value: 0x7f0a00bc public const int Base_V7_Theme_AppCompat_Dialog = 2131361980; // aapt resource value: 0x7f0a00bd public const int Base_V7_Theme_AppCompat_Light = 2131361981; // aapt resource value: 0x7f0a00be public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131361982; // aapt resource value: 0x7f0a00bf public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131361983; // aapt resource value: 0x7f0a00c0 public const int Base_V7_Widget_AppCompat_EditText = 2131361984; // aapt resource value: 0x7f0a00c1 public const int Base_Widget_AppCompat_ActionBar = 2131361985; // aapt resource value: 0x7f0a00c2 public const int Base_Widget_AppCompat_ActionBar_Solid = 2131361986; // aapt resource value: 0x7f0a00c3 public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131361987; // aapt resource value: 0x7f0a0077 public const int Base_Widget_AppCompat_ActionBar_TabText = 2131361911; // aapt resource value: 0x7f0a0078 public const int Base_Widget_AppCompat_ActionBar_TabView = 2131361912; // aapt resource value: 0x7f0a0079 public const int Base_Widget_AppCompat_ActionButton = 2131361913; // aapt resource value: 0x7f0a007a public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131361914; // aapt resource value: 0x7f0a007b public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131361915; // aapt resource value: 0x7f0a00c4 public const int Base_Widget_AppCompat_ActionMode = 2131361988; // aapt resource value: 0x7f0a00c5 public const int Base_Widget_AppCompat_ActivityChooserView = 2131361989; // aapt resource value: 0x7f0a0039 public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131361849; // aapt resource value: 0x7f0a007c public const int Base_Widget_AppCompat_Button = 2131361916; // aapt resource value: 0x7f0a007d public const int Base_Widget_AppCompat_Button_Borderless = 2131361917; // aapt resource value: 0x7f0a007e public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131361918; // aapt resource value: 0x7f0a00c6 public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131361990; // aapt resource value: 0x7f0a009e public const int Base_Widget_AppCompat_Button_Colored = 2131361950; // aapt resource value: 0x7f0a007f public const int Base_Widget_AppCompat_Button_Small = 2131361919; // aapt resource value: 0x7f0a0080 public const int Base_Widget_AppCompat_ButtonBar = 2131361920; // aapt resource value: 0x7f0a00c7 public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131361991; // aapt resource value: 0x7f0a0081 public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131361921; // aapt resource value: 0x7f0a0082 public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131361922; // aapt resource value: 0x7f0a00c8 public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131361992; // aapt resource value: 0x7f0a001b public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131361819; // aapt resource value: 0x7f0a00c9 public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131361993; // aapt resource value: 0x7f0a0083 public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131361923; // aapt resource value: 0x7f0a003a public const int Base_Widget_AppCompat_EditText = 2131361850; // aapt resource value: 0x7f0a0084 public const int Base_Widget_AppCompat_ImageButton = 2131361924; // aapt resource value: 0x7f0a00ca public const int Base_Widget_AppCompat_Light_ActionBar = 2131361994; // aapt resource value: 0x7f0a00cb public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131361995; // aapt resource value: 0x7f0a00cc public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131361996; // aapt resource value: 0x7f0a0085 public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131361925; // aapt resource value: 0x7f0a0086 public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131361926; // aapt resource value: 0x7f0a0087 public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131361927; // aapt resource value: 0x7f0a0088 public const int Base_Widget_AppCompat_Light_PopupMenu = 2131361928; // aapt resource value: 0x7f0a0089 public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131361929; // aapt resource value: 0x7f0a008a public const int Base_Widget_AppCompat_ListPopupWindow = 2131361930; // aapt resource value: 0x7f0a008b public const int Base_Widget_AppCompat_ListView = 2131361931; // aapt resource value: 0x7f0a008c public const int Base_Widget_AppCompat_ListView_DropDown = 2131361932; // aapt resource value: 0x7f0a008d public const int Base_Widget_AppCompat_ListView_Menu = 2131361933; // aapt resource value: 0x7f0a008e public const int Base_Widget_AppCompat_PopupMenu = 2131361934; // aapt resource value: 0x7f0a008f public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131361935; // aapt resource value: 0x7f0a00cd public const int Base_Widget_AppCompat_PopupWindow = 2131361997; // aapt resource value: 0x7f0a0030 public const int Base_Widget_AppCompat_ProgressBar = 2131361840; // aapt resource value: 0x7f0a0031 public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131361841; // aapt resource value: 0x7f0a0090 public const int Base_Widget_AppCompat_RatingBar = 2131361936; // aapt resource value: 0x7f0a009f public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131361951; // aapt resource value: 0x7f0a00a0 public const int Base_Widget_AppCompat_RatingBar_Small = 2131361952; // aapt resource value: 0x7f0a00ce public const int Base_Widget_AppCompat_SearchView = 2131361998; // aapt resource value: 0x7f0a00cf public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131361999; // aapt resource value: 0x7f0a0091 public const int Base_Widget_AppCompat_SeekBar = 2131361937; // aapt resource value: 0x7f0a0092 public const int Base_Widget_AppCompat_Spinner = 2131361938; // aapt resource value: 0x7f0a001e public const int Base_Widget_AppCompat_Spinner_Underlined = 2131361822; // aapt resource value: 0x7f0a0093 public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131361939; // aapt resource value: 0x7f0a00d0 public const int Base_Widget_AppCompat_Toolbar = 2131362000; // aapt resource value: 0x7f0a0094 public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131361940; // aapt resource value: 0x7f0a015b public const int Base_Widget_Design_TabLayout = 2131362139; // aapt resource value: 0x7f0a0017 public const int CardView = 2131361815; // aapt resource value: 0x7f0a0019 public const int CardView_Dark = 2131361817; // aapt resource value: 0x7f0a001a public const int CardView_Light = 2131361818; // aapt resource value: 0x7f0a0172 public const int MyTheme = 2131362162; // aapt resource value: 0x7f0a0173 public const int MyTheme_Base = 2131362163; // aapt resource value: 0x7f0a0032 public const int Platform_AppCompat = 2131361842; // aapt resource value: 0x7f0a0033 public const int Platform_AppCompat_Light = 2131361843; // aapt resource value: 0x7f0a0095 public const int Platform_ThemeOverlay_AppCompat = 2131361941; // aapt resource value: 0x7f0a0096 public const int Platform_ThemeOverlay_AppCompat_Dark = 2131361942; // aapt resource value: 0x7f0a0097 public const int Platform_ThemeOverlay_AppCompat_Light = 2131361943; // aapt resource value: 0x7f0a0034 public const int Platform_V11_AppCompat = 2131361844; // aapt resource value: 0x7f0a0035 public const int Platform_V11_AppCompat_Light = 2131361845; // aapt resource value: 0x7f0a003c public const int Platform_V14_AppCompat = 2131361852; // aapt resource value: 0x7f0a003d public const int Platform_V14_AppCompat_Light = 2131361853; // aapt resource value: 0x7f0a0036 public const int Platform_Widget_AppCompat_Spinner = 2131361846; // aapt resource value: 0x7f0a0043 public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131361859; // aapt resource value: 0x7f0a0044 public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131361860; // aapt resource value: 0x7f0a0045 public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131361861; // aapt resource value: 0x7f0a0046 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131361862; // aapt resource value: 0x7f0a0047 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131361863; // aapt resource value: 0x7f0a0048 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131361864; // aapt resource value: 0x7f0a0049 public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131361865; // aapt resource value: 0x7f0a004a public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131361866; // aapt resource value: 0x7f0a004b public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131361867; // aapt resource value: 0x7f0a004c public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131361868; // aapt resource value: 0x7f0a004d public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131361869; // aapt resource value: 0x7f0a004e public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131361870; // aapt resource value: 0x7f0a004f public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131361871; // aapt resource value: 0x7f0a0050 public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131361872; // aapt resource value: 0x7f0a00d1 public const int TextAppearance_AppCompat = 2131362001; // aapt resource value: 0x7f0a00d2 public const int TextAppearance_AppCompat_Body1 = 2131362002; // aapt resource value: 0x7f0a00d3 public const int TextAppearance_AppCompat_Body2 = 2131362003; // aapt resource value: 0x7f0a00d4 public const int TextAppearance_AppCompat_Button = 2131362004; // aapt resource value: 0x7f0a00d5 public const int TextAppearance_AppCompat_Caption = 2131362005; // aapt resource value: 0x7f0a00d6 public const int TextAppearance_AppCompat_Display1 = 2131362006; // aapt resource value: 0x7f0a00d7 public const int TextAppearance_AppCompat_Display2 = 2131362007; // aapt resource value: 0x7f0a00d8 public const int TextAppearance_AppCompat_Display3 = 2131362008; // aapt resource value: 0x7f0a00d9 public const int TextAppearance_AppCompat_Display4 = 2131362009; // aapt resource value: 0x7f0a00da public const int TextAppearance_AppCompat_Headline = 2131362010; // aapt resource value: 0x7f0a00db public const int TextAppearance_AppCompat_Inverse = 2131362011; // aapt resource value: 0x7f0a00dc public const int TextAppearance_AppCompat_Large = 2131362012; // aapt resource value: 0x7f0a00dd public const int TextAppearance_AppCompat_Large_Inverse = 2131362013; // aapt resource value: 0x7f0a00de public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131362014; // aapt resource value: 0x7f0a00df public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131362015; // aapt resource value: 0x7f0a00e0 public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131362016; // aapt resource value: 0x7f0a00e1 public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131362017; // aapt resource value: 0x7f0a00e2 public const int TextAppearance_AppCompat_Medium = 2131362018; // aapt resource value: 0x7f0a00e3 public const int TextAppearance_AppCompat_Medium_Inverse = 2131362019; // aapt resource value: 0x7f0a00e4 public const int TextAppearance_AppCompat_Menu = 2131362020; // aapt resource value: 0x7f0a00e5 public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131362021; // aapt resource value: 0x7f0a00e6 public const int TextAppearance_AppCompat_SearchResult_Title = 2131362022; // aapt resource value: 0x7f0a00e7 public const int TextAppearance_AppCompat_Small = 2131362023; // aapt resource value: 0x7f0a00e8 public const int TextAppearance_AppCompat_Small_Inverse = 2131362024; // aapt resource value: 0x7f0a00e9 public const int TextAppearance_AppCompat_Subhead = 2131362025; // aapt resource value: 0x7f0a00ea public const int TextAppearance_AppCompat_Subhead_Inverse = 2131362026; // aapt resource value: 0x7f0a00eb public const int TextAppearance_AppCompat_Title = 2131362027; // aapt resource value: 0x7f0a00ec public const int TextAppearance_AppCompat_Title_Inverse = 2131362028; // aapt resource value: 0x7f0a00ed public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131362029; // aapt resource value: 0x7f0a00ee public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131362030; // aapt resource value: 0x7f0a00ef public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131362031; // aapt resource value: 0x7f0a00f0 public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131362032; // aapt resource value: 0x7f0a00f1 public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131362033; // aapt resource value: 0x7f0a00f2 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131362034; // aapt resource value: 0x7f0a00f3 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131362035; // aapt resource value: 0x7f0a00f4 public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131362036; // aapt resource value: 0x7f0a00f5 public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131362037; // aapt resource value: 0x7f0a00f6 public const int TextAppearance_AppCompat_Widget_Button = 2131362038; // aapt resource value: 0x7f0a00f7 public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131362039; // aapt resource value: 0x7f0a00f8 public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131362040; // aapt resource value: 0x7f0a00f9 public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131362041; // aapt resource value: 0x7f0a00fa public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131362042; // aapt resource value: 0x7f0a00fb public const int TextAppearance_AppCompat_Widget_Switch = 2131362043; // aapt resource value: 0x7f0a00fc public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131362044; // aapt resource value: 0x7f0a015c public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131362140; // aapt resource value: 0x7f0a015d public const int TextAppearance_Design_Counter = 2131362141; // aapt resource value: 0x7f0a015e public const int TextAppearance_Design_Counter_Overflow = 2131362142; // aapt resource value: 0x7f0a015f public const int TextAppearance_Design_Error = 2131362143; // aapt resource value: 0x7f0a0160 public const int TextAppearance_Design_Hint = 2131362144; // aapt resource value: 0x7f0a0161 public const int TextAppearance_Design_Snackbar_Message = 2131362145; // aapt resource value: 0x7f0a0162 public const int TextAppearance_Design_Tab = 2131362146; // aapt resource value: 0x7f0a003e public const int TextAppearance_StatusBar_EventContent = 2131361854; // aapt resource value: 0x7f0a003f public const int TextAppearance_StatusBar_EventContent_Info = 2131361855; // aapt resource value: 0x7f0a0040 public const int TextAppearance_StatusBar_EventContent_Line2 = 2131361856; // aapt resource value: 0x7f0a0041 public const int TextAppearance_StatusBar_EventContent_Time = 2131361857; // aapt resource value: 0x7f0a0042 public const int TextAppearance_StatusBar_EventContent_Title = 2131361858; // aapt resource value: 0x7f0a00fd public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131362045; // aapt resource value: 0x7f0a00fe public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131362046; // aapt resource value: 0x7f0a00ff public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131362047; // aapt resource value: 0x7f0a0100 public const int Theme_AppCompat = 2131362048; // aapt resource value: 0x7f0a0101 public const int Theme_AppCompat_CompactMenu = 2131362049; // aapt resource value: 0x7f0a001f public const int Theme_AppCompat_DayNight = 2131361823; // aapt resource value: 0x7f0a0020 public const int Theme_AppCompat_DayNight_DarkActionBar = 2131361824; // aapt resource value: 0x7f0a0021 public const int Theme_AppCompat_DayNight_Dialog = 2131361825; // aapt resource value: 0x7f0a0022 public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131361826; // aapt resource value: 0x7f0a0023 public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131361827; // aapt resource value: 0x7f0a0024 public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131361828; // aapt resource value: 0x7f0a0025 public const int Theme_AppCompat_DayNight_NoActionBar = 2131361829; // aapt resource value: 0x7f0a0102 public const int Theme_AppCompat_Dialog = 2131362050; // aapt resource value: 0x7f0a0103 public const int Theme_AppCompat_Dialog_Alert = 2131362051; // aapt resource value: 0x7f0a0104 public const int Theme_AppCompat_Dialog_MinWidth = 2131362052; // aapt resource value: 0x7f0a0105 public const int Theme_AppCompat_DialogWhenLarge = 2131362053; // aapt resource value: 0x7f0a0106 public const int Theme_AppCompat_Light = 2131362054; // aapt resource value: 0x7f0a0107 public const int Theme_AppCompat_Light_DarkActionBar = 2131362055; // aapt resource value: 0x7f0a0108 public const int Theme_AppCompat_Light_Dialog = 2131362056; // aapt resource value: 0x7f0a0109 public const int Theme_AppCompat_Light_Dialog_Alert = 2131362057; // aapt resource value: 0x7f0a010a public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131362058; // aapt resource value: 0x7f0a010b public const int Theme_AppCompat_Light_DialogWhenLarge = 2131362059; // aapt resource value: 0x7f0a010c public const int Theme_AppCompat_Light_NoActionBar = 2131362060; // aapt resource value: 0x7f0a010d public const int Theme_AppCompat_NoActionBar = 2131362061; // aapt resource value: 0x7f0a0163 public const int Theme_Design = 2131362147; // aapt resource value: 0x7f0a0164 public const int Theme_Design_BottomSheetDialog = 2131362148; // aapt resource value: 0x7f0a0165 public const int Theme_Design_Light = 2131362149; // aapt resource value: 0x7f0a0166 public const int Theme_Design_Light_BottomSheetDialog = 2131362150; // aapt resource value: 0x7f0a0167 public const int Theme_Design_Light_NoActionBar = 2131362151; // aapt resource value: 0x7f0a0168 public const int Theme_Design_NoActionBar = 2131362152; // aapt resource value: 0x7f0a0000 public const int Theme_MediaRouter = 2131361792; // aapt resource value: 0x7f0a0001 public const int Theme_MediaRouter_Light = 2131361793; // aapt resource value: 0x7f0a0002 public const int Theme_MediaRouter_Light_DarkControlPanel = 2131361794; // aapt resource value: 0x7f0a0003 public const int Theme_MediaRouter_LightControlPanel = 2131361795; // aapt resource value: 0x7f0a010e public const int ThemeOverlay_AppCompat = 2131362062; // aapt resource value: 0x7f0a010f public const int ThemeOverlay_AppCompat_ActionBar = 2131362063; // aapt resource value: 0x7f0a0110 public const int ThemeOverlay_AppCompat_Dark = 2131362064; // aapt resource value: 0x7f0a0111 public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131362065; // aapt resource value: 0x7f0a0112 public const int ThemeOverlay_AppCompat_Light = 2131362066; // aapt resource value: 0x7f0a0113 public const int Widget_AppCompat_ActionBar = 2131362067; // aapt resource value: 0x7f0a0114 public const int Widget_AppCompat_ActionBar_Solid = 2131362068; // aapt resource value: 0x7f0a0115 public const int Widget_AppCompat_ActionBar_TabBar = 2131362069; // aapt resource value: 0x7f0a0116 public const int Widget_AppCompat_ActionBar_TabText = 2131362070; // aapt resource value: 0x7f0a0117 public const int Widget_AppCompat_ActionBar_TabView = 2131362071; // aapt resource value: 0x7f0a0118 public const int Widget_AppCompat_ActionButton = 2131362072; // aapt resource value: 0x7f0a0119 public const int Widget_AppCompat_ActionButton_CloseMode = 2131362073; // aapt resource value: 0x7f0a011a public const int Widget_AppCompat_ActionButton_Overflow = 2131362074; // aapt resource value: 0x7f0a011b public const int Widget_AppCompat_ActionMode = 2131362075; // aapt resource value: 0x7f0a011c public const int Widget_AppCompat_ActivityChooserView = 2131362076; // aapt resource value: 0x7f0a011d public const int Widget_AppCompat_AutoCompleteTextView = 2131362077; // aapt resource value: 0x7f0a011e public const int Widget_AppCompat_Button = 2131362078; // aapt resource value: 0x7f0a011f public const int Widget_AppCompat_Button_Borderless = 2131362079; // aapt resource value: 0x7f0a0120 public const int Widget_AppCompat_Button_Borderless_Colored = 2131362080; // aapt resource value: 0x7f0a0121 public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131362081; // aapt resource value: 0x7f0a0122 public const int Widget_AppCompat_Button_Colored = 2131362082; // aapt resource value: 0x7f0a0123 public const int Widget_AppCompat_Button_Small = 2131362083; // aapt resource value: 0x7f0a0124 public const int Widget_AppCompat_ButtonBar = 2131362084; // aapt resource value: 0x7f0a0125 public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131362085; // aapt resource value: 0x7f0a0126 public const int Widget_AppCompat_CompoundButton_CheckBox = 2131362086; // aapt resource value: 0x7f0a0127 public const int Widget_AppCompat_CompoundButton_RadioButton = 2131362087; // aapt resource value: 0x7f0a0128 public const int Widget_AppCompat_CompoundButton_Switch = 2131362088; // aapt resource value: 0x7f0a0129 public const int Widget_AppCompat_DrawerArrowToggle = 2131362089; // aapt resource value: 0x7f0a012a public const int Widget_AppCompat_DropDownItem_Spinner = 2131362090; // aapt resource value: 0x7f0a012b public const int Widget_AppCompat_EditText = 2131362091; // aapt resource value: 0x7f0a012c public const int Widget_AppCompat_ImageButton = 2131362092; // aapt resource value: 0x7f0a012d public const int Widget_AppCompat_Light_ActionBar = 2131362093; // aapt resource value: 0x7f0a012e public const int Widget_AppCompat_Light_ActionBar_Solid = 2131362094; // aapt resource value: 0x7f0a012f public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131362095; // aapt resource value: 0x7f0a0130 public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131362096; // aapt resource value: 0x7f0a0131 public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131362097; // aapt resource value: 0x7f0a0132 public const int Widget_AppCompat_Light_ActionBar_TabText = 2131362098; // aapt resource value: 0x7f0a0133 public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131362099; // aapt resource value: 0x7f0a0134 public const int Widget_AppCompat_Light_ActionBar_TabView = 2131362100; // aapt resource value: 0x7f0a0135 public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131362101; // aapt resource value: 0x7f0a0136 public const int Widget_AppCompat_Light_ActionButton = 2131362102; // aapt resource value: 0x7f0a0137 public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131362103; // aapt resource value: 0x7f0a0138 public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131362104; // aapt resource value: 0x7f0a0139 public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131362105; // aapt resource value: 0x7f0a013a public const int Widget_AppCompat_Light_ActivityChooserView = 2131362106; // aapt resource value: 0x7f0a013b public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131362107; // aapt resource value: 0x7f0a013c public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131362108; // aapt resource value: 0x7f0a013d public const int Widget_AppCompat_Light_ListPopupWindow = 2131362109; // aapt resource value: 0x7f0a013e public const int Widget_AppCompat_Light_ListView_DropDown = 2131362110; // aapt resource value: 0x7f0a013f public const int Widget_AppCompat_Light_PopupMenu = 2131362111; // aapt resource value: 0x7f0a0140 public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131362112; // aapt resource value: 0x7f0a0141 public const int Widget_AppCompat_Light_SearchView = 2131362113; // aapt resource value: 0x7f0a0142 public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131362114; // aapt resource value: 0x7f0a0143 public const int Widget_AppCompat_ListPopupWindow = 2131362115; // aapt resource value: 0x7f0a0144 public const int Widget_AppCompat_ListView = 2131362116; // aapt resource value: 0x7f0a0145 public const int Widget_AppCompat_ListView_DropDown = 2131362117; // aapt resource value: 0x7f0a0146 public const int Widget_AppCompat_ListView_Menu = 2131362118; // aapt resource value: 0x7f0a0147 public const int Widget_AppCompat_PopupMenu = 2131362119; // aapt resource value: 0x7f0a0148 public const int Widget_AppCompat_PopupMenu_Overflow = 2131362120; // aapt resource value: 0x7f0a0149 public const int Widget_AppCompat_PopupWindow = 2131362121; // aapt resource value: 0x7f0a014a public const int Widget_AppCompat_ProgressBar = 2131362122; // aapt resource value: 0x7f0a014b public const int Widget_AppCompat_ProgressBar_Horizontal = 2131362123; // aapt resource value: 0x7f0a014c public const int Widget_AppCompat_RatingBar = 2131362124; // aapt resource value: 0x7f0a014d public const int Widget_AppCompat_RatingBar_Indicator = 2131362125; // aapt resource value: 0x7f0a014e public const int Widget_AppCompat_RatingBar_Small = 2131362126; // aapt resource value: 0x7f0a014f public const int Widget_AppCompat_SearchView = 2131362127; // aapt resource value: 0x7f0a0150 public const int Widget_AppCompat_SearchView_ActionBar = 2131362128; // aapt resource value: 0x7f0a0151 public const int Widget_AppCompat_SeekBar = 2131362129; // aapt resource value: 0x7f0a0152 public const int Widget_AppCompat_Spinner = 2131362130; // aapt resource value: 0x7f0a0153 public const int Widget_AppCompat_Spinner_DropDown = 2131362131; // aapt resource value: 0x7f0a0154 public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131362132; // aapt resource value: 0x7f0a0155 public const int Widget_AppCompat_Spinner_Underlined = 2131362133; // aapt resource value: 0x7f0a0156 public const int Widget_AppCompat_TextView_SpinnerItem = 2131362134; // aapt resource value: 0x7f0a0157 public const int Widget_AppCompat_Toolbar = 2131362135; // aapt resource value: 0x7f0a0158 public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131362136; // aapt resource value: 0x7f0a0169 public const int Widget_Design_AppBarLayout = 2131362153; // aapt resource value: 0x7f0a016a public const int Widget_Design_BottomSheet_Modal = 2131362154; // aapt resource value: 0x7f0a016b public const int Widget_Design_CollapsingToolbar = 2131362155; // aapt resource value: 0x7f0a016c public const int Widget_Design_CoordinatorLayout = 2131362156; // aapt resource value: 0x7f0a016d public const int Widget_Design_FloatingActionButton = 2131362157; // aapt resource value: 0x7f0a016e public const int Widget_Design_NavigationView = 2131362158; // aapt resource value: 0x7f0a016f public const int Widget_Design_ScrimInsetsFrameLayout = 2131362159; // aapt resource value: 0x7f0a0170 public const int Widget_Design_Snackbar = 2131362160; // aapt resource value: 0x7f0a0159 public const int Widget_Design_TabLayout = 2131362137; // aapt resource value: 0x7f0a0171 public const int Widget_Design_TextInputLayout = 2131362161; // aapt resource value: 0x7f0a0004 public const int Widget_MediaRouter_ChooserText = 2131361796; // aapt resource value: 0x7f0a0005 public const int Widget_MediaRouter_ChooserText_Primary = 2131361797; // aapt resource value: 0x7f0a0006 public const int Widget_MediaRouter_ChooserText_Primary_Dark = 2131361798; // aapt resource value: 0x7f0a0007 public const int Widget_MediaRouter_ChooserText_Primary_Light = 2131361799; // aapt resource value: 0x7f0a0008 public const int Widget_MediaRouter_ChooserText_Secondary = 2131361800; // aapt resource value: 0x7f0a0009 public const int Widget_MediaRouter_ChooserText_Secondary_Dark = 2131361801; // aapt resource value: 0x7f0a000a public const int Widget_MediaRouter_ChooserText_Secondary_Light = 2131361802; // aapt resource value: 0x7f0a000b public const int Widget_MediaRouter_ControllerText = 2131361803; // aapt resource value: 0x7f0a000c public const int Widget_MediaRouter_ControllerText_Primary = 2131361804; // aapt resource value: 0x7f0a000d public const int Widget_MediaRouter_ControllerText_Primary_Dark = 2131361805; // aapt resource value: 0x7f0a000e public const int Widget_MediaRouter_ControllerText_Primary_Light = 2131361806; // aapt resource value: 0x7f0a000f public const int Widget_MediaRouter_ControllerText_Secondary = 2131361807; // aapt resource value: 0x7f0a0010 public const int Widget_MediaRouter_ControllerText_Secondary_Dark = 2131361808; // aapt resource value: 0x7f0a0011 public const int Widget_MediaRouter_ControllerText_Secondary_Light = 2131361809; // aapt resource value: 0x7f0a0012 public const int Widget_MediaRouter_ControllerText_Title = 2131361810; // aapt resource value: 0x7f0a0013 public const int Widget_MediaRouter_ControllerText_Title_Dark = 2131361811; // aapt resource value: 0x7f0a0014 public const int Widget_MediaRouter_ControllerText_Title_Light = 2131361812; // aapt resource value: 0x7f0a0015 public const int Widget_MediaRouter_Light_MediaRouteButton = 2131361813; // aapt resource value: 0x7f0a0016 public const int Widget_MediaRouter_MediaRouteButton = 2131361814; static Style() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Style() { } } public partial class Styleable { public static int[] ActionBar = new int[] { 2130772007, 2130772009, 2130772010, 2130772011, 2130772012, 2130772013, 2130772014, 2130772015, 2130772016, 2130772017, 2130772018, 2130772019, 2130772020, 2130772021, 2130772022, 2130772023, 2130772024, 2130772025, 2130772026, 2130772027, 2130772028, 2130772029, 2130772030, 2130772031, 2130772032, 2130772033, 2130772090}; // aapt resource value: 10 public const int ActionBar_background = 10; // aapt resource value: 12 public const int ActionBar_backgroundSplit = 12; // aapt resource value: 11 public const int ActionBar_backgroundStacked = 11; // aapt resource value: 21 public const int ActionBar_contentInsetEnd = 21; // aapt resource value: 22 public const int ActionBar_contentInsetLeft = 22; // aapt resource value: 23 public const int ActionBar_contentInsetRight = 23; // aapt resource value: 20 public const int ActionBar_contentInsetStart = 20; // aapt resource value: 13 public const int ActionBar_customNavigationLayout = 13; // aapt resource value: 3 public const int ActionBar_displayOptions = 3; // aapt resource value: 9 public const int ActionBar_divider = 9; // aapt resource value: 24 public const int ActionBar_elevation = 24; // aapt resource value: 0 public const int ActionBar_height = 0; // aapt resource value: 19 public const int ActionBar_hideOnContentScroll = 19; // aapt resource value: 26 public const int ActionBar_homeAsUpIndicator = 26; // aapt resource value: 14 public const int ActionBar_homeLayout = 14; // aapt resource value: 7 public const int ActionBar_icon = 7; // aapt resource value: 16 public const int ActionBar_indeterminateProgressStyle = 16; // aapt resource value: 18 public const int ActionBar_itemPadding = 18; // aapt resource value: 8 public const int ActionBar_logo = 8; // aapt resource value: 2 public const int ActionBar_navigationMode = 2; // aapt resource value: 25 public const int ActionBar_popupTheme = 25; // aapt resource value: 17 public const int ActionBar_progressBarPadding = 17; // aapt resource value: 15 public const int ActionBar_progressBarStyle = 15; // aapt resource value: 4 public const int ActionBar_subtitle = 4; // aapt resource value: 6 public const int ActionBar_subtitleTextStyle = 6; // aapt resource value: 1 public const int ActionBar_title = 1; // aapt resource value: 5 public const int ActionBar_titleTextStyle = 5; public static int[] ActionBarLayout = new int[] { 16842931}; // aapt resource value: 0 public const int ActionBarLayout_android_layout_gravity = 0; public static int[] ActionMenuItemView = new int[] { 16843071}; // aapt resource value: 0 public const int ActionMenuItemView_android_minWidth = 0; public static int[] ActionMenuView; public static int[] ActionMode = new int[] { 2130772007, 2130772013, 2130772014, 2130772018, 2130772020, 2130772034}; // aapt resource value: 3 public const int ActionMode_background = 3; // aapt resource value: 4 public const int ActionMode_backgroundSplit = 4; // aapt resource value: 5 public const int ActionMode_closeItemLayout = 5; // aapt resource value: 0 public const int ActionMode_height = 0; // aapt resource value: 2 public const int ActionMode_subtitleTextStyle = 2; // aapt resource value: 1 public const int ActionMode_titleTextStyle = 1; public static int[] ActivityChooserView = new int[] { 2130772035, 2130772036}; // aapt resource value: 1 public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; // aapt resource value: 0 public const int ActivityChooserView_initialActivityCount = 0; public static int[] AlertDialog = new int[] { 16842994, 2130772037, 2130772038, 2130772039, 2130772040, 2130772041}; // aapt resource value: 0 public const int AlertDialog_android_layout = 0; // aapt resource value: 1 public const int AlertDialog_buttonPanelSideLayout = 1; // aapt resource value: 5 public const int AlertDialog_listItemLayout = 5; // aapt resource value: 2 public const int AlertDialog_listLayout = 2; // aapt resource value: 3 public const int AlertDialog_multiChoiceItemLayout = 3; // aapt resource value: 4 public const int AlertDialog_singleChoiceItemLayout = 4; public static int[] AppBarLayout = new int[] { 16842964, 2130772032, 2130772215}; // aapt resource value: 0 public const int AppBarLayout_android_background = 0; // aapt resource value: 1 public const int AppBarLayout_elevation = 1; // aapt resource value: 2 public const int AppBarLayout_expanded = 2; public static int[] AppBarLayout_LayoutParams = new int[] { 2130772216, 2130772217}; // aapt resource value: 0 public const int AppBarLayout_LayoutParams_layout_scrollFlags = 0; // aapt resource value: 1 public const int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1; public static int[] AppCompatImageView = new int[] { 16843033, 2130772042}; // aapt resource value: 0 public const int AppCompatImageView_android_src = 0; // aapt resource value: 1 public const int AppCompatImageView_srcCompat = 1; public static int[] AppCompatTextView = new int[] { 16842804, 2130772043}; // aapt resource value: 0 public const int AppCompatTextView_android_textAppearance = 0; // aapt resource value: 1 public const int AppCompatTextView_textAllCaps = 1; public static int[] AppCompatTheme = new int[] { 16842839, 16842926, 2130772044, 2130772045, 2130772046, 2130772047, 2130772048, 2130772049, 2130772050, 2130772051, 2130772052, 2130772053, 2130772054, 2130772055, 2130772056, 2130772057, 2130772058, 2130772059, 2130772060, 2130772061, 2130772062, 2130772063, 2130772064, 2130772065, 2130772066, 2130772067, 2130772068, 2130772069, 2130772070, 2130772071, 2130772072, 2130772073, 2130772074, 2130772075, 2130772076, 2130772077, 2130772078, 2130772079, 2130772080, 2130772081, 2130772082, 2130772083, 2130772084, 2130772085, 2130772086, 2130772087, 2130772088, 2130772089, 2130772090, 2130772091, 2130772092, 2130772093, 2130772094, 2130772095, 2130772096, 2130772097, 2130772098, 2130772099, 2130772100, 2130772101, 2130772102, 2130772103, 2130772104, 2130772105, 2130772106, 2130772107, 2130772108, 2130772109, 2130772110, 2130772111, 2130772112, 2130772113, 2130772114, 2130772115, 2130772116, 2130772117, 2130772118, 2130772119, 2130772120, 2130772121, 2130772122, 2130772123, 2130772124, 2130772125, 2130772126, 2130772127, 2130772128, 2130772129, 2130772130, 2130772131, 2130772132, 2130772133, 2130772134, 2130772135, 2130772136, 2130772137, 2130772138, 2130772139, 2130772140, 2130772141, 2130772142, 2130772143, 2130772144, 2130772145, 2130772146, 2130772147, 2130772148, 2130772149, 2130772150, 2130772151, 2130772152, 2130772153}; // aapt resource value: 23 public const int AppCompatTheme_actionBarDivider = 23; // aapt resource value: 24 public const int AppCompatTheme_actionBarItemBackground = 24; // aapt resource value: 17 public const int AppCompatTheme_actionBarPopupTheme = 17; // aapt resource value: 22 public const int AppCompatTheme_actionBarSize = 22; // aapt resource value: 19 public const int AppCompatTheme_actionBarSplitStyle = 19; // aapt resource value: 18 public const int AppCompatTheme_actionBarStyle = 18; // aapt resource value: 13 public const int AppCompatTheme_actionBarTabBarStyle = 13; // aapt resource value: 12 public const int AppCompatTheme_actionBarTabStyle = 12; // aapt resource value: 14 public const int AppCompatTheme_actionBarTabTextStyle = 14; // aapt resource value: 20 public const int AppCompatTheme_actionBarTheme = 20; // aapt resource value: 21 public const int AppCompatTheme_actionBarWidgetTheme = 21; // aapt resource value: 49 public const int AppCompatTheme_actionButtonStyle = 49; // aapt resource value: 45 public const int AppCompatTheme_actionDropDownStyle = 45; // aapt resource value: 25 public const int AppCompatTheme_actionMenuTextAppearance = 25; // aapt resource value: 26 public const int AppCompatTheme_actionMenuTextColor = 26; // aapt resource value: 29 public const int AppCompatTheme_actionModeBackground = 29; // aapt resource value: 28 public const int AppCompatTheme_actionModeCloseButtonStyle = 28; // aapt resource value: 31 public const int AppCompatTheme_actionModeCloseDrawable = 31; // aapt resource value: 33 public const int AppCompatTheme_actionModeCopyDrawable = 33; // aapt resource value: 32 public const int AppCompatTheme_actionModeCutDrawable = 32; // aapt resource value: 37 public const int AppCompatTheme_actionModeFindDrawable = 37; // aapt resource value: 34 public const int AppCompatTheme_actionModePasteDrawable = 34; // aapt resource value: 39 public const int AppCompatTheme_actionModePopupWindowStyle = 39; // aapt resource value: 35 public const int AppCompatTheme_actionModeSelectAllDrawable = 35; // aapt resource value: 36 public const int AppCompatTheme_actionModeShareDrawable = 36; // aapt resource value: 30 public const int AppCompatTheme_actionModeSplitBackground = 30; // aapt resource value: 27 public const int AppCompatTheme_actionModeStyle = 27; // aapt resource value: 38 public const int AppCompatTheme_actionModeWebSearchDrawable = 38; // aapt resource value: 15 public const int AppCompatTheme_actionOverflowButtonStyle = 15; // aapt resource value: 16 public const int AppCompatTheme_actionOverflowMenuStyle = 16; // aapt resource value: 57 public const int AppCompatTheme_activityChooserViewStyle = 57; // aapt resource value: 92 public const int AppCompatTheme_alertDialogButtonGroupStyle = 92; // aapt resource value: 93 public const int AppCompatTheme_alertDialogCenterButtons = 93; // aapt resource value: 91 public const int AppCompatTheme_alertDialogStyle = 91; // aapt resource value: 94 public const int AppCompatTheme_alertDialogTheme = 94; // aapt resource value: 1 public const int AppCompatTheme_android_windowAnimationStyle = 1; // aapt resource value: 0 public const int AppCompatTheme_android_windowIsFloating = 0; // aapt resource value: 99 public const int AppCompatTheme_autoCompleteTextViewStyle = 99; // aapt resource value: 54 public const int AppCompatTheme_borderlessButtonStyle = 54; // aapt resource value: 51 public const int AppCompatTheme_buttonBarButtonStyle = 51; // aapt resource value: 97 public const int AppCompatTheme_buttonBarNegativeButtonStyle = 97; // aapt resource value: 98 public const int AppCompatTheme_buttonBarNeutralButtonStyle = 98; // aapt resource value: 96 public const int AppCompatTheme_buttonBarPositiveButtonStyle = 96; // aapt resource value: 50 public const int AppCompatTheme_buttonBarStyle = 50; // aapt resource value: 100 public const int AppCompatTheme_buttonStyle = 100; // aapt resource value: 101 public const int AppCompatTheme_buttonStyleSmall = 101; // aapt resource value: 102 public const int AppCompatTheme_checkboxStyle = 102; // aapt resource value: 103 public const int AppCompatTheme_checkedTextViewStyle = 103; // aapt resource value: 84 public const int AppCompatTheme_colorAccent = 84; // aapt resource value: 88 public const int AppCompatTheme_colorButtonNormal = 88; // aapt resource value: 86 public const int AppCompatTheme_colorControlActivated = 86; // aapt resource value: 87 public const int AppCompatTheme_colorControlHighlight = 87; // aapt resource value: 85 public const int AppCompatTheme_colorControlNormal = 85; // aapt resource value: 82 public const int AppCompatTheme_colorPrimary = 82; // aapt resource value: 83 public const int AppCompatTheme_colorPrimaryDark = 83; // aapt resource value: 89 public const int AppCompatTheme_colorSwitchThumbNormal = 89; // aapt resource value: 90 public const int AppCompatTheme_controlBackground = 90; // aapt resource value: 43 public const int AppCompatTheme_dialogPreferredPadding = 43; // aapt resource value: 42 public const int AppCompatTheme_dialogTheme = 42; // aapt resource value: 56 public const int AppCompatTheme_dividerHorizontal = 56; // aapt resource value: 55 public const int AppCompatTheme_dividerVertical = 55; // aapt resource value: 74 public const int AppCompatTheme_dropDownListViewStyle = 74; // aapt resource value: 46 public const int AppCompatTheme_dropdownListPreferredItemHeight = 46; // aapt resource value: 63 public const int AppCompatTheme_editTextBackground = 63; // aapt resource value: 62 public const int AppCompatTheme_editTextColor = 62; // aapt resource value: 104 public const int AppCompatTheme_editTextStyle = 104; // aapt resource value: 48 public const int AppCompatTheme_homeAsUpIndicator = 48; // aapt resource value: 64 public const int AppCompatTheme_imageButtonStyle = 64; // aapt resource value: 81 public const int AppCompatTheme_listChoiceBackgroundIndicator = 81; // aapt resource value: 44 public const int AppCompatTheme_listDividerAlertDialog = 44; // aapt resource value: 75 public const int AppCompatTheme_listPopupWindowStyle = 75; // aapt resource value: 69 public const int AppCompatTheme_listPreferredItemHeight = 69; // aapt resource value: 71 public const int AppCompatTheme_listPreferredItemHeightLarge = 71; // aapt resource value: 70 public const int AppCompatTheme_listPreferredItemHeightSmall = 70; // aapt resource value: 72 public const int AppCompatTheme_listPreferredItemPaddingLeft = 72; // aapt resource value: 73 public const int AppCompatTheme_listPreferredItemPaddingRight = 73; // aapt resource value: 78 public const int AppCompatTheme_panelBackground = 78; // aapt resource value: 80 public const int AppCompatTheme_panelMenuListTheme = 80; // aapt resource value: 79 public const int AppCompatTheme_panelMenuListWidth = 79; // aapt resource value: 60 public const int AppCompatTheme_popupMenuStyle = 60; // aapt resource value: 61 public const int AppCompatTheme_popupWindowStyle = 61; // aapt resource value: 105 public const int AppCompatTheme_radioButtonStyle = 105; // aapt resource value: 106 public const int AppCompatTheme_ratingBarStyle = 106; // aapt resource value: 107 public const int AppCompatTheme_ratingBarStyleIndicator = 107; // aapt resource value: 108 public const int AppCompatTheme_ratingBarStyleSmall = 108; // aapt resource value: 68 public const int AppCompatTheme_searchViewStyle = 68; // aapt resource value: 109 public const int AppCompatTheme_seekBarStyle = 109; // aapt resource value: 52 public const int AppCompatTheme_selectableItemBackground = 52; // aapt resource value: 53 public const int AppCompatTheme_selectableItemBackgroundBorderless = 53; // aapt resource value: 47 public const int AppCompatTheme_spinnerDropDownItemStyle = 47; // aapt resource value: 110 public const int AppCompatTheme_spinnerStyle = 110; // aapt resource value: 111 public const int AppCompatTheme_switchStyle = 111; // aapt resource value: 40 public const int AppCompatTheme_textAppearanceLargePopupMenu = 40; // aapt resource value: 76 public const int AppCompatTheme_textAppearanceListItem = 76; // aapt resource value: 77 public const int AppCompatTheme_textAppearanceListItemSmall = 77; // aapt resource value: 66 public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 66; // aapt resource value: 65 public const int AppCompatTheme_textAppearanceSearchResultTitle = 65; // aapt resource value: 41 public const int AppCompatTheme_textAppearanceSmallPopupMenu = 41; // aapt resource value: 95 public const int AppCompatTheme_textColorAlertDialogListItem = 95; // aapt resource value: 67 public const int AppCompatTheme_textColorSearchUrl = 67; // aapt resource value: 59 public const int AppCompatTheme_toolbarNavigationButtonStyle = 59; // aapt resource value: 58 public const int AppCompatTheme_toolbarStyle = 58; // aapt resource value: 2 public const int AppCompatTheme_windowActionBar = 2; // aapt resource value: 4 public const int AppCompatTheme_windowActionBarOverlay = 4; // aapt resource value: 5 public const int AppCompatTheme_windowActionModeOverlay = 5; // aapt resource value: 9 public const int AppCompatTheme_windowFixedHeightMajor = 9; // aapt resource value: 7 public const int AppCompatTheme_windowFixedHeightMinor = 7; // aapt resource value: 6 public const int AppCompatTheme_windowFixedWidthMajor = 6; // aapt resource value: 8 public const int AppCompatTheme_windowFixedWidthMinor = 8; // aapt resource value: 10 public const int AppCompatTheme_windowMinWidthMajor = 10; // aapt resource value: 11 public const int AppCompatTheme_windowMinWidthMinor = 11; // aapt resource value: 3 public const int AppCompatTheme_windowNoTitle = 3; public static int[] BottomSheetBehavior_Params = new int[] { 2130772218, 2130772219}; // aapt resource value: 1 public const int BottomSheetBehavior_Params_behavior_hideable = 1; // aapt resource value: 0 public const int BottomSheetBehavior_Params_behavior_peekHeight = 0; public static int[] ButtonBarLayout = new int[] { 2130772154}; // aapt resource value: 0 public const int ButtonBarLayout_allowStacking = 0; public static int[] CardView = new int[] { 16843071, 16843072, 2130771995, 2130771996, 2130771997, 2130771998, 2130771999, 2130772000, 2130772001, 2130772002, 2130772003, 2130772004, 2130772005}; // aapt resource value: 1 public const int CardView_android_minHeight = 1; // aapt resource value: 0 public const int CardView_android_minWidth = 0; // aapt resource value: 2 public const int CardView_cardBackgroundColor = 2; // aapt resource value: 3 public const int CardView_cardCornerRadius = 3; // aapt resource value: 4 public const int CardView_cardElevation = 4; // aapt resource value: 5 public const int CardView_cardMaxElevation = 5; // aapt resource value: 7 public const int CardView_cardPreventCornerOverlap = 7; // aapt resource value: 6 public const int CardView_cardUseCompatPadding = 6; // aapt resource value: 8 public const int CardView_contentPadding = 8; // aapt resource value: 12 public const int CardView_contentPaddingBottom = 12; // aapt resource value: 9 public const int CardView_contentPaddingLeft = 9; // aapt resource value: 10 public const int CardView_contentPaddingRight = 10; // aapt resource value: 11 public const int CardView_contentPaddingTop = 11; public static int[] CollapsingAppBarLayout_LayoutParams = new int[] { 2130772220, 2130772221}; // aapt resource value: 0 public const int CollapsingAppBarLayout_LayoutParams_layout_collapseMode = 0; // aapt resource value: 1 public const int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1; public static int[] CollapsingToolbarLayout = new int[] { 2130772009, 2130772222, 2130772223, 2130772224, 2130772225, 2130772226, 2130772227, 2130772228, 2130772229, 2130772230, 2130772231, 2130772232, 2130772233, 2130772234}; // aapt resource value: 11 public const int CollapsingToolbarLayout_collapsedTitleGravity = 11; // aapt resource value: 7 public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7; // aapt resource value: 8 public const int CollapsingToolbarLayout_contentScrim = 8; // aapt resource value: 12 public const int CollapsingToolbarLayout_expandedTitleGravity = 12; // aapt resource value: 1 public const int CollapsingToolbarLayout_expandedTitleMargin = 1; // aapt resource value: 5 public const int CollapsingToolbarLayout_expandedTitleMarginBottom = 5; // aapt resource value: 4 public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 4; // aapt resource value: 2 public const int CollapsingToolbarLayout_expandedTitleMarginStart = 2; // aapt resource value: 3 public const int CollapsingToolbarLayout_expandedTitleMarginTop = 3; // aapt resource value: 6 public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 6; // aapt resource value: 9 public const int CollapsingToolbarLayout_statusBarScrim = 9; // aapt resource value: 0 public const int CollapsingToolbarLayout_title = 0; // aapt resource value: 13 public const int CollapsingToolbarLayout_titleEnabled = 13; // aapt resource value: 10 public const int CollapsingToolbarLayout_toolbarId = 10; public static int[] CompoundButton = new int[] { 16843015, 2130772155, 2130772156}; // aapt resource value: 0 public const int CompoundButton_android_button = 0; // aapt resource value: 1 public const int CompoundButton_buttonTint = 1; // aapt resource value: 2 public const int CompoundButton_buttonTintMode = 2; public static int[] CoordinatorLayout = new int[] { 2130772235, 2130772236}; // aapt resource value: 0 public const int CoordinatorLayout_keylines = 0; // aapt resource value: 1 public const int CoordinatorLayout_statusBarBackground = 1; public static int[] CoordinatorLayout_LayoutParams = new int[] { 16842931, 2130772237, 2130772238, 2130772239, 2130772240}; // aapt resource value: 0 public const int CoordinatorLayout_LayoutParams_android_layout_gravity = 0; // aapt resource value: 2 public const int CoordinatorLayout_LayoutParams_layout_anchor = 2; // aapt resource value: 4 public const int CoordinatorLayout_LayoutParams_layout_anchorGravity = 4; // aapt resource value: 1 public const int CoordinatorLayout_LayoutParams_layout_behavior = 1; // aapt resource value: 3 public const int CoordinatorLayout_LayoutParams_layout_keyline = 3; public static int[] DesignTheme = new int[] { 2130772241, 2130772242, 2130772243}; // aapt resource value: 0 public const int DesignTheme_bottomSheetDialogTheme = 0; // aapt resource value: 1 public const int DesignTheme_bottomSheetStyle = 1; // aapt resource value: 2 public const int DesignTheme_textColorError = 2; public static int[] DrawerArrowToggle = new int[] { 2130772157, 2130772158, 2130772159, 2130772160, 2130772161, 2130772162, 2130772163, 2130772164}; // aapt resource value: 4 public const int DrawerArrowToggle_arrowHeadLength = 4; // aapt resource value: 5 public const int DrawerArrowToggle_arrowShaftLength = 5; // aapt resource value: 6 public const int DrawerArrowToggle_barLength = 6; // aapt resource value: 0 public const int DrawerArrowToggle_color = 0; // aapt resource value: 2 public const int DrawerArrowToggle_drawableSize = 2; // aapt resource value: 3 public const int DrawerArrowToggle_gapBetweenBars = 3; // aapt resource value: 1 public const int DrawerArrowToggle_spinBars = 1; // aapt resource value: 7 public const int DrawerArrowToggle_thickness = 7; public static int[] FloatingActionButton = new int[] { 2130772032, 2130772213, 2130772214, 2130772244, 2130772245, 2130772246, 2130772247, 2130772248}; // aapt resource value: 1 public const int FloatingActionButton_backgroundTint = 1; // aapt resource value: 2 public const int FloatingActionButton_backgroundTintMode = 2; // aapt resource value: 6 public const int FloatingActionButton_borderWidth = 6; // aapt resource value: 0 public const int FloatingActionButton_elevation = 0; // aapt resource value: 4 public const int FloatingActionButton_fabSize = 4; // aapt resource value: 5 public const int FloatingActionButton_pressedTranslationZ = 5; // aapt resource value: 3 public const int FloatingActionButton_rippleColor = 3; // aapt resource value: 7 public const int FloatingActionButton_useCompatPadding = 7; public static int[] ForegroundLinearLayout = new int[] { 16843017, 16843264, 2130772249}; // aapt resource value: 0 public const int ForegroundLinearLayout_android_foreground = 0; // aapt resource value: 1 public const int ForegroundLinearLayout_android_foregroundGravity = 1; // aapt resource value: 2 public const int ForegroundLinearLayout_foregroundInsidePadding = 2; public static int[] LinearLayoutCompat = new int[] { 16842927, 16842948, 16843046, 16843047, 16843048, 2130772017, 2130772165, 2130772166, 2130772167}; // aapt resource value: 2 public const int LinearLayoutCompat_android_baselineAligned = 2; // aapt resource value: 3 public const int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; // aapt resource value: 0 public const int LinearLayoutCompat_android_gravity = 0; // aapt resource value: 1 public const int LinearLayoutCompat_android_orientation = 1; // aapt resource value: 4 public const int LinearLayoutCompat_android_weightSum = 4; // aapt resource value: 5 public const int LinearLayoutCompat_divider = 5; // aapt resource value: 8 public const int LinearLayoutCompat_dividerPadding = 8; // aapt resource value: 6 public const int LinearLayoutCompat_measureWithLargestChild = 6; // aapt resource value: 7 public const int LinearLayoutCompat_showDividers = 7; public static int[] LinearLayoutCompat_Layout = new int[] { 16842931, 16842996, 16842997, 16843137}; // aapt resource value: 0 public const int LinearLayoutCompat_Layout_android_layout_gravity = 0; // aapt resource value: 2 public const int LinearLayoutCompat_Layout_android_layout_height = 2; // aapt resource value: 3 public const int LinearLayoutCompat_Layout_android_layout_weight = 3; // aapt resource value: 1 public const int LinearLayoutCompat_Layout_android_layout_width = 1; public static int[] ListPopupWindow = new int[] { 16843436, 16843437}; // aapt resource value: 0 public const int ListPopupWindow_android_dropDownHorizontalOffset = 0; // aapt resource value: 1 public const int ListPopupWindow_android_dropDownVerticalOffset = 1; public static int[] MediaRouteButton = new int[] { 16843071, 16843072, 2130771994}; // aapt resource value: 1 public const int MediaRouteButton_android_minHeight = 1; // aapt resource value: 0 public const int MediaRouteButton_android_minWidth = 0; // aapt resource value: 2 public const int MediaRouteButton_externalRouteEnabledDrawable = 2; public static int[] MenuGroup = new int[] { 16842766, 16842960, 16843156, 16843230, 16843231, 16843232}; // aapt resource value: 5 public const int MenuGroup_android_checkableBehavior = 5; // aapt resource value: 0 public const int MenuGroup_android_enabled = 0; // aapt resource value: 1 public const int MenuGroup_android_id = 1; // aapt resource value: 3 public const int MenuGroup_android_menuCategory = 3; // aapt resource value: 4 public const int MenuGroup_android_orderInCategory = 4; // aapt resource value: 2 public const int MenuGroup_android_visible = 2; public static int[] MenuItem = new int[] { 16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, 2130772168, 2130772169, 2130772170, 2130772171}; // aapt resource value: 14 public const int MenuItem_actionLayout = 14; // aapt resource value: 16 public const int MenuItem_actionProviderClass = 16; // aapt resource value: 15 public const int MenuItem_actionViewClass = 15; // aapt resource value: 9 public const int MenuItem_android_alphabeticShortcut = 9; // aapt resource value: 11 public const int MenuItem_android_checkable = 11; // aapt resource value: 3 public const int MenuItem_android_checked = 3; // aapt resource value: 1 public const int MenuItem_android_enabled = 1; // aapt resource value: 0 public const int MenuItem_android_icon = 0; // aapt resource value: 2 public const int MenuItem_android_id = 2; // aapt resource value: 5 public const int MenuItem_android_menuCategory = 5; // aapt resource value: 10 public const int MenuItem_android_numericShortcut = 10; // aapt resource value: 12 public const int MenuItem_android_onClick = 12; // aapt resource value: 6 public const int MenuItem_android_orderInCategory = 6; // aapt resource value: 7 public const int MenuItem_android_title = 7; // aapt resource value: 8 public const int MenuItem_android_titleCondensed = 8; // aapt resource value: 4 public const int MenuItem_android_visible = 4; // aapt resource value: 13 public const int MenuItem_showAsAction = 13; public static int[] MenuView = new int[] { 16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, 2130772172}; // aapt resource value: 4 public const int MenuView_android_headerBackground = 4; // aapt resource value: 2 public const int MenuView_android_horizontalDivider = 2; // aapt resource value: 5 public const int MenuView_android_itemBackground = 5; // aapt resource value: 6 public const int MenuView_android_itemIconDisabledAlpha = 6; // aapt resource value: 1 public const int MenuView_android_itemTextAppearance = 1; // aapt resource value: 3 public const int MenuView_android_verticalDivider = 3; // aapt resource value: 0 public const int MenuView_android_windowAnimationStyle = 0; // aapt resource value: 7 public const int MenuView_preserveIconSpacing = 7; public static int[] NavigationView = new int[] { 16842964, 16842973, 16843039, 2130772032, 2130772250, 2130772251, 2130772252, 2130772253, 2130772254, 2130772255}; // aapt resource value: 0 public const int NavigationView_android_background = 0; // aapt resource value: 1 public const int NavigationView_android_fitsSystemWindows = 1; // aapt resource value: 2 public const int NavigationView_android_maxWidth = 2; // aapt resource value: 3 public const int NavigationView_elevation = 3; // aapt resource value: 9 public const int NavigationView_headerLayout = 9; // aapt resource value: 7 public const int NavigationView_itemBackground = 7; // aapt resource value: 5 public const int NavigationView_itemIconTint = 5; // aapt resource value: 8 public const int NavigationView_itemTextAppearance = 8; // aapt resource value: 6 public const int NavigationView_itemTextColor = 6; // aapt resource value: 4 public const int NavigationView_menu = 4; public static int[] PopupWindow = new int[] { 16843126, 2130772173}; // aapt resource value: 0 public const int PopupWindow_android_popupBackground = 0; // aapt resource value: 1 public const int PopupWindow_overlapAnchor = 1; public static int[] PopupWindowBackgroundState = new int[] { 2130772174}; // aapt resource value: 0 public const int PopupWindowBackgroundState_state_above_anchor = 0; public static int[] RecyclerView = new int[] { 16842948, 2130771968, 2130771969, 2130771970, 2130771971}; // aapt resource value: 0 public const int RecyclerView_android_orientation = 0; // aapt resource value: 1 public const int RecyclerView_layoutManager = 1; // aapt resource value: 3 public const int RecyclerView_reverseLayout = 3; // aapt resource value: 2 public const int RecyclerView_spanCount = 2; // aapt resource value: 4 public const int RecyclerView_stackFromEnd = 4; public static int[] ScrimInsetsFrameLayout = new int[] { 2130772256}; // aapt resource value: 0 public const int ScrimInsetsFrameLayout_insetForeground = 0; public static int[] ScrollingViewBehavior_Params = new int[] { 2130772257}; // aapt resource value: 0 public const int ScrollingViewBehavior_Params_behavior_overlapTop = 0; public static int[] SearchView = new int[] { 16842970, 16843039, 16843296, 16843364, 2130772175, 2130772176, 2130772177, 2130772178, 2130772179, 2130772180, 2130772181, 2130772182, 2130772183, 2130772184, 2130772185, 2130772186, 2130772187}; // aapt resource value: 0 public const int SearchView_android_focusable = 0; // aapt resource value: 3 public const int SearchView_android_imeOptions = 3; // aapt resource value: 2 public const int SearchView_android_inputType = 2; // aapt resource value: 1 public const int SearchView_android_maxWidth = 1; // aapt resource value: 8 public const int SearchView_closeIcon = 8; // aapt resource value: 13 public const int SearchView_commitIcon = 13; // aapt resource value: 7 public const int SearchView_defaultQueryHint = 7; // aapt resource value: 9 public const int SearchView_goIcon = 9; // aapt resource value: 5 public const int SearchView_iconifiedByDefault = 5; // aapt resource value: 4 public const int SearchView_layout = 4; // aapt resource value: 15 public const int SearchView_queryBackground = 15; // aapt resource value: 6 public const int SearchView_queryHint = 6; // aapt resource value: 11 public const int SearchView_searchHintIcon = 11; // aapt resource value: 10 public const int SearchView_searchIcon = 10; // aapt resource value: 16 public const int SearchView_submitBackground = 16; // aapt resource value: 14 public const int SearchView_suggestionRowLayout = 14; // aapt resource value: 12 public const int SearchView_voiceIcon = 12; public static int[] SnackbarLayout = new int[] { 16843039, 2130772032, 2130772258}; // aapt resource value: 0 public const int SnackbarLayout_android_maxWidth = 0; // aapt resource value: 1 public const int SnackbarLayout_elevation = 1; // aapt resource value: 2 public const int SnackbarLayout_maxActionInlineWidth = 2; public static int[] Spinner = new int[] { 16842930, 16843126, 16843131, 16843362, 2130772033}; // aapt resource value: 3 public const int Spinner_android_dropDownWidth = 3; // aapt resource value: 0 public const int Spinner_android_entries = 0; // aapt resource value: 1 public const int Spinner_android_popupBackground = 1; // aapt resource value: 2 public const int Spinner_android_prompt = 2; // aapt resource value: 4 public const int Spinner_popupTheme = 4; public static int[] SwitchCompat = new int[] { 16843044, 16843045, 16843074, 2130772188, 2130772189, 2130772190, 2130772191, 2130772192, 2130772193, 2130772194}; // aapt resource value: 1 public const int SwitchCompat_android_textOff = 1; // aapt resource value: 0 public const int SwitchCompat_android_textOn = 0; // aapt resource value: 2 public const int SwitchCompat_android_thumb = 2; // aapt resource value: 9 public const int SwitchCompat_showText = 9; // aapt resource value: 8 public const int SwitchCompat_splitTrack = 8; // aapt resource value: 6 public const int SwitchCompat_switchMinWidth = 6; // aapt resource value: 7 public const int SwitchCompat_switchPadding = 7; // aapt resource value: 5 public const int SwitchCompat_switchTextAppearance = 5; // aapt resource value: 4 public const int SwitchCompat_thumbTextPadding = 4; // aapt resource value: 3 public const int SwitchCompat_track = 3; public static int[] TabItem = new int[] { 16842754, 16842994, 16843087}; // aapt resource value: 0 public const int TabItem_android_icon = 0; // aapt resource value: 1 public const int TabItem_android_layout = 1; // aapt resource value: 2 public const int TabItem_android_text = 2; public static int[] TabLayout = new int[] { 2130772259, 2130772260, 2130772261, 2130772262, 2130772263, 2130772264, 2130772265, 2130772266, 2130772267, 2130772268, 2130772269, 2130772270, 2130772271, 2130772272, 2130772273, 2130772274}; // aapt resource value: 3 public const int TabLayout_tabBackground = 3; // aapt resource value: 2 public const int TabLayout_tabContentStart = 2; // aapt resource value: 5 public const int TabLayout_tabGravity = 5; // aapt resource value: 0 public const int TabLayout_tabIndicatorColor = 0; // aapt resource value: 1 public const int TabLayout_tabIndicatorHeight = 1; // aapt resource value: 7 public const int TabLayout_tabMaxWidth = 7; // aapt resource value: 6 public const int TabLayout_tabMinWidth = 6; // aapt resource value: 4 public const int TabLayout_tabMode = 4; // aapt resource value: 15 public const int TabLayout_tabPadding = 15; // aapt resource value: 14 public const int TabLayout_tabPaddingBottom = 14; // aapt resource value: 13 public const int TabLayout_tabPaddingEnd = 13; // aapt resource value: 11 public const int TabLayout_tabPaddingStart = 11; // aapt resource value: 12 public const int TabLayout_tabPaddingTop = 12; // aapt resource value: 10 public const int TabLayout_tabSelectedTextColor = 10; // aapt resource value: 8 public const int TabLayout_tabTextAppearance = 8; // aapt resource value: 9 public const int TabLayout_tabTextColor = 9; public static int[] TextAppearance = new int[] { 16842901, 16842902, 16842903, 16842904, 16843105, 16843106, 16843107, 16843108, 2130772043}; // aapt resource value: 4 public const int TextAppearance_android_shadowColor = 4; // aapt resource value: 5 public const int TextAppearance_android_shadowDx = 5; // aapt resource value: 6 public const int TextAppearance_android_shadowDy = 6; // aapt resource value: 7 public const int TextAppearance_android_shadowRadius = 7; // aapt resource value: 3 public const int TextAppearance_android_textColor = 3; // aapt resource value: 0 public const int TextAppearance_android_textSize = 0; // aapt resource value: 2 public const int TextAppearance_android_textStyle = 2; // aapt resource value: 1 public const int TextAppearance_android_typeface = 1; // aapt resource value: 8 public const int TextAppearance_textAllCaps = 8; public static int[] TextInputLayout = new int[] { 16842906, 16843088, 2130772275, 2130772276, 2130772277, 2130772278, 2130772279, 2130772280, 2130772281, 2130772282, 2130772283}; // aapt resource value: 1 public const int TextInputLayout_android_hint = 1; // aapt resource value: 0 public const int TextInputLayout_android_textColorHint = 0; // aapt resource value: 6 public const int TextInputLayout_counterEnabled = 6; // aapt resource value: 7 public const int TextInputLayout_counterMaxLength = 7; // aapt resource value: 9 public const int TextInputLayout_counterOverflowTextAppearance = 9; // aapt resource value: 8 public const int TextInputLayout_counterTextAppearance = 8; // aapt resource value: 4 public const int TextInputLayout_errorEnabled = 4; // aapt resource value: 5 public const int TextInputLayout_errorTextAppearance = 5; // aapt resource value: 10 public const int TextInputLayout_hintAnimationEnabled = 10; // aapt resource value: 3 public const int TextInputLayout_hintEnabled = 3; // aapt resource value: 2 public const int TextInputLayout_hintTextAppearance = 2; public static int[] Toolbar = new int[] { 16842927, 16843072, 2130772009, 2130772012, 2130772016, 2130772028, 2130772029, 2130772030, 2130772031, 2130772033, 2130772195, 2130772196, 2130772197, 2130772198, 2130772199, 2130772200, 2130772201, 2130772202, 2130772203, 2130772204, 2130772205, 2130772206, 2130772207, 2130772208, 2130772209}; // aapt resource value: 0 public const int Toolbar_android_gravity = 0; // aapt resource value: 1 public const int Toolbar_android_minHeight = 1; // aapt resource value: 19 public const int Toolbar_collapseContentDescription = 19; // aapt resource value: 18 public const int Toolbar_collapseIcon = 18; // aapt resource value: 6 public const int Toolbar_contentInsetEnd = 6; // aapt resource value: 7 public const int Toolbar_contentInsetLeft = 7; // aapt resource value: 8 public const int Toolbar_contentInsetRight = 8; // aapt resource value: 5 public const int Toolbar_contentInsetStart = 5; // aapt resource value: 4 public const int Toolbar_logo = 4; // aapt resource value: 22 public const int Toolbar_logoDescription = 22; // aapt resource value: 17 public const int Toolbar_maxButtonHeight = 17; // aapt resource value: 21 public const int Toolbar_navigationContentDescription = 21; // aapt resource value: 20 public const int Toolbar_navigationIcon = 20; // aapt resource value: 9 public const int Toolbar_popupTheme = 9; // aapt resource value: 3 public const int Toolbar_subtitle = 3; // aapt resource value: 11 public const int Toolbar_subtitleTextAppearance = 11; // aapt resource value: 24 public const int Toolbar_subtitleTextColor = 24; // aapt resource value: 2 public const int Toolbar_title = 2; // aapt resource value: 16 public const int Toolbar_titleMarginBottom = 16; // aapt resource value: 14 public const int Toolbar_titleMarginEnd = 14; // aapt resource value: 13 public const int Toolbar_titleMarginStart = 13; // aapt resource value: 15 public const int Toolbar_titleMarginTop = 15; // aapt resource value: 12 public const int Toolbar_titleMargins = 12; // aapt resource value: 10 public const int Toolbar_titleTextAppearance = 10; // aapt resource value: 23 public const int Toolbar_titleTextColor = 23; public static int[] View = new int[] { 16842752, 16842970, 2130772210, 2130772211, 2130772212}; // aapt resource value: 1 public const int View_android_focusable = 1; // aapt resource value: 0 public const int View_android_theme = 0; // aapt resource value: 3 public const int View_paddingEnd = 3; // aapt resource value: 2 public const int View_paddingStart = 2; // aapt resource value: 4 public const int View_theme = 4; public static int[] ViewBackgroundHelper = new int[] { 16842964, 2130772213, 2130772214}; // aapt resource value: 0 public const int ViewBackgroundHelper_android_background = 0; // aapt resource value: 1 public const int ViewBackgroundHelper_backgroundTint = 1; // aapt resource value: 2 public const int ViewBackgroundHelper_backgroundTintMode = 2; public static int[] ViewStubCompat = new int[] { 16842960, 16842994, 16842995}; // aapt resource value: 0 public const int ViewStubCompat_android_id = 0; // aapt resource value: 2 public const int ViewStubCompat_android_inflatedId = 2; // aapt resource value: 1 public const int ViewStubCompat_android_layout = 1; static Styleable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Styleable() { } } } } #pragma warning restore 1591
31.411696
143
0.73027
[ "MIT" ]
CrossGeeks/ClearableDatePickerSample
Droid/Resources/Resource.designer.cs
187,999
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// <summary> /// A client for GitHub's Issue Assignees API. /// </summary> /// <remarks> /// See the <a href="http://developer.github.com/v3/issues/assignees/">Issue Assignees API documentation</a> for more information. /// </remarks> public class AssigneesClient : ApiClient, IAssigneesClient { /// <summary> /// Instantiates a new GitHub Issue Assignees API client. /// </summary> /// <param name="apiConnection">An API connection</param> public AssigneesClient(IApiConnection apiConnection) : base(apiConnection) { } /// <summary> /// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> [ManualRoute("GET", "/repos/{owner}/{repo}/assignees")] public Task<IReadOnlyList<User>> GetAllForRepository(string owner, string name) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); return GetAllForRepository(owner, name, ApiOptions.None); } /// <summary> /// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// </summary> /// <param name="repositoryId">The Id of the repository</param> [ManualRoute("GET", "/repositories/{id}/assignees")] public Task<IReadOnlyList<User>> GetAllForRepository(long repositoryId) { return GetAllForRepository(repositoryId, ApiOptions.None); } /// <summary> /// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="options">The options to change API's response.</param> [ManualRoute("GET", "/repos/{owner}/{repo}/assignees")] public Task<IReadOnlyList<User>> GetAllForRepository(string owner, string name, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(options, nameof(options)); var endpoint = ApiUrls.Assignees(owner, name); return ApiConnection.GetAll<User>(endpoint, null, AcceptHeaders.StableVersion, options); } /// <summary> /// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// </summary> /// <param name="repositoryId">The Id of the repository</param> /// <param name="options">The options to change API's response.</param> [ManualRoute("GET", "/repositories/{id}/assignees")] public Task<IReadOnlyList<User>> GetAllForRepository(long repositoryId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); var endpoint = ApiUrls.Assignees(repositoryId); return ApiConnection.GetAll<User>(endpoint, null, AcceptHeaders.StableVersion, options); } /// <summary> /// Checks to see if a user is an assignee for a repository. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="assignee">Username of the prospective assignee</param> [ManualRoute("GET", "/repos/{owner}/{repo}/assignees/{username}")] public async Task<bool> CheckAssignee(string owner, string name, string assignee) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNullOrEmptyString(assignee, nameof(assignee)); try { var response = await Connection.Get<object>(ApiUrls.CheckAssignee(owner, name, assignee), null, null).ConfigureAwait(false); return response.HttpResponse.IsTrue(); } catch (NotFoundException) { return false; } } /// <summary> /// Add assignees to a specified Issue. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="number">The issue number</param> /// <param name="assignees">List of names of assignees to add</param> /// <returns></returns> [ManualRoute("POST", "/repos/{owner}/{repo}/issues/{issue_number}/assignees")] public Task<Issue> AddAssignees(string owner, string name, int number, AssigneesUpdate assignees) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(assignees, nameof(assignees)); return ApiConnection.Post<Issue>(ApiUrls.IssueAssignees(owner, name, number), assignees); } /// <summary> /// Remove assignees from a specified Issue. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="number">The issue number</param> /// <param name="assignees">List of assignees to remove</param> /// <returns></returns> [ManualRoute("DELETE", "/repos/{owner}/{repo}/issues/{issue_number}/assignees")] public Task<Issue> RemoveAssignees(string owner, string name, int number, AssigneesUpdate assignees) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(assignees, nameof(assignees)); return ApiConnection.Delete<Issue>(ApiUrls.IssueAssignees(owner, name, number), assignees); } /// <summary> /// Checks to see if a user is an assignee for a repository. /// </summary> /// <param name="repositoryId">The Id of the repository</param> /// <param name="assignee">Username of the prospective assignee</param> [ManualRoute("GET", "/repositories/{id}/assignees/{username}")] public async Task<bool> CheckAssignee(long repositoryId, string assignee) { Ensure.ArgumentNotNullOrEmptyString(assignee, nameof(assignee)); try { var response = await Connection.Get<object>(ApiUrls.CheckAssignee(repositoryId, assignee), null, null).ConfigureAwait(false); return response.HttpResponse.IsTrue(); } catch (NotFoundException) { return false; } } } }
44.782609
141
0.619695
[ "MIT" ]
3shape/octokit.net
Octokit/Clients/AssigneesClient.cs
7,212
C#
/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Runtime.InteropServices; namespace Microsoft.PowerShell.Internal { internal class Accessibility { internal static bool IsScreenReaderActive() { bool returnValue = false; if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { PlatformWindows.SystemParametersInfo(PlatformWindows.SPI_GETSCREENREADER, 0, ref returnValue, 0); } return returnValue; } } }
29.583333
114
0.494366
[ "BSD-2-Clause" ]
243083df/PSReadLine
PSReadLine/Accessibility.cs
710
C#
namespace Epic.OnlineServices.Achievements { public class GetUnlockedAchievementCountOptions { public int ApiVersion => 1; public ProductUserId UserId { get; set; } } }
17.7
48
0.762712
[ "MIT" ]
undancer/oni-data
Managed/firstpass/Epic/OnlineServices/Achievements/GetUnlockedAchievementCountOptions.cs
177
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; using System.Reactive.Concurrency; namespace ReactiveUI { /// <summary> /// Mac platform registrations. /// </summary> /// <seealso cref="ReactiveUI.IWantsToRegisterStuff" /> public class PlatformRegistrations : IWantsToRegisterStuff { /// <inheritdoc/> public void Register(Action<Func<object>, Type> registerFunction) { registerFunction(() => new PlatformOperations(), typeof(IPlatformOperations)); registerFunction(() => new ComponentModelTypeConverter(), typeof(IBindingTypeConverter)); registerFunction(() => new AppKitObservableForProperty(), typeof(ICreatesObservableForProperty)); registerFunction(() => new TargetActionCommandBinder(), typeof(ICreatesCommandBinding)); registerFunction(() => new DateTimeNSDateConverter(), typeof(IBindingTypeConverter)); registerFunction(() => new KVOObservableForProperty(), typeof(ICreatesObservableForProperty)); RxApp.TaskpoolScheduler = TaskPoolScheduler.Default; RxApp.MainThreadScheduler = new WaitForDispatcherScheduler(() => new NSRunloopScheduler()); registerFunction(() => new AppSupportJsonSuspensionDriver(), typeof(ISuspensionDriver)); } } }
47.903226
109
0.700337
[ "MIT" ]
Nilox/ReactiveUI
src/ReactiveUI/Platforms/mac/PlatformRegistrations.cs
1,485
C#
using System; using System.IO; using System.Text; namespace _17File { class Program { static void Main(string[] args) { //File.Create(@"C:\Users\admin\source\repos\17File\1.txt"); //Console.WriteLine("创建成功"); //File.Delete(@"C:\Users\admin\source\repos\17File\1.txt"); //Console.WriteLine("删除成功"); //File.Copy(@"C:\Users\admin\source\repos\17File\1.txt", @"C:\Users\admin\source\repos\17File\2.txt"); //Console.WriteLine("复制成功"); //string[] str=File.ReadAllLines(@"C:\Users\admin\source\repos\17File\服饰.txt", Encoding.Default); //foreach (string item in str) //{ // Console.WriteLine(item); //} //string str2 = File.ReadAllText(@"C:\Users\admin\source\repos\17File\服饰.txt", Encoding.Default); //Console.WriteLine(str2); //File.WriteAllLines(@"C:\Users\admin\source\repos\17File\1.txt",new string[] { "abc","efg" }); //Console.WriteLine("ok"); File.WriteAllText(@"C:\Users\admin\source\repos\17File\2.txt", "hahhahahhaha"); Console.WriteLine("ok"); File.AppendAllText(@"C:\Users\admin\source\repos\17File\2.txt", "看我有没有把你覆盖"); Console.WriteLine("ok"); } } }
35.026316
114
0.564237
[ "Apache-2.0" ]
HbiZHI/.net_note
17File/Program.cs
1,383
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("CactbotEventSource")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CactbotEventSource")] [assembly: AssemblyCopyright("Copyright 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("9eb3ba4d-b285-4445-b88b-2fb59b8bb321")] // Version: // - Major Version // - Minor Version // - Build Number // - Revision // GitHub has only 3 version components, so Revision should always be 0. // CactbotOverlay and CactbotEventSource version should match. [assembly: AssemblyVersion("0.26.10.0")] [assembly: AssemblyFileVersion("0.26.10.0")]
32.307692
73
0.739286
[ "Apache-2.0" ]
pyeonch/cactbot
plugin/CactbotEventSource/Properties/AssemblyInfo.cs
817
C#
// <auto-generated /> using System; using Etimo.Id.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Etimo.Id.Data.Migrations { [DbContext(typeof(EtimoIdDbContext))] [Migration("20201126181445_AddUserIdToAuthorizationCode")] partial class AddUserIdToAuthorizationCode { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .UseIdentityByDefaultColumns() .HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("ProductVersion", "5.0.0"); modelBuilder.Entity("Etimo.Id.Entities.Application", b => { b.Property<int>("ApplicationId") .ValueGeneratedOnAdd() .HasColumnType("integer") .UseIdentityByDefaultColumn(); b.Property<Guid>("ClientId") .HasColumnType("uuid"); b.Property<string>("ClientSecret") .HasColumnType("text"); b.Property<string>("Description") .HasColumnType("text"); b.Property<string>("HomepageUri") .HasColumnType("text"); b.Property<string>("Name") .HasColumnType("text"); b.Property<string>("RedirectUri") .HasColumnType("text"); b.Property<Guid>("UserId") .HasColumnType("uuid"); b.HasKey("ApplicationId"); b.HasIndex("ClientId") .IsUnique(); b.HasIndex("UserId"); b.ToTable("Applications"); }); modelBuilder.Entity("Etimo.Id.Entities.AuthorizationCode", b => { b.Property<Guid>("AuthorizationCodeId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<bool>("Authorized") .HasColumnType("boolean"); b.Property<Guid>("ClientId") .HasColumnType("uuid"); b.Property<string>("Code") .HasColumnType("text"); b.Property<DateTime>("ExpirationDate") .HasColumnType("timestamp without time zone"); b.Property<string>("RedirectUri") .HasColumnType("text"); b.Property<Guid?>("UserId") .HasColumnType("uuid"); b.HasKey("AuthorizationCodeId"); b.HasIndex("Code"); b.ToTable("AuthorizationCodes"); }); modelBuilder.Entity("Etimo.Id.Entities.RefreshToken", b => { b.Property<Guid>("RefreshTokenId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<int>("ApplicationId") .HasColumnType("integer"); b.Property<DateTime>("ExpirationDate") .HasColumnType("timestamp without time zone"); b.Property<string>("Scope") .HasColumnType("text"); b.Property<Guid>("UserId") .HasColumnType("uuid"); b.HasKey("RefreshTokenId"); b.HasIndex("ApplicationId"); b.HasIndex("UserId"); b.ToTable("RefreshTokens"); }); modelBuilder.Entity("Etimo.Id.Entities.User", b => { b.Property<Guid>("UserId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<string>("Password") .HasColumnType("text"); b.Property<string>("Username") .HasColumnType("text"); b.HasKey("UserId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("Etimo.Id.Entities.Application", b => { b.HasOne("Etimo.Id.Entities.User", "User") .WithMany("Applications") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("Etimo.Id.Entities.RefreshToken", b => { b.HasOne("Etimo.Id.Entities.Application", "Application") .WithMany("RefreshTokens") .HasForeignKey("ApplicationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Etimo.Id.Entities.User", "User") .WithMany("RefreshTokens") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Application"); b.Navigation("User"); }); modelBuilder.Entity("Etimo.Id.Entities.Application", b => { b.Navigation("RefreshTokens"); }); modelBuilder.Entity("Etimo.Id.Entities.User", b => { b.Navigation("Applications"); b.Navigation("RefreshTokens"); }); #pragma warning restore 612, 618 } } }
33.335135
76
0.459381
[ "MIT" ]
Etimo/etimo-id
src/Etimo.Id.Data/Migrations/20201126181445_AddUserIdToAuthorizationCode.Designer.cs
6,169
C#
// -------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // -------------------------------------------------------------------------- using System.Collections.Generic; using Microsoft.Azure.Management.ApiManagement.ArmTemplates.Common.API.Clients.Abstractions; using Microsoft.Azure.Management.ApiManagement.ArmTemplates.Common.TemplateModels; using Microsoft.Azure.Management.ApiManagement.ArmTemplates.Extractor.Models; using Moq; namespace Microsoft.Azure.Management.ApiManagement.ArmTemplates.Tests.Moqs.ApiClients { public class MockDiagnosticClient { public const string DiagnosticName = "diagnostic"; public const string DefaultDiagnosticName = "default-diagnostic"; public static IDiagnosticClient GetMockedClientWithApiDependentValues() { var mockDiagnosticClient = new Mock<IDiagnosticClient>(MockBehavior.Strict); mockDiagnosticClient .Setup(x => x.GetAllAsync(It.IsAny<ExtractorParameters>())) .ReturnsAsync((ExtractorParameters _) => new List<DiagnosticTemplateResource> { new DiagnosticTemplateResource { Name = DiagnosticName, Properties = new DiagnosticTemplateProperties() { LoggerId = "logger-id" } } }); mockDiagnosticClient .Setup(x => x.GetApiDiagnosticsAsync(It.IsAny<string>(), It.IsAny<ExtractorParameters>())) .ReturnsAsync((string apiName, ExtractorParameters _) => new List<DiagnosticTemplateResource> { new DiagnosticTemplateResource { Name = $"{apiName}-{DiagnosticName}", Properties = new DiagnosticTemplateProperties() { LoggerId = "logger-id" } } }); return mockDiagnosticClient.Object; } public static IDiagnosticClient GetMockedApiClientWithDefaultValues() { var mockDiagnosticClient = new Mock<IDiagnosticClient>(MockBehavior.Strict); mockDiagnosticClient .Setup(x => x.GetAllAsync(It.IsAny<ExtractorParameters>())) .ReturnsAsync((ExtractorParameters _) => new List<DiagnosticTemplateResource> { new DiagnosticTemplateResource { Name = DefaultDiagnosticName, Properties = new DiagnosticTemplateProperties() { LoggerId = "logger-id" } } }); mockDiagnosticClient .Setup(x => x.GetApiDiagnosticsAsync(It.IsAny<string>(), It.IsAny<ExtractorParameters>())) .ReturnsAsync((string _, ExtractorParameters _) => new List<DiagnosticTemplateResource> { new DiagnosticTemplateResource { Name = DefaultDiagnosticName, Properties = new DiagnosticTemplateProperties() { LoggerId = "logger-id" } } }); return mockDiagnosticClient.Object; } } }
40.644444
109
0.515036
[ "MIT" ]
Azure/azure-api-management-devops-example
tests/ArmTemplates.Tests/Moqs/ApiClients/MockDiagnosticClient.cs
3,660
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; namespace System.Windows.Input.Manipulations { /// <summary> /// Base class from which all inertia parameter classes /// are derived. /// </summary> public abstract class InertiaParameters2D { /// <summary> /// Fires when a property changes. /// </summary> internal event Action<InertiaParameters2D, string> Changed; /// <summary> /// Changes a property value, firing the Changed event, if appropriate. /// </summary> /// <remarks> /// This is intended to be called only by derived classes, but we can't put /// the "protected" qualifier on it because doing so would make the method /// visible outside this assembly, despite the "internal" keyword. /// </remarks> internal void ProtectedChangeProperty(Func<bool> isEqual, Action setNewValue, string paramName) { Debug.Assert(isEqual != null); Debug.Assert(setNewValue != null); Debug.Assert(paramName != null); if (!isEqual()) { setNewValue(); if (Changed != null) { Changed(this, paramName); } } } /// <summary> /// Internal constructor, to prevent deriving new /// subclasses outside this assembly. /// </summary> internal InertiaParameters2D() { } } }
33.653846
104
0.558286
[ "MIT" ]
56hide/wpf
src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/InertiaParameters2D.cs
1,750
C#
using System.Text.Json.Serialization; using Horizon.Payment.Alipay.Domain; namespace Horizon.Payment.Alipay.Response { /// <summary> /// AlipayOpenBizCreateResponse. /// </summary> public class AlipayOpenBizCreateResponse : AlipayResponse { /// <summary> /// 1 /// </summary> [JsonPropertyName("a")] public string A { get; set; } /// <summary> /// 211 /// </summary> [JsonPropertyName("b")] public GavintestNewonline B { get; set; } /// <summary> /// 1 /// </summary> [JsonPropertyName("c")] public string C { get; set; } } }
22.466667
61
0.534125
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Response/AlipayOpenBizCreateResponse.cs
676
C#
/****************************************************************************** * Spine Runtimes License Agreement * Last updated January 1, 2020. Replaces all prior versions. * * Copyright (c) 2013-2020, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * * Otherwise, it is permitted to integrate the Spine Runtimes into software * or otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. * * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #if UNITY_2018_3 || UNITY_2019 || UNITY_2018_3_OR_NEWER #define NEW_PREFAB_SYSTEM #endif using System; using UnityEngine; namespace Spine.Unity { /// <summary>Sets a GameObject's transform to match a bone on a Spine skeleton.</summary> #if NEW_PREFAB_SYSTEM [ExecuteAlways] #else [ExecuteInEditMode] #endif [AddComponentMenu("Spine/BoneFollower")] [HelpURL("http://esotericsoftware.com/spine-unity#BoneFollower")] public class BoneFollower : MonoBehaviour { #region Inspector public SkeletonRenderer skeletonRenderer; public SkeletonRenderer SkeletonRenderer { get { return skeletonRenderer; } set { skeletonRenderer = value; Initialize(); } } /// <summary>If a bone isn't set in code, boneName is used to find the bone at the beginning. For runtime switching by name, use SetBoneByName. You can also set the BoneFollower.bone field directly.</summary> [SpineBone(dataField: "skeletonRenderer")] public string boneName; public bool followXYPosition = true; public bool followZPosition = true; public bool followBoneRotation = true; [Tooltip("Follows the skeleton's flip state by controlling this Transform's local scale.")] public bool followSkeletonFlip = true; [Tooltip("Follows the target bone's local scale. BoneFollower cannot inherit world/skewed scale because of UnityEngine.Transform property limitations.")] public bool followLocalScale = false; [UnityEngine.Serialization.FormerlySerializedAs("resetOnAwake")] public bool initializeOnAwake = true; #endregion [NonSerialized] public bool valid; [NonSerialized] public Bone bone; Transform skeletonTransform; bool skeletonTransformIsParent; /// <summary> /// Sets the target bone by its bone name. Returns false if no bone was found. To set the bone by reference, use BoneFollower.bone directly.</summary> public bool SetBone (string name) { bone = skeletonRenderer.skeleton.FindBone(name); if (bone == null) { Debug.LogError("Bone not found: " + name, this); return false; } boneName = name; return true; } public void Awake () { if (initializeOnAwake) Initialize(); } public void HandleRebuildRenderer (SkeletonRenderer skeletonRenderer) { Initialize(); } public void Initialize () { bone = null; valid = skeletonRenderer != null && skeletonRenderer.valid; if (!valid) return; skeletonTransform = skeletonRenderer.transform; skeletonRenderer.OnRebuild -= HandleRebuildRenderer; skeletonRenderer.OnRebuild += HandleRebuildRenderer; skeletonTransformIsParent = Transform.ReferenceEquals(skeletonTransform, transform.parent); if (!string.IsNullOrEmpty(boneName)) bone = skeletonRenderer.skeleton.FindBone(boneName); #if UNITY_EDITOR if (Application.isEditor) LateUpdate(); #endif } void OnDestroy () { if (skeletonRenderer != null) skeletonRenderer.OnRebuild -= HandleRebuildRenderer; } public void LateUpdate () { if (!valid) { Initialize(); return; } #if UNITY_EDITOR if (!Application.isPlaying) skeletonTransformIsParent = Transform.ReferenceEquals(skeletonTransform, transform.parent); #endif if (bone == null) { if (string.IsNullOrEmpty(boneName)) return; bone = skeletonRenderer.skeleton.FindBone(boneName); if (!SetBone(boneName)) return; } Transform thisTransform = this.transform; if (skeletonTransformIsParent) { // Recommended setup: Use local transform properties if Spine GameObject is the immediate parent thisTransform.localPosition = new Vector3(followXYPosition ? bone.worldX : thisTransform.localPosition.x, followXYPosition ? bone.worldY : thisTransform.localPosition.y, followZPosition ? 0f : thisTransform.localPosition.z); if (followBoneRotation) { float halfRotation = Mathf.Atan2(bone.c, bone.a) * 0.5f; if (followLocalScale && bone.scaleX < 0) // Negate rotation from negative scaleX. Don't use negative determinant. local scaleY doesn't factor into used rotation. halfRotation += Mathf.PI * 0.5f; var q = default(Quaternion); q.z = Mathf.Sin(halfRotation); q.w = Mathf.Cos(halfRotation); thisTransform.localRotation = q; } } else { // For special cases: Use transform world properties if transform relationship is complicated Vector3 targetWorldPosition = skeletonTransform.TransformPoint(new Vector3(bone.worldX, bone.worldY, 0f)); if (!followZPosition) targetWorldPosition.z = thisTransform.position.z; if (!followXYPosition) { targetWorldPosition.x = thisTransform.position.x; targetWorldPosition.y = thisTransform.position.y; } float boneWorldRotation = bone.WorldRotationX; Transform transformParent = thisTransform.parent; if (transformParent != null) { Matrix4x4 m = transformParent.localToWorldMatrix; if (m.m00 * m.m11 - m.m01 * m.m10 < 0) // Determinant2D is negative boneWorldRotation = -boneWorldRotation; } if (followBoneRotation) { Vector3 worldRotation = skeletonTransform.rotation.eulerAngles; if (followLocalScale && bone.scaleX < 0) boneWorldRotation += 180f; thisTransform.SetPositionAndRotation(targetWorldPosition, Quaternion.Euler(worldRotation.x, worldRotation.y, worldRotation.z + boneWorldRotation)); } else { thisTransform.position = targetWorldPosition; } } Vector3 localScale = followLocalScale ? new Vector3(bone.scaleX, bone.scaleY, 1f) : new Vector3(1f, 1f, 1f); if (followSkeletonFlip) localScale.y *= Mathf.Sign(bone.skeleton.ScaleX * bone.skeleton.ScaleY); thisTransform.localScale = localScale; } } }
37.974227
210
0.722818
[ "Unlicense" ]
Mispon/rap-way
Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs
7,367
C#
using MonoGame.RemoteEffect; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http; namespace RemoteEffectRole.Controllers { public class EffectController : ApiController { // POST api/values public Result Post([FromBody]Data value) { try { string error = String.Empty; Version compiledWith; byte[] buf = RunMGCB(value.Code, value.Platform, value.Version, out error, out compiledWith); return new Result() { Compiled = buf, Error = error, CompiledWith = compiledWith.ToString () }; } catch (Exception ex) { return new Result() { Error = ex.ToString() }; } } static Version GetVersion(string version) { Version result; if (!Version.TryParse (version, out result)) { return new Version(3, 5); } return result; } static string Find2MGFXForVersion (Version version) { var root = Path.Combine(HttpContext.Current.Server.MapPath(@"~\"), "Tools"); var dirs = Directory.EnumerateDirectories(root, "*", SearchOption.TopDirectoryOnly); foreach (var dir in dirs.OrderByDescending(x => Version.Parse(Path.GetFileName(x)))) { string result = Path.Combine(dir, "2MGFX.exe"); var v = Version.Parse(Path.GetFileName(dir)); if (v == version) { return result; } if (version.Build != -1 && v == new Version (version.Major, version.Minor, version.Build)) { return result; } if (v == new Version(version.Major, version.Minor)) { return result; } } return null; } static byte[] RunMGCB(string code, string platform, string version, out string error, out Version compiledWith) { string[] platforms = new string[] { "DesktopGL", "Android", "iOS", "tvOS", "OUYA", }; compiledWith = GetVersion(version); var mgfxExe = Find2MGFXForVersion(compiledWith); if (string.IsNullOrEmpty (mgfxExe) || !File.Exists (mgfxExe)) { compiledWith = new Version(3, 5); mgfxExe = Path.Combine(HttpContext.Current.Server.MapPath(@"~\"), "Tools", "2MGFX.exe"); } error = String.Empty; var tempPath = Path.GetFileName(Path.ChangeExtension(Path.GetTempFileName(), ".fx")); var xnb = Path.ChangeExtension(tempPath, ".mgfx"); var tempOutput = Path.GetTempPath(); File.WriteAllText(Path.Combine(tempOutput, tempPath), code); var startInfo = new ProcessStartInfo(); var progFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86); startInfo.FileName = mgfxExe; startInfo.WorkingDirectory = tempOutput; startInfo.CreateNoWindow = true; startInfo.UseShellExecute = false; startInfo.RedirectStandardError = true; var profile = platforms.Contains(platform) ? "OpenGL" : "DirectX_11"; startInfo.Arguments = string.Format("./{0} ./{1} /Profile:{2}", tempPath, xnb, profile); var process = Process.Start(startInfo); try { process.WaitForExit(); if (process.ExitCode != 0) { error = process.StandardError.ReadToEnd(); } if (File.Exists(Path.Combine(tempOutput, xnb))) { return File.ReadAllBytes(Path.Combine(tempOutput, xnb)); } } catch (Exception ex) { error = ex.ToString(); Console.WriteLine(ex.ToString()); } finally { File.Delete(Path.Combine(tempOutput, tempPath)); File.Delete(Path.Combine(tempOutput, xnb)); } return new byte[0]; } } } namespace MonoGame.RemoteEffect { public class Result { public byte[] Compiled { get; set; } public string Error { get; set; } public string CompiledWith { get; set; } } public class Data { public string Platform { get; set; } public string Code { get; set; } public string Version { get; set; } } }
34.673759
119
0.520965
[ "MIT" ]
infinitespace-studios/InfinitespaceStudios.Pipeline
InfinitespaceStudios.PipelineService/PipelineRole/Controllers/EffectController.cs
4,891
C#
namespace BeUtl.Media; /// <summary> /// Defines a set of predefined colors. /// </summary> public sealed class Colors { /// <summary> /// Gets a color with an ARGB value of #fff0f8ff. /// </summary> public static Color AliceBlue => KnownColor.AliceBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffaebd7. /// </summary> public static Color AntiqueWhite => KnownColor.AntiqueWhite.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00ffff. /// </summary> public static Color Aqua => KnownColor.Aqua.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff7fffd4. /// </summary> public static Color Aquamarine => KnownColor.Aquamarine.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff0ffff. /// </summary> public static Color Azure => KnownColor.Azure.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff5f5dc. /// </summary> public static Color Beige => KnownColor.Beige.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffe4c4. /// </summary> public static Color Bisque => KnownColor.Bisque.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff000000. /// </summary> public static Color Black => KnownColor.Black.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffebcd. /// </summary> public static Color BlanchedAlmond => KnownColor.BlanchedAlmond.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff0000ff. /// </summary> public static Color Blue => KnownColor.Blue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff8a2be2. /// </summary> public static Color BlueViolet => KnownColor.BlueViolet.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffa52a2a. /// </summary> public static Color Brown => KnownColor.Brown.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffdeb887. /// </summary> public static Color BurlyWood => KnownColor.BurlyWood.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff5f9ea0. /// </summary> public static Color CadetBlue => KnownColor.CadetBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff7fff00. /// </summary> public static Color Chartreuse => KnownColor.Chartreuse.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffd2691e. /// </summary> public static Color Chocolate => KnownColor.Chocolate.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff7f50. /// </summary> public static Color Coral => KnownColor.Coral.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff6495ed. /// </summary> public static Color CornflowerBlue => KnownColor.CornflowerBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffff8dc. /// </summary> public static Color Cornsilk => KnownColor.Cornsilk.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffdc143c. /// </summary> public static Color Crimson => KnownColor.Crimson.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00ffff. /// </summary> public static Color Cyan => KnownColor.Cyan.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00008b. /// </summary> public static Color DarkBlue => KnownColor.DarkBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff008b8b. /// </summary> public static Color DarkCyan => KnownColor.DarkCyan.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffb8860b. /// </summary> public static Color DarkGoldenrod => KnownColor.DarkGoldenrod.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffa9a9a9. /// </summary> public static Color DarkGray => KnownColor.DarkGray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff006400. /// </summary> public static Color DarkGreen => KnownColor.DarkGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffbdb76b. /// </summary> public static Color DarkKhaki => KnownColor.DarkKhaki.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff8b008b. /// </summary> public static Color DarkMagenta => KnownColor.DarkMagenta.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff556b2f. /// </summary> public static Color DarkOliveGreen => KnownColor.DarkOliveGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff8c00. /// </summary> public static Color DarkOrange => KnownColor.DarkOrange.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff9932cc. /// </summary> public static Color DarkOrchid => KnownColor.DarkOrchid.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff8b0000. /// </summary> public static Color DarkRed => KnownColor.DarkRed.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffe9967a. /// </summary> public static Color DarkSalmon => KnownColor.DarkSalmon.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff8fbc8f. /// </summary> public static Color DarkSeaGreen => KnownColor.DarkSeaGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff483d8b. /// </summary> public static Color DarkSlateBlue => KnownColor.DarkSlateBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff2f4f4f. /// </summary> public static Color DarkSlateGray => KnownColor.DarkSlateGray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00ced1. /// </summary> public static Color DarkTurquoise => KnownColor.DarkTurquoise.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff9400d3. /// </summary> public static Color DarkViolet => KnownColor.DarkViolet.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff1493. /// </summary> public static Color DeepPink => KnownColor.DeepPink.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00bfff. /// </summary> public static Color DeepSkyBlue => KnownColor.DeepSkyBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff696969. /// </summary> public static Color DimGray => KnownColor.DimGray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff1e90ff. /// </summary> public static Color DodgerBlue => KnownColor.DodgerBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffb22222. /// </summary> public static Color Firebrick => KnownColor.Firebrick.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffffaf0. /// </summary> public static Color FloralWhite => KnownColor.FloralWhite.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff228b22. /// </summary> public static Color ForestGreen => KnownColor.ForestGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff00ff. /// </summary> public static Color Fuchsia => KnownColor.Fuchsia.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffdcdcdc. /// </summary> public static Color Gainsboro => KnownColor.Gainsboro.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff8f8ff. /// </summary> public static Color GhostWhite => KnownColor.GhostWhite.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffd700. /// </summary> public static Color Gold => KnownColor.Gold.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffdaa520. /// </summary> public static Color Goldenrod => KnownColor.Goldenrod.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff808080. /// </summary> public static Color Gray => KnownColor.Gray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff008000. /// </summary> public static Color Green => KnownColor.Green.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffadff2f. /// </summary> public static Color GreenYellow => KnownColor.GreenYellow.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff0fff0. /// </summary> public static Color Honeydew => KnownColor.Honeydew.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff69b4. /// </summary> public static Color HotPink => KnownColor.HotPink.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffcd5c5c. /// </summary> public static Color IndianRed => KnownColor.IndianRed.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff4b0082. /// </summary> public static Color Indigo => KnownColor.Indigo.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffffff0. /// </summary> public static Color Ivory => KnownColor.Ivory.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff0e68c. /// </summary> public static Color Khaki => KnownColor.Khaki.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffe6e6fa. /// </summary> public static Color Lavender => KnownColor.Lavender.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffff0f5. /// </summary> public static Color LavenderBlush => KnownColor.LavenderBlush.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff7cfc00. /// </summary> public static Color LawnGreen => KnownColor.LawnGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffffacd. /// </summary> public static Color LemonChiffon => KnownColor.LemonChiffon.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffadd8e6. /// </summary> public static Color LightBlue => KnownColor.LightBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff08080. /// </summary> public static Color LightCoral => KnownColor.LightCoral.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffe0ffff. /// </summary> public static Color LightCyan => KnownColor.LightCyan.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffafad2. /// </summary> public static Color LightGoldenrodYellow => KnownColor.LightGoldenrodYellow.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffd3d3d3. /// </summary> public static Color LightGray => KnownColor.LightGray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff90ee90. /// </summary> public static Color LightGreen => KnownColor.LightGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffb6c1. /// </summary> public static Color LightPink => KnownColor.LightPink.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffa07a. /// </summary> public static Color LightSalmon => KnownColor.LightSalmon.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff20b2aa. /// </summary> public static Color LightSeaGreen => KnownColor.LightSeaGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff87cefa. /// </summary> public static Color LightSkyBlue => KnownColor.LightSkyBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff778899. /// </summary> public static Color LightSlateGray => KnownColor.LightSlateGray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffb0c4de. /// </summary> public static Color LightSteelBlue => KnownColor.LightSteelBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffffe0. /// </summary> public static Color LightYellow => KnownColor.LightYellow.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00ff00. /// </summary> public static Color Lime => KnownColor.Lime.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff32cd32. /// </summary> public static Color LimeGreen => KnownColor.LimeGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffaf0e6. /// </summary> public static Color Linen => KnownColor.Linen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff00ff. /// </summary> public static Color Magenta => KnownColor.Magenta.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff800000. /// </summary> public static Color Maroon => KnownColor.Maroon.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff66cdaa. /// </summary> public static Color MediumAquamarine => KnownColor.MediumAquamarine.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff0000cd. /// </summary> public static Color MediumBlue => KnownColor.MediumBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffba55d3. /// </summary> public static Color MediumOrchid => KnownColor.MediumOrchid.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff9370db. /// </summary> public static Color MediumPurple => KnownColor.MediumPurple.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff3cb371. /// </summary> public static Color MediumSeaGreen => KnownColor.MediumSeaGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff7b68ee. /// </summary> public static Color MediumSlateBlue => KnownColor.MediumSlateBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00fa9a. /// </summary> public static Color MediumSpringGreen => KnownColor.MediumSpringGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff48d1cc. /// </summary> public static Color MediumTurquoise => KnownColor.MediumTurquoise.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffc71585. /// </summary> public static Color MediumVioletRed => KnownColor.MediumVioletRed.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff191970. /// </summary> public static Color MidnightBlue => KnownColor.MidnightBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff5fffa. /// </summary> public static Color MintCream => KnownColor.MintCream.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffe4e1. /// </summary> public static Color MistyRose => KnownColor.MistyRose.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffe4b5. /// </summary> public static Color Moccasin => KnownColor.Moccasin.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffdead. /// </summary> public static Color NavajoWhite => KnownColor.NavajoWhite.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff000080. /// </summary> public static Color Navy => KnownColor.Navy.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffdf5e6. /// </summary> public static Color OldLace => KnownColor.OldLace.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff808000. /// </summary> public static Color Olive => KnownColor.Olive.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff6b8e23. /// </summary> public static Color OliveDrab => KnownColor.OliveDrab.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffa500. /// </summary> public static Color Orange => KnownColor.Orange.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff4500. /// </summary> public static Color OrangeRed => KnownColor.OrangeRed.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffda70d6. /// </summary> public static Color Orchid => KnownColor.Orchid.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffeee8aa. /// </summary> public static Color PaleGoldenrod => KnownColor.PaleGoldenrod.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff98fb98. /// </summary> public static Color PaleGreen => KnownColor.PaleGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffafeeee. /// </summary> public static Color PaleTurquoise => KnownColor.PaleTurquoise.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffdb7093. /// </summary> public static Color PaleVioletRed => KnownColor.PaleVioletRed.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffefd5. /// </summary> public static Color PapayaWhip => KnownColor.PapayaWhip.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffdab9. /// </summary> public static Color PeachPuff => KnownColor.PeachPuff.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffcd853f. /// </summary> public static Color Peru => KnownColor.Peru.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffc0cb. /// </summary> public static Color Pink => KnownColor.Pink.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffdda0dd. /// </summary> public static Color Plum => KnownColor.Plum.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffb0e0e6. /// </summary> public static Color PowderBlue => KnownColor.PowderBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff800080. /// </summary> public static Color Purple => KnownColor.Purple.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff0000. /// </summary> public static Color Red => KnownColor.Red.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffbc8f8f. /// </summary> public static Color RosyBrown => KnownColor.RosyBrown.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff4169e1. /// </summary> public static Color RoyalBlue => KnownColor.RoyalBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff8b4513. /// </summary> public static Color SaddleBrown => KnownColor.SaddleBrown.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffa8072. /// </summary> public static Color Salmon => KnownColor.Salmon.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff4a460. /// </summary> public static Color SandyBrown => KnownColor.SandyBrown.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff2e8b57. /// </summary> public static Color SeaGreen => KnownColor.SeaGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffff5ee. /// </summary> public static Color SeaShell => KnownColor.SeaShell.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffa0522d. /// </summary> public static Color Sienna => KnownColor.Sienna.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffc0c0c0. /// </summary> public static Color Silver => KnownColor.Silver.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff87ceeb. /// </summary> public static Color SkyBlue => KnownColor.SkyBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff6a5acd. /// </summary> public static Color SlateBlue => KnownColor.SlateBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff708090. /// </summary> public static Color SlateGray => KnownColor.SlateGray.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fffffafa. /// </summary> public static Color Snow => KnownColor.Snow.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff00ff7f. /// </summary> public static Color SpringGreen => KnownColor.SpringGreen.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff4682b4. /// </summary> public static Color SteelBlue => KnownColor.SteelBlue.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffd2b48c. /// </summary> public static Color Tan => KnownColor.Tan.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff008080. /// </summary> public static Color Teal => KnownColor.Teal.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffd8bfd8. /// </summary> public static Color Thistle => KnownColor.Thistle.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffff6347. /// </summary> public static Color Tomato => KnownColor.Tomato.ToColor(); /// <summary> /// Gets a color with an ARGB value of #00ffffff. /// </summary> public static Color Transparent => KnownColor.Transparent.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff40e0d0. /// </summary> public static Color Turquoise => KnownColor.Turquoise.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffee82ee. /// </summary> public static Color Violet => KnownColor.Violet.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff5deb3. /// </summary> public static Color Wheat => KnownColor.Wheat.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffffff. /// </summary> public static Color White => KnownColor.White.ToColor(); /// <summary> /// Gets a color with an ARGB value of #fff5f5f5. /// </summary> public static Color WhiteSmoke => KnownColor.WhiteSmoke.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ffffff00. /// </summary> public static Color Yellow => KnownColor.Yellow.ToColor(); /// <summary> /// Gets a color with an ARGB value of #ff9acd32. /// </summary> public static Color YellowGreen => KnownColor.YellowGreen.ToColor(); }
31.976157
90
0.62722
[ "MIT" ]
YiB-PC/BeUtl
src/BeUtl.Graphics/Media/Colors.cs
22,801
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace diil.web { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API 配置和服务 // Web API 路由 config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); } } }
22.32
62
0.560932
[ "MIT" ]
BJDIIL/DiiL
diil.web/App_Start/WebApiConfig.cs
574
C#
namespace PatchworkLauncher { partial class guiHome { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.guiGameName = new System.Windows.Forms.Label(); this.guiGameVersion = new System.Windows.Forms.Label(); this.guiLaunchWithMods = new System.Windows.Forms.Button(); this.guiLaunchNoMods = new System.Windows.Forms.Button(); this.guiActiveMods = new System.Windows.Forms.Button(); this.guiPwVersion = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.guiGameIcon = new System.Windows.Forms.PictureBox(); this.guiChangeFolder = new System.Windows.Forms.Button(); this.guiTestRun = new System.Windows.Forms.Button(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.guiGameIcon)).BeginInit(); this.SuspendLayout(); // // guiGameName // this.guiGameName.AutoSize = true; this.guiGameName.BackColor = System.Drawing.Color.Transparent; this.guiGameName.Font = new System.Drawing.Font("Georgia", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiGameName.Location = new System.Drawing.Point(64, 18); this.guiGameName.Name = "guiGameName"; this.guiGameName.Size = new System.Drawing.Size(309, 43); this.guiGameName.TabIndex = 0; this.guiGameName.Text = "Pillars of Eternity"; this.guiGameName.Click += new System.EventHandler(this.guiGameName_Click); // // guiGameVersion // this.guiGameVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.guiGameVersion.AutoSize = true; this.guiGameVersion.BackColor = System.Drawing.Color.Transparent; this.guiGameVersion.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiGameVersion.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.guiGameVersion.Location = new System.Drawing.Point(532, 43); this.guiGameVersion.Name = "guiGameVersion"; this.guiGameVersion.RightToLeft = System.Windows.Forms.RightToLeft.No; this.guiGameVersion.Size = new System.Drawing.Size(70, 18); this.guiGameVersion.TabIndex = 1; this.guiGameVersion.Text = "2.0.0.0"; this.guiGameVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // guiLaunchWithMods // this.guiLaunchWithMods.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.guiLaunchWithMods.BackColor = System.Drawing.SystemColors.Control; this.guiLaunchWithMods.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.guiLaunchWithMods.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Azure; this.guiLaunchWithMods.FlatAppearance.MouseOverBackColor = System.Drawing.Color.AliceBlue; this.guiLaunchWithMods.Font = new System.Drawing.Font("Georgia", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiLaunchWithMods.Location = new System.Drawing.Point(21, 65); this.guiLaunchWithMods.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.guiLaunchWithMods.Name = "guiLaunchWithMods"; this.guiLaunchWithMods.Size = new System.Drawing.Size(537, 74); this.guiLaunchWithMods.TabIndex = 3; this.guiLaunchWithMods.Text = "Launch with Mods"; this.guiLaunchWithMods.UseVisualStyleBackColor = false; this.guiLaunchWithMods.Click += new System.EventHandler(this.guiLaunchWithMods_Click); // // guiLaunchNoMods // this.guiLaunchNoMods.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.guiLaunchNoMods.BackColor = System.Drawing.SystemColors.Control; this.guiLaunchNoMods.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.guiLaunchNoMods.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Azure; this.guiLaunchNoMods.FlatAppearance.MouseOverBackColor = System.Drawing.Color.AliceBlue; this.guiLaunchNoMods.Font = new System.Drawing.Font("Georgia", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiLaunchNoMods.Location = new System.Drawing.Point(21, 143); this.guiLaunchNoMods.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.guiLaunchNoMods.Name = "guiLaunchNoMods"; this.guiLaunchNoMods.Size = new System.Drawing.Size(598, 63); this.guiLaunchNoMods.TabIndex = 4; this.guiLaunchNoMods.Text = "Launch without Mods"; this.guiLaunchNoMods.UseVisualStyleBackColor = false; this.guiLaunchNoMods.Click += new System.EventHandler(this.guiLaunchNoMods_Click); // // guiActiveMods // this.guiActiveMods.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.guiActiveMods.BackColor = System.Drawing.SystemColors.Control; this.guiActiveMods.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.guiActiveMods.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Azure; this.guiActiveMods.FlatAppearance.MouseOverBackColor = System.Drawing.Color.AliceBlue; this.guiActiveMods.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiActiveMods.Location = new System.Drawing.Point(478, 214); this.guiActiveMods.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.guiActiveMods.Name = "guiActiveMods"; this.guiActiveMods.Size = new System.Drawing.Size(141, 36); this.guiActiveMods.TabIndex = 5; this.guiActiveMods.Text = "Active Mods"; this.guiActiveMods.UseVisualStyleBackColor = false; this.guiActiveMods.Click += new System.EventHandler(this.guiActiveMods_Click); // // guiPwVersion // this.guiPwVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.guiPwVersion.AutoSize = true; this.guiPwVersion.BackColor = System.Drawing.Color.Transparent; this.guiPwVersion.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiPwVersion.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.guiPwVersion.Location = new System.Drawing.Point(201, 256); this.guiPwVersion.Name = "guiPwVersion"; this.guiPwVersion.RightToLeft = System.Windows.Forms.RightToLeft.No; this.guiPwVersion.Size = new System.Drawing.Size(35, 18); this.guiPwVersion.TabIndex = 6; this.guiPwVersion.Text = "???"; this.guiPwVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label2.Location = new System.Drawing.Point(118, 255); this.label2.Name = "label2"; this.label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.label2.Size = new System.Drawing.Size(80, 18); this.label2.TabIndex = 7; this.label2.Text = "Version:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label2.Click += new System.EventHandler(this.label2_Click); // // guiGameIcon // this.guiGameIcon.InitialImage = null; this.guiGameIcon.Location = new System.Drawing.Point(21, 25); this.guiGameIcon.Name = "guiGameIcon"; this.guiGameIcon.Size = new System.Drawing.Size(37, 33); this.guiGameIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.guiGameIcon.TabIndex = 8; this.guiGameIcon.TabStop = false; // // guiChangeFolder // this.guiChangeFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.guiChangeFolder.BackColor = System.Drawing.SystemColors.Control; this.guiChangeFolder.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.guiChangeFolder.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Azure; this.guiChangeFolder.FlatAppearance.MouseOverBackColor = System.Drawing.Color.AliceBlue; this.guiChangeFolder.Font = new System.Drawing.Font("Georgia", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiChangeFolder.Location = new System.Drawing.Point(21, 214); this.guiChangeFolder.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.guiChangeFolder.Name = "guiChangeFolder"; this.guiChangeFolder.Size = new System.Drawing.Size(160, 36); this.guiChangeFolder.TabIndex = 9; this.guiChangeFolder.Text = "Change Game Folder"; this.guiChangeFolder.UseVisualStyleBackColor = false; this.guiChangeFolder.Click += new System.EventHandler(this.guiChangeFolder_Click); // // guiTestRun // this.guiTestRun.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.guiTestRun.BackColor = System.Drawing.SystemColors.Control; this.guiTestRun.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.guiTestRun.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Azure; this.guiTestRun.FlatAppearance.MouseOverBackColor = System.Drawing.Color.AliceBlue; this.guiTestRun.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.guiTestRun.Location = new System.Drawing.Point(564, 65); this.guiTestRun.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.guiTestRun.Name = "guiTestRun"; this.guiTestRun.Size = new System.Drawing.Size(55, 74); this.guiTestRun.TabIndex = 10; this.guiTestRun.Text = "Test Run"; this.guiTestRun.UseVisualStyleBackColor = false; this.guiTestRun.Click += new System.EventHandler(this.guiTestRun_Click); // // linkLabel1 // this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.linkLabel1.AutoSize = true; this.linkLabel1.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold); this.linkLabel1.Location = new System.Drawing.Point(18, 254); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(103, 18); this.linkLabel1.TabIndex = 11; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "Patchwork"; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // button1 // this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button1.BackColor = System.Drawing.SystemColors.Control; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Azure; this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.AliceBlue; this.button1.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.Location = new System.Drawing.Point(612, 3); this.button1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(23, 35); this.button1.TabIndex = 12; this.button1.Text = "?"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // guiHome // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Linen; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.ClientSize = new System.Drawing.Size(639, 281); this.Controls.Add(this.button1); this.Controls.Add(this.linkLabel1); this.Controls.Add(this.guiTestRun); this.Controls.Add(this.guiChangeFolder); this.Controls.Add(this.guiGameIcon); this.Controls.Add(this.label2); this.Controls.Add(this.guiPwVersion); this.Controls.Add(this.guiActiveMods); this.Controls.Add(this.guiLaunchNoMods); this.Controls.Add(this.guiLaunchWithMods); this.Controls.Add(this.guiGameVersion); this.Controls.Add(this.guiGameName); this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(811, 679); this.Name = "guiHome"; this.Text = "Patchwork Launcher"; this.Load += new System.EventHandler(this.guiHome_Load); ((System.ComponentModel.ISupportInitialize)(this.guiGameIcon)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label guiGameName; private System.Windows.Forms.Label guiGameVersion; private System.Windows.Forms.Button guiLaunchWithMods; private System.Windows.Forms.Button guiLaunchNoMods; private System.Windows.Forms.Button guiActiveMods; private System.Windows.Forms.Label guiPwVersion; private System.Windows.Forms.Label label2; private System.Windows.Forms.PictureBox guiGameIcon; private System.Windows.Forms.Button guiChangeFolder; private System.Windows.Forms.Button guiTestRun; private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.Button button1; } }
53.542857
157
0.752401
[ "MIT" ]
DankRank/Patchwork
PatchworkLauncher/GUI/Forms/guiHome.Designer.cs
14,994
C#
using System; using System.Globalization; using System.Xml; namespace Microsoft.SharePoint.Client.NetStandard.Runtime { internal class ExecutionScope : IDisposable { private ClientRuntimeContext m_context; private bool m_disposed; private string m_name; private long m_id; private ExecutionScopeDisposingCallback m_disposingCallback; private ClientActionExecutionScopeStart m_clientActionExecutionScopeStart; internal ClientRuntimeContext Context { get { return this.m_context; } } internal ClientActionExecutionScopeStart ClientActionExecutionScopeStart { get { return this.m_clientActionExecutionScopeStart; } } public long Id { get { return this.m_id; } } public string Name { get { return this.m_name; } } internal bool Disposed { get { return this.m_disposed; } } internal ExecutionScope(ClientRuntimeContext context, string name, ExecutionScopeDisposingCallback disposingCallback) { if (context == null) { throw new ArgumentNullException("context"); } this.m_context = context; this.m_name = name; this.m_id = this.m_context.NextSequenceId; this.m_context.PendingRequest.ExecutionScopes.Push(this); this.m_clientActionExecutionScopeStart = new ClientActionExecutionScopeStart(this, this.m_name); this.m_context.PendingRequest.AddQuery(this.m_clientActionExecutionScopeStart); this.m_disposingCallback = disposingCallback; } public void Dispose() { if (this.m_disposed) { throw ExceptionHandlingScope.CreateInvalidUsageException(); } if (this.m_disposingCallback != null) { this.m_disposingCallback(); } if (this.m_context.PendingRequest.ExecutionScopes.Count > 0 && this.m_context.PendingRequest.ExecutionScopes.Pop() == this) { this.m_context.PendingRequest.AddQuery(new ClientActionExecutionScopeEnd(this, this.m_name)); this.m_disposed = true; return; } throw ExceptionHandlingScope.CreateInvalidUsageException(); } internal virtual void WriteStart(XmlWriter writer, SerializationContext serializationContext) { writer.WriteStartElement(this.m_name); writer.WriteAttributeString("Id", this.Id.ToString(CultureInfo.InvariantCulture)); } internal virtual void WriteEnd(XmlWriter writer, SerializationContext serializationContext) { writer.WriteEndElement(); } } }
28.925234
135
0.580291
[ "Apache-2.0" ]
win7user10/Microsoft.SharePoint.Client.NetStandard
src/Runtime/ExecutionScope.cs
3,097
C#
namespace RealEstateDB { partial class SelectedAgent { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.agentgrid = new System.Windows.Forms.DataGridView(); this.Back = new System.Windows.Forms.Button(); this.Home = new System.Windows.Forms.Button(); this.editagent = new System.Windows.Forms.Button(); this.AgentIDBox = new System.Windows.Forms.TextBox(); this.StartDateBOx = new System.Windows.Forms.TextBox(); this.EmailBox = new System.Windows.Forms.TextBox(); this.Firstnamebox = new System.Windows.Forms.TextBox(); this.AddressBox = new System.Windows.Forms.TextBox(); this.Zipcodebox = new System.Windows.Forms.TextBox(); this.Lastnamrbox = new System.Windows.Forms.TextBox(); this.CityBox = new System.Windows.Forms.TextBox(); this.PhoneBox = new System.Windows.Forms.TextBox(); this.DOBBox = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.statetextbox = new System.Windows.Forms.TextBox(); this.label13 = new System.Windows.Forms.Label(); this.StatusBox = new System.Windows.Forms.TextBox(); ((System.ComponentModel.ISupportInitialize)(this.agentgrid)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(43, 55); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(73, 19); this.label1.TabIndex = 0; this.label1.Text = "Agent ID"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(409, 55); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(83, 19); this.label2.TabIndex = 1; this.label2.Text = "Last Name"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(229, 55); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(85, 19); this.label3.TabIndex = 2; this.label3.Text = "First Name"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(586, 55); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(41, 19); this.label4.TabIndex = 3; this.label4.Text = "DOB"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(37, 175); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(79, 19); this.label5.TabIndex = 4; this.label5.Text = "Start Date"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(229, 175); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(66, 19); this.label6.TabIndex = 5; this.label6.Text = "Address"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(409, 175); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(36, 19); this.label7.TabIndex = 6; this.label7.Text = "City"; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(586, 175); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(44, 19); this.label8.TabIndex = 7; this.label8.Text = "State"; // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(409, 256); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(72, 19); this.label9.TabIndex = 8; this.label9.Text = "Zip Code"; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(586, 256); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(53, 19); this.label10.TabIndex = 9; this.label10.Text = "Phone"; // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(37, 266); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(53, 19); this.label11.TabIndex = 10; this.label11.Text = "Email "; // // agentgrid // this.agentgrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.agentgrid.Location = new System.Drawing.Point(41, 384); this.agentgrid.Name = "agentgrid"; this.agentgrid.RowTemplate.Height = 29; this.agentgrid.Size = new System.Drawing.Size(946, 274); this.agentgrid.TabIndex = 11; this.agentgrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.agentgrid_CellContentClick); // // Back // this.Back.Location = new System.Drawing.Point(864, 34); this.Back.Name = "Back"; this.Back.Size = new System.Drawing.Size(123, 40); this.Back.TabIndex = 12; this.Back.Text = "Back"; this.Back.UseVisualStyleBackColor = true; this.Back.Click += new System.EventHandler(this.Back_Click); // // Home // this.Home.Location = new System.Drawing.Point(864, 119); this.Home.Name = "Home"; this.Home.Size = new System.Drawing.Size(123, 39); this.Home.TabIndex = 13; this.Home.Text = "Home"; this.Home.UseVisualStyleBackColor = true; this.Home.Click += new System.EventHandler(this.Home_Click); // // editagent // this.editagent.Location = new System.Drawing.Point(734, 339); this.editagent.Name = "editagent"; this.editagent.Size = new System.Drawing.Size(253, 39); this.editagent.TabIndex = 14; this.editagent.Text = "Edit Information"; this.editagent.UseVisualStyleBackColor = true; this.editagent.Click += new System.EventHandler(this.editagent_Click); // // AgentIDBox // this.AgentIDBox.Location = new System.Drawing.Point(42, 77); this.AgentIDBox.Name = "AgentIDBox"; this.AgentIDBox.ReadOnly = true; this.AgentIDBox.Size = new System.Drawing.Size(100, 27); this.AgentIDBox.TabIndex = 16; this.AgentIDBox.TextChanged += new System.EventHandler(this.AgentIDBox_TextChanged); // // StartDateBOx // this.StartDateBOx.Location = new System.Drawing.Point(41, 197); this.StartDateBOx.Name = "StartDateBOx"; this.StartDateBOx.ReadOnly = true; this.StartDateBOx.Size = new System.Drawing.Size(100, 27); this.StartDateBOx.TabIndex = 17; // // EmailBox // this.EmailBox.Location = new System.Drawing.Point(41, 288); this.EmailBox.Name = "EmailBox"; this.EmailBox.ReadOnly = true; this.EmailBox.Size = new System.Drawing.Size(324, 27); this.EmailBox.TabIndex = 18; // // Firstnamebox // this.Firstnamebox.Location = new System.Drawing.Point(233, 77); this.Firstnamebox.Name = "Firstnamebox"; this.Firstnamebox.ReadOnly = true; this.Firstnamebox.Size = new System.Drawing.Size(132, 27); this.Firstnamebox.TabIndex = 19; // // AddressBox // this.AddressBox.Location = new System.Drawing.Point(233, 196); this.AddressBox.Name = "AddressBox"; this.AddressBox.ReadOnly = true; this.AddressBox.Size = new System.Drawing.Size(132, 27); this.AddressBox.TabIndex = 20; // // Zipcodebox // this.Zipcodebox.Location = new System.Drawing.Point(413, 288); this.Zipcodebox.Name = "Zipcodebox"; this.Zipcodebox.ReadOnly = true; this.Zipcodebox.Size = new System.Drawing.Size(133, 27); this.Zipcodebox.TabIndex = 21; // // Lastnamrbox // this.Lastnamrbox.Location = new System.Drawing.Point(413, 77); this.Lastnamrbox.Name = "Lastnamrbox"; this.Lastnamrbox.ReadOnly = true; this.Lastnamrbox.Size = new System.Drawing.Size(133, 27); this.Lastnamrbox.TabIndex = 22; // // CityBox // this.CityBox.Location = new System.Drawing.Point(413, 197); this.CityBox.Name = "CityBox"; this.CityBox.ReadOnly = true; this.CityBox.Size = new System.Drawing.Size(133, 27); this.CityBox.TabIndex = 23; // // PhoneBox // this.PhoneBox.Location = new System.Drawing.Point(590, 288); this.PhoneBox.Name = "PhoneBox"; this.PhoneBox.ReadOnly = true; this.PhoneBox.Size = new System.Drawing.Size(212, 27); this.PhoneBox.TabIndex = 24; // // DOBBox // this.DOBBox.Location = new System.Drawing.Point(590, 77); this.DOBBox.Name = "DOBBox"; this.DOBBox.ReadOnly = true; this.DOBBox.Size = new System.Drawing.Size(100, 27); this.DOBBox.TabIndex = 25; // // label12 // this.label12.AutoSize = true; this.label12.Font = new System.Drawing.Font("Tahoma", 8F); this.label12.Location = new System.Drawing.Point(37, 359); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(140, 19); this.label12.TabIndex = 28; this.label12.Text = "Transactions Made"; // // statetextbox // this.statetextbox.Location = new System.Drawing.Point(590, 196); this.statetextbox.Name = "statetextbox"; this.statetextbox.ReadOnly = true; this.statetextbox.Size = new System.Drawing.Size(140, 27); this.statetextbox.TabIndex = 29; this.statetextbox.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // label13 // this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(730, 55); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(52, 19); this.label13.TabIndex = 30; this.label13.Text = "Status"; // // StatusBox // this.StatusBox.Location = new System.Drawing.Point(734, 77); this.StatusBox.Name = "StatusBox"; this.StatusBox.ReadOnly = true; this.StatusBox.Size = new System.Drawing.Size(100, 27); this.StatusBox.TabIndex = 31; // // SelectedAgent // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1009, 670); this.Controls.Add(this.StatusBox); this.Controls.Add(this.label13); this.Controls.Add(this.statetextbox); this.Controls.Add(this.label12); this.Controls.Add(this.DOBBox); this.Controls.Add(this.PhoneBox); this.Controls.Add(this.CityBox); this.Controls.Add(this.Lastnamrbox); this.Controls.Add(this.Zipcodebox); this.Controls.Add(this.AddressBox); this.Controls.Add(this.Firstnamebox); this.Controls.Add(this.EmailBox); this.Controls.Add(this.StartDateBOx); this.Controls.Add(this.AgentIDBox); this.Controls.Add(this.editagent); this.Controls.Add(this.Home); this.Controls.Add(this.Back); this.Controls.Add(this.agentgrid); this.Controls.Add(this.label11); this.Controls.Add(this.label10); this.Controls.Add(this.label9); this.Controls.Add(this.label8); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Name = "SelectedAgent"; this.Text = "SelectedAgent"; this.Load += new System.EventHandler(this.SelectedAgent_Load); ((System.ComponentModel.ISupportInitialize)(this.agentgrid)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label11; private System.Windows.Forms.DataGridView agentgrid; private System.Windows.Forms.Button Back; private System.Windows.Forms.Button Home; private System.Windows.Forms.Button editagent; public System.Windows.Forms.TextBox AgentIDBox; public System.Windows.Forms.TextBox StartDateBOx; public System.Windows.Forms.TextBox EmailBox; public System.Windows.Forms.TextBox Firstnamebox; public System.Windows.Forms.TextBox AddressBox; public System.Windows.Forms.TextBox Zipcodebox; public System.Windows.Forms.TextBox Lastnamrbox; public System.Windows.Forms.TextBox CityBox; public System.Windows.Forms.TextBox PhoneBox; public System.Windows.Forms.TextBox DOBBox; private System.Windows.Forms.Label label12; public System.Windows.Forms.TextBox statetextbox; private System.Windows.Forms.Label label13; public System.Windows.Forms.TextBox StatusBox; } }
44.626904
135
0.547347
[ "MIT" ]
manarabouhenidi/C-Sharp_SQL_RealEstateProgram
SelectedAgent.Designer.cs
17,585
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("CrmCommandLineHelpersCore")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CrmCommandLineHelpersCore")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("394ae48f-edf6-49b2-b134-6958dfea4ea0")] // 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")]
39.416667
85
0.727977
[ "MIT" ]
Softwire/dynamics-crm-ci-clis
CrmCommandLineHelpersCore/Properties/AssemblyInfo.cs
1,422
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using FastFoodPOS.Models; namespace FastFoodPOS.Forms.AdminForms { partial class FormActivityLog : UserControl { public FormActivityLog(User user) { InitializeComponent(); var logs = Log.GetLogs(user); logs.ForEach(log => { DataGridViewLogs.Rows.Add( log.date_created.ToString(), user.Fullname, log.activity ); }); if (logs.Count == 0) { DataGridViewLogs.Rows.Add( "", "There is no activity made by this user", "" ); } } } }
24.783784
68
0.533261
[ "MIT" ]
M4dj1/fastfood-pos-csharp
FastFoodPOS/Forms/AdminForms/FormActivityLog.cs
919
C#
// <auto-generated /> using System; using Aguacongas.IdentityServer.EntityFramework.Store; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Aguacongas.TheIdServer.SqlServer.Migrations.OperationalDb { [DbContext(typeof(OperationalDbContext))] partial class OperationalDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.8") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Aguacongas.IdentityServer.KeysRotation.EntityFrameworkCore.KeyRotationKey", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property<string>("FriendlyName") .HasColumnType("nvarchar(max)"); b.Property<string>("Xml") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("KeyRotationKeys"); }); modelBuilder.Entity("Aguacongas.IdentityServer.Store.Entity.AuthorizationCode", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Data") .HasColumnType("nvarchar(max)"); b.Property<DateTime?>("Expiration") .HasColumnType("datetime2"); b.Property<DateTime?>("ModifiedAt") .HasColumnType("datetime2"); b.Property<string>("SessionId") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.HasKey("Id"); b.ToTable("AuthorizationCodes"); }); modelBuilder.Entity("Aguacongas.IdentityServer.Store.Entity.DeviceCode", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Code") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Data") .HasColumnType("nvarchar(max)"); b.Property<DateTime>("Expiration") .HasColumnType("datetime2"); b.Property<DateTime?>("ModifiedAt") .HasColumnType("datetime2"); b.Property<string>("SubjectId") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.Property<string>("UserCode") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.HasKey("Id"); b.ToTable("DeviceCodes"); }); modelBuilder.Entity("Aguacongas.IdentityServer.Store.Entity.OneTimeToken", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Data") .HasColumnType("nvarchar(max)"); b.Property<DateTime?>("Expiration") .HasColumnType("datetime2"); b.Property<DateTime?>("ModifiedAt") .HasColumnType("datetime2"); b.Property<string>("SessionId") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.HasKey("Id"); b.ToTable("OneTimeTokens"); }); modelBuilder.Entity("Aguacongas.IdentityServer.Store.Entity.ReferenceToken", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Data") .HasColumnType("nvarchar(max)"); b.Property<DateTime?>("Expiration") .HasColumnType("datetime2"); b.Property<DateTime?>("ModifiedAt") .HasColumnType("datetime2"); b.Property<string>("SessionId") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.HasKey("Id"); b.ToTable("ReferenceTokens"); }); modelBuilder.Entity("Aguacongas.IdentityServer.Store.Entity.RefreshToken", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Data") .HasColumnType("nvarchar(max)"); b.Property<DateTime?>("Expiration") .HasColumnType("datetime2"); b.Property<DateTime?>("ModifiedAt") .HasColumnType("datetime2"); b.Property<string>("SessionId") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.HasKey("Id"); b.ToTable("RefreshTokens"); }); modelBuilder.Entity("Aguacongas.IdentityServer.Store.Entity.UserConsent", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<DateTime>("CreatedAt") .HasColumnType("datetime2"); b.Property<string>("Data") .HasColumnType("nvarchar(max)"); b.Property<DateTime?>("Expiration") .HasColumnType("datetime2"); b.Property<DateTime?>("ModifiedAt") .HasColumnType("datetime2"); b.Property<string>("SessionId") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .IsRequired() .HasColumnType("nvarchar(200)") .HasMaxLength(200); b.HasKey("Id"); b.ToTable("UserConstents"); }); modelBuilder.Entity("Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.DataProtectionKey", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property<string>("FriendlyName") .HasColumnType("nvarchar(max)"); b.Property<string>("Xml") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("DataProtectionKeys"); }); #pragma warning restore 612, 618 } } }
36.030189
125
0.464809
[ "Apache-2.0" ]
markjohnnah/TheIdServer
src/IdentityServer/Migrations/Aguacongas.TheIdServer.Migrations.SqlServer/Migrations/OperationalDb/OperationalDbContextModelSnapshot.cs
9,550
C#
using System; #if !SILVERLIGHT using System.Data.SqlTypes; #endif namespace BLToolkit.Mapping { [CLSCompliant(false)] public interface IMapDataSource { int Count { get; } Type GetFieldType (int index); string GetName (int index); int GetOrdinal (string name); object GetValue (object o, int index); object GetValue (object o, string name); bool IsNull (object o, int index); bool SupportsTypedValues(int index); // Simple type getters. // [CLSCompliant(false)] SByte GetSByte (object o, int index); Int16 GetInt16 (object o, int index); Int32 GetInt32 (object o, int index); Int64 GetInt64 (object o, int index); Byte GetByte (object o, int index); [CLSCompliant(false)] UInt16 GetUInt16 (object o, int index); [CLSCompliant(false)] UInt32 GetUInt32 (object o, int index); [CLSCompliant(false)] UInt64 GetUInt64 (object o, int index); Boolean GetBoolean (object o, int index); Char GetChar (object o, int index); Single GetSingle (object o, int index); Double GetDouble (object o, int index); Decimal GetDecimal (object o, int index); DateTime GetDateTime (object o, int index); DateTimeOffset GetDateTimeOffset(object o, int index); Guid GetGuid (object o, int index); // Simple type getters. // [CLSCompliant(false)] SByte? GetNullableSByte (object o, int index); Int16? GetNullableInt16 (object o, int index); Int32? GetNullableInt32 (object o, int index); Int64? GetNullableInt64 (object o, int index); Byte? GetNullableByte (object o, int index); [CLSCompliant(false)] UInt16? GetNullableUInt16 (object o, int index); [CLSCompliant(false)] UInt32? GetNullableUInt32 (object o, int index); [CLSCompliant(false)] UInt64? GetNullableUInt64 (object o, int index); Boolean? GetNullableBoolean (object o, int index); Char? GetNullableChar (object o, int index); Single? GetNullableSingle (object o, int index); Double? GetNullableDouble (object o, int index); Decimal? GetNullableDecimal (object o, int index); DateTime? GetNullableDateTime(object o, int index); DateTimeOffset? GetNullableDateTimeOffset(object o, int index); Guid? GetNullableGuid (object o, int index); #if !SILVERLIGHT // SQL type getters. // SqlByte GetSqlByte (object o, int index); SqlInt16 GetSqlInt16 (object o, int index); SqlInt32 GetSqlInt32 (object o, int index); SqlInt64 GetSqlInt64 (object o, int index); SqlSingle GetSqlSingle (object o, int index); SqlBoolean GetSqlBoolean (object o, int index); SqlDouble GetSqlDouble (object o, int index); SqlDateTime GetSqlDateTime (object o, int index); SqlDecimal GetSqlDecimal (object o, int index); SqlMoney GetSqlMoney (object o, int index); SqlGuid GetSqlGuid (object o, int index); SqlString GetSqlString (object o, int index); #endif } }
33.617021
66
0.64557
[ "MIT" ]
igor-tkachev/bltoolkit
Source/Mapping/IMapDataSource.cs
3,160
C#
using Newtonsoft.Json.Linq; using RestSharp.Deserializers; using System; using System.Collections.Generic; using System.Text; namespace Coinbase.Models { public class OrderModel : ResourceModel { public String Code { get; set; } public OrderStatus Status { get; set; } public String Name { get; set; } public String Description { get; set; } public BalanceModel Amount { get; set; } [DeserializeAs(Name = "payout_amount")] public BalanceModel PayoutAmount { get; set; } [DeserializeAs(Name = "bitcoin_address")] public String BitcoinAddress { get; set; } [DeserializeAs(Name = "bitcoin_amount")] public BalanceModel BitcoinAmount { get; set; } [DeserializeAs(Name = "bitcoin_uri")] public String BitcoinUri { get; set; } [DeserializeAs(Name = "receipt_url")] public String ReceiptUrl { get; set; } [DeserializeAs(Name = "expires_at")] public DateTime ExpiresAt { get; set; } [DeserializeAs(Name = "mispaid_at")] public DateTime? MispaidAt { get; set; } [DeserializeAs(Name = "paid_at")] public DateTime? PaidAt { get; set; } [DeserializeAs(Name = "refund_address")] public String RefundAddress { get; set; } public IdResourceModel Transaction { get; set; } /// <summary> /// Merchant defined metadata /// </summary> public JObject Metadata { get; set; } } }
26.982143
56
0.615486
[ "MIT" ]
Haiping-Chen/Coinbase.NetSDK
Coinbase.NetSDK/Models/Merchant/OrderModel.cs
1,513
C#
using GSD.CommandLine; using GSD.Common; using GSD.Tests.Should; using GSD.UnitTests.Category; using GSD.UnitTests.Mock.Upgrader; using GSD.UnitTests.Upgrader; using NUnit.Framework; using System.Collections.Generic; namespace GSD.UnitTests.Windows.Upgrader { [TestFixture] public class UpgradeVerbTests : UpgradeTests { private MockProcessLauncher processLauncher; private UpgradeVerb upgradeVerb; [SetUp] public override void Setup() { base.Setup(); this.processLauncher = new MockProcessLauncher(exitCode: 0, hasExited: true, startResult: true); this.upgradeVerb = new UpgradeVerb( this.Upgrader, this.Tracer, this.FileSystem, this.PrerunChecker, this.processLauncher, this.Output); this.upgradeVerb.Confirmed = false; this.PrerunChecker.SetCommandToRerun("`gvfs upgrade`"); } [TestCase] public void UpgradeAvailabilityReporting() { this.ConfigureRunAndVerify( configure: () => { this.SetUpgradeRing("Slow"); this.Upgrader.PretendNewReleaseAvailableAtRemote( upgradeVersion: NewerThanLocalVersion, remoteRing: GitHubUpgrader.GitHubUpgraderConfig.RingType.Slow); }, expectedReturn: ReturnCode.Success, expectedOutput: new List<string> { "New GSD version " + NewerThanLocalVersion + " available in ring Slow", "When ready, run `gvfs upgrade --confirm` from an elevated command prompt." }, expectedErrors: null); } [TestCase] public void DowngradePrevention() { this.ConfigureRunAndVerify( configure: () => { this.SetUpgradeRing("Slow"); this.Upgrader.PretendNewReleaseAvailableAtRemote( upgradeVersion: OlderThanLocalVersion, remoteRing: GitHubUpgrader.GitHubUpgraderConfig.RingType.Slow); }, expectedReturn: ReturnCode.Success, expectedOutput: new List<string> { "Checking for GSD upgrades...Succeeded", "Great news, you're all caught up on upgrades in the Slow ring!" }, expectedErrors: null); } [TestCase] public void LaunchInstaller() { this.ConfigureRunAndVerify( configure: () => { this.SetUpgradeRing("Slow"); this.upgradeVerb.Confirmed = true; this.PrerunChecker.SetCommandToRerun("`gvfs upgrade --confirm`"); }, expectedReturn: ReturnCode.Success, expectedOutput: new List<string> { "New GSD version " + NewerThanLocalVersion + " available in ring Slow", "Launching upgrade tool..." }, expectedErrors:null); this.processLauncher.IsLaunched.ShouldBeTrue(); } [TestCase] [Category(CategoryConstants.ExceptionExpected)] public override void NoneLocalRing() { base.NoneLocalRing(); } [TestCase] [Category(CategoryConstants.ExceptionExpected)] public override void InvalidUpgradeRing() { base.InvalidUpgradeRing(); } [TestCase] [Category(CategoryConstants.ExceptionExpected)] public void CopyTools() { this.ConfigureRunAndVerify( configure: () => { this.SetUpgradeRing("Slow"); this.Upgrader.SetFailOnAction(MockGitHubUpgrader.ActionType.CopyTools); this.upgradeVerb.Confirmed = true; this.PrerunChecker.SetCommandToRerun("`gvfs upgrade --confirm`"); }, expectedReturn: ReturnCode.GenericError, expectedOutput: new List<string> { "Could not launch upgrade tool. Unable to copy upgrader tools" }, expectedErrors: new List<string> { "Could not launch upgrade tool. Unable to copy upgrader tools" }); } [TestCase] public void IsGSDServiceRunningPreCheck() { this.PrerunChecker.SetCommandToRerun("`gvfs upgrade --confirm`"); this.ConfigureRunAndVerify( configure: () => { this.upgradeVerb.Confirmed = true; this.PrerunChecker.SetReturnTrueOnCheck(MockInstallerPrerunChecker.FailOnCheckType.IsServiceInstalledAndNotRunning); }, expectedReturn: ReturnCode.GenericError, expectedOutput: new List<string> { "GSD Service is not running.", "Run `sc start GSD.Service` and run `gvfs upgrade --confirm` again from an elevated command prompt." }, expectedErrors: null, expectedWarnings: new List<string> { "GSD Service is not running." }); } [TestCase] public void ElevatedRunPreCheck() { this.PrerunChecker.SetCommandToRerun("`gvfs upgrade --confirm`"); this.ConfigureRunAndVerify( configure: () => { this.upgradeVerb.Confirmed = true; this.PrerunChecker.SetReturnFalseOnCheck(MockInstallerPrerunChecker.FailOnCheckType.IsElevated); }, expectedReturn: ReturnCode.GenericError, expectedOutput: new List<string> { "The installer needs to be run from an elevated command prompt.", "Run `gvfs upgrade --confirm` again from an elevated command prompt." }, expectedErrors: null, expectedWarnings: new List<string> { "The installer needs to be run from an elevated command prompt." }); } [TestCase] public void UnAttendedModePreCheck() { this.ConfigureRunAndVerify( configure: () => { this.upgradeVerb.Confirmed = true; this.PrerunChecker.SetReturnTrueOnCheck(MockInstallerPrerunChecker.FailOnCheckType.UnattendedMode); }, expectedReturn: ReturnCode.GenericError, expectedOutput: new List<string> { "`gvfs upgrade` is not supported in unattended mode" }, expectedErrors: null, expectedWarnings: new List<string> { "`gvfs upgrade` is not supported in unattended mode" }); } [TestCase] public void DryRunLaunchesUpgradeTool() { this.ConfigureRunAndVerify( configure: () => { this.upgradeVerb.DryRun = true; this.SetUpgradeRing("Slow"); this.Upgrader.PretendNewReleaseAvailableAtRemote( upgradeVersion: NewerThanLocalVersion, remoteRing: GitHubUpgrader.GitHubUpgraderConfig.RingType.Slow); }, expectedReturn: ReturnCode.Success, expectedOutput: new List<string> { "Installer launched in a new window." }, expectedErrors: null); } protected override ReturnCode RunUpgrade() { try { this.upgradeVerb.Execute(); } catch (GSDVerb.VerbAbortedException) { // ignore. exceptions are expected while simulating some failures. } return this.upgradeVerb.ReturnCode; } } }
36.34188
136
0.517756
[ "MIT" ]
derrickstolee/VFSForG
GSD/GSD.UnitTests.Windows/Windows/Upgrader/UpgradeVerbTests.cs
8,506
C#
using System.Collections.Generic; using osu.Game.Replays; using osu.Game.Rulesets.Replays; using osu.Game.Rulesets.Touhou.Replays; using osu.Game.Rulesets.UI; using osuTK; namespace osu.Game.Rulesets.Touhou.UI { public class TouhouReplayRecorder : ReplayRecorder<TouhouAction> { private readonly TouhouPlayfield playfield; public TouhouReplayRecorder(Replay target, TouhouPlayfield playfield) : base(target) { this.playfield = playfield; } protected override ReplayFrame HandleFrame(Vector2 mousePosition, List<TouhouAction> actions, ReplayFrame previousFrame) => new TouhouReplayFrame(Time.Current, playfield.Player.PlayerPosition(), new[] { actions.Contains(TouhouAction.Shoot1), actions.Contains(TouhouAction.Shoot2) }, previousFrame as TouhouReplayFrame); } }
35.666667
210
0.734813
[ "MIT" ]
edisonlee55/osu-touhou
osu.Game.Rulesets.Touhou/UI/TouhouReplayRecorder.cs
858
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.Diagnostics; using System.Text; namespace System.Net.Mime { internal static class MailBnfHelper { // characters allowed in atoms internal static readonly bool[] Atext = CreateCharactersAllowedInAtoms(); // characters allowed in quoted strings (not including Unicode) internal static readonly bool[] Qtext = CreateCharactersAllowedInQuotedStrings(); // characters allowed in domain literals internal static readonly bool[] Dtext = CreateCharactersAllowedInDomainLiterals(); // characters allowed in header names internal static readonly bool[] Ftext = CreateCharactersAllowedInHeaderNames(); // characters allowed in tokens internal static readonly bool[] Ttext = CreateCharactersAllowedInTokens(); // characters allowed inside of comments internal static readonly bool[] Ctext = CreateCharactersAllowedInComments(); internal const int Ascii7bitMaxValue = 127; internal const char Quote = '\"'; internal const char Space = ' '; internal const char Tab = '\t'; internal const char CR = '\r'; internal const char LF = '\n'; internal const char StartComment = '('; internal const char EndComment = ')'; internal const char Backslash = '\\'; internal const char At = '@'; internal const char EndAngleBracket = '>'; internal const char StartAngleBracket = '<'; internal const char StartSquareBracket = '['; internal const char EndSquareBracket = ']'; internal const char Comma = ','; internal const char Dot = '.'; // NOTE: See RFC 2822 for more detail. By default, every value in the array is false and only // those values which are allowed in that particular set are then set to true. The numbers // annotating each definition below are the range of ASCII values which are allowed in that definition. private static bool[] CreateCharactersAllowedInAtoms() { // atext = ALPHA / DIGIT / "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" var atext = new bool[128]; for (int i = '0'; i <= '9'; i++) { atext[i] = true; } for (int i = 'A'; i <= 'Z'; i++) { atext[i] = true; } for (int i = 'a'; i <= 'z'; i++) { atext[i] = true; } atext['!'] = true; atext['#'] = true; atext['$'] = true; atext['%'] = true; atext['&'] = true; atext['\''] = true; atext['*'] = true; atext['+'] = true; atext['-'] = true; atext['/'] = true; atext['='] = true; atext['?'] = true; atext['^'] = true; atext['_'] = true; atext['`'] = true; atext['{'] = true; atext['|'] = true; atext['}'] = true; atext['~'] = true; return atext; } private static bool[] CreateCharactersAllowedInQuotedStrings() { // fqtext = %d1-9 / %d11 / %d12 / %d14-33 / %d35-91 / %d93-127 var qtext = new bool[128]; for (int i = 1; i <= 9; i++) { qtext[i] = true; } qtext[11] = true; qtext[12] = true; for (int i = 14; i <= 33; i++) { qtext[i] = true; } for (int i = 35; i <= 91; i++) { qtext[i] = true; } for (int i = 93; i <= 127; i++) { qtext[i] = true; } return qtext; } private static bool[] CreateCharactersAllowedInDomainLiterals() { // fdtext = %d1-8 / %d11 / %d12 / %d14-31 / %d33-90 / %d94-127 var dtext = new bool[128]; for (int i = 1; i <= 8; i++) { dtext[i] = true; } dtext[11] = true; dtext[12] = true; for (int i = 14; i <= 31; i++) { dtext[i] = true; } for (int i = 33; i <= 90; i++) { dtext[i] = true; } for (int i = 94; i <= 127; i++) { dtext[i] = true; } return dtext; } private static bool[] CreateCharactersAllowedInHeaderNames() { // ftext = %d33-57 / %d59-126 var ftext = new bool[128]; for (int i = 33; i <= 57; i++) { ftext[i] = true; } for (int i = 59; i <= 126; i++) { ftext[i] = true; } return ftext; } private static bool[] CreateCharactersAllowedInTokens() { // ttext = %d33-126 except '()<>@,;:\"/[]?=' var ttext = new bool[128]; for (int i = 33; i <= 126; i++) { ttext[i] = true; } ttext['('] = false; ttext[')'] = false; ttext['<'] = false; ttext['>'] = false; ttext['@'] = false; ttext[','] = false; ttext[';'] = false; ttext[':'] = false; ttext['\\'] = false; ttext['"'] = false; ttext['/'] = false; ttext['['] = false; ttext[']'] = false; ttext['?'] = false; ttext['='] = false; return ttext; } private static bool[] CreateCharactersAllowedInComments() { // ctext- %d1-8 / %d11 / %d12 / %d14-31 / %33-39 / %42-91 / %93-127 var ctext = new bool[128]; for (int i = 1; i <= 8; i++) { ctext[i] = true; } ctext[11] = true; ctext[12] = true; for (int i = 14; i <= 31; i++) { ctext[i] = true; } for (int i = 33; i <= 39; i++) { ctext[i] = true; } for (int i = 42; i <= 91; i++) { ctext[i] = true; } for (int i = 93; i <= 127; i++) { ctext[i] = true; } return ctext; } internal static bool SkipCFWS(string data, ref int offset) { int comments = 0; for (; offset < data.Length; offset++) { if (data[offset] > 127) throw new FormatException( SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset]) ); else if (data[offset] == '\\' && comments > 0) offset += 2; else if (data[offset] == '(') comments++; else if (data[offset] == ')') comments--; else if (data[offset] != ' ' && data[offset] != '\t' && comments == 0) return true; if (comments < 0) { throw new FormatException( SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset]) ); } } //returns false if end of string return false; } internal static void ValidateHeaderName(string data) { int offset = 0; for (; offset < data.Length; offset++) { if (data[offset] > Ftext.Length || !Ftext[data[offset]]) throw new FormatException(SR.InvalidHeaderName); } if (offset == 0) throw new FormatException(SR.InvalidHeaderName); } internal static string? ReadQuotedString( string data, ref int offset, StringBuilder? builder ) { return ReadQuotedString(data, ref offset, builder, false, false); } internal static string? ReadQuotedString( string data, ref int offset, StringBuilder? builder, bool doesntRequireQuotes, bool permitUnicodeInDisplayName ) { // assume first char is the opening quote if (!doesntRequireQuotes) { ++offset; } int start = offset; StringBuilder localBuilder = (builder != null ? builder : new StringBuilder()); for (; offset < data.Length; offset++) { if (data[offset] == '\\') { localBuilder.Append(data, start, offset - start); start = ++offset; } else if (data[offset] == '"') { localBuilder.Append(data, start, offset - start); offset++; return (builder != null ? null : localBuilder.ToString()); } else if ( data[offset] == '=' && data.Length > offset + 3 && data[offset + 1] == '\r' && data[offset + 2] == '\n' && (data[offset + 3] == ' ' || data[offset + 3] == '\t') ) { //it's a soft crlf so it's ok offset += 3; } else if (permitUnicodeInDisplayName) { //if data contains Unicode and Unicode is permitted, then //it is valid in a quoted string in a header. if (data[offset] <= Ascii7bitMaxValue && !Qtext[data[offset]]) throw new FormatException( SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset]) ); } //not permitting Unicode, in which case Unicode is a formatting error else if (data[offset] > Ascii7bitMaxValue || !Qtext[data[offset]]) { throw new FormatException( SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset]) ); } } if (doesntRequireQuotes) { localBuilder.Append(data, start, offset - start); return (builder != null ? null : localBuilder.ToString()); } throw new FormatException(SR.MailHeaderFieldMalformedHeader); } internal static string? ReadParameterAttribute( string data, ref int offset, StringBuilder? builder ) { if (!SkipCFWS(data, ref offset)) return null; // return ReadToken(data, ref offset, null); } internal static string ReadToken(string data, ref int offset, StringBuilder? builder) { int start = offset; for (; offset < data.Length; offset++) { if (data[offset] > Ascii7bitMaxValue) { throw new FormatException( SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset]) ); } else if (!Ttext[data[offset]]) { break; } } if (start == offset && offset < data.Length) { throw new FormatException( SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset]) ); } return data.Substring(start, offset - start); } private static readonly string?[] s_months = new string?[] { null, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; internal static string? GetDateTimeString(DateTime value, StringBuilder? builder) { StringBuilder localBuilder = (builder != null ? builder : new StringBuilder()); localBuilder.Append(value.Day); localBuilder.Append(' '); localBuilder.Append(s_months[value.Month]); localBuilder.Append(' '); localBuilder.Append(value.Year); localBuilder.Append(' '); if (value.Hour <= 9) { localBuilder.Append('0'); } localBuilder.Append(value.Hour); localBuilder.Append(':'); if (value.Minute <= 9) { localBuilder.Append('0'); } localBuilder.Append(value.Minute); localBuilder.Append(':'); if (value.Second <= 9) { localBuilder.Append('0'); } localBuilder.Append(value.Second); string offset = TimeZoneInfo.Local.GetUtcOffset(value).ToString(); if (offset[0] != '-') { localBuilder.Append(" +"); } else { localBuilder.Append(' '); } string[] offsetFields = offset.Split(':'); localBuilder.Append(offsetFields[0]); localBuilder.Append(offsetFields[1]); return (builder != null ? null : localBuilder.ToString()); } internal static void GetTokenOrQuotedString( string data, StringBuilder builder, bool allowUnicode ) { int offset = 0, start = 0; for (; offset < data.Length; offset++) { if (CheckForUnicode(data[offset], allowUnicode)) { continue; } if (!Ttext[data[offset]] || data[offset] == ' ') { builder.Append('"'); for (; offset < data.Length; offset++) { if (CheckForUnicode(data[offset], allowUnicode)) { continue; } else if (IsFWSAt(data, offset)) // Allow FWS == "\r\n " { // No-op, skip these three chars offset += 2; } else if (!Qtext[data[offset]]) { builder.Append(data, start, offset - start); builder.Append('\\'); start = offset; } } builder.Append(data, start, offset - start); builder.Append('"'); return; } } //always a quoted string if it was empty. if (data.Length == 0) { builder.Append("\"\""); } // Token, no quotes needed builder.Append(data); } private static bool CheckForUnicode(char ch, bool allowUnicode) { if (ch < Ascii7bitMaxValue) { return false; } if (!allowUnicode) { throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, ch)); } return true; } internal static bool IsAllowedWhiteSpace(char c) { // all allowed whitespace characters return c == Tab || c == Space || c == CR || c == LF; } internal static bool HasCROrLF(string data) { for (int i = 0; i < data.Length; i++) { if (data[i] == '\r' || data[i] == '\n') { return true; } } return false; } // Is there a FWS ("\r\n " or "\r\n\t") starting at the given index? internal static bool IsFWSAt(string data, int index) { Debug.Assert(index >= 0); Debug.Assert(index < data.Length); return ( data[index] == MailBnfHelper.CR && index + 2 < data.Length && data[index + 1] == MailBnfHelper.LF && (data[index + 2] == MailBnfHelper.Space || data[index + 2] == MailBnfHelper.Tab) ); } } }
33.055769
150
0.423178
[ "MIT" ]
belav/runtime
src/libraries/Common/src/System/Net/Mail/MailBnfHelper.cs
17,189
C#
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using System; using System.Buffers; using System.Runtime.CompilerServices; using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp.Processing.Processors.Quantization { /// <summary> /// Represents a quantized image frame where the pixels indexed by a color palette. /// </summary> /// <typeparam name="TPixel">The pixel format.</typeparam> public class QuantizedFrame<TPixel> : IQuantizedFrame<TPixel> where TPixel : struct, IPixel<TPixel> { private IMemoryOwner<byte> pixels; /// <summary> /// Initializes a new instance of the <see cref="QuantizedFrame{TPixel}"/> class. /// </summary> /// <param name="memoryAllocator">Used to allocated memory for image processing operations.</param> /// <param name="width">The image width.</param> /// <param name="height">The image height.</param> /// <param name="palette">The color palette.</param> internal QuantizedFrame(MemoryAllocator memoryAllocator, int width, int height, ReadOnlyMemory<TPixel> palette) { Guard.MustBeGreaterThan(width, 0, nameof(width)); Guard.MustBeGreaterThan(height, 0, nameof(height)); this.Width = width; this.Height = height; this.Palette = palette; this.pixels = memoryAllocator.AllocateManagedByteBuffer(width * height, AllocationOptions.Clean); } /// <summary> /// Gets the width of this <see cref="QuantizedFrame{TPixel}"/>. /// </summary> public int Width { get; } /// <summary> /// Gets the height of this <see cref="QuantizedFrame{TPixel}"/>. /// </summary> public int Height { get; } /// <summary> /// Gets the color palette of this <see cref="QuantizedFrame{TPixel}"/>. /// </summary> public ReadOnlyMemory<TPixel> Palette { get; private set; } /// <summary> /// Gets the pixels of this <see cref="QuantizedFrame{TPixel}"/>. /// </summary> /// <returns>The <see cref="Span{T}"/></returns> [MethodImpl(InliningOptions.ShortMethod)] public ReadOnlySpan<byte> GetPixelSpan() => this.pixels.GetSpan(); /// <inheritdoc/> public void Dispose() { this.pixels?.Dispose(); this.pixels = null; this.Palette = null; } /// <summary> /// Get the non-readonly span of pixel data so <see cref="FrameQuantizer{TPixel}"/> can fill it. /// </summary> internal Span<byte> GetWritablePixelSpan() => this.pixels.GetSpan(); } }
37.648649
119
0.612347
[ "Apache-2.0" ]
Sheyne/ImageSharp
src/ImageSharp/Processing/Processors/Quantization/QuantizedFrame{TPixel}.cs
2,788
C#
namespace GoReactive.Services.Orders { public enum DrinkSize { Small, Medium, Large, ExtraLarge } }
11.230769
36
0.534247
[ "MIT" ]
RLittlesII/demo
reactiveui/dotnet-conf/src/GoReactive/Services/Orders/DrinkSize.cs
146
C#
//*********************************************************// // Copyright (c) Microsoft. All rights reserved. // // Apache 2.0 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.Collections.Generic; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; namespace TestAdapterTests { class MockTestExecutionRecorder : IFrameworkHandle { public readonly List<TestResult> Results = new List<TestResult>(); public bool EnableShutdownAfterTestRun { get { return false; } set { } } public int LaunchProcessWithDebuggerAttached(string filePath, string workingDirectory, string arguments, IDictionary<string, string> environmentVariables) { return 0; } public void RecordResult(TestResult result) { this.Results.Add(result); } public void RecordAttachments(IList<AttachmentSet> attachmentSets) { } public void RecordEnd(TestCase testCase, TestOutcome outcome) { } public void RecordStart(TestCase testCase) { } public void SendMessage(TestMessageLevel testMessageLevel, string message) { } } }
33.964286
165
0.609884
[ "Apache-2.0" ]
ezaruba/nodejstools
Nodejs/Tests/TestAdapterTests/MockTestExecutionRecorder.cs
1,849
C#
using System; namespace Abp.Extensions { /// <summary> /// Extension methods for <see cref="EventHandler"/>. /// </summary> public static class EventHandlerExtensions { /// <summary> /// Raises given event safely with given arguments. /// </summary> /// <param name="eventHandler">The event handler</param> /// <param name="sender">Source of the event</param> public static void InvokeSafely(this EventHandler eventHandler, object sender) { eventHandler.InvokeSafely(sender, EventArgs.Empty); } /// <summary> /// Raises given event safely with given arguments. /// </summary> /// <param name="eventHandler">The event handler</param> /// <param name="sender">Source of the event</param> /// <param name="e">Event argument</param> public static void InvokeSafely(this EventHandler eventHandler, object sender, EventArgs e) { if (eventHandler != null) { eventHandler(sender, e); } } /// <summary> /// Raises given event safely with given arguments. /// </summary> /// <typeparam name="TEventArgs">Type of the <see cref="EventArgs"/></typeparam> /// <param name="eventHandler">The event handler</param> /// <param name="sender">Source of the event</param> /// <param name="e">Event argument</param> public static void InvokeSafely<TEventArgs>(this EventHandler<TEventArgs> eventHandler, object sender, TEventArgs e) where TEventArgs : EventArgs { if (eventHandler != null) { eventHandler(sender, e); } } } }
35.48
124
0.573281
[ "MIT" ]
kegumx/aspnetboilerplate
src/Abp/Extensions/EventHandlerExtensions.cs
1,774
C#
using System; using System.Collections.Generic; using System.Linq; namespace ArtificialNeuralNetwork.Genes { public class NeuralNetworkGene : IEquatable<NeuralNetworkGene> { public LayerGene InputGene; public IList<LayerGene> HiddenGenes; public LayerGene OutputGene; #region Equality Members /// <summary> /// Returns true if the fields of the NeuralNetworkGene objects are the same. /// </summary> /// <param name="obj">The NeuralNetworkGene object to compare with.</param> /// <returns> /// True if the fields of the NeuralNetworkGene objects are the same; false otherwise. /// </returns> public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return false; } return Equals(obj as NeuralNetworkGene); } /// <summary> /// Returns true if the fields of the NeuralNetworkGene objects are the same. /// </summary> /// <param name="neuralNetworkGene">The NeuralNetworkGene object to compare with.</param> /// <returns> /// True if the fields of the NeuralNetworkGene objects are the same; false otherwise. /// </returns> public bool Equals(NeuralNetworkGene neuralNetworkGene) { if (neuralNetworkGene == null) { return false; } if (neuralNetworkGene.InputGene != InputGene || neuralNetworkGene.OutputGene != OutputGene || neuralNetworkGene.HiddenGenes.Count != HiddenGenes.Count) { return false; } return !HiddenGenes.Where((t, i) => t != neuralNetworkGene.HiddenGenes[i]).Any(); } /// <summary> /// Returns true if the fields of the NeuralNetworkGene objects are the same. /// </summary> /// <param name="a">The NeuralNetworkGene object to compare.</param> /// <param name="b">The NeuralNetworkGene object to compare.</param> /// <returns> /// True if the objects are the same, are both null, or have the same values; /// false otherwise. /// </returns> public static bool operator ==(NeuralNetworkGene a, NeuralNetworkGene b) { // If both are null, or both are same instance, return true. if (ReferenceEquals(a, b)) { return true; } // If one or the other is null, return false. if (ReferenceEquals(a, null) || ReferenceEquals(b, null)) { return false; } return a.Equals(b); } public static bool operator !=(NeuralNetworkGene a, NeuralNetworkGene b) { return !(a == b); } // Following this algorithm: http://stackoverflow.com/a/263416 /// <summary> /// Returns the hash code of the NeuralNetworkGene. /// </summary> /// <returns>The hash code of the NeuralNetworkGene.</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hash = (int)2166136261; hash = hash * 16777619 ^ InputGene.GetHashCode() ^ HiddenGenes.GetHashCode() ^ OutputGene.GetHashCode(); return hash; } } #endregion } }
34.97
120
0.558479
[ "MIT" ]
jobeland/NeuralNetwork
NeuralNetwork/NeuralNetwork/Genes/NeuralNetworkGene.cs
3,499
C#
using System; using NetOffice; namespace NetOffice.OutlookApi.Enums { /// <summary> /// SupportByVersion Outlook 10, 11, 12, 14, 15, 16 /// </summary> [SupportByVersionAttribute("Outlook", 10,11,12,14,15,16)] [EntityTypeAttribute(EntityType.IsEnum)] public enum OlOfficeDocItemsType { /// <summary> /// SupportByVersion Outlook 10, 11, 12, 14, 15, 16 /// </summary> /// <remarks>8</remarks> [SupportByVersionAttribute("Outlook", 10,11,12,14,15,16)] olExcelWorkSheetItem = 8, /// <summary> /// SupportByVersion Outlook 10, 11, 12, 14, 15, 16 /// </summary> /// <remarks>9</remarks> [SupportByVersionAttribute("Outlook", 10,11,12,14,15,16)] olWordDocumentItem = 9, /// <summary> /// SupportByVersion Outlook 10, 11, 12, 14, 15, 16 /// </summary> /// <remarks>10</remarks> [SupportByVersionAttribute("Outlook", 10,11,12,14,15,16)] olPowerPointShowItem = 10 } }
28.030303
60
0.651892
[ "MIT" ]
brunobola/NetOffice
Source/Outlook/Enums/OlOfficeDocItemsType.cs
927
C#
#pragma checksum "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6ee5118c277e05586c059ac3847f3c0a71c56d75" // <auto-generated/> #pragma warning disable 1591 namespace DakaWeb.Pages { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; #nullable restore #line 1 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using System.Net.Http; #line default #line hidden #nullable disable #nullable restore #line 2 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using System.Net.Http.Json; #line default #line hidden #nullable disable #nullable restore #line 3 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using Microsoft.AspNetCore.Components.Forms; #line default #line hidden #nullable disable #nullable restore #line 4 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using Microsoft.AspNetCore.Components.Routing; #line default #line hidden #nullable disable #nullable restore #line 5 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using Microsoft.AspNetCore.Components.Web; #line default #line hidden #nullable disable #nullable restore #line 6 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using Microsoft.AspNetCore.Components.Web.Virtualization; #line default #line hidden #nullable disable #nullable restore #line 7 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using Microsoft.AspNetCore.Components.WebAssembly.Http; #line default #line hidden #nullable disable #nullable restore #line 8 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using Microsoft.JSInterop; #line default #line hidden #nullable disable #nullable restore #line 9 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using DakaWeb; #line default #line hidden #nullable disable #nullable restore #line 10 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using DakaWeb.Shared; #line default #line hidden #nullable disable #nullable restore #line 11 "F:\.net_core\DakaWeb\DakaWeb\_Imports.razor" using AntDesign; #line default #line hidden #nullable disable [Microsoft.AspNetCore.Components.RouteAttribute("/fetchdata")] public partial class FetchData : Microsoft.AspNetCore.Components.ComponentBase { #pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) { __builder.AddMarkupContent(0, "<h1>Weather forecast</h1>\r\n\r\n"); __builder.AddMarkupContent(1, "<p>This component demonstrates fetching data from the server.</p>"); #nullable restore #line 8 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" if (forecasts == null) { #line default #line hidden #nullable disable __builder.AddMarkupContent(2, "<p><em>Loading...</em></p>"); #nullable restore #line 13 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" } else { #line default #line hidden #nullable disable __builder.OpenElement(3, "table"); __builder.AddAttribute(4, "class", "table"); __builder.AddMarkupContent(5, "<thead><tr><th>Date</th>\r\n <th>Temp. (C)</th>\r\n <th>Temp. (F)</th>\r\n <th>Summary</th></tr></thead>\r\n "); __builder.OpenElement(6, "tbody"); #nullable restore #line 26 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" foreach (var forecast in forecasts) { #line default #line hidden #nullable disable __builder.OpenElement(7, "tr"); __builder.OpenElement(8, "td"); __builder.AddContent(9, #nullable restore #line 29 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" forecast.Date.ToShortDateString() #line default #line hidden #nullable disable ); __builder.CloseElement(); __builder.AddMarkupContent(10, "\r\n "); __builder.OpenElement(11, "td"); __builder.AddContent(12, #nullable restore #line 30 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" forecast.TemperatureC #line default #line hidden #nullable disable ); __builder.CloseElement(); __builder.AddMarkupContent(13, "\r\n "); __builder.OpenElement(14, "td"); __builder.AddContent(15, #nullable restore #line 31 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" forecast.TemperatureF #line default #line hidden #nullable disable ); __builder.CloseElement(); __builder.AddMarkupContent(16, "\r\n "); __builder.OpenElement(17, "td"); __builder.AddContent(18, #nullable restore #line 32 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" forecast.Summary #line default #line hidden #nullable disable ); __builder.CloseElement(); __builder.CloseElement(); #nullable restore #line 34 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" } #line default #line hidden #nullable disable __builder.CloseElement(); __builder.CloseElement(); #nullable restore #line 37 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" } #line default #line hidden #nullable disable } #pragma warning restore 1998 #nullable restore #line 39 "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" private WeatherForecast[] forecasts; protected override async Task OnInitializedAsync() { forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json"); } public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public string Summary { get; set; } public int TemperatureF => 32 + (int) (TemperatureC / 0.5556); } #line default #line hidden #nullable disable [global::Microsoft.AspNetCore.Components.InjectAttribute] private HttpClient Http { get; set; } } } #pragma warning restore 1591
28.426009
196
0.662407
[ "BSD-3-Clause" ]
SakuranaRanbom/XustAutoSignIn
DakaWeb/DakaWeb/obj/Debug/net5.0/Razor/Pages/FetchData.razor.g.cs
6,339
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #region Using directives using System; using System.Collections.Generic; using System.Text; using System.Threading; #endregion namespace UnregisterWaitNativeBug { class Program { private int ret = 0; private RegisteredWaitHandle[] regWait; private readonly AutoResetEvent expectedWaitsCompleted = new AutoResetEvent(false); static int Main(string[] args) { Program p = new Program(); p.Run(); Console.WriteLine(100 == p.ret ? "Test Passed" : "Test Failed"); return p.ret; } public void Run() { int size = 100; AutoResetEvent[] are = new AutoResetEvent[size]; regWait = new RegisteredWaitHandle[size]; for (int i = 0; i < size; i++) { are[i] = new AutoResetEvent(false); regWait[i] = ThreadPool.RegisterWaitForSingleObject((WaitHandle)are[i], new WaitOrTimerCallback(TheCallBack), are[i], -1, false); } for (int i = 0; i < size; i++) { are[i].Set(); are[i] = null; } if (expectedWaitsCompleted.WaitOne(30_000)) { // Wait a bit longer to verify that there are not any additional wait completions Thread.Sleep(50); } for (int i = 0; i < size; i++) { regWait[i].Unregister(are[i]); } } public void TheCallBack(object foo, bool state) { if (Interlocked.Increment(ref ret) == 100) { expectedWaitsCompleted.Set(); } } } }
24.064103
145
0.524774
[ "MIT" ]
2m0nd/runtime
src/tests/baseservices/threading/threadpool/unregister/unregister03.cs
1,877
C#
using Content.Server.Electrocution; using Content.Shared.Chemistry.Reagent; namespace Content.Server.Chemistry.ReagentEffects; public sealed class Electrocute : ReagentEffect { [DataField("electrocuteTime")] public int ElectrocuteTime = 2; [DataField("electrocuteDamageScale")] public int ElectrocuteDamageScale = 5; /// <remarks> /// true - refresh electrocute time, false - accumulate electrocute time /// </remarks> [DataField("refresh")] public bool Refresh = true; public override bool ShouldLog => true; public override void Effect(ReagentEffectArgs args) { EntitySystem.Get<ElectrocutionSystem>().TryDoElectrocution(args.SolutionEntity, null, Math.Max((args.Quantity * ElectrocuteDamageScale).Int(), 1), TimeSpan.FromSeconds(ElectrocuteTime), Refresh); args.Source?.RemoveReagent(args.Reagent.ID, args.Quantity); } }
33.481481
121
0.723451
[ "MIT" ]
14th-Batallion-Marine-Corps/14-Marine-Corps
Content.Server/Chemistry/ReagentEffects/Electrocute.cs
904
C#
namespace NugSQL.Test { public class User { public int id { get; set; } public string user_name { get; set; } public string profile { get; set; } public byte[] salt { get; set; } public byte[] password { get; set; } public short status { get; set; } } }
18.705882
45
0.534591
[ "BSD-2-Clause" ]
Yeganloo/NugSQL
NugSQL.Test/models/user.cs
318
C#
namespace Bluefish { using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; public class Startup { public Startup() { } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc((routes) => { routes.MapRoute("default_route", "{controller}/{action}", new { controller = "Default", action = "Index" }); }); } public void ConfigureServices(IServiceCollection services) { services .AddMvcCore() .AddJsonFormatters(); } } }
24.878788
124
0.534714
[ "MIT" ]
fatihtatoglu/bluefish
Bluefish/Startup.cs
823
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Web.Configuration; using System.Data; namespace BusinessLayer { public class isitmaTipGetir { SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString.ToString()); public List<isitmaTip> isitmaTipGetirTum() { List<isitmaTip> isTipler = new List<isitmaTip>(); try { SqlCommand com = new SqlCommand("select * from IsitmaTip order by IsitmaTipAd", con); com.CommandType = CommandType.Text; con.Open(); SqlDataReader dr = com.ExecuteReader(); while (dr.Read()) { isitmaTip itp = new isitmaTip(); itp.IsitmaTipAd = dr["IsitmaTipAd"].ToString(); itp.IsitmaTipId = Convert.ToInt32(dr["IsitmaTipId"]); isTipler.Add(itp); } dr.Close(); } catch (Exception ex) { } finally { con.Close(); } return isTipler; } public isitmaTip isitmaTipGetirId(int isTipId) { isitmaTip itp = new isitmaTip(); try { SqlCommand com = new SqlCommand("select * from IsitmaTip where IsitmaTipId = @isitmaTipId", con); com.Parameters.AddWithValue("@isitmaTipId", isTipId); com.CommandType = CommandType.Text; con.Open(); SqlDataReader dr = com.ExecuteReader(); while (dr.Read()) { itp.IsitmaTipAd = dr["IsitmaTipAd"].ToString(); itp.IsitmaTipId = Convert.ToInt32(dr["IsitmaTipId"]); } dr.Close(); } catch (Exception ex) { } finally { con.Close(); } return itp; } public int isitmaTipAdet(int id) { int adet = 0; try { SqlCommand com = new SqlCommand("select count(*) from Emlak where IsitmaTipId=@id", con); com.CommandType = CommandType.Text; com.Parameters.AddWithValue("@id",id); con.Open(); adet = Convert.ToInt32(com.ExecuteScalar()); } catch (Exception ex) { } finally { con.Close(); } return adet; } } }
28.958333
135
0.471583
[ "MIT" ]
fatihyildizhan/csharp-2010-older-projects
DoxaEmlak/BusinessLayer/IsitmaTip/isitmaTipGetir.cs
2,782
C#
using System; using System.Device.Location; using System.Collections.Generic; using com.calitha.goldparser; using System.Net; using System.Collections.Specialized; namespace Epi.Core.EnterInterpreter.Rules { /// <summary> /// Reduction to get the longitude. /// </summary> public partial class Rule_SystemLongitude : EnterRule { public Rule_SystemLongitude(Rule_Context pContext, NonterminalToken pToken) : base(pContext) { //SYSLONGITUDE } /// <summary> /// Executes the reduction. /// </summary> /// <returns>Returns the longitude.</returns> public override object Execute() { GeoCoordinate geoCoordinate = null; if (Context.EnterCheckCodeInterface.LastPosition != null) { geoCoordinate = Context.EnterCheckCodeInterface.LastPosition.Location; } if (geoCoordinate != null && geoCoordinate.IsUnknown != true) { return geoCoordinate.Longitude.ToString(); } return null; } } }
27.44186
87
0.575424
[ "Apache-2.0" ]
Epi-Info/Epi-Info-Community-Edition
Epi.Core.EnterInterpreter/Rules/Functions/Rule_SystemLongitude.cs
1,182
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace AspCoreCardGameEngine.Api.Migrations { public partial class Add__Game__Mode : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Mode", table: "Games", nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Mode", table: "Games"); } } }
25.913043
71
0.578859
[ "Apache-2.0" ]
francoishill/AspCoreCardGameEngine
Api/Migrations/20200131175238_Add__Game__Mode.cs
598
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation.Runspaces; namespace System.Management.Automation { /// <summary> /// Serves as the arguments for events triggered by exceptions in the SetValue method of <see cref="PSObjectPropertyDescriptor"/> /// </summary> /// <remarks> /// The sender of this event is an object of type <see cref="PSObjectPropertyDescriptor"/>. /// It is permitted to subclass <see cref="SettingValueExceptionEventArgs"/> /// but there is no established scenario for doing this, nor has it been tested. /// </remarks> public class SettingValueExceptionEventArgs : EventArgs { /// <summary> /// Gets and sets a <see cref="System.Boolean"/> indicating if the SetValue method of <see cref="PSObjectPropertyDescriptor"/> /// should throw the exception associated with this event. /// </summary> /// <remarks> /// The default value is true, indicating that the Exception associated with this event will be thrown. /// </remarks> public bool ShouldThrow { get; set; } /// <summary> /// Gets the exception that triggered the associated event. /// </summary> public Exception Exception { get; } /// <summary> /// Initializes a new instance of <see cref="SettingValueExceptionEventArgs"/> setting the value of the exception that triggered the associated event. /// </summary> /// <param name="exception">Exception that triggered the associated event.</param> internal SettingValueExceptionEventArgs(Exception exception) { Exception = exception; ShouldThrow = true; } } /// <summary> /// Serves as the arguments for events triggered by exceptions in the GetValue /// method of <see cref="PSObjectPropertyDescriptor"/> /// </summary> /// <remarks> /// The sender of this event is an object of type <see cref="PSObjectPropertyDescriptor"/>. /// It is permitted to subclass <see cref="GettingValueExceptionEventArgs"/> /// but there is no established scenario for doing this, nor has it been tested. /// </remarks> public class GettingValueExceptionEventArgs : EventArgs { /// <summary> /// Gets and sets a <see cref="System.Boolean"/> indicating if the GetValue method of <see cref="PSObjectPropertyDescriptor"/> /// should throw the exception associated with this event. /// </summary> public bool ShouldThrow { get; set; } /// <summary> /// Gets the Exception that triggered the associated event. /// </summary> public Exception Exception { get; } /// <summary> /// Initializes a new instance of <see cref="GettingValueExceptionEventArgs"/> setting the value of the exception that triggered the associated event. /// </summary> /// <param name="exception">Exception that triggered the associated event.</param> internal GettingValueExceptionEventArgs(Exception exception) { Exception = exception; ValueReplacement = null; ShouldThrow = true; } /// <summary> /// Gets and sets the value that will serve as a replacement to the return of the GetValue /// method of <see cref="PSObjectPropertyDescriptor"/>. If this property is not set /// to a value other than null then the exception associated with this event is thrown. /// </summary> public object ValueReplacement { get; set; } } /// <summary> /// Serves as the property information generated by the GetProperties method of <see cref="PSObjectTypeDescriptor"/>. /// </summary> /// <remarks> /// It is permitted to subclass <see cref="SettingValueExceptionEventArgs"/> /// but there is no established scenario for doing this, nor has it been tested. /// </remarks> public class PSObjectPropertyDescriptor : PropertyDescriptor { internal event EventHandler<SettingValueExceptionEventArgs> SettingValueException; internal event EventHandler<GettingValueExceptionEventArgs> GettingValueException; internal PSObjectPropertyDescriptor(string propertyName, Type propertyType, bool isReadOnly, AttributeCollection propertyAttributes) : base(propertyName, Array.Empty<Attribute>()) { IsReadOnly = isReadOnly; Attributes = propertyAttributes; PropertyType = propertyType; } /// <summary> /// Gets the collection of attributes for this member. /// </summary> public override AttributeCollection Attributes { get; } /// <summary> /// Gets a value indicating whether this property is read-only. /// </summary> public override bool IsReadOnly { get; } /// <summary> /// This method has no effect for <see cref="PSObjectPropertyDescriptor"/>. /// CanResetValue returns false. /// </summary> /// <param name="component">This parameter is ignored for <see cref="PSObjectPropertyDescriptor"/></param> public override void ResetValue(object component) { } /// <summary> /// Returns false to indicate that ResetValue has no effect. /// </summary> /// <param name="component">The component to test for reset capability.</param> /// <returns>False.</returns> public override bool CanResetValue(object component) { return false; } /// <summary> /// Returns true to indicate that the value of this property needs to be persisted. /// </summary> /// <param name="component">The component with the property to be examined for persistence.</param> /// <returns>True.</returns> public override bool ShouldSerializeValue(object component) { return true; } /// <summary> /// Gets the type of the component this property is bound to. /// </summary> /// <remarks>This property returns the <see cref="PSObject"/> type.</remarks> public override Type ComponentType { get { return typeof(PSObject); } } /// <summary> /// Gets the type of the property value. /// </summary> public override Type PropertyType { get; } /// <summary> /// Gets the current value of the property on a component. /// </summary> /// <param name="component">The component with the property for which to retrieve the value.</param> /// <returns>The value of a property for a given component.</returns> /// <exception cref="ExtendedTypeSystemException"> /// If the property has not been found in the component or an exception has /// been thrown when getting the value of the property. /// This Exception will only be thrown if there is no event handler for the GettingValueException /// event of the <see cref="PSObjectTypeDescriptor"/> that created this <see cref="PSObjectPropertyDescriptor"/>. /// If there is an event handler, it can prevent this exception from being thrown, by changing /// the ShouldThrow property of <see cref="GettingValueExceptionEventArgs"/> from its default /// value of true to false. /// </exception> /// <exception cref="PSArgumentNullException">If <paramref name="component"/> is null.</exception> /// <exception cref="PSArgumentException">If <paramref name="component"/> is not /// an <see cref="PSObject"/> or an <see cref="PSObjectTypeDescriptor"/>.</exception> public override object GetValue(object component) { if (component == null) { throw PSTraceSource.NewArgumentNullException(nameof(component)); } PSObject mshObj = GetComponentPSObject(component); PSPropertyInfo property; try { property = mshObj.Properties[this.Name] as PSPropertyInfo; if (property == null) { PSObjectTypeDescriptor.typeDescriptor.WriteLine("Could not find property \"{0}\" to get its value.", this.Name); ExtendedTypeSystemException e = new ExtendedTypeSystemException("PropertyNotFoundInPropertyDescriptorGetValue", null, ExtendedTypeSystem.PropertyNotFoundInTypeDescriptor, this.Name); bool shouldThrow; object returnValue = DealWithGetValueException(e, out shouldThrow); if (shouldThrow) { throw e; } return returnValue; } return property.Value; } catch (ExtendedTypeSystemException e) { PSObjectTypeDescriptor.typeDescriptor.WriteLine("Exception getting the value of the property \"{0}\": \"{1}\".", this.Name, e.Message); bool shouldThrow; object returnValue = DealWithGetValueException(e, out shouldThrow); if (shouldThrow) { throw; } return returnValue; } } private static PSObject GetComponentPSObject(object component) { // If you use the PSObjectTypeDescriptor directly as your object, it will be the component // if you use a provider, the PSObject will be the component. PSObject mshObj = component as PSObject; if (mshObj == null) { if (!(component is PSObjectTypeDescriptor descriptor)) { throw PSTraceSource.NewArgumentException(nameof(component), ExtendedTypeSystem.InvalidComponent, "component", nameof(PSObject), nameof(PSObjectTypeDescriptor)); } mshObj = descriptor.Instance; } return mshObj; } private object DealWithGetValueException(ExtendedTypeSystemException e, out bool shouldThrow) { GettingValueExceptionEventArgs eventArgs = new GettingValueExceptionEventArgs(e); if (GettingValueException != null) { GettingValueException.SafeInvoke(this, eventArgs); PSObjectTypeDescriptor.typeDescriptor.WriteLine( "GettingValueException event has been triggered resulting in ValueReplacement:\"{0}\".", eventArgs.ValueReplacement); } shouldThrow = eventArgs.ShouldThrow; return eventArgs.ValueReplacement; } /// <summary> /// Sets the value of the component to a different value. /// </summary> /// <param name="component">The component with the property value that is to be set.</param> /// <param name="value">The new value.</param> /// <exception cref="ExtendedTypeSystemException"> /// If the property has not been found in the component or an exception has /// been thrown when setting the value of the property. /// This Exception will only be thrown if there is no event handler for the SettingValueException /// event of the <see cref="PSObjectTypeDescriptor"/> that created this <see cref="PSObjectPropertyDescriptor"/>. /// If there is an event handler, it can prevent this exception from being thrown, by changing /// the ShouldThrow property of <see cref="SettingValueExceptionEventArgs"/> /// from its default value of true to false. /// </exception> /// <exception cref="PSArgumentNullException">If <paramref name="component"/> is null.</exception> /// <exception cref="PSArgumentException">If <paramref name="component"/> is not an /// <see cref="PSObject"/> or an <see cref="PSObjectTypeDescriptor"/>. /// </exception> public override void SetValue(object component, object value) { if (component == null) { throw PSTraceSource.NewArgumentNullException(nameof(component)); } PSObject mshObj = GetComponentPSObject(component); try { PSPropertyInfo property = mshObj.Properties[this.Name] as PSPropertyInfo; if (property == null) { PSObjectTypeDescriptor.typeDescriptor.WriteLine("Could not find property \"{0}\" to set its value.", this.Name); ExtendedTypeSystemException e = new ExtendedTypeSystemException("PropertyNotFoundInPropertyDescriptorSetValue", null, ExtendedTypeSystem.PropertyNotFoundInTypeDescriptor, this.Name); bool shouldThrow; DealWithSetValueException(e, out shouldThrow); if (shouldThrow) { throw e; } return; } property.Value = value; } catch (ExtendedTypeSystemException e) { PSObjectTypeDescriptor.typeDescriptor.WriteLine("Exception setting the value of the property \"{0}\": \"{1}\".", this.Name, e.Message); bool shouldThrow; DealWithSetValueException(e, out shouldThrow); if (shouldThrow) { throw; } } OnValueChanged(component, EventArgs.Empty); } private void DealWithSetValueException(ExtendedTypeSystemException e, out bool shouldThrow) { SettingValueExceptionEventArgs eventArgs = new SettingValueExceptionEventArgs(e); if (SettingValueException != null) { SettingValueException.SafeInvoke(this, eventArgs); PSObjectTypeDescriptor.typeDescriptor.WriteLine( "SettingValueException event has been triggered resulting in ShouldThrow:\"{0}\".", eventArgs.ShouldThrow); } shouldThrow = eventArgs.ShouldThrow; return; } } /// <summary> /// Provides information about the properties for an object of the type <see cref="PSObject"/>. /// </summary> public class PSObjectTypeDescriptor : CustomTypeDescriptor { internal static readonly PSTraceSource typeDescriptor = PSTraceSource.GetTracer("TypeDescriptor", "Traces the behavior of PSObjectTypeDescriptor, PSObjectTypeDescriptionProvider and PSObjectPropertyDescriptor.", false); /// <summary> /// Occurs when there was an exception setting the value of a property. /// </summary> /// <remarks> /// The ShouldThrow property of the <see cref="SettingValueExceptionEventArgs"/> allows /// subscribers to prevent the exception from being thrown. /// </remarks> public event EventHandler<SettingValueExceptionEventArgs> SettingValueException; /// <summary> /// Occurs when there was an exception getting the value of a property. /// </summary> /// <remarks> /// The ShouldThrow property of the <see cref="GettingValueExceptionEventArgs"/> allows /// subscribers to prevent the exception from being thrown. /// </remarks> public event EventHandler<GettingValueExceptionEventArgs> GettingValueException; /// <summary> /// Initializes a new instance of the <see cref="PSObjectTypeDescriptor"/> that provides /// property information about <paramref name="instance"/>. /// </summary> /// <param name="instance">The <see cref="PSObject"/> this class retrieves property information from.</param> public PSObjectTypeDescriptor(PSObject instance) { Instance = instance; } /// <summary> /// Gets the <see cref="PSObject"/> this class retrieves property information from. /// </summary> public PSObject Instance { get; } private void CheckAndAddProperty(PSPropertyInfo propertyInfo, Attribute[] attributes, ref PropertyDescriptorCollection returnValue) { using (typeDescriptor.TraceScope("Checking property \"{0}\".", propertyInfo.Name)) { // WriteOnly properties are not returned in TypeDescriptor.GetProperties, so we do the same. if (!propertyInfo.IsGettable) { typeDescriptor.WriteLine("Property \"{0}\" is write-only so it has been skipped.", propertyInfo.Name); return; } AttributeCollection propertyAttributes = null; Type propertyType = typeof(object); if (attributes != null && attributes.Length != 0) { PSProperty property = propertyInfo as PSProperty; if (property != null) { DotNetAdapter.PropertyCacheEntry propertyEntry = property.adapterData as DotNetAdapter.PropertyCacheEntry; if (propertyEntry == null) { typeDescriptor.WriteLine("Skipping attribute check for property \"{0}\" because it is an adapted property (not a .NET property).", property.Name); } else if (property.isDeserialized) { // At the moment we are not serializing attributes, so we can skip // the attribute check if the property is deserialized. typeDescriptor.WriteLine("Skipping attribute check for property \"{0}\" because it has been deserialized.", property.Name); } else { propertyType = propertyEntry.propertyType; propertyAttributes = propertyEntry.Attributes; foreach (Attribute attribute in attributes) { if (!propertyAttributes.Contains(attribute)) { typeDescriptor.WriteLine("Property \"{0}\" does not contain attribute \"{1}\" so it has been skipped.", property.Name, attribute); return; } } } } } if (propertyAttributes == null) { propertyAttributes = new AttributeCollection(); } typeDescriptor.WriteLine("Adding property \"{0}\".", propertyInfo.Name); PSObjectPropertyDescriptor propertyDescriptor = new PSObjectPropertyDescriptor(propertyInfo.Name, propertyType, !propertyInfo.IsSettable, propertyAttributes); propertyDescriptor.SettingValueException += this.SettingValueException; propertyDescriptor.GettingValueException += this.GettingValueException; returnValue.Add(propertyDescriptor); } } /// <summary> /// Returns a collection of property descriptors for the <see cref="PSObject"/> represented by this type descriptor. /// </summary> /// <returns>A PropertyDescriptorCollection containing the property descriptions for the <see cref="PSObject"/> represented by this type descriptor.</returns> public override PropertyDescriptorCollection GetProperties() { return GetProperties(null); } /// <summary> /// Returns a filtered collection of property descriptors for the <see cref="PSObject"/> represented by this type descriptor. /// </summary> /// <param name="attributes">An array of attributes to use as a filter. This can be a null reference (Nothing in Visual Basic).</param> /// <returns>A PropertyDescriptorCollection containing the property descriptions for the <see cref="PSObject"/> represented by this type descriptor.</returns> public override PropertyDescriptorCollection GetProperties(Attribute[] attributes) { using (typeDescriptor.TraceScope("Getting properties.")) { PropertyDescriptorCollection returnValue = new PropertyDescriptorCollection(null); if (Instance == null) { return returnValue; } foreach (PSPropertyInfo property in Instance.Properties) { CheckAndAddProperty(property, attributes, ref returnValue); } return returnValue; } } /// <summary> /// Determines whether the Instance property of <paramref name="obj"/> is equal to the current Instance. /// </summary> /// <param name="obj">The Object to compare with the current Object.</param> /// <returns>True if the Instance property of <paramref name="obj"/> is equal to the current Instance; otherwise, false.</returns> public override bool Equals(object obj) { if (!(obj is PSObjectTypeDescriptor other)) { return false; } if (this.Instance == null || other.Instance == null) { return ReferenceEquals(this, other); } return other.Instance.Equals(this.Instance); } /// <summary> /// Provides a value for hashing algorithms. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { if (this.Instance == null) { return base.GetHashCode(); } return this.Instance.GetHashCode(); } /// <summary> /// Returns the default property for this object. /// </summary> /// <returns>An <see cref="PSObjectPropertyDescriptor"/> that represents the default property for this object, or a null reference (Nothing in Visual Basic) if this object does not have properties.</returns> public override PropertyDescriptor GetDefaultProperty() { if (this.Instance == null) { return null; } string defaultProperty = null; PSMemberSet standardMembers = this.Instance.PSStandardMembers; if (standardMembers != null) { PSNoteProperty note = standardMembers.Properties[TypeTable.DefaultDisplayProperty] as PSNoteProperty; if (note != null) { defaultProperty = note.Value as string; } } if (defaultProperty == null) { object[] defaultPropertyAttributes = this.Instance.BaseObject.GetType().GetCustomAttributes(typeof(DefaultPropertyAttribute), true); if (defaultPropertyAttributes.Length == 1) { DefaultPropertyAttribute defaultPropertyAttribute = defaultPropertyAttributes[0] as DefaultPropertyAttribute; if (defaultPropertyAttribute != null) { defaultProperty = defaultPropertyAttribute.Name; } } } PropertyDescriptorCollection properties = this.GetProperties(); if (defaultProperty != null) { // There is a defaultProperty, but let's check if it is actually one of the properties we are // returning in GetProperties foreach (PropertyDescriptor descriptor in properties) { if (string.Equals(descriptor.Name, defaultProperty, StringComparison.OrdinalIgnoreCase)) { return descriptor; } } } return null; } /// <summary> /// Returns a type converter for this object. /// </summary> /// <returns>A <see cref="TypeConverter"/> that is the converter for this object, or a null reference (Nothing in Visual Basic) if there is no <see cref="TypeConverter"/> for this object.</returns> public override TypeConverter GetConverter() { if (this.Instance == null) { // If we return null, some controls will have an exception saying that this // GetConverter returned an illegal value return new TypeConverter(); } object baseObject = this.Instance.BaseObject; TypeConverter retValue = LanguagePrimitives.GetConverter(baseObject.GetType(), null) as TypeConverter ?? TypeDescriptor.GetConverter(baseObject); return retValue; } /// <summary> /// Returns the object that this value is a member of. /// </summary> /// <param name="pd">A <see cref="PropertyDescriptor"/> that represents the property whose owner is to be found.</param> /// <returns>An object that represents the owner of the specified property.</returns> public override object GetPropertyOwner(PropertyDescriptor pd) { return this.Instance; } #region Overrides Forwarded To BaseObject #region ReadMe // This region contains methods implemented like: // TypeDescriptor.OverrideName(this.Instance.BaseObject) // They serve the purpose of exposing Attributes and other information from the BaseObject // of an PSObject, since the PSObject itself does not have the concept of class (or member) // attributes. // The calls are not recursive because the BaseObject was implemented so it is never // another PSObject. ImmediateBaseObject or PSObject.Base could cause the call to be // recursive in the case of an object like "new PSObject(new PSObject())". // Even if we used ImmediateBaseObject, the recursion would be finite since we would // keep getting an ImmediatebaseObject until it ceased to be an PSObject. #endregion ReadMe /// <summary> /// Returns the default event for this object. /// </summary> /// <returns>An <see cref="EventDescriptor"/> that represents the default event for this object, or a null reference (Nothing in Visual Basic) if this object does not have events.</returns> public override EventDescriptor GetDefaultEvent() { if (this.Instance == null) { return null; } return TypeDescriptor.GetDefaultEvent(this.Instance.BaseObject); } /// <summary> /// Returns the events for this instance of a component. /// </summary> /// <returns>An <see cref="EventDescriptorCollection"/> that represents the events for this component instance.</returns> public override EventDescriptorCollection GetEvents() { if (this.Instance == null) { return new EventDescriptorCollection(null); } return TypeDescriptor.GetEvents(this.Instance.BaseObject); } /// <summary> /// Returns the events for this instance of a component using the attribute array as a filter. /// </summary> /// <param name="attributes">An array of type <see cref="Attribute"/> that is used as a filter.</param> /// <returns>An <see cref="EventDescriptorCollection"/> that represents the events for this component instance that match the given set of attributes.</returns> public override EventDescriptorCollection GetEvents(Attribute[] attributes) { if (this.Instance == null) { return null; } return TypeDescriptor.GetEvents(this.Instance.BaseObject, attributes); } /// <summary> /// Returns a collection of type <see cref="Attribute"/> for this object. /// </summary> /// <returns>An <see cref="AttributeCollection"/> with the attributes for this object.</returns> public override AttributeCollection GetAttributes() { if (this.Instance == null) { return new AttributeCollection(); } return TypeDescriptor.GetAttributes(this.Instance.BaseObject); } /// <summary> /// Returns the class name of this object. /// </summary> /// <returns>The class name of the object, or a null reference (Nothing in Visual Basic) if the class does not have a name.</returns> public override string GetClassName() { if (this.Instance == null) { return null; } return TypeDescriptor.GetClassName(this.Instance.BaseObject); } /// <summary> /// Returns the name of this object. /// </summary> /// <returns>The name of the object, or a null reference (Nothing in Visual Basic) if object does not have a name.</returns> public override string GetComponentName() { if (this.Instance == null) { return null; } return TypeDescriptor.GetComponentName(this.Instance.BaseObject); } /// <summary> /// Returns an editor of the specified type for this object. /// </summary> /// <param name="editorBaseType">A <see cref="Type"/> that represents the editor for this object.</param> /// <returns>An object of the specified type that is the editor for this object, or a null reference (Nothing in Visual Basic) if the editor cannot be found.</returns> public override object GetEditor(Type editorBaseType) { if (this.Instance == null) { return null; } return TypeDescriptor.GetEditor(this.Instance.BaseObject, editorBaseType); } #endregion Forwarded To BaseObject } /// <summary> /// Retrieves a <see cref="PSObjectTypeDescriptor"/> to provides information about the properties for an object of the type <see cref="PSObject"/>. /// </summary> public class PSObjectTypeDescriptionProvider : TypeDescriptionProvider { /// <summary> /// Occurs when there was an exception setting the value of a property. /// </summary> /// <remarks> /// The ShouldThrow property of the <see cref="SettingValueExceptionEventArgs"/> allows /// subscribers to prevent the exception from being thrown. /// </remarks> public event EventHandler<SettingValueExceptionEventArgs> SettingValueException; /// <summary> /// Occurs when there was an exception getting the value of a property. /// </summary> /// <remarks> /// The ShouldThrow property of the <see cref="GettingValueExceptionEventArgs"/> allows /// subscribers to prevent the exception from being thrown. /// </remarks> public event EventHandler<GettingValueExceptionEventArgs> GettingValueException; /// <summary> /// Initializes a new instance of <see cref="PSObjectTypeDescriptionProvider"/> /// </summary> public PSObjectTypeDescriptionProvider() { } /// <summary> /// Retrieves a <see cref="PSObjectTypeDescriptor"/> to provide information about the properties for an object of the type <see cref="PSObject"/>. /// </summary> /// <param name="objectType">The type of object for which to retrieve the type descriptor. If this parameter is not noll and is not the <see cref="PSObject"/>, the return of this method will be null.</param> /// <param name="instance">An instance of the type. If instance is null or has a type other than <see cref="PSObject"/>, this method returns null.</param> /// <returns>An <see cref="ICustomTypeDescriptor"/> that can provide property information for the /// type <see cref="PSObject"/>, or null if <paramref name="objectType"/> is not null, /// but has a type other than <see cref="PSObject"/>.</returns> public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) { PSObject mshObj = instance as PSObject; #region ReadMe // Instance can be null, in a couple of circumstances: // 1) In one of the many calls to this method caused by setting the SelectedObject // property of a PropertyGrid. // 2) If, by mistake, an object[] or Collection<PSObject> is used instead of an ArrayList // to set the DataSource property of a DataGrid or DatagridView. // // It would be nice to throw an exception for the case 2) instructing the user to use // an ArrayList, but since we have case 1) and maybe others we haven't found we return // an PSObjectTypeDescriptor(null). PSObjectTypeDescriptor's GetProperties // checks for null instance and returns an empty property collection. // All other overrides also check for null and return some default result. // Case 1), which is using a PropertyGrid seems to be unaffected by these results returned // by PSObjectTypeDescriptor overrides when the Instance is null, so we must conclude // that the TypeDescriptor returned by that call where instance is null is not used // for anything meaningful. That null instance PSObjectTypeDescriptor is only one // of the many PSObjectTypeDescriptor's returned by this method in a PropertyGrid use. // Some of the other calls to this method are passing a valid instance and the objects // returned by these calls seem to be the ones used for meaningful calls in the PropertyGrid. // // It might sound strange that we are not verifying the type of objectType or of instance // to be PSObject, but in this PropertyGrid use that passes a null instance (case 1), if // we return null we have an exception flagging the return as invalid. Since we cannot // return null and MSDN has a note saying that we should return null instead of throwing // exceptions, the safest behavior seems to be creating this PSObjectTypeDescriptor with // null instance. #endregion ReadMe PSObjectTypeDescriptor typeDescriptor = new PSObjectTypeDescriptor(mshObj); typeDescriptor.SettingValueException += this.SettingValueException; typeDescriptor.GettingValueException += this.GettingValueException; return typeDescriptor; } } }
46.313472
227
0.598143
[ "MIT" ]
Hwangjonggyun/PowerShell
src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
35,754
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 Warcaby.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("Warcaby.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; } } } }
42.698413
173
0.620074
[ "MIT" ]
nataliap13/PT-Warcaby
Image recognition/Properties/Resources.Designer.cs
2,692
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using MediatR; using HelpMyStreet.Contracts.Shared; using HelpMyStreet.Contracts.GroupService.Request; using HelpMyStreet.Contracts.RequestService.Response; using System.Net; using AzureFunctions.Extensions.Swashbuckle.Attribute; using Microsoft.Azure.WebJobs.Extensions.Http; using HelpMyStreet.Utils.Extensions; using System.Threading; using HelpMyStreet.Utils.Utils; using HelpMyStreet.Contracts.GroupService.Response; namespace GroupService.AzureFunction { public class GetNewRequestActions { private readonly IMediator _mediator; private readonly ILoggerWrapper<GetNewRequestActionsRequest> _logger; public GetNewRequestActions(IMediator mediator,ILoggerWrapper<GetNewRequestActionsRequest> logger) { _mediator = mediator; _logger = logger; } [FunctionName("GetNewRequestActions")] [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(GetNewRequestActionsResponse))] public async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] [RequestBodyType(typeof(GetNewRequestActionsRequest), "get new request actions")] GetNewRequestActionsRequest req, CancellationToken cancellationToken) { try { if (req.IsValid(out var validationResults)) { GetNewRequestActionsResponse response = await _mediator.Send(req, cancellationToken); return new OkObjectResult(ResponseWrapper<GetNewRequestActionsResponse, GroupServiceErrorCode>.CreateSuccessfulResponse(response)); } else { return new ObjectResult(ResponseWrapper<GetNewRequestActionsResponse, GroupServiceErrorCode>.CreateUnsuccessfulResponse(GroupServiceErrorCode.ValidationError, validationResults)) { StatusCode = 422 }; } } catch (Exception ex) { _logger.LogErrorAndNotifyNewRelic($"Unhandled error in GetNewRequestActions", ex); return new ObjectResult(ResponseWrapper<GetNewRequestActionsResponse, GroupServiceErrorCode>.CreateUnsuccessfulResponse(GroupServiceErrorCode.InternalServerError, "Internal Error")) { StatusCode = StatusCodes.Status500InternalServerError }; } } } }
43.474576
256
0.711891
[ "MIT" ]
factor-50-devops-bot/group-service
GroupService/GroupService.AzureFunction/GetNewRequestActions.cs
2,565
C#
namespace Couchbase.Core.Exceptions { public class RequestTimeoutException : CouchbaseException { } }
16.285714
61
0.736842
[ "Apache-2.0" ]
mfeerick/couchbase-net-client
src/Couchbase/Core/Exceptions/RequestTimeoutException.cs
114
C#
namespace Assets.HeroEditor4D.FantasyInventory.Scripts.Enums { public enum ItemMaterial { Unknown, Wood, Leather, Metal, Fruit, Meat, Liquid, Soup, Gold } }
17
62
0.482353
[ "MIT" ]
imaducklol/Flight-of-the-Gray-Hamsters-of-Yoinky-Sploinky
Assets/HeroEditor4D/FantasyInventory/Scripts/Enums/ItemMaterial.cs
257
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. #nullable disable using System.Diagnostics; using System.Globalization; namespace System.Windows.Forms.PropertyGridInternal { internal class ArrayElementGridEntry : GridEntry { protected int index; public ArrayElementGridEntry(PropertyGrid ownerGrid, GridEntry peParent, int index) : base(ownerGrid, peParent) { this.index = index; SetFlag(FLAG_RENDER_READONLY, (peParent.Flags & FLAG_RENDER_READONLY) != 0 || peParent.ForceReadOnly); } public override GridItemType GridItemType { get { return GridItemType.ArrayValue; } } public override bool IsValueEditable { get { return ParentGridEntry.IsValueEditable; } } public override string PropertyLabel { get { return "[" + index.ToString(CultureInfo.CurrentCulture) + "]"; } } public override Type PropertyType { get { return parentPE.PropertyType.GetElementType(); } } public override object PropertyValue { get { object owner = GetValueOwner(); Debug.Assert(owner is Array, "Owner is not array type!"); return ((Array)owner).GetValue(index); } set { object owner = GetValueOwner(); Debug.Assert(owner is Array, "Owner is not array type!"); ((Array)owner).SetValue(value, index); } } public override bool ShouldRenderReadOnly { get { return ParentGridEntry.ShouldRenderReadOnly; } } } }
26.2125
114
0.533143
[ "MIT" ]
Amy-Li03/winforms
src/System.Windows.Forms/src/System/Windows/Forms/PropertyGridInternal/ArrayElementGridEntry.cs
2,099
C#
using System; class PrintASCII { public static void Main() { int startCode = 33; int endCode = 126; for (int currentCode = startCode; currentCode <= endCode; currentCode++) { Console.Write((char)currentCode); } } }
18.666667
80
0.553571
[ "MIT" ]
ndvalkov/TelerikAcademy2016
Homework/CSharp-Part-1/02. Data-Types-and-Variables/PrintAscii.cs
280
C#
using Microsoft.Win32; using Outlook2013TodoAddIn.Forms; using System; using System.Drawing; using System.Linq; using System.Windows.Forms; using Office = Microsoft.Office.Core; namespace Outlook2013TodoAddIn { /// <summary> /// Class for the add-in /// </summary> public partial class ThisAddIn { #region "Properties" /// <summary> /// Control with calendar, etc... /// </summary> public AppointmentsControl AppControl { get; set; } /// <summary> /// Custom task pane /// </summary> public Microsoft.Office.Tools.CustomTaskPane ToDoTaskPane { get; set; } #endregion "Properties" #region "Methods" /// <summary> /// Initialize settings upon add-in startup /// </summary> /// <param name="sender">Sender</param> /// <param name="e">EventArgs</param> private void ThisAddIn_Startup(object sender, System.EventArgs e) { try { Globals.ThisAddIn.Application.NewMailEx += Application_NewMailEx; this.AddRegistryNotification(); this.AppControl = new AppointmentsControl(); this.AppControl.MailAlertsEnabled = Properties.Settings.Default.MailAlertsEnabled; this.AppControl.ShowPastAppointments = Properties.Settings.Default.ShowPastAppointments; this.AppControl.Accounts = Properties.Settings.Default.Accounts; this.AppControl.ShowFriendlyGroupHeaders = Properties.Settings.Default.ShowFriendlyGroupHeaders; this.AppControl.ShowDayNames = Properties.Settings.Default.ShowDayNames; this.AppControl.ShowWeekNumbers = Properties.Settings.Default.ShowWeekNumbers; this.AppControl.ShowTasks = Properties.Settings.Default.ShowTasks; this.AppControl.ShowCompletedTasks = Properties.Settings.Default.ShowCompletedTasks; this.AppControl.FirstDayOfWeek = Properties.Settings.Default.FirstDayOfWeek; this.AppControl.NumDays = Properties.Settings.Default.NumDays; // Setting the value will load the appointments ToDoTaskPane = this.CustomTaskPanes.Add(this.AppControl, "Appointments"); ToDoTaskPane.Visible = Properties.Settings.Default.Visible; ToDoTaskPane.Width = Properties.Settings.Default.Width; ToDoTaskPane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionRight; ToDoTaskPane.DockPositionRestrict = Office.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoHorizontal; ToDoTaskPane.VisibleChanged += ToDoTaskPane_VisibleChanged; this.AppControl.SizeChanged += appControl_SizeChanged; // Selecting the date will retrieve the appointments // Otherwise it'll take the one used when the designer changed! this.AppControl.SelectedDate = DateTime.Today; // this.AppControl.RetrieveData(); Globals.ThisAddIn.Application.ActiveExplorer().Deactivate += ThisAddIn_Deactivate; // TODO: Make sure there are no memory leaks (dispose COM objects) } catch (Exception exc) { MessageBox.Show(String.Format("Error starting Calendar AddIn: {0}", exc.ToString())); throw exc; } } /// <summary> /// Process new email /// </summary> /// <param name="EntryIDCollection">ID of the email</param> private void Application_NewMailEx(string EntryIDCollection) { if (Properties.Settings.Default.MailAlertsEnabled) { Microsoft.Office.Interop.Outlook.MailItem newMail = Globals.ThisAddIn.Application.Session.GetItemFromID(EntryIDCollection) as Microsoft.Office.Interop.Outlook.MailItem; if (newMail != null) { NewMailAlert nm = new NewMailAlert(newMail, Properties.Settings.Default.DisplayTimeOut); // Show the popup without stealing focus SoundHelper.sndPlaySoundW(SoundHelper.MailBeep, SoundHelper.SND_NODEFAULT); nm.Show(); } } } /// <summary> /// Store the new size setting upon resizing /// </summary> /// <param name="sender">Sender</param> /// <param name="e">EventArgs</param> private void appControl_SizeChanged(object sender, EventArgs e) { Properties.Settings.Default.Width = ToDoTaskPane.Width; } /// <summary> /// Toggle ribbon button's status /// </summary> /// <param name="sender">Sender</param> /// <param name="e">EventArgs</param> private void ToDoTaskPane_VisibleChanged(object sender, EventArgs e) { // Can't save visibility here because this fires when closing Outlook, and by that time the pane is ALWAYS not visible // Properties.Settings.Default.Visible = ToDoTaskPane.Visible; TodoRibbonAddIn rbn = Globals.Ribbons.FirstOrDefault(r => r is TodoRibbonAddIn) as TodoRibbonAddIn; if (rbn != null) { rbn.toggleButton1.Checked = ToDoTaskPane.Visible; } } /// <summary> /// This is the alternative to capture the visibility of the pane when shutting down Outlook /// </summary> private void ThisAddIn_Deactivate() { Properties.Settings.Default.Visible = ToDoTaskPane.Visible; } /// <summary> /// This is not executed by default /// http://msdn.microsoft.com/en-us/library/office/ee720183.aspx#OL2010AdditionalShutdownChanges_AddinShutdownChangesinOL2010Beta /// We MANUALLY add notification to the registry of each user below /// </summary> /// <param name="sender">Sender</param> /// <param name="e">EventArgs</param> private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { // Can't call property setters such as: Properties.Settings.Default.NumDays = XXX because the pane is already disposed. // Settings will be set while the app is running and saved here. Properties.Settings.Default.Save(); } /// <summary> /// Implement shutdown notification for this particular add-in /// http://msdn.microsoft.com/en-us/library/office/ee720183.aspx#OL2010AdditionalShutdownChanges_AddinShutdownChangesinOL2010Beta /// HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\<ProgID>\[RequireShutdownNotification]=dword:0x1 /// </summary> private void AddRegistryNotification() { // If the entry is not there when Outlook loads, it will NOT notify the add-in, so the first time won't save the results string subKey = @"Software\Microsoft\Office\Outlook\Addins\Outlook2013TodoAddIn"; RegistryKey rk = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(subKey, true); if (rk == null) { rk = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(subKey); } if ((int)rk.GetValue("RequireShutdownNotification", 0) == 0) { rk.SetValue("RequireShutdownNotification", 1, RegistryValueKind.DWord); // "dword:0x1" } } #endregion "Methods" #region VSTO generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InternalStartup() { this.Startup += new System.EventHandler(ThisAddIn_Startup); this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown); } #endregion VSTO generated code } }
44.717391
185
0.610112
[ "MIT" ]
gamosoft/Outlook2013CalendarAddIn
Outlook2013TodoAddIn/ThisAddIn.cs
8,230
C#
using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Security; namespace HandyControl.Tools.Interop { [StructLayout(LayoutKind.Sequential, Pack = 2)] [SuppressMessage("ReSharper", "InconsistentNaming")] internal struct BITMAPINFO { public int bmiHeader_biSize; public int bmiHeader_biWidth; public int bmiHeader_biHeight; public short bmiHeader_biPlanes; public short bmiHeader_biBitCount; public int bmiHeader_biCompression; public int bmiHeader_biSizeImage; public int bmiHeader_biXPelsPerMeter; public int bmiHeader_biYPelsPerMeter; public int bmiHeader_biClrUsed; public int bmiHeader_biClrImportant; public BITMAPINFO(int width, int height, short bpp) { bmiHeader_biSize = SizeOf(); bmiHeader_biWidth = width; bmiHeader_biHeight = height; bmiHeader_biPlanes = 1; bmiHeader_biBitCount = bpp; bmiHeader_biCompression = 0; bmiHeader_biSizeImage = 0; bmiHeader_biXPelsPerMeter = 0; bmiHeader_biYPelsPerMeter = 0; bmiHeader_biClrUsed = 0; bmiHeader_biClrImportant = 0; } [SecuritySafeCritical] private static int SizeOf() { return Marshal.SizeOf(typeof(BITMAPINFO)); } } }
26.5
59
0.644305
[ "MIT" ]
6654cui/HandyControl
src/Shared/HandyControl_Shared/Tools/Interop/BITMAPINFO.cs
1,433
C#
namespace Generic_Box_of_Integer { public class Box<T> { private T storedValue; public Box(T value) { this.storedValue = value; } public override string ToString() { return $"{this.storedValue.GetType().FullName}: {this.storedValue}"; } } }
18.666667
80
0.532738
[ "MIT" ]
BlueDress/School
C# OOP Advanced/Generics Exercises/Generic Box of Integer/Box.cs
338
C#
using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: InternalsVisibleTo("ZoomNet.UnitTests")] [assembly: InternalsVisibleTo("ZoomNet.IntegrationTests")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] // 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)]
40.666667
75
0.80123
[ "MIT" ]
M-Zuber/ZoomNet
Source/ZoomNet/Properties/AssemblyInfo.cs
488
C#
using FluentValidation; using FluentValidation.Internal; using Microsoft.AspNetCore.Components.Forms; using System; using System.Linq; using System.Reflection; namespace Actionstep.API.WebClient.Validators { public static class EditContextFluentValidationExtensions { public static EditContext AddFluentValidation(this EditContext editContext) { if (editContext == null) { throw new ArgumentNullException(nameof(editContext)); } var messages = new ValidationMessageStore(editContext); editContext.OnValidationRequested += (sender, eventArgs) => ValidateModel((EditContext)sender, messages); editContext.OnFieldChanged += (sender, eventArgs) => ValidateField(editContext, messages, eventArgs.FieldIdentifier); return editContext; } private static void ValidateModel(EditContext editContext, ValidationMessageStore messages) { var validator = GetValidatorForModel(editContext.Model); var context = new ValidationContext<object>(editContext.Model); var validationResults = validator.Validate(context); messages.Clear(); foreach (var validationResult in validationResults.Errors) { messages.Add(editContext.Field(validationResult.PropertyName), validationResult.ErrorMessage); } editContext.NotifyValidationStateChanged(); } private static void ValidateField(EditContext editContext, ValidationMessageStore messages, in FieldIdentifier fieldIdentifier) { var properties = new[] { fieldIdentifier.FieldName }; var context = new ValidationContext<object>(fieldIdentifier.Model, new PropertyChain(), new MemberNameValidatorSelector(properties)); var validator = GetValidatorForModel(fieldIdentifier.Model); var validationResults = validator.Validate(context); messages.Clear(fieldIdentifier); foreach (var validationResult in validationResults.Errors) { messages.Add(editContext.Field(validationResult.PropertyName), validationResult.ErrorMessage); } editContext.NotifyValidationStateChanged(); } private static IValidator GetValidatorForModel(object model) { var abstractValidatorType = typeof(AbstractValidator<>).MakeGenericType(model.GetType()); var modelValidatorType = Assembly.GetExecutingAssembly().GetTypes().FirstOrDefault(t => t.IsSubclassOf(abstractValidatorType)); var modelValidatorInstance = (IValidator)Activator.CreateInstance(modelValidatorType); return modelValidatorInstance; } } }
37.918919
145
0.684248
[ "Unlicense" ]
actionstep/Actionstep.API.WebClient
Validators/EditContextFluentValidationExtensions.cs
2,808
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour { [SerializeField] private float force; [SerializeField] private float gravity; private Rigidbody physics; void Awake() { physics = GetComponent<Rigidbody>(); } void FixedUpdate() { float x = Input.GetAxis("Horizontal"); float y = Input.GetAxis("Vertical"); physics.AddForce(new Vector3(x * force, -gravity, y * force)); } }
20.64
70
0.651163
[ "BSD-3-Clause" ]
ProgrammingGeekBoi/Falling
Assets/Scripts/Movement.cs
518
C#
using System.Threading.Tasks; using GetAGame.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GetAGame.Controllers { public class AddItemController : Controller { private readonly IitemsServices _itemsService; public AddItemController(IitemsServices itemsService) { _itemsService = itemsService; } [Authorize] public IActionResult Add() { return View(); } [HttpPost] public async Task<IActionResult> AddProcess([Bind("Title,ImgURL,Details,Price")] Models.Item item) { item.OwnerName = User.Identity.Name; await _itemsService.AddItemAsync(item); return Redirect("/Home"); } } }
26.4
106
0.632576
[ "MIT" ]
Seifbarouni/Gaming-Store
Controllers/AddItemController.cs
792
C#
using Domain.ValueObjects; using System; namespace Domain.Roles { public class Role : IRole { public Guid Id { get; protected set; } public ShortName Name { get; protected set; } } }
19.181818
53
0.63981
[ "MIT" ]
jarman75/net.core
test.concepto/clean.components/src/Domain/Roles/Role.cs
211
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebApplication3.Pages { public class PrivacyModel : PageModel { private readonly ILogger<PrivacyModel> _logger; public PrivacyModel(ILogger<PrivacyModel> logger) { _logger = logger; } public void OnGet() { } } }
20.56
57
0.677043
[ "MIT" ]
hanaminhtran/GoogleAPI
WebApplication3/Pages/Privacy.cshtml.cs
516
C#
using System; using System.Net.Http; namespace SevenDigital.Api.Wrapper.Http { public static class HttpMethodHelpers { public static HttpMethod Parse(string methodName) { switch (methodName.ToUpperInvariant()) { case "GET": return HttpMethod.Get; case "POST": return HttpMethod.Post; case "PUT": return HttpMethod.Put; case "DELETE": return HttpMethod.Delete; default: throw new ArgumentException("cannot parse '" + methodName + "' as a http method"); } } public static bool HasParamsInQueryString(this HttpMethod method) { return (method == HttpMethod.Get) || (method == HttpMethod.Delete); } public static bool ShouldHaveRequestBody(this HttpMethod method) { return (method == HttpMethod.Post) || (method == HttpMethod.Put); } } }
23.694444
88
0.654162
[ "MIT" ]
AnthonySteele/SevenDigital.Api.Wrapper
src/SevenDigital.Api.Wrapper/Http/HttpMethodHelpers.cs
855
C#
//------------------------------------------------------------------------------ // <auto-generated> // Il codice è stato generato da uno strumento. // Versione runtime:4.0.30319.42000 // // Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se // il codice viene rigenerato. // </auto-generated> //------------------------------------------------------------------------------ namespace TCC.Properties { using System; /// <summary> /// Classe di risorse fortemente tipizzata per la ricerca di stringhe localizzate e così via. /// </summary> // Questa classe è stata generata automaticamente dalla classe StronglyTypedResourceBuilder. // tramite uno strumento quale ResGen o Visual Studio. // Per aggiungere o rimuovere un membro, modificare il file con estensione ResX ed eseguire nuovamente ResGen // con l'opzione /str oppure ricompilare il progetto VS. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Icon_Status { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Icon_Status() { } /// <summary> /// Restituisce l'istanza di ResourceManager nella cache utilizzata da questa classe. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TCC.Properties.Icon_Status", typeof(Icon_Status).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Esegue l'override della proprietà CurrentUICulture del thread corrente per tutte le /// ricerche di risorse eseguite utilizzando questa classe di risorse fortemente tipizzata. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Accelration_Tex { get { object obj = ResourceManager.GetObject("Accelration_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap AngerWarrior_Tex { get { object obj = ResourceManager.GetObject("AngerWarrior_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap archerspirit_Tex { get { object obj = ResourceManager.GetObject("archerspirit_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap aura_of_collect_Tex { get { object obj = ResourceManager.GetObject("aura_of_collect_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap aura_of_condition_Tex { get { object obj = ResourceManager.GetObject("aura_of_condition_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap aura_of_damage_Tex { get { object obj = ResourceManager.GetObject("aura_of_damage_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap aura_of_regeneration_hp_Tex { get { object obj = ResourceManager.GetObject("aura_of_regeneration_hp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap aura_of_regeneration_mp_Tex { get { object obj = ResourceManager.GetObject("aura_of_regeneration_mp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap aura_of_wind_Tex { get { object obj = ResourceManager.GetObject("aura_of_wind_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap balancedown_Tex { get { object obj = ResourceManager.GetObject("balancedown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap balanceup_Tex { get { object obj = ResourceManager.GetObject("balanceup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleCommand01_Tex { get { object obj = ResourceManager.GetObject("BattleCommand01_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleCommand02_Tex { get { object obj = ResourceManager.GetObject("BattleCommand02_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleCommand03_Tex { get { object obj = ResourceManager.GetObject("BattleCommand03_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleCommand04_Tex { get { object obj = ResourceManager.GetObject("BattleCommand04_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleFieldBuff01_Tex { get { object obj = ResourceManager.GetObject("BattleFieldBuff01_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleFieldBuff02_Tex { get { object obj = ResourceManager.GetObject("BattleFieldBuff02_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleFieldBuff03_Tex { get { object obj = ResourceManager.GetObject("BattleFieldBuff03_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BattleFieldBuff04_Tex { get { object obj = ResourceManager.GetObject("BattleFieldBuff04_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap bless_of_velic_Tex { get { object obj = ResourceManager.GetObject("bless_of_velic_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BloodMadness_Tex { get { object obj = ResourceManager.GetObject("BloodMadness_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap BloodUanty_Tex { get { object obj = ResourceManager.GetObject("BloodUanty_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap boundmovedown_Tex { get { object obj = ResourceManager.GetObject("boundmovedown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap boundmoveup_Tex { get { object obj = ResourceManager.GetObject("boundmoveup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap buff_of_kaia_Tex { get { object obj = ResourceManager.GetObject("buff_of_kaia_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap CallDimension_Tex { get { object obj = ResourceManager.GetObject("CallDimension_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ChainSnare_Tex { get { object obj = ResourceManager.GetObject("ChainSnare_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap CliantEffect_Tex { get { object obj = ResourceManager.GetObject("CliantEffect_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Collect_SpeedUp_Tex { get { object obj = ResourceManager.GetObject("Collect_SpeedUp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Concentrating_Tex { get { object obj = ResourceManager.GetObject("Concentrating_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap confusedown_Tex { get { object obj = ResourceManager.GetObject("confusedown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap confusestatusNPC_Tex { get { object obj = ResourceManager.GetObject("confusestatusNPC_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap confusestatusPC_Tex { get { object obj = ResourceManager.GetObject("confusestatusPC_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap confuseup_Tex { get { object obj = ResourceManager.GetObject("confuseup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap cruel_slayer_1_Tex { get { object obj = ResourceManager.GetObject("cruel_slayer_1_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap cruel_slayer_2_Tex { get { object obj = ResourceManager.GetObject("cruel_slayer_2_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap cruel_slayer_3_Tex { get { object obj = ResourceManager.GetObject("cruel_slayer_3_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap cruel_slayer_4_Tex { get { object obj = ResourceManager.GetObject("cruel_slayer_4_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Curse_Tex { get { object obj = ResourceManager.GetObject("Curse_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap damagedown_Tex { get { object obj = ResourceManager.GetObject("damagedown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap damageup_Tex { get { object obj = ResourceManager.GetObject("damageup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkEffect_Tex { get { object obj = ResourceManager.GetObject("DarkEffect_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkMind_Tex { get { object obj = ResourceManager.GetObject("DarkMind_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftAreaDance_Tex { get { object obj = ResourceManager.GetObject("DarkRiftAreaDance_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftAreaFunny_Tex { get { object obj = ResourceManager.GetObject("DarkRiftAreaFunny_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftAreaRage_Tex { get { object obj = ResourceManager.GetObject("DarkRiftAreaRage_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftAreaSword_Tex { get { object obj = ResourceManager.GetObject("DarkRiftAreaSword_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftAreaTimeShift_Tex { get { object obj = ResourceManager.GetObject("DarkRiftAreaTimeShift_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftAreaWind_Tex { get { object obj = ResourceManager.GetObject("DarkRiftAreaWind_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftDestroy_Tex { get { object obj = ResourceManager.GetObject("DarkRiftDestroy_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftGravity_Tex { get { object obj = ResourceManager.GetObject("DarkRiftGravity_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftRage_Tex { get { object obj = ResourceManager.GetObject("DarkRiftRage_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftRecovery_Tex { get { object obj = ResourceManager.GetObject("DarkRiftRecovery_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftReward_Tex { get { object obj = ResourceManager.GetObject("DarkRiftReward_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftWhisper_Tex { get { object obj = ResourceManager.GetObject("DarkRiftWhisper_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkRiftWill_Tex { get { object obj = ResourceManager.GetObject("DarkRiftWill_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DarkWater_Tex { get { object obj = ResourceManager.GetObject("DarkWater_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap delaydamage_Tex { get { object obj = ResourceManager.GetObject("delaydamage_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap delayheal_Tex { get { object obj = ResourceManager.GetObject("delayheal_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap delaympgain_Tex { get { object obj = ResourceManager.GetObject("delaympgain_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap delaymploss_Tex { get { object obj = ResourceManager.GetObject("delaymploss_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DescentOFDarkness_Tex { get { object obj = ResourceManager.GetObject("DescentOFDarkness_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DiffusionAbnormality_Tex { get { object obj = ResourceManager.GetObject("DiffusionAbnormality_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DiffusionAggro_Tex { get { object obj = ResourceManager.GetObject("DiffusionAggro_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DimensionGuard_Tex { get { object obj = ResourceManager.GetObject("DimensionGuard_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap diseasedown_Tex { get { object obj = ResourceManager.GetObject("diseasedown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap diseaseup_Tex { get { object obj = ResourceManager.GetObject("diseaseup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap DragonBerserk_Tex { get { object obj = ResourceManager.GetObject("DragonBerserk_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap EarthBlessing_Tex { get { object obj = ResourceManager.GetObject("EarthBlessing_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap EarthPower_Tex { get { object obj = ResourceManager.GetObject("EarthPower_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ElectricCharge1_Tex { get { object obj = ResourceManager.GetObject("ElectricCharge1_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ElectricCharge2_Tex { get { object obj = ResourceManager.GetObject("ElectricCharge2_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ElectricCharge3_Tex { get { object obj = ResourceManager.GetObject("ElectricCharge3_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ElectricEffect1_Tex { get { object obj = ResourceManager.GetObject("ElectricEffect1_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ElectricEffect2_Tex { get { object obj = ResourceManager.GetObject("ElectricEffect2_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ElectricEffect3_Tex { get { object obj = ResourceManager.GetObject("ElectricEffect3_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap exhaustion_Tex { get { object obj = ResourceManager.GetObject("exhaustion_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap EXP_Buff_SerenParty_Tex { get { object obj = ResourceManager.GetObject("EXP_Buff_SerenParty_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap EXP_Buff_SerenSolo_Tex { get { object obj = ResourceManager.GetObject("EXP_Buff_SerenSolo_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_Accumtime_Tex { get { object obj = ResourceManager.GetObject("F2P_Accumtime_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_DungeonCooltime_Tex { get { object obj = ResourceManager.GetObject("F2P_DungeonCooltime_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_DungeonNovice_Tex { get { object obj = ResourceManager.GetObject("F2P_DungeonNovice_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_OldCustomer_Tex { get { object obj = ResourceManager.GetObject("F2P_OldCustomer_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_PCCustomer_Tex { get { object obj = ResourceManager.GetObject("F2P_PCCustomer_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_RewardBox_Tex { get { object obj = ResourceManager.GetObject("F2P_RewardBox_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_TradeBuyComi_Down_Tex { get { object obj = ResourceManager.GetObject("F2P_TradeBuyComi_Down_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_TradeSellComi_Down_Tex { get { object obj = ResourceManager.GetObject("F2P_TradeSellComi_Down_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_TradeSellQty_Tex { get { object obj = ResourceManager.GetObject("F2P_TradeSellQty_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap F2P_VIPCustomer_Tex { get { object obj = ResourceManager.GetObject("F2P_VIPCustomer_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap FearStatus_Tex { get { object obj = ResourceManager.GetObject("FearStatus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap FireDamage_Tex { get { object obj = ResourceManager.GetObject("FireDamage_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap FullCharge_Tex { get { object obj = ResourceManager.GetObject("FullCharge_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap FullelectricEffect_Tex { get { object obj = ResourceManager.GetObject("FullelectricEffect_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap GodSpell_Tex { get { object obj = ResourceManager.GetObject("GodSpell_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Heat_Tex { get { object obj = ResourceManager.GetObject("Heat_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Holybless_Tex { get { object obj = ResourceManager.GetObject("Holybless_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap IceDamage_Tex { get { object obj = ResourceManager.GetObject("IceDamage_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_DeaDoo_ab_Tex { get { object obj = ResourceManager.GetObject("Icon_DeaDoo_ab_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_DeaDoo_ab_Tex_Minus { get { object obj = ResourceManager.GetObject("Icon_DeaDoo_ab_Tex_Minus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_JangGoe_ab_Tex { get { object obj = ResourceManager.GetObject("Icon_JangGoe_ab_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_JangGoe_ab_Tex_Minus { get { object obj = ResourceManager.GetObject("Icon_JangGoe_ab_Tex_Minus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_JangShin_ab_Tex { get { object obj = ResourceManager.GetObject("Icon_JangShin_ab_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_JangShin_ab_Tex_Minus { get { object obj = ResourceManager.GetObject("Icon_JangShin_ab_Tex_Minus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_PoongU_ab_Tex { get { object obj = ResourceManager.GetObject("Icon_PoongU_ab_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_PoongU_ab_Tex_Minus { get { object obj = ResourceManager.GetObject("Icon_PoongU_ab_Tex_Minus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_YookDuk00_ab_Tex { get { object obj = ResourceManager.GetObject("Icon_YookDuk00_ab_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Icon_YookDuk00_ab_Tex_Minus { get { object obj = ResourceManager.GetObject("Icon_YookDuk00_ab_Tex_Minus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ImmuneDebuff_Tex { get { object obj = ResourceManager.GetObject("ImmuneDebuff_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap InjuredBtDarkness_Tex { get { object obj = ResourceManager.GetObject("InjuredBtDarkness_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap InstantLeap_Continuous_Tex { get { object obj = ResourceManager.GetObject("InstantLeap_Continuous_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Lavar_Tex { get { object obj = ResourceManager.GetObject("Lavar_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Laver_Tex { get { object obj = ResourceManager.GetObject("Laver_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap laxyarcher_Tex { get { object obj = ResourceManager.GetObject("laxyarcher_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap LightEffect_Tex { get { object obj = ResourceManager.GetObject("LightEffect_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap LightWeight_Tex { get { object obj = ResourceManager.GetObject("LightWeight_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap majorexhaustion_Tex { get { object obj = ResourceManager.GetObject("majorexhaustion_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Merit_Tex { get { object obj = ResourceManager.GetObject("Merit_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap MindDomination_Tex { get { object obj = ResourceManager.GetObject("MindDomination_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minorexhaustion_Tex { get { object obj = ResourceManager.GetObject("minorexhaustion_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap MinusAbnormality_Tex { get { object obj = ResourceManager.GetObject("MinusAbnormality_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusattack_Tex { get { object obj = ResourceManager.GetObject("minusattack_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusconfuseresist_Tex { get { object obj = ResourceManager.GetObject("minusconfuseresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minuscritical_Tex { get { object obj = ResourceManager.GetObject("minuscritical_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minuscriticalresist_Tex { get { object obj = ResourceManager.GetObject("minuscriticalresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusdefence_Tex { get { object obj = ResourceManager.GetObject("minusdefence_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusdiseaseresist_Tex { get { object obj = ResourceManager.GetObject("minusdiseaseresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusfocus_Tex { get { object obj = ResourceManager.GetObject("minusfocus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minushp_Tex { get { object obj = ResourceManager.GetObject("minushp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusmove_Tex { get { object obj = ResourceManager.GetObject("minusmove_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusmp_Tex { get { object obj = ResourceManager.GetObject("minusmp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minuspoisonresist_Tex { get { object obj = ResourceManager.GetObject("minuspoisonresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minusspeedresist_Tex { get { object obj = ResourceManager.GetObject("minusspeedresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minuswill_Tex { get { object obj = ResourceManager.GetObject("minuswill_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap mprecoverdown_Tex { get { object obj = ResourceManager.GetObject("mprecoverdown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap mprecoverup_Tex { get { object obj = ResourceManager.GetObject("mprecoverup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap mpsuckdown_Tex { get { object obj = ResourceManager.GetObject("mpsuckdown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap mpsuckup_Tex { get { object obj = ResourceManager.GetObject("mpsuckup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap OmniousSpell_Tex { get { object obj = ResourceManager.GetObject("OmniousSpell_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap OrangeAura_Tex { get { object obj = ResourceManager.GetObject("OrangeAura_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap paralyzestatus_Tex { get { object obj = ResourceManager.GetObject("paralyzestatus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Passive_DragonBlood { get { object obj = ResourceManager.GetObject("Passive_DragonBlood", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Passive_DragonBlood2 { get { object obj = ResourceManager.GetObject("Passive_DragonBlood2", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Petrifaction_Tex { get { object obj = ResourceManager.GetObject("Petrifaction_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap petrifystatus_Tex { get { object obj = ResourceManager.GetObject("petrifystatus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap PhotoneShield_Tex { get { object obj = ResourceManager.GetObject("PhotoneShield_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap PlusAbnormality_Tex { get { object obj = ResourceManager.GetObject("PlusAbnormality_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusattack_Tex { get { object obj = ResourceManager.GetObject("plusattack_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusciriticalresist_Tex { get { object obj = ResourceManager.GetObject("plusciriticalresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusdiseaseresist_Tex { get { object obj = ResourceManager.GetObject("plusdiseaseresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap pluseconfuseresist_Tex { get { object obj = ResourceManager.GetObject("pluseconfuseresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusecritical_Tex { get { object obj = ResourceManager.GetObject("plusecritical_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusedefence_Tex { get { object obj = ResourceManager.GetObject("plusedefence_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusepoisonresist_Tex { get { object obj = ResourceManager.GetObject("plusepoisonresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusfocus_Tex { get { object obj = ResourceManager.GetObject("plusfocus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plushp_Tex { get { object obj = ResourceManager.GetObject("plushp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusmove_Tex { get { object obj = ResourceManager.GetObject("plusmove_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusmp_Tex { get { object obj = ResourceManager.GetObject("plusmp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap pluspoisonresist_Tex { get { object obj = ResourceManager.GetObject("pluspoisonresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plusspeedresist_Tex { get { object obj = ResourceManager.GetObject("plusspeedresist_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap pluswill_Tex { get { object obj = ResourceManager.GetObject("pluswill_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap poisondown_Tex { get { object obj = ResourceManager.GetObject("poisondown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap poisonstatus_Tex { get { object obj = ResourceManager.GetObject("poisonstatus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap poisonup_Tex { get { object obj = ResourceManager.GetObject("poisonup_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap PositionSwap_Tex { get { object obj = ResourceManager.GetObject("PositionSwap_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap PurifyDagon_Tex { get { object obj = ResourceManager.GetObject("PurifyDagon_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap RedAura_Tex { get { object obj = ResourceManager.GetObject("RedAura_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ReviveNow_Status_Tex { get { object obj = ResourceManager.GetObject("ReviveNow_Status_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap RisinDagon_Tex { get { object obj = ResourceManager.GetObject("RisinDagon_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Rock_Tex { get { object obj = ResourceManager.GetObject("Rock_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Scald_Tex { get { object obj = ResourceManager.GetObject("Scald_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap sealskill_Tex { get { object obj = ResourceManager.GetObject("sealskill_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ShotArrow_Tex { get { object obj = ResourceManager.GetObject("ShotArrow_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ShotArrowBlindly_Tex { get { object obj = ResourceManager.GetObject("ShotArrowBlindly_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ShotCannon_Tex { get { object obj = ResourceManager.GetObject("ShotCannon_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap ShotPhotonCannon_Tex { get { object obj = ResourceManager.GetObject("ShotPhotonCannon_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap sleepstatus_Tex { get { object obj = ResourceManager.GetObject("sleepstatus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap smile_firecracker_abnormality_Tex { get { object obj = ResourceManager.GetObject("smile_firecracker_abnormality_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Snowman_Scroll_Status_Tex { get { object obj = ResourceManager.GetObject("Snowman_Scroll_Status_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap speedystatus_Tex { get { object obj = ResourceManager.GetObject("speedystatus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap StackAbnormality_Tex { get { object obj = ResourceManager.GetObject("StackAbnormality_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap StaminaDown_Tex { get { object obj = ResourceManager.GetObject("StaminaDown_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap StaminaUp_Tex { get { object obj = ResourceManager.GetObject("StaminaUp_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap StrikeSkull_Tex { get { object obj = ResourceManager.GetObject("StrikeSkull_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap StrongHeat_Tex { get { object obj = ResourceManager.GetObject("StrongHeat_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Struggle_Tex { get { object obj = ResourceManager.GetObject("Struggle_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap SummonVergos_Tex { get { object obj = ResourceManager.GetObject("SummonVergos_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Valrhona_Devil_Tex { get { object obj = ResourceManager.GetObject("Valrhona_Devil_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Valrhona_Goddess_Tex { get { object obj = ResourceManager.GetObject("Valrhona_Goddess_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Valrhona_Sun_Tex { get { object obj = ResourceManager.GetObject("Valrhona_Sun_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap VergosBlood_Tex { get { object obj = ResourceManager.GetObject("VergosBlood_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap VergosCurse_Tex { get { object obj = ResourceManager.GetObject("VergosCurse_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap VergosDust_Tex { get { object obj = ResourceManager.GetObject("VergosDust_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap VergosFear_Tex { get { object obj = ResourceManager.GetObject("VergosFear_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap VergosFlame_Tex { get { object obj = ResourceManager.GetObject("VergosFlame_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap VergosFocus_Tex { get { object obj = ResourceManager.GetObject("VergosFocus_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap vitality_Tex { get { object obj = ResourceManager.GetObject("vitality_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Whirl_Tex { get { object obj = ResourceManager.GetObject("Whirl_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap WhiteAura_Tex { get { object obj = ResourceManager.GetObject("WhiteAura_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap WindTyrant_Tex { get { object obj = ResourceManager.GetObject("WindTyrant_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Cerca una risorsa localizzata di tipo System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap YellowAura_Tex { get { object obj = ResourceManager.GetObject("YellowAura_Tex", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } } }
38.868217
173
0.55011
[ "MIT" ]
ASPDP/Tera-custom-cooldowns
TCC.Core/Properties/Icon_Status.Designer.cs
80,230
C#
#region License Information /* * This file is part of SimSharp which is licensed under the MIT license. * See the LICENSE file in the project root for more information. */ #endregion using System; using System.Collections.Generic; using System.Linq; using static SimSharp.Distributions; namespace SimSharp.Benchmarks { public class MachineShopBenchmark { public static int Run(MachineShopOptions opts) { try { new MachineShopBenchmark().Simulate(); return 0; } catch { return 1; } } /* * Machine shop example * * Covers: * - Interrupts * - Resources: PreemptiveResource * * Scenario: * A workshop has *n* identical machines. A stream of jobs (enough to * keep the machines busy) arrives. Each machine breaks down * periodically. Repairs are carried out by one repairman. The repairman * has other, less important tasks to perform, too. Broken machines * preempt theses tasks. The repairman continues them when he is done * with the machine repair. The workshop works continuously. */ private const int RandomSeed = 42; private static readonly NormalTime ProcessingTime = N(TimeSpan.FromMinutes(10.0), TimeSpan.FromMinutes(2.0)); // Processing time distribution private static readonly ExponentialTime Failure = EXP(TimeSpan.FromMinutes(300.0)); // Failure distribution private const double RepairTime = 30.0; // Time it takes to repair a machine in minutes private const double JobDuration = 30.0; // Duration of other jobs in minutes private const int NumMachines = 10; // Number of machines in the machine shop private static readonly TimeSpan SimTime = TimeSpan.FromDays(3650); // Simulation time in minutes private class Machine : ActiveObject<Simulation> { /* * A machine produces parts and my get broken every now and then. * If it breaks, it requests a *repairman* and continues the production * after the it is repaired. * * A machine has a *name* and a numberof *parts_made* thus far. */ public string Name { get; private set; } public int PartsMade { get; private set; } public bool Broken { get; private set; } public Process Process { get; private set; } public Machine(Simulation env, string name, PreemptiveResource repairman) : base(env) { Name = name; PartsMade = 0; Broken = false; // Start "working" and "break_machine" processes for this machine. Process = env.Process(Working(repairman)); env.Process(BreakMachine()); } private IEnumerable<Event> Working(PreemptiveResource repairman) { /* * Produce parts as long as the simulation runs. * * While making a part, the machine may break multiple times. * Request a repairman when this happens. */ while (true) { // Start making a new part var doneIn = Environment.Rand(ProcessingTime); while (doneIn > TimeSpan.Zero) { // Working on the part var start = Environment.Now; yield return Environment.Timeout(doneIn); if (Environment.ActiveProcess.HandleFault()) { Broken = true; doneIn -= Environment.Now - start; // How much time left? // Request a repairman. This will preempt its "other_job". using (var req = repairman.Request(priority: 1, preempt: true)) { yield return req; yield return Environment.Timeout(TimeSpan.FromMinutes(RepairTime)); } Broken = false; } else { doneIn = TimeSpan.Zero; // Set to 0 to exit while loop. } } // Part is done. PartsMade++; } } private IEnumerable<Event> BreakMachine() { // Break the machine every now and then. while (true) { yield return Environment.Timeout(Failure); if (!Broken) { // Only break the machine if it is currently working. Process.Interrupt(); } } } } private IEnumerable<Event> OtherJobs(Simulation env, PreemptiveResource repairman) { // The repairman's other (unimportant) job. while (true) { // Start a new job var doneIn = TimeSpan.FromMinutes(JobDuration); while (doneIn > TimeSpan.Zero) { // Retry the job until it is done. // It's priority is lower than that of machine repairs. using (var req = repairman.Request(priority: 2)) { yield return req; var start = env.Now; yield return env.Timeout(doneIn); if (env.ActiveProcess.HandleFault()) doneIn -= env.Now - start; else doneIn = TimeSpan.Zero; } } } } public void Simulate(int rseed = RandomSeed) { // Setup and start the simulation // Create an environment and start the setup process var start = new DateTime(2014, 2, 1); var env = new Simulation(start, rseed); env.Log("== Machine shop =="); var repairman = new PreemptiveResource(env, 1); var machines = Enumerable.Range(0, NumMachines).Select(x => new Machine(env, "Machine " + x, repairman)).ToArray(); env.Process(OtherJobs(env, repairman)); var perf = System.Diagnostics.Stopwatch.StartNew(); // Execute! env.Run(SimTime); perf.Stop(); // Analyis/results env.Log("Machine shop results after {0} days.", (env.Now - start).TotalDays); foreach (var machine in machines) env.Log("{0} made {1} parts.", machine.Name, machine.PartsMade); env.Log(string.Empty); env.Log("Processed {0:#,###} events in {1:#.##} seconds ({2:#,###.##} events/s).", env.ProcessedEvents, perf.Elapsed.TotalSeconds, (env.ProcessedEvents / perf.Elapsed.TotalSeconds)); } } }
37.8375
188
0.612818
[ "MIT" ]
Irubataru/SimSharp
src/Benchmark/MachineShopBenchmark.cs
6,056
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.ProviderHub.V20201120.Outputs { [OutputType] public sealed class ProviderRegistrationPropertiesResponseSubscriptionLifecycleNotificationSpecifications { public readonly string? SoftDeleteTTL; public readonly ImmutableArray<Outputs.SubscriptionStateOverrideActionResponse> SubscriptionStateOverrideActions; [OutputConstructor] private ProviderRegistrationPropertiesResponseSubscriptionLifecycleNotificationSpecifications( string? softDeleteTTL, ImmutableArray<Outputs.SubscriptionStateOverrideActionResponse> subscriptionStateOverrideActions) { SoftDeleteTTL = softDeleteTTL; SubscriptionStateOverrideActions = subscriptionStateOverrideActions; } } }
36.433333
121
0.767612
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/ProviderHub/V20201120/Outputs/ProviderRegistrationPropertiesResponseSubscriptionLifecycleNotificationSpecifications.cs
1,093
C#
using System; using System.Text; using System.IO; /// <summary> /// Write all primes in a range to file /// </summary> public class PrimesInRangeToFile { public static void Main() { Console.WriteLine("Enter the two numbers between which to find all prime numbers on separate lines"); Console.WriteLine("(Second number must be bigger than the first, minimum valie of both number - \"2\"!)"); int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); Console.WriteLine("Enter the name of the output file:"); string outputFile = Console.ReadLine(); if (a == 1) { } string output = Primes(a, b); File.AppendAllText(outputFile, output); } public static string Primes(int a, int b) { if (a < 2) { a = 2; } if (b < 2) { b = 2; } StringBuilder output = new StringBuilder(); for (int i = a; i <= b; i++) { bool isPrime = true; for (int j = 2; j <= Math.Sqrt(i); j++) { if (i % j == 0) { isPrime = false; break; } } if (isPrime) { output.Append(i).Append(", "); } } output.Remove(output.Length - 2, 2); return (output.ToString()); } }
20.985714
114
0.473111
[ "MIT" ]
BoykoNeov/SoftUni---Programming-fundamentals-May-2017
FilesAndExceptions/PrimesInRangeToFile/PrimesInRangeToFile.cs
1,471
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Texxtoor.ViewModels.Editor { public class Command { public Command(string name, string text, string tooltip) { Name = name; ButtonText = text; ButtonTooltip = tooltip; } public string Name { get; set; } public string ButtonText { get; set; } public string ButtonTooltip { get; set; } public string Executable { get; set; } public string Icon { get; set; } } public class ToolSetModel { private List<Command> inlineElements = new List<Command>(); private List<Command> currentInlineElements = new List<Command>(); private List<Command> listElements = new List<Command>(); private List<Command> currentListElements = new List<Command>(); private List<Command> snippetElements = new List<Command>(); private List<Command> currentSnippetElements = new List<Command>(); public bool UserIsTeamLead { get; set; } public ToolSetModel() { inlineElements.AddRange(new Command[] { // command text tooltip new Command("a", "Hyperlink", "Several server supported lists"), new Command("address", "Address", "Real World Address"), new Command("bold", "Bold", "non-semantic element"), new Command("br", "Break", "Forced line break"), new Command("code", "Code", "Inline code"), new Command("command", "Command", "Inline menu item"), new Command("details", "Details", "Explains a word inline"), new Command("em", "Emphasize", "Emphasis (semantic)"), new Command("italic", "Idiom", "Semantic, can be auto-linked to Wikipedia and is server supported"), new Command("kbd", "Keyboard", "Keyboard strokes"), new Command("li", "List", "Element in a list"), new Command("meter", "Meter", "Value on a know scale"), new Command("ol", "List", "Ordered list"), new Command("pre", "Pre-formatted text", ""), new Command("q", "Quote", "direct speech in text (quote)"), new Command("samp", "Sample", "sample that the surrounding text refers to"), new Command("strong", "Strong", "semantically strong emphasis "), new Command("subscript", "Sub", "sub text"), new Command("superscript", "Super", "super text"), new Command("time", "Date", "date / time"), new Command("ul", "List", "Unsorted list"), }); listElements.AddRange(new Command[] { // command text tooltip new Command("abbr", "Abbreviation", "Server supported list"), new Command("cite", "Cite", "Server supported list"), new Command("var", "Variable", "Variable name from server supported list") }); snippetElements.AddRange(new Command[] { new Command("section", "Section on same level", ""), new Command("subsection", "Sub Section", ""), new Command("aside", "Side Step", "Side Step related to the given fragment"), new Command("p", "Paragraph", "") }); } public List<Command> GetAllInlineElements() { return inlineElements; } public List<Command> GetAllSnippetElements() { return snippetElements; } public List<Command> GetAllListElements() { return listElements; } [NotMapped] public List<Command> CurrentInlineElements { get { return currentInlineElements; } } [NotMapped] public List<Command> CurrentSnippetElements { get { return currentSnippetElements; } } [NotMapped] public List<Command> CurrentListElements { get { return currentListElements; } } } }
37.343434
108
0.637003
[ "Apache-2.0" ]
joergkrause/texxtoor
Texxtoor/Solution/Texxtoor.ViewModels/Shared/Editor/ToolSetModel.cs
3,699
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("CefLiteFX")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CefLiteFX")] [assembly: AssemblyCopyright("Copyright © 2020")] [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("e426b24d-18f1-435d-8cd9-199a46f081f1")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
37.459459
84
0.746753
[ "MIT" ]
BlazorPlus/CefLite
CefLiteFX/Properties/AssemblyInfo.cs
1,389
C#
using GenericServices.Configuration; using Xunit; using GenericServices.Internal.Decoders; using GenericServices.Internal.MappingCode; using Tests.Dtos; using Tests.EfClasses; using Tests.EfCode; using TestSupport.EfHelpers; using Xunit.Extensions.AssertExtensions; using System.Linq; namespace Tests.UnitTests.GenericServicesInternal { public class TestKeyHandlers { [Fact] public void TestNormalKeyExtract() { //SETUP var options = SqliteInMemory.CreateOptions<TestDbContext>(); using (var context = new TestDbContext(options)) { var decodedEntity = new DecodedEntityClass(typeof(NormalEntity), context); var decodeDto = new DecodedDto(typeof(NormalEntityDto), decodedEntity, new GenericServicesConfig(), null); //ATTEMPT var dto = new NormalEntityDto {Id = 123}; var keys = context.GetKeysFromDtoInCorrectOrder(dto, decodeDto); //VERIFY ((int)keys.Values.First()).ShouldEqual(123); } } [Fact] public void TestNormalKeyCopyBack() { //SETUP var options = SqliteInMemory.CreateOptions<TestDbContext>(); using (var context = new TestDbContext(options)) { var decodedEntity = new DecodedEntityClass(typeof(NormalEntity), context); //ATTEMPT var entity = new NormalEntity{ Id = 123 }; var dto = new NormalEntityDto(); entity.CopyBackKeysFromEntityToDtoIfPresent(dto, decodedEntity); //VERIFY dto.Id.ShouldEqual(123); } } [Fact] public void TestPrivateSetterKeyNotCopiedBack() { //SETUP var options = SqliteInMemory.CreateOptions<TestDbContext>(); using (var context = new TestDbContext(options)) { var decodedEntity = new DecodedEntityClass(typeof(NormalEntity), context); //ATTEMPT var entity = new NormalEntity { Id = 123 }; var dto = new NormalEntityKeyPrivateSetDto(); entity.CopyBackKeysFromEntityToDtoIfPresent(dto, decodedEntity); //VERIFY dto.Id.ShouldEqual(0); } } [Fact] public void TestAbstractSetterKeyNotCopiedBack() { //SETUP var options = SqliteInMemory.CreateOptions<TestDbContext>(); using (var context = new TestDbContext(options)) { var decodedEntity = new DecodedEntityClass(typeof(NormalEntity), context); //ATTEMPT var entity = new NormalEntity { Id = 123 }; var dto = new NormalEntityKeyAbstractDto(); entity.CopyBackKeysFromEntityToDtoIfPresent(dto, decodedEntity); //VERIFY dto.Id.ShouldEqual(0); } } [Fact] public void TestCompositeKeyCopyBack() { //SETUP var options = SqliteInMemory.CreateOptions<TestDbContext>(); using (var context = new TestDbContext(options)) { var decodedEntity = new DecodedEntityClass(typeof(DddCompositeIntString), context); //ATTEMPT var entity = new DddCompositeIntString("Hello",999); var dto = new DddCompositeIntStringCreateDto(); entity.CopyBackKeysFromEntityToDtoIfPresent(dto, decodedEntity); //VERIFY dto.MyString.ShouldEqual("Hello"); dto.MyInt.ShouldEqual(999); } } } }
32.931034
122
0.566754
[ "MIT" ]
ntwit/EfCore.GenericServices
Tests/UnitTests/GenericServicesInternal/TestKeyHandlers.cs
3,822
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ #nullable enable #pragma warning disable CS1591 #pragma warning disable CS0108 #pragma warning disable 618 using System; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Linq; using System.Runtime.Serialization; using System.Text.Json.Serialization; using System.Threading; using System.Threading.Tasks; using JetBrains.Space.Common; using JetBrains.Space.Common.Json.Serialization; using JetBrains.Space.Common.Json.Serialization.Polymorphism; using JetBrains.Space.Common.Types; namespace JetBrains.Space.Client; public partial class CustomFieldClient : ISpaceClient { private readonly Connection _connection; public CustomFieldClient(Connection connection) { _connection = connection; } public ValueClient Values => new ValueClient(_connection); public partial class ValueClient : ISpaceClient { private readonly Connection _connection; public ValueClient(Connection connection) { _connection = connection; } public async Task SetValuesForEntityAsync(CFEntityIdentifier entity, List<CustomFieldValueUpdate> customFieldValues, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("POST", $"api/http/custom-fields-v2/values/{entity}{queryParameters.ToQueryString()}", new CustomFieldsV2ValuesForEntityPostRequest { CustomFieldValues = customFieldValues, }, cancellationToken); } public async Task SetSingleValueAsync(CFEntityIdentifier entity, CFIdentifier customField, CFInputValue newValue, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("POST", $"api/http/custom-fields-v2/values/{entity}/{customField}{queryParameters.ToQueryString()}", new CustomFieldsV2ValuesForEntityForCustomFieldPostRequest { NewValue = newValue, }, cancellationToken); } public async Task<List<CustomFieldValueData>> GetAllValuesForEntityAsync(CFEntityIdentifier entity, Func<Partial<CustomFieldValueData>, Partial<CustomFieldValueData>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("$fields", (partial != null ? partial(new Partial<CustomFieldValueData>()) : Partial<CustomFieldValueData>.Default()).ToString()); return await _connection.RequestResourceAsync<List<CustomFieldValueData>>("GET", $"api/http/custom-fields-v2/values/{entity}{queryParameters.ToQueryString()}", cancellationToken); } public async Task<CustomFieldValueData> GetSingleValueAsync(CFEntityIdentifier entity, CFIdentifier customField, Func<Partial<CustomFieldValueData>, Partial<CustomFieldValueData>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("$fields", (partial != null ? partial(new Partial<CustomFieldValueData>()) : Partial<CustomFieldValueData>.Default()).ToString()); return await _connection.RequestResourceAsync<CustomFieldValueData>("GET", $"api/http/custom-fields-v2/values/{entity}/{customField}{queryParameters.ToQueryString()}", cancellationToken); } } public FieldClient Fields => new FieldClient(_connection); public partial class FieldClient : ISpaceClient { private readonly Connection _connection; public FieldClient(Connection connection) { _connection = connection; } public async Task<CustomFieldData> CreateCustomFieldAsync(CFEntityTypeIdentifier entityType, string name, CustomFieldType type, bool multivalued = false, bool required = false, CFCreateParameters? parameters = null, CFInputValue? defaultValue = null, CFConstraint? constraint = null, string? description = null, int? order = null, Func<Partial<CustomFieldData>, Partial<CustomFieldData>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("$fields", (partial != null ? partial(new Partial<CustomFieldData>()) : Partial<CustomFieldData>.Default()).ToString()); return await _connection.RequestResourceAsync<CustomFieldsV2ForEntityTypeFieldsPostRequest, CustomFieldData>("POST", $"api/http/custom-fields-v2/{entityType}/fields{queryParameters.ToQueryString()}", new CustomFieldsV2ForEntityTypeFieldsPostRequest { Name = name, Type = type, IsMultivalued = multivalued, Parameters = parameters, IsRequired = required, DefaultValue = defaultValue, Constraint = constraint, Description = description, Order = order, }, cancellationToken); } /// <summary> /// Re-order custom fields. Pass identifiers of the custom fields in the order you wish the custom fields to be. /// </summary> public async Task ReorderCustomFieldsAsync(CFEntityTypeIdentifier entityType, List<CFIdentifier> customFields, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("POST", $"api/http/custom-fields-v2/{entityType}/fields/reorder{queryParameters.ToQueryString()}", new CustomFieldsV2ForEntityTypeFieldsReorderPostRequest { CustomFields = customFields, }, cancellationToken); } public async Task ArchiveCustomFieldAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("POST", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/archive{queryParameters.ToQueryString()}", cancellationToken); } public async Task RestoreCustomFieldAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("POST", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/restore{queryParameters.ToQueryString()}", cancellationToken); } /// <summary> /// Get all configured custom fields for an entity type /// </summary> public async Task<List<CustomFieldData>> GetCustomFieldsAsync(CFEntityTypeIdentifier entityType, bool withArchived = false, Func<Partial<CustomFieldData>, Partial<CustomFieldData>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("withArchived", withArchived.ToString("l")); queryParameters.Append("$fields", (partial != null ? partial(new Partial<CustomFieldData>()) : Partial<CustomFieldData>.Default()).ToString()); return await _connection.RequestResourceAsync<List<CustomFieldData>>("GET", $"api/http/custom-fields-v2/{entityType}/fields{queryParameters.ToQueryString()}", cancellationToken); } /// <summary> /// Get configured custom field /// </summary> public async Task<CustomFieldData> GetSingleCustomFieldAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, Func<Partial<CustomFieldData>, Partial<CustomFieldData>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("$fields", (partial != null ? partial(new Partial<CustomFieldData>()) : Partial<CustomFieldData>.Default()).ToString()); return await _connection.RequestResourceAsync<CustomFieldData>("GET", $"api/http/custom-fields-v2/{entityType}/fields/{customField}{queryParameters.ToQueryString()}", cancellationToken); } public async Task UpdateCustomFieldAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, string? name = null, CFUpdateParameters? parameters = null, bool? required = null, CFInputValue? defaultValue = null, CFConstraint? constraint = null, string? description = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("PATCH", $"api/http/custom-fields-v2/{entityType}/fields/{customField}{queryParameters.ToQueryString()}", new CustomFieldsV2ForEntityTypeFieldsForCustomFieldPatchRequest { Name = name, Parameters = parameters, IsRequired = required, DefaultValue = defaultValue, Constraint = constraint, Description = description, }, cancellationToken); } public async Task DeleteCustomFieldAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("DELETE", $"api/http/custom-fields-v2/{entityType}/fields/{customField}{queryParameters.ToQueryString()}", cancellationToken); } public EnumValueClient EnumValues => new EnumValueClient(_connection); public partial class EnumValueClient : ISpaceClient { private readonly Connection _connection; public EnumValueClient(Connection connection) { _connection = connection; } public async Task<CFEnumValue> CreateEnumValueAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, string enumValueToAdd, Func<Partial<CFEnumValue>, Partial<CFEnumValue>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("$fields", (partial != null ? partial(new Partial<CFEnumValue>()) : Partial<CFEnumValue>.Default()).ToString()); return await _connection.RequestResourceAsync<CustomFieldsV2ForEntityTypeFieldsForCustomFieldEnumValuesPostRequest, CFEnumValue>("POST", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/enum-values{queryParameters.ToQueryString()}", new CustomFieldsV2ForEntityTypeFieldsForCustomFieldEnumValuesPostRequest { EnumValueToAdd = enumValueToAdd, }, cancellationToken); } public async Task BulkUpdateEnumValuesAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, List<CFEnumValueModification> enumValueModifications, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("POST", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/enum-values/bulk-update{queryParameters.ToQueryString()}", new CustomFieldsV2ForEntityTypeFieldsForCustomFieldEnumValuesBulkUpdatePostRequest { EnumValueModifications = enumValueModifications, }, cancellationToken); } public async Task<Batch<CFEnumValue>> GetEnumValuesAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, string? query = null, EnumValueOrdering? ordering = EnumValueOrdering.NAMEASC, string? addedByProfileId = null, string? skip = null, int? top = 100, Func<Partial<Batch<CFEnumValue>>, Partial<Batch<CFEnumValue>>>? partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); if (query != null) queryParameters.Append("query", query); queryParameters.Append("ordering", ordering.ToEnumString()); if (addedByProfileId != null) queryParameters.Append("addedByProfileId", addedByProfileId); if (skip != null) queryParameters.Append("$skip", skip); if (top != null) queryParameters.Append("$top", top?.ToString()); queryParameters.Append("$fields", (partial != null ? partial(new Partial<Batch<CFEnumValue>>()) : Partial<Batch<CFEnumValue>>.Default()).ToString()); return await _connection.RequestResourceAsync<Batch<CFEnumValue>>("GET", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/enum-values{queryParameters.ToQueryString()}", cancellationToken); } public IAsyncEnumerable<CFEnumValue> GetEnumValuesAsyncEnumerable(CFEntityTypeIdentifier entityType, CFIdentifier customField, string? query = null, EnumValueOrdering? ordering = EnumValueOrdering.NAMEASC, string? addedByProfileId = null, string? skip = null, int? top = 100, Func<Partial<CFEnumValue>, Partial<CFEnumValue>>? partial = null, CancellationToken cancellationToken = default) => BatchEnumerator.AllItems((batchSkip, batchCancellationToken) => GetEnumValuesAsync(entityType: entityType, customField: customField, query: query, ordering: ordering, addedByProfileId: addedByProfileId, top: top, cancellationToken: cancellationToken, skip: batchSkip, partial: builder => Partial<Batch<CFEnumValue>>.Default().WithNext().WithTotalCount().WithData(partial != null ? partial : _ => Partial<CFEnumValue>.Default())), skip, cancellationToken); public async Task UpdateEnumValueAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, CFEnumValueIdentifier enumValueToUpdate, string newName, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("PATCH", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/enum-values{queryParameters.ToQueryString()}", new CustomFieldsV2ForEntityTypeFieldsForCustomFieldEnumValuesPatchRequest { EnumValueToUpdate = enumValueToUpdate, NewName = newName, }, cancellationToken); } public async Task DeleteEnumValueAsync(CFEntityTypeIdentifier entityType, CFIdentifier customField, CFEnumValueIdentifier enumValueToRemove, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); await _connection.RequestResourceAsync("DELETE", $"api/http/custom-fields-v2/{entityType}/fields/{customField}/enum-values/{enumValueToRemove}{queryParameters.ToQueryString()}", cancellationToken); } } } }
56.882353
474
0.661537
[ "Apache-2.0" ]
JetBrains/space-dotnet-sdk
src/JetBrains.Space.Client/Generated/CustomFieldClient.generated.cs
16,439
C#
// Copyright 2020 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 ArcGIS.Core.Geometry; using ArcGIS.Desktop.Framework; using ArcGIS.Desktop.Framework.Dialogs; using ArcGIS.Desktop.Mapping; using MissionAgentReview.Exceptions; using System; using System.Collections.Generic; using System.Timers; namespace MissionAgentReview { /// <summary> /// Helper class to associate each camera viewpoint with a timestamp /// (for use in time-referenced viewshed coordination) /// </summary> public class TSVViewpoint { public TSVViewpoint(DateTime dt, Camera camera) { Timestamp = dt; Camera = camera; } public DateTime Timestamp { get;} public Camera Camera { get; } } public class TimeSequencingViewshed : Viewshed, IDisposable { public TimeSequencingViewshed(TimeSequencingViewshed tsv) : base(tsv) { _timer.Elapsed += OnIntervalElapsed; } // Constructor with dummy camera public TimeSequencingViewshed(SpatialReference sr, double verticalAngle, double horizontalAngle, double minimumDistance, double maximumDistance) : base(new Camera(0, 0, 0, 0, 0, sr), verticalAngle, horizontalAngle, minimumDistance, maximumDistance) { _timer.Elapsed += OnIntervalElapsed; } public TimeSequencingViewshed(IList<TSVViewpoint> locations, int idxLocation, double verticalAngle, double horizontalAngle, double minimumDistance, double maximumDistance) : base(locations[idxLocation].Camera, verticalAngle, horizontalAngle, minimumDistance, maximumDistance) { _viewpoints = locations; _viewpointIndex = idxLocation; _timer.Elapsed += OnIntervalElapsed; } public bool IsValidAnalysisLayer { get { bool valid = false; try { valid = base.MapView != null && !Double.IsNaN(MinimumDistance) && !Double.IsNaN(MaximumDistance) && !Double.IsNaN(HorizontalAngle) && !Double.IsNaN(VerticalAngle); } catch (InvalidOperationException) { // Base viewshed has been otherwise removed from the scene valid = false; } return valid; } } private Timer _timer = new Timer() { AutoReset = true, Interval = 2000 }; /// <summary> /// How long the animation will pause with a viewshed analysis at each agent trackpoint /// </summary> /// <remarks>Default value is 2000 ms</remarks> public double DwellTimeMs { get { return _timer.Interval; } set { _timer.Interval = value; } } /// <summary> /// Keeps a record of the location currently showing a viewshed; intended for use in stopping and starting the timer. /// </summary> private int _viewpointIndex = -1; private IList<TSVViewpoint> _viewpoints; /// <summary> /// The agent trackpoint camera viewpoints at which to sequentially generate viewpoints /// </summary> public IList<TSVViewpoint> Viewpoints { get { return _viewpoints; } set { _viewpoints = value; } } public int ViewpointIndex { get { return _viewpointIndex; } } /// <summary> /// Begins animating using the DwellTimeMs property as the interval /// </summary> public void Start() { _timer.Start(); FrameworkApplication.State.Activate("sequencingViewshedRunning_state"); } /// <summary> /// Stops animating /// </summary> public void Stop() { _timer.Stop(); FrameworkApplication.State.Deactivate("sequencingViewshedRunning_state"); } private void OnIntervalElapsed(Object source, System.Timers.ElapsedEventArgs e) { try { ShowNext(); } catch (TimeSequencingViewshedInvalidException) { Stop(); Dispose(); MessageBox.Show("The viewshed analysis was unexpectedly removed from the scene. Please invoke the analysis again.", "Invalid Viewshed Object"); } } public void ShowNext() { try { _viewpointIndex++; if (_viewpointIndex < 0 || _viewpointIndex > Viewpoints?.Count - 1) _viewpointIndex = 0; this.SetObserver(Viewpoints?[_viewpointIndex]?.Camera); } catch (InvalidOperationException e) { throw new TimeSequencingViewshedInvalidException("Error in viewshed ShowNext", e, _viewpoints, _viewpointIndex); } } public void ShowPrev() { try { _viewpointIndex--; if (_viewpointIndex > Viewpoints?.Count - 1 || _viewpointIndex < 0) _viewpointIndex = Viewpoints.Count - 1; this.SetObserver(Viewpoints?[_viewpointIndex]?.Camera); } catch (InvalidOperationException e) { Stop(); throw new TimeSequencingViewshedInvalidException("Error in viewshed ShowPrev", e, _viewpoints, _viewpointIndex); } } public void Dispose() { _timer.Close(); ((IDisposable)_timer).Dispose(); } #region Overrides #endregion } }
41.386207
183
0.611898
[ "Apache-2.0" ]
markdeaton/pro-mission-review-addin-graphics
MissionAgentReview/TimeSequencingViewshed.cs
6,003
C#
using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace xbfdump { class Program { // Last tested against \Windows Kits\10\bin\10.0.19041.0\XamlCompiler\x64\genxbf.dll [DllImport("genxbf.dll", PreserveSig = true)] public static extern int Dump(IStream inputStream, IStream outputStream, int unused, out int xbfReaderResult); static void Main(string[] args) { using (var input = new XbfInputStream(args[0])) { using(var output = new XbfOutputStream(args[1])) { Console.WriteLine($"hr={Dump(input, output, 0, out int xbfReaderResult)}, xrr={xbfReaderResult}"); } } } } }
30.384615
119
0.598734
[ "Unlicense" ]
riverar/xbfdump
Program.cs
792
C#
using System.Drawing; using System.Windows.Forms; namespace Cellbot_Map_Tool { partial class VibotMapTool { /// <summary> /// 필수 디자이너 변수입니다. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 사용 중인 모든 리소스를 정리합니다. /// </summary> /// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form 디자이너에서 생성한 코드 /// <summary> /// 디자이너 지원에 필요한 메서드입니다. /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("BackGround1", 1, 1); System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("BackGround2", 2, 2); System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("BackGround3", 3, 3); System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Stage0_4", 4, 4); System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("Terrain", 0, 0, new System.Windows.Forms.TreeNode[] { treeNode1, treeNode2, treeNode3, treeNode4}); System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("SpawnPoint", 6, 6); System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("Enemy", 0, 0, new System.Windows.Forms.TreeNode[] { treeNode6}); System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("Vibot", 4, 4); System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("RedBlood", 5, 5); System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("Goal_Zone", 10, 10); System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("WhiteCell", 7, 7); System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("Main", 0, 0, new System.Windows.Forms.TreeNode[] { treeNode8, treeNode9, treeNode10, treeNode11}); System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("Cole", 8, 8); System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("N1", 9, 9); System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("Object", 0, 0, new System.Windows.Forms.TreeNode[] { treeNode13, treeNode14}); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VibotMapTool)); this.파일ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.treeView1 = new System.Windows.Forms.TreeView(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components); this.setSpawnInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.redBloodToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.이동경로ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.enemyDesignToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenuStrip3 = new System.Windows.Forms.ContextMenuStrip(this.components); this.setBGobjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip2.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.contextMenuStrip3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // 파일ToolStripMenuItem // this.파일ToolStripMenuItem.Name = "파일ToolStripMenuItem"; this.파일ToolStripMenuItem.Size = new System.Drawing.Size(43, 20); this.파일ToolStripMenuItem.Text = "파일"; // // statusStrip1 // this.statusStrip1.Location = new System.Drawing.Point(0, 578); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(736, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(121, 17); this.toolStripStatusLabel1.Text = "toolStripStatusLabel1"; // // splitContainer1 // this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.splitContainer1.Location = new System.Drawing.Point(0, 24); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.treeView1); this.splitContainer1.Panel1.Controls.Add(this.pictureBox1); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.AutoScroll = true; this.splitContainer1.Panel2.Controls.Add(this.pictureBox2); this.splitContainer1.Panel2.Scroll += new System.Windows.Forms.ScrollEventHandler(this.splitContainer1_Panel2_Scroll); this.splitContainer1.Panel2.ClientSizeChanged += new System.EventHandler(this.splitContainer1_Panel2_ClientSizeChanged); this.splitContainer1.Size = new System.Drawing.Size(736, 554); this.splitContainer1.SplitterDistance = 137; this.splitContainer1.TabIndex = 2; // // treeView1 // this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.treeView1.ImageIndex = 0; this.treeView1.ImageList = this.imageList1; this.treeView1.Location = new System.Drawing.Point(3, 134); this.treeView1.Name = "treeView1"; treeNode1.ImageIndex = 1; treeNode1.Name = "노드1"; treeNode1.SelectedImageIndex = 1; treeNode1.Text = "BackGround1"; treeNode2.ImageIndex = 2; treeNode2.Name = "노드3"; treeNode2.SelectedImageIndex = 2; treeNode2.Text = "BackGround2"; treeNode3.ImageIndex = 3; treeNode3.Name = "노드4"; treeNode3.SelectedImageIndex = 3; treeNode3.Text = "BackGround3"; treeNode4.ImageIndex = 4; treeNode4.Name = "노드5"; treeNode4.SelectedImageIndex = 4; treeNode4.Text = "Stage0_4"; treeNode5.ImageIndex = 0; treeNode5.Name = "노드0"; treeNode5.SelectedImageIndex = 0; treeNode5.Text = "Terrain"; treeNode6.ImageIndex = 6; treeNode6.Name = "노드0"; treeNode6.SelectedImageIndex = 6; treeNode6.Text = "SpawnPoint"; treeNode7.ImageIndex = 0; treeNode7.Name = "노드0"; treeNode7.SelectedImageIndex = 0; treeNode7.Text = "Enemy"; treeNode8.ImageIndex = 4; treeNode8.Name = "노드0"; treeNode8.SelectedImageIndex = 4; treeNode8.Text = "Vibot"; treeNode9.ImageIndex = 5; treeNode9.Name = "노드1"; treeNode9.SelectedImageIndex = 5; treeNode9.Text = "RedBlood"; treeNode10.ImageIndex = 10; treeNode10.Name = "노드4"; treeNode10.SelectedImageIndex = 10; treeNode10.Text = "Goal_Zone"; treeNode11.ImageIndex = 7; treeNode11.Name = "WhiteCell"; treeNode11.SelectedImageIndex = 7; treeNode11.Text = "WhiteCell"; treeNode12.ImageIndex = 0; treeNode12.Name = "노드1"; treeNode12.SelectedImageIndex = 0; treeNode12.Text = "Main"; treeNode13.ImageIndex = 8; treeNode13.Name = "노드1"; treeNode13.SelectedImageIndex = 8; treeNode13.Text = "Cole"; treeNode14.ImageIndex = 9; treeNode14.Name = "노드3"; treeNode14.SelectedImageIndex = 9; treeNode14.Text = "N1"; treeNode15.ImageIndex = 0; treeNode15.Name = "노드0"; treeNode15.SelectedImageIndex = 0; treeNode15.Text = "Object"; this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { treeNode5, treeNode7, treeNode12, treeNode15}); this.treeView1.SelectedImageIndex = 0; this.treeView1.Size = new System.Drawing.Size(131, 415); this.treeView1.TabIndex = 0; this.treeView1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick); this.treeView1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.CellbotMapTool_KeyUp); // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, "folder.ico"); this.imageList1.Images.SetKeyName(1, "BackGround1.png"); this.imageList1.Images.SetKeyName(2, "BackGround2.png"); this.imageList1.Images.SetKeyName(3, "BackGround3.png"); this.imageList1.Images.SetKeyName(4, "Vibot.jpg"); this.imageList1.Images.SetKeyName(5, "RedBlood.png"); this.imageList1.Images.SetKeyName(6, "SpawnPoint.png"); this.imageList1.Images.SetKeyName(7, "WhiteCell.png"); this.imageList1.Images.SetKeyName(8, "Cole.png"); this.imageList1.Images.SetKeyName(9, "N1.png"); this.imageList1.Images.SetKeyName(10, "Goal_Zone.png"); // // contextMenuStrip1 // this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.undoToolStripMenuItem, this.moveToolStripMenuItem}); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(105, 48); // // undoToolStripMenuItem // this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; this.undoToolStripMenuItem.Size = new System.Drawing.Size(104, 22); this.undoToolStripMenuItem.Text = "Undo"; // // moveToolStripMenuItem // this.moveToolStripMenuItem.Name = "moveToolStripMenuItem"; this.moveToolStripMenuItem.Size = new System.Drawing.Size(104, 22); this.moveToolStripMenuItem.Text = "Move"; this.moveToolStripMenuItem.Click += new System.EventHandler(this.moveToolStripMenuItem_Click_1); // // contextMenuStrip2 // this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.setSpawnInfoToolStripMenuItem, this.removeToolStripMenuItem}); this.contextMenuStrip2.Name = "contextMenuStrip2"; this.contextMenuStrip2.Size = new System.Drawing.Size(153, 48); // // setSpawnInfoToolStripMenuItem // this.setSpawnInfoToolStripMenuItem.Name = "setSpawnInfoToolStripMenuItem"; this.setSpawnInfoToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.setSpawnInfoToolStripMenuItem.Text = "Set Spawn Info"; this.setSpawnInfoToolStripMenuItem.Click += new System.EventHandler(this.setSpawnInfoToolStripMenuItem_Click); // // removeToolStripMenuItem // this.removeToolStripMenuItem.Name = "removeToolStripMenuItem"; this.removeToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.removeToolStripMenuItem.Text = "Move"; this.removeToolStripMenuItem.Click += new System.EventHandler(this.MoveToolStripMenuItem_Click); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.toolToolStripMenuItem1}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(736, 24); this.menuStrip1.TabIndex = 3; this.menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newToolStripMenuItem, this.loadToolStripMenuItem, this.saveToolStripMenuItem, this.toolStripMenuItem1, this.exitToolStripMenuItem}); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fileToolStripMenuItem.Text = "File"; // // newToolStripMenuItem // this.newToolStripMenuItem.Name = "newToolStripMenuItem"; this.newToolStripMenuItem.Size = new System.Drawing.Size(100, 22); this.newToolStripMenuItem.Text = "New"; this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click); // // loadToolStripMenuItem // this.loadToolStripMenuItem.Name = "loadToolStripMenuItem"; this.loadToolStripMenuItem.Size = new System.Drawing.Size(100, 22); this.loadToolStripMenuItem.Text = "Load"; this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click_1); // // saveToolStripMenuItem // this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.saveToolStripMenuItem.Size = new System.Drawing.Size(100, 22); this.saveToolStripMenuItem.Text = "Save"; this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); // // toolToolStripMenuItem1 // this.toolToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.redBloodToolStripMenuItem, this.enemyDesignToolStripMenuItem}); this.toolToolStripMenuItem1.Name = "toolToolStripMenuItem1"; this.toolToolStripMenuItem1.Size = new System.Drawing.Size(43, 20); this.toolToolStripMenuItem1.Text = "Tool"; // // redBloodToolStripMenuItem // this.redBloodToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.이동경로ToolStripMenuItem}); this.redBloodToolStripMenuItem.Name = "redBloodToolStripMenuItem"; this.redBloodToolStripMenuItem.Size = new System.Drawing.Size(149, 22); this.redBloodToolStripMenuItem.Text = "Red Blood"; // // 이동경로ToolStripMenuItem // this.이동경로ToolStripMenuItem.Name = "이동경로ToolStripMenuItem"; this.이동경로ToolStripMenuItem.Size = new System.Drawing.Size(125, 22); this.이동경로ToolStripMenuItem.Text = "이동 경로"; this.이동경로ToolStripMenuItem.Click += new System.EventHandler(this.이동경로ToolStripMenuItem_Click); // // enemyDesignToolStripMenuItem // this.enemyDesignToolStripMenuItem.Name = "enemyDesignToolStripMenuItem"; this.enemyDesignToolStripMenuItem.Size = new System.Drawing.Size(149, 22); this.enemyDesignToolStripMenuItem.Text = "Enemy Design"; this.enemyDesignToolStripMenuItem.Click += new System.EventHandler(this.enemyDesignToolStripMenuItem_Click); // // contextMenuStrip3 // this.contextMenuStrip3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.setBGobjectToolStripMenuItem, this.moveToolStripMenuItem1}); this.contextMenuStrip3.Name = "contextMenuStrip3"; this.contextMenuStrip3.Size = new System.Drawing.Size(142, 48); // // setBGobjectToolStripMenuItem // this.setBGobjectToolStripMenuItem.Name = "setBGobjectToolStripMenuItem"; this.setBGobjectToolStripMenuItem.Size = new System.Drawing.Size(141, 22); this.setBGobjectToolStripMenuItem.Text = "Set BGobject"; // // moveToolStripMenuItem1 // this.moveToolStripMenuItem1.Name = "moveToolStripMenuItem1"; this.moveToolStripMenuItem1.Size = new System.Drawing.Size(141, 22); this.moveToolStripMenuItem1.Text = "Move"; // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(97, 6); // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(100, 22); this.exitToolStripMenuItem.Text = "E&xit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.SystemColors.Menu; this.pictureBox1.Location = new System.Drawing.Point(3, 3); this.pictureBox1.Margin = new System.Windows.Forms.Padding(0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(128, 128); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // pictureBox2 // this.pictureBox2.BackColor = System.Drawing.Color.WhiteSmoke; this.pictureBox2.ContextMenuStrip = this.contextMenuStrip1; this.pictureBox2.Location = new System.Drawing.Point(1, 1); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(571, 531); this.pictureBox2.TabIndex = 0; this.pictureBox2.TabStop = false; this.pictureBox2.Paint += new System.Windows.Forms.PaintEventHandler(this.pictureBox2_Paint); this.pictureBox2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox2_MouseDown); this.pictureBox2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pictureBox2_MouseMove); this.pictureBox2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox2_MouseUp); // // VibotMapTool // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(736, 600); this.Controls.Add(this.splitContainer1); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.menuStrip1); this.DoubleBuffered = true; this.MainMenuStrip = this.menuStrip1; this.Name = "VibotMapTool"; this.Text = "Vibot Map Tool"; this.SizeChanged += new System.EventHandler(this.CellbotMapTool_SizeChanged); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.VibotMapTool_KeyDown); this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.CellbotMapTool_KeyUp); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip2.ResumeLayout(false); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.contextMenuStrip3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.ToolStripMenuItem 파일ToolStripMenuItem; private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.SplitContainer splitContainer1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.ImageList imageList1; private ContextMenuStrip contextMenuStrip1; private ToolStripMenuItem undoToolStripMenuItem; private ToolStripStatusLabel toolStripStatusLabel1; private TreeView treeView1; private ContextMenuStrip contextMenuStrip2; private ToolStripMenuItem setSpawnInfoToolStripMenuItem; private ToolStripMenuItem removeToolStripMenuItem; private MenuStrip menuStrip1; private ToolStripMenuItem fileToolStripMenuItem; private ToolStripMenuItem loadToolStripMenuItem; private ToolStripMenuItem saveToolStripMenuItem; private ToolStripMenuItem toolToolStripMenuItem1; private ToolStripMenuItem redBloodToolStripMenuItem; private ToolStripMenuItem 이동경로ToolStripMenuItem; private ToolStripMenuItem enemyDesignToolStripMenuItem; private ToolStripMenuItem newToolStripMenuItem; private ToolStripMenuItem moveToolStripMenuItem; private ContextMenuStrip contextMenuStrip3; private ToolStripMenuItem setBGobjectToolStripMenuItem; private ToolStripMenuItem moveToolStripMenuItem1; private ToolStripSeparator toolStripMenuItem1; private ToolStripMenuItem exitToolStripMenuItem; } }
53.16318
157
0.636353
[ "Unlicense" ]
darkstar35/Vibot
Vibot Map Tool/VibotMapTool.Designer.cs
25,790
C#
using System; using System.Collections.Generic; using DecisionMaster.AlgorithmsLibrary.Interfaces; using DecisionMaster.AlgorithmsLibrary.Models; namespace DecisionMaster.AlgorithmsLibrary.Algorithms.ELECTRE { public class ELECTREDecisionProvider : IDecisionProvider { ELECTREDecisionConfiguration _configuration; AlternativesBase _alternatives; public void Init(IDecisionConfiguration config) { if (config is ELECTREDecisionConfiguration) { _configuration = (ELECTREDecisionConfiguration)config; } else { throw new Exception("Invalid Configuration"); } } public DecisionResultBase Solve(AlternativesBase alternatives) { _alternatives = alternatives; double[,] normalize = GetNormalizedMatrix(); List<double>[,] discordanceSets = GetDiscordances(normalize); double[,] concordances = GetConcordances(normalize); double[,] nonDiscordance = GetNonDiscordanceIndices(discordanceSets, concordances); double[,] generalPreference = GetGeneralPreferences(concordances, nonDiscordance); int[,] rangeMatrix = GetResultMatrix(generalPreference); int[,] finalRange = GetFinalRanking(rangeMatrix); DecisionResultBase result = new DecisionResultBase(); for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { int rank = _alternatives.Alternatives.Count; for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { rank -= finalRange[i, j]; } result.Ranks.Add(rank); } return result; } private int[,] GetResultMatrix(double[,] matrix) { int[,] result = new int[_alternatives.Alternatives.Count, _alternatives.Alternatives.Count]; double max = matrix[0, 0]; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { max = Math.Max(max, matrix[i, j]); } } double S = _configuration.alpha + _configuration.beta * max; double edge = max - S; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { if (i != j) { result[i, j] = (matrix[i, j] >= edge ? 1 : 0); } } } return result; } private int[,] GetFinalRanking(int[,] matrix) { int[,] result = new int[_alternatives.Alternatives.Count, _alternatives.Alternatives.Count]; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { Queue<int> Q = new Queue<int>(); int[] used = new int[_alternatives.Alternatives.Count]; Q.Enqueue(i); used[i] = 1; while (Q.Count > 0) { int current = Q.Dequeue(); for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { if (matrix[current, j] == 1) { if (used[j] == 0) { result[i, j] = 1; used[j] = 1; Q.Enqueue(j); } else { if (j == i) { throw new Exception("Invalid ELECTRE input data for full-ranking"); } } } } } } return result; } private double[,] GetGeneralPreferences(double[,] concordances, double[,] nonDiscordances) { double[,] result = new double[_alternatives.Alternatives.Count, _alternatives.Alternatives.Count]; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { if (i != j) { result[i, j] = concordances[i, j] * nonDiscordances[i, j]; } } } return result; } private double[,] GetNonDiscordanceIndices(List<double>[,] discordanceSets, double[,] concordances) { double[,] result = new double[_alternatives.Alternatives.Count, _alternatives.Alternatives.Count]; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { if (i != j) { result[i, j] = GetNonDiscordanceIndex(concordances[i, j], discordanceSets[i, j]); } } } return result; } private double GetNonDiscordanceIndex(double concordance, List<double> discordances) { double result = 1; for (int i = 0; i < _configuration.CriteriaRanks.Count; ++i) { if (discordances[i] > concordance) { result *= (1 - discordances[i]) / (1 - concordance); } } return result; } private double[,] GetConcordances(double[,] matrix) { double[,] result = new double[_alternatives.Alternatives.Count, _alternatives.Alternatives.Count]; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { if (i != j) { result[i, j] = GetConcordanceIndex(matrix, i, j); } } } return result; } private double GetConcordanceIndex(double[,] matrix, int i, int k) { double result = 0; for (int j = 0; j < _alternatives.Criterias.Count; ++j) { double diff = matrix[i, j] - matrix[k, j]; double value = 0; if (diff >= _configuration.Parameters[j].p) { value = 1; } else if (diff > _configuration.Parameters[j].q) { value = diff / _configuration.Parameters[j].p; } result += value * _configuration.CriteriaRanks[j]; } return result; } private List<double>[,] GetDiscordances(double[,] matrix) { List<double>[,] result = new List<double>[_alternatives.Alternatives.Count, _alternatives.Alternatives.Count]; for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { if (i != j) { result[i, j] = GetDiscordanceSet(matrix, i, j); } } } return result; } private List<double> GetDiscordanceSet(double[,] matrix, int i, int k) { List<double> result = new List<double>(); for (int j = 0; j < _alternatives.Criterias.Count; ++j) { double diff = matrix[k, j] - matrix[i, j]; if (diff <= _configuration.Parameters[j].q) { result.Add(0); } else if (diff >= _configuration.Parameters[j].v) { result.Add(1); } else { result.Add(diff / _configuration.Parameters[j].v); } } return result; } private double[,] GetNormalizedMatrix() { double[,] result = new double[_alternatives.Alternatives.Count, _alternatives.Criterias.Count]; double[] denominators = GetNormalizeDenominators(); for (int i = 0; i < _alternatives.Alternatives.Count; ++i) { for (int j = 0; j < _alternatives.Criterias.Count; ++j) { if (_alternatives.Criterias[j] is CriteriaBase && _alternatives.Criterias[j].CriteriaDirection == CriteriaDirectionType.Minimization) { result[i, j] = -(_alternatives.Alternatives[i].Values[j].Value / denominators[j]); } else { result[i, j] = _alternatives.Alternatives[i].Values[j].Value / denominators[j]; } result[i, j] *= _configuration.CriteriaRanks[j]; } } return result; } private double[] GetNormalizeDenominators() { double[] result = new double[_alternatives.Criterias.Count]; for (int i = 0; i < _alternatives.Criterias.Count; ++i) { for (int j = 0; j < _alternatives.Alternatives.Count; ++j) { result[i] += Math.Pow(_alternatives.Alternatives[j].Values[i].Value, 2); } result[i] = Math.Sqrt(result[i]); } return result; } } }
35.37193
153
0.457792
[ "MIT" ]
BSTU/decisionmaster
src/DecisionMaster.AlgorithmsLibrary/Algorithms/ELECTRE/ELECTREDecisionProvider.cs
10,083
C#
using System; using System.Diagnostics; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Hosting.Internal; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using NSubstitute; using OpenTracing.Contrib.NetCore.Internal; namespace OpenTracing.Contrib.NetCore.Benchmarks.AspNetCore { public class RequestDiagnosticsBenchmark { private IServiceProvider _serviceProvider; private FeatureCollection _features; private HostingApplication _hostingApplication; private DefaultHttpContext _httpContext; [Params(InstrumentationMode.None, InstrumentationMode.Noop, InstrumentationMode.Mock)] public InstrumentationMode Mode { get; set; } [GlobalSetup] public void GlobalSetup() { _serviceProvider = new ServiceCollection() .AddLogging() .AddOpenTracingCoreServices(builder => { builder.AddAspNetCore(); builder.AddBenchmarkTracer(Mode); }) .BuildServiceProvider(); var diagnosticManager = _serviceProvider.GetRequiredService<DiagnosticManager>(); diagnosticManager.Start(); // Request _httpContext = new DefaultHttpContext(); var request = _httpContext.Request; Uri requestUri = new Uri("http://www.example.com/foo"); request.Protocol = "HTTP/1.1"; request.Method = HttpMethods.Get; request.Scheme = requestUri.Scheme; request.Host = HostString.FromUriComponent(requestUri); if (requestUri.IsDefaultPort) { request.Host = new HostString(request.Host.Host); } request.PathBase = PathString.Empty; request.Path = PathString.FromUriComponent(requestUri); request.QueryString = QueryString.FromUriComponent(requestUri); // Hosting Application var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore"); _features = new FeatureCollection(); _features.Set<IHttpRequestFeature>(new HttpRequestFeature()); var httpContextFactory = Substitute.For<IHttpContextFactory>(); httpContextFactory.Create(_features).Returns(_httpContext); _hostingApplication = new HostingApplication( ctx => Task.FromResult(0), _serviceProvider.GetRequiredService<ILogger<RequestDiagnosticsBenchmark>>(), diagnosticSource, httpContextFactory); } [GlobalCleanup] public void GlobalCleanup() { (_serviceProvider as IDisposable).Dispose(); } [Benchmark] public async Task GetAsync() { var context = _hostingApplication.CreateContext(_features); await _hostingApplication.ProcessRequestAsync(context); _hostingApplication.DisposeContext(context, null); } } }
34.956044
94
0.643508
[ "Apache-2.0" ]
Aaronontheweb/csharp-netcore
benchmarks/OpenTracing.Contrib.NetCore.Benchmarks/AspNetCore/RequestDiagnosticsBenchmark.cs
3,183
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace numl.Math.Functions { /// <summary> /// Softplus function /// </summary> public class Softplus : Function { /// <summary> /// Returns the minimum value from the function curve, equal to 0.0. /// </summary> public override double Minimum { get { return 0; } } /// <summary> /// Returns the maximum value from the function curve, equal to infinity. /// </summary> public override double Maximum { get { return double.PositiveInfinity; } } /// <summary> /// Computes the softplus function on the given input. /// </summary> /// <param name="x">The double to process.</param> /// <returns>Double.</returns> public override double Compute(double x) { return System.Math.Log(1d + exp(x)); } /// <summary> /// Derivatives the given x coordinate. /// </summary> /// <param name="x">The double to process.</param> /// <returns>Double.</returns> public override double Derivative(double x) { return 1d / (1d + exp(-x)); } } }
29.577778
83
0.544703
[ "MIT" ]
sethjuarez/numl
Src/numl/Math/Functions/Softplus.cs
1,333
C#
using CommonTools.Lib11.DTOs; using LiteDB; using System; using System.Collections.Generic; using System.IO; using System.Threading; namespace CommonTools.Lib45.LiteDbTools { public abstract partial class SharedCollectionBase<T> where T : IDocumentDTO { private static TOut Retry2x<TOut>(T record, Func<LiteCollection<T>, T, TOut> func, LiteCollection<T> coll) { try { return func(coll, record); } catch (IOException) { Thread.Sleep(100); try { return func(coll, record); } catch (IOException) { Thread.Sleep(200); return func(coll, record); } } } private int Retry2x(IEnumerable<T> records, Func<LiteCollection<T>, IEnumerable<T>, int> func, LiteCollection<T> coll) { try { return func(coll, records); } catch (IOException) { Thread.Sleep(100); try { return func(coll, records); } catch (IOException) { Thread.Sleep(200); return func(coll, records); } } } } }
28.2
126
0.504334
[ "MIT" ]
peterson1/PermissionSetter
CommonTools.Lib45/LiteDbTools/SharedCollectionBase_Retry.cs
1,271
C#
// (C) 2012 Christian Schladetsch. See https://github.com/cschladetsch/Flow. using System; namespace Flow { /// <inheritdoc /> /// <summary> /// A Trigger is a <see cref="T:Flow.IGroup" /> that completes whenever /// a child completes. /// </summary> public interface ITrigger : IGroup { event Action<ITrigger, ITransient> OnTripped; /// <summary> /// What triggered this to Complete. /// </summary> ITransient Reason { get; } } }
21.458333
76
0.578641
[ "MIT" ]
cschladetsch/Flow
ITrigger.cs
515
C#
/****************************************************************************** * The MIT License * Copyright (c) 2003 Novell Inc. www.novell.com * * 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. *******************************************************************************/ // // Novell.Directory.Ldap.Rfc2251.RfcBindRequest.cs // // Author: // Sunil Kumar (Sunilk@novell.com) // // (C) 2003 Novell, Inc (http://www.novell.com) // using System; using Novell.Directory.Ldap.Asn1; namespace Novell.Directory.Ldap.Rfc2251 { /// <summary> /// Represents and Ldap Bind Request. /// <pre> /// BindRequest ::= [APPLICATION 0] SEQUENCE { /// version INTEGER (1 .. 127), /// name LdapDN, /// authentication AuthenticationChoice } /// </pre> /// </summary> public class RfcBindRequest : Asn1Sequence, IRfcRequest { /// <summary> /// ID is added for Optimization. /// ID needs only be one Value for every instance, /// thus we create it only once. /// </summary> private static readonly Asn1Identifier Id = new Asn1Identifier(Asn1Identifier.Application, true, LdapMessage.BindRequest); // ************************************************************************* // Constructors for BindRequest // ************************************************************************* /// <summary> </summary> public RfcBindRequest(Asn1Integer version, RfcLdapDn name, RfcAuthenticationChoice auth) : base(3) { Add(version); Add(name); Add(auth); } public RfcBindRequest(int version, string dn, string mechanism, byte[] credentials) : this(new Asn1Integer(version), new RfcLdapDn(dn), new RfcAuthenticationChoice(mechanism, credentials)) { } /// <summary> /// Constructs a new Bind Request copying the original data from /// an existing request. /// </summary> internal RfcBindRequest(Asn1Object[] origRequest, string baseRenamed) : base(origRequest, origRequest.Length) { // Replace the dn if specified, otherwise keep original base if (baseRenamed != null) { set_Renamed(1, new RfcLdapDn(baseRenamed)); } } /// <summary> </summary> /// <summary> Sets the protocol version.</summary> public Asn1Integer Version { get => (Asn1Integer)get_Renamed(0); set => set_Renamed(0, value); } /// <summary> </summary> /// <summary> </summary> public RfcLdapDn Name { get => (RfcLdapDn)get_Renamed(1); set => set_Renamed(1, value); } /// <summary> </summary> /// <summary> </summary> public RfcAuthenticationChoice AuthenticationChoice { get => (RfcAuthenticationChoice)get_Renamed(2); set => set_Renamed(2, value); } public IRfcRequest DupRequest(string baseRenamed, string filter, bool request) { return new RfcBindRequest(ToArray(), baseRenamed); } public string GetRequestDn() { return ((RfcLdapDn)get_Renamed(1)).StringValue(); } // ************************************************************************* // Mutators // ************************************************************************* // ************************************************************************* // Accessors // ************************************************************************* /// <summary> /// Override getIdentifier to return an application-wide id. /// <pre> /// ID = CLASS: APPLICATION, FORM: CONSTRUCTED, TAG: 0. (0x60) /// </pre> /// </summary> public override Asn1Identifier GetIdentifier() { return Id; } } }
35.924138
116
0.519677
[ "MIT" ]
AlliterativeAlice/Novell.Directory.Ldap.NETStandard
src/Novell.Directory.Ldap.NETStandard/Rfc2251/RfcBindRequest.cs
5,209
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace Nettiers.AdventureWorks.Windows.Forms { /// <summary> /// WorkOrderRouting typed datagridview /// </summary> [System.ComponentModel.DesignerCategoryAttribute("designer")] [System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.DataGridView))] public class WorkOrderRoutingDataGridView : WorkOrderRoutingDataGridViewBase { } }
26.6
78
0.774436
[ "MIT" ]
aqua88hn/netTiers
Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.Windows.Forms/UI/WorkOrderRoutingDataGridView.cs
534
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.Collections.Generic; using System.ComponentModel.Composition.Primitives; using System.Diagnostics; using System.Linq.Expressions; using Microsoft.Internal; namespace System.ComponentModel.Composition.Hosting { internal static class ImportSourceImportDefinitionHelpers { public static ImportDefinition RemoveImportSource(this ImportDefinition definition) { var contractBasedDefinition = definition as ContractBasedImportDefinition; if(contractBasedDefinition == null) { return definition; } else { return new NonImportSourceImportDefinition(contractBasedDefinition); } } internal class NonImportSourceImportDefinition : ContractBasedImportDefinition { private ContractBasedImportDefinition _sourceDefinition; private IDictionary<string, object> _metadata; public NonImportSourceImportDefinition(ContractBasedImportDefinition sourceDefinition) { if (sourceDefinition == null) { throw new ArgumentNullException(nameof(sourceDefinition)); } _sourceDefinition = sourceDefinition; _metadata = null; } public override string ContractName { get { return _sourceDefinition.ContractName; } } public override IDictionary<string, object> Metadata { get { var reply = _metadata; if(reply == null) { reply = new Dictionary<string, object> (_sourceDefinition.Metadata); reply.Remove(CompositionConstants.ImportSourceMetadataName); _metadata = reply; } Debug.Assert(reply != null); return reply; } } public override ImportCardinality Cardinality { get { return _sourceDefinition.Cardinality; } } public override Expression<Func<ExportDefinition, bool>> Constraint { get { return _sourceDefinition.Constraint; } } public override bool IsPrerequisite { get { return _sourceDefinition.IsPrerequisite; } } public override bool IsRecomposable { get { return _sourceDefinition.IsRecomposable; } } public override bool IsConstraintSatisfiedBy(ExportDefinition exportDefinition) { Requires.NotNull(exportDefinition, nameof(exportDefinition)); return _sourceDefinition.IsConstraintSatisfiedBy(exportDefinition); } public override string ToString() { return _sourceDefinition.ToString(); } public override string RequiredTypeIdentity { get { return _sourceDefinition.RequiredTypeIdentity; } } public override IEnumerable<KeyValuePair<string, Type>> RequiredMetadata { get { return _sourceDefinition.RequiredMetadata; } } public override CreationPolicy RequiredCreationPolicy { get { return _sourceDefinition.RequiredCreationPolicy; } } } } }
32.627119
98
0.565455
[ "MIT" ]
ARhj/corefx
src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportSourceImportDefinitionHelpers.cs
3,850
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.Azure.Functions.Worker.Http; using Microsoft.Azure.Functions.Worker.Grpc.Messages; namespace Microsoft.Azure.Functions.Worker { internal class GrpcHttpRequestData : HttpRequestData, IAsyncDisposable, IDisposable { private readonly RpcHttp _httpData; private Uri? _url; private IEnumerable<ClaimsIdentity>? _identities; private HttpHeadersCollection? _headers; private Stream? _bodyStream; private bool _disposed; public GrpcHttpRequestData(RpcHttp httpData, FunctionContext functionContext) : base(functionContext) { _httpData = httpData ?? throw new ArgumentNullException(nameof(httpData)); } public override Stream Body { get { if (_bodyStream is null) { if (_httpData.Body is null) { _bodyStream = Stream.Null; } else { // Based on the advertised worker capabilities, the payload should always be binary data if (_httpData.Body.DataCase != TypedData.DataOneofCase.Bytes) { throw new NotSupportedException($"{nameof(GrpcHttpRequestData)} expects binary data only. The provided data type was '{_httpData.Body.DataCase}'."); } ReadOnlyMemory<byte> memory = _httpData.Body.Bytes.Memory; if (memory.IsEmpty) { _bodyStream = Stream.Null; } var stream = new MemoryStream(memory.Length); stream.Write(memory.Span); stream.Position = 0; _bodyStream = stream; } } return _bodyStream; } } public override HttpHeadersCollection Headers => _headers ??= new HttpHeadersCollection(_httpData.NullableHeaders.Select(h => new KeyValuePair<string, string>(h.Key, h.Value.Value))); public override IReadOnlyCollection<IHttpCookie> Cookies => _httpData.Cookies; public override Uri Url => _url ??= new Uri(_httpData.Url); public override IEnumerable<ClaimsIdentity> Identities { get { if (_identities is null) { _identities = _httpData.Identities?.Select(id => { var identity = new ClaimsIdentity(id.AuthenticationType.Value, id.NameClaimType.Value, id.RoleClaimType.Value); identity.AddClaims(id.Claims.Select(c => new Claim(c.Type, c.Value))); return identity; }) ?? Enumerable.Empty<ClaimsIdentity>(); } return _identities; } } public override string Method => _httpData.Method; public override HttpResponseData CreateResponse() { return new GrpcHttpResponseData(FunctionContext, System.Net.HttpStatusCode.OK); } public ValueTask DisposeAsync() { return _bodyStream?.DisposeAsync() ?? ValueTask.CompletedTask; } protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _bodyStream?.Dispose(); } _disposed = true; } } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } } }
32.944
191
0.539582
[ "MIT" ]
SeanFeldman/azure-functions-dotnet-worker
src/DotNetWorker.Grpc/Http/GrpcHttpRequestData.cs
4,120
C#
// Copyright(c) Microsoft Corporation // 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 // // THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS // OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY // IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, // MERCHANTABILITY OR NON-INFRINGEMENT. // // See the Apache Version 2.0 License for specific language governing // permissions and limitations under the License. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Python.Analysis.Core.DependencyResolution; using Microsoft.Python.Analysis.Types; namespace Microsoft.Python.Analysis.Modules { /// <summary> /// Represents basic module resolution and search subsystem. /// </summary> public interface IModuleResolution { /// <summary> /// Path resolver providing file resolution in module imports. /// </summary> PathResolverSnapshot CurrentPathResolver { get; } /// <summary> /// Returns an IPythonModule for a given module name. Returns null if /// the module has not been imported. /// </summary> IPythonModule GetImportedModule(string name); /// <summary> /// Returns an IPythonModule for a given module name. /// Returns null if the module wasn't found. /// </summary> IPythonModule GetOrLoadModule(string name); /// <summary> /// Reloads all modules. Typically after installation or removal of packages. /// </summary> Task ReloadAsync(CancellationToken token = default); /// <summary> /// Returns collection of all currently imported modules. /// </summary> /// <param name="cancellationToken"></param> IEnumerable<IPythonModule> GetImportedModules(CancellationToken cancellationToken = default); } }
38.267857
101
0.688754
[ "Apache-2.0" ]
CMLL/python-language-server
src/Analysis/Ast/Impl/Modules/Definitions/IModuleResolution.cs
2,145
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. namespace Microsoft.VisualStudio.ProjectSystem.SpecialFileProviders { public class AssemblyResourcesSpecialFileProviderTests : AbstractFindByNameUnderAppDesignerSpecialFileProviderTestBase { public AssemblyResourcesSpecialFileProviderTests() : base("Resources.resx") { } internal override AbstractFindByNameUnderAppDesignerSpecialFileProvider CreateInstance(ISpecialFilesManager specialFilesManager, IPhysicalProjectTree projectTree) { return CreateInstanceWithOverrideCreateFileAsync<AssemblyResourcesSpecialFileProvider>(specialFilesManager, projectTree); } } }
46.111111
171
0.759036
[ "Apache-2.0" ]
MSLukeWest/project-system
tests/Microsoft.VisualStudio.ProjectSystem.Managed.UnitTests/ProjectSystem/SpecialFileProviders/AssemblyResourcesSpecialFileProviderTests.cs
815
C#
using GreetService; using Grpc.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace grpcServerWinForm.Services { class GreeterService : Greeter.GreeterBase { public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context) { return Task.FromResult(new HelloReply { Message = "Hello " + request.Name }); } } }
22.909091
98
0.656746
[ "MIT" ]
ggwhsd/NetCoreStudy
grpcServerWinForm/Services/GreeterService.cs
506
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. using Mosa.Compiler.Common; using Mosa.Compiler.Framework.IR; using Mosa.Compiler.Trace; using System; using System.Collections.Generic; using System.Diagnostics; namespace Mosa.Compiler.Framework.Analysis { /// <summary> /// /// </summary> public sealed class SparseConditionalConstantPropagation { private static int MAXCONSTANTS = 5; private class VariableState { private enum VariableStatus { NeverDefined, OverDefined, SingleConstant, MultipleConstants }; private VariableStatus Status; private List<ulong> constants; public int ConstantCount { get { return constants == null ? 0 : constants.Count; } } public IList<ulong> Constants { get { return constants; } } private ulong SingleConstant { get { return constants[0]; } } public ulong ConstantUnsignedLongInteger { get { return SingleConstant; } } public long ConstantSignedLongInteger { get { return (long)SingleConstant; } } public Operand Operand { get; private set; } public bool IsOverDefined { get { return Status == VariableStatus.OverDefined; } set { Status = VariableStatus.OverDefined; constants = null; Debug.Assert(value); } } public bool IsNeverDefined { get { return Status == VariableStatus.NeverDefined; } } public bool IsSingleConstant { get { return Status == VariableStatus.SingleConstant; } set { Status = VariableStatus.SingleConstant; Debug.Assert(value); } } public bool HasMultipleConstants { get { return Status == VariableStatus.MultipleConstants; } } public bool HasOnlyConstants { get { return Status == VariableStatus.SingleConstant || Status == VariableStatus.MultipleConstants; } } public bool IsVirtualRegister { get { return Operand.IsVirtualRegister; } } public VariableState(Operand operand) { Operand = operand; if (operand.IsVirtualRegister) { Status = VariableStatus.NeverDefined; } else if (operand.IsUnresolvedConstant) { IsOverDefined = true; } else if (operand.IsConstant && operand.IsInteger) { AddConstant(operand.ConstantUnsignedLongInteger); } else { IsOverDefined = true; } } public bool AddConstant(ulong value) { if (Status == VariableStatus.OverDefined) return false; if (constants != null) { if (constants.Contains(value)) return false; } else { constants = new List<ulong>(2); constants.Add(value); Status = VariableStatus.SingleConstant; return true; } if (constants.Count > MAXCONSTANTS) { Status = VariableStatus.OverDefined; constants = null; return true; } constants.Add(value); Status = VariableStatus.MultipleConstants; return true; } public void AddConstant(long value) { AddConstant((ulong)value); } public bool AreConstantsEqual(VariableState other) { if (!other.IsSingleConstant || !IsSingleConstant) return false; return (other.ConstantUnsignedLongInteger == ConstantUnsignedLongInteger); } public override string ToString() { string s = Operand.ToString() + " : " + Status.ToString(); if (IsSingleConstant) { s = s + " = " + ConstantUnsignedLongInteger.ToString(); } else if (HasMultipleConstants) { s = s + " (" + constants.Count.ToString() + ") ="; foreach (ulong i in constants) { s = s + " " + i.ToString(); s = s + ","; } s = s.TrimEnd(','); } return s; } } private bool[] blockStates; private Dictionary<Operand, VariableState> variableStates = new Dictionary<Operand, VariableState>(); private Stack<InstructionNode> instructionWorkList = new Stack<InstructionNode>(); private Stack<BasicBlock> blockWorklist = new Stack<BasicBlock>(); private HashSet<InstructionNode> executedStatements = new HashSet<InstructionNode>(); private readonly BasicBlocks BasicBlocks; private readonly ITraceFactory TraceFactory; private readonly TraceLog MainTrace; private readonly KeyedList<BasicBlock, InstructionNode> phiStatements = new KeyedList<BasicBlock, InstructionNode>(); public SparseConditionalConstantPropagation(BasicBlocks basicBlocks, ITraceFactory traceFactory) { TraceFactory = traceFactory; BasicBlocks = basicBlocks; MainTrace = CreateTrace("SparseConditionalConstantPropagation"); // Method is empty - must be a plugged method if (BasicBlocks.HeadBlocks.Count == 0) return; blockStates = new bool[BasicBlocks.Count]; for (int i = 0; i < BasicBlocks.Count; i++) { blockStates[i] = false; } // Initialize foreach (var block in BasicBlocks.HeadBlocks) { AddExecutionBlock(block); } foreach (var block in BasicBlocks.HandlerHeadBlocks) { AddExecutionBlock(block); } while (blockWorklist.Count > 0 || instructionWorkList.Count > 0) { ProcessBlocks(); ProcessInstructions(); } DumpTrace(); // Release phiStatements = null; } public List<Tuple<Operand, ulong>> GetIntegerConstants() { var list = new List<Tuple<Operand, ulong>>(); foreach (var variable in variableStates.Values) { if (variable.IsVirtualRegister && variable.IsSingleConstant) { list.Add(new Tuple<Operand, ulong>(variable.Operand, variable.ConstantUnsignedLongInteger)); } } return list; } public List<BasicBlock> GetDeadBlocked() { var list = new List<BasicBlock>(); for (int i = 0; i < BasicBlocks.Count; i++) { if (!blockStates[i]) { list.Add(BasicBlocks[i]); } } return list; } private TraceLog CreateTrace(string name) { var sectionTrace = TraceFactory.CreateTraceLog(name); return sectionTrace; } private VariableState GetVariableState(Operand operand) { VariableState variable; if (!variableStates.TryGetValue(operand, out variable)) { variable = new VariableState(operand); variableStates.Add(operand, variable); } return variable; } private void DumpTrace() { if (!MainTrace.Active) return; var variableTrace = CreateTrace("Variables"); foreach (var variable in variableStates.Values) { if (variable.IsVirtualRegister) { variableTrace.Log(variable.ToString()); } } var blockTrace = CreateTrace("Blocks"); for (int i = 0; i < BasicBlocks.Count; i++) { blockTrace.Log(BasicBlocks[i].ToString() + " = " + (blockStates[i] ? "Executable" : "Dead")); } } private void AddExecutionBlock(BasicBlock block) { if (blockStates[block.Sequence]) return; blockStates[block.Sequence] = true; blockWorklist.Push(block); } private void AddInstruction(InstructionNode node) { instructionWorkList.Push(node); } private void AddInstruction(VariableState variable) { foreach (var use in variable.Operand.Uses) { if (executedStatements.Contains(use)) { AddInstruction(use); } } } private void ProcessBlocks() { while (blockWorklist.Count > 0) { var block = blockWorklist.Pop(); ProcessBlock(block); } } private void ProcessBlock(BasicBlock block) { if (MainTrace.Active) MainTrace.Log("Process Block: " + block.ToString()); // if the block has only one successor block, add successor block to executed block list if (block.NextBlocks.Count == 1) { AddExecutionBlock(block.NextBlocks[0]); } ProcessInstructionsContinuiously(block.First); // re-analysis phi statements var phiUse = phiStatements.Get(block); if (phiUse == null) return; foreach (var index in phiUse) { AddInstruction(index); } } private void ProcessInstructionsContinuiously(InstructionNode node) { // instead of adding items to the worklist, the whole block will be processed for (; !node.IsBlockEndInstruction; node = node.Next) { if (node.IsEmpty) continue; bool @continue = ProcessInstruction(node); executedStatements.Add(node); if (!@continue) return; } } private void ProcessInstructions() { while (instructionWorkList.Count > 0) { var node = instructionWorkList.Pop(); if (node.Instruction == IRInstruction.CompareIntegerBranch) { // special case ProcessInstructionsContinuiously(node); } else { ProcessInstruction(node); } } } private bool ProcessInstruction(InstructionNode node) { //if (MainTrace.Active) MainTrace.Log(context.ToString()); var instruction = node.Instruction; if (instruction == IRInstruction.MoveInteger) { Move(node); } else if (instruction == IRInstruction.Call || instruction == IRInstruction.IntrinsicMethodCall) { Call(node); } else if (instruction == IRInstruction.LoadInteger || instruction == IRInstruction.LoadSignExtended || instruction == IRInstruction.LoadZeroExtended || instruction == IRInstruction.LoadFloatR4 || instruction == IRInstruction.LoadFloatR8 || instruction == IRInstruction.LoadParameterInteger || instruction == IRInstruction.LoadParameterSignExtended || instruction == IRInstruction.LoadParameterZeroExtended || instruction == IRInstruction.LoadParameterFloatR4 || instruction == IRInstruction.LoadParameterFloatR8) { Load(node); } else if (instruction == IRInstruction.AddSigned || instruction == IRInstruction.AddUnsigned || instruction == IRInstruction.SubSigned || instruction == IRInstruction.SubUnsigned || instruction == IRInstruction.MulSigned || instruction == IRInstruction.MulUnsigned || instruction == IRInstruction.DivSigned || instruction == IRInstruction.DivUnsigned || instruction == IRInstruction.RemSigned || instruction == IRInstruction.RemUnsigned || instruction == IRInstruction.CompareInteger || instruction == IRInstruction.ShiftLeft || instruction == IRInstruction.ShiftRight || instruction == IRInstruction.ArithmeticShiftRight) { IntegerOperation(node); } else if (instruction == IRInstruction.Phi) { Phi(node); } else if (instruction == IRInstruction.Jmp) { Jmp(node); } else if (instruction == IRInstruction.CompareIntegerBranch) { return CompareIntegerBranch(node); } else if (instruction == IRInstruction.AddressOf) { AddressOf(node); } else if (instruction == IRInstruction.MoveZeroExtended || instruction == IRInstruction.MoveSignExtended) { Move(node); } else if (instruction == IRInstruction.Switch) { Switch(node); } else if (instruction == IRInstruction.FinallyStart) { FinallyStart(node); } else { // for all other instructions Default(node); } return true; } private void UpdateToConstant(VariableState variable, long value) { UpdateToConstant(variable, (ulong)value); } private void UpdateToConstant(VariableState variable, ulong value) { Debug.Assert(!variable.IsOverDefined); if (variable.AddConstant(value)) { if (MainTrace.Active) MainTrace.Log(variable.ToString()); AddInstruction(variable); } } private void UpdateToOverDefined(VariableState variable) { if (variable.IsOverDefined) return; variable.IsOverDefined = true; if (MainTrace.Active) MainTrace.Log(variable.ToString()); AddInstruction(variable); } private void Jmp(InstructionNode node) { if (node.BranchTargets == null || node.BranchTargetsCount == 0) return; Branch(node); } private void Move(InstructionNode node) { if (!node.Result.IsVirtualRegister) return; var result = GetVariableState(node.Result); var operand = GetVariableState(node.Operand1); if (result.IsOverDefined) return; if (operand.IsOverDefined) { UpdateToOverDefined(result); } else if (operand.HasOnlyConstants) { foreach (var c in operand.Constants) { UpdateToConstant(result, c); if (result.IsOverDefined) return; } } else if (operand.IsNeverDefined) { Debug.Assert(result.IsNeverDefined); } return; } private void Call(InstructionNode node) { if (node.ResultCount == 0) return; Debug.Assert(node.ResultCount == 1); var result = GetVariableState(node.Result); UpdateToOverDefined(result); } private void IntegerOperation(InstructionNode node) { var result = GetVariableState(node.Result); if (result.IsOverDefined) return; var operand1 = GetVariableState(node.Operand1); var operand2 = GetVariableState(node.Operand2); if (operand1.IsOverDefined || operand2.IsOverDefined) { UpdateToOverDefined(result); return; } else if (operand1.IsNeverDefined || operand2.IsNeverDefined) { Debug.Assert(result.IsNeverDefined); return; } else if (operand1.IsSingleConstant && operand2.IsSingleConstant) { ulong value; if (IntegerOperation(node.Instruction, operand1.ConstantUnsignedLongInteger, operand2.ConstantUnsignedLongInteger, node.ConditionCode, out value)) { UpdateToConstant(result, value); return; } else { UpdateToOverDefined(result); return; } } else if (operand1.HasOnlyConstants && operand2.HasOnlyConstants) { foreach (var c1 in operand1.Constants) { foreach (var c2 in operand2.Constants) { ulong value; if (IntegerOperation(node.Instruction, c1, c2, node.ConditionCode, out value)) { UpdateToConstant(result, value); } else { UpdateToOverDefined(result); return; } if (result.IsOverDefined) return; } } } } private bool IntegerOperation(BaseInstruction instruction, ulong operand1, ulong operand2, ConditionCode conditionCode, out ulong result) { if (instruction == IRInstruction.AddSigned || instruction == IRInstruction.AddUnsigned) { result = operand1 + operand2; return true; } else if (instruction == IRInstruction.SubSigned || instruction == IRInstruction.SubUnsigned) { result = operand1 - operand2; return true; } else if (instruction == IRInstruction.MulUnsigned || instruction == IRInstruction.MulSigned) { result = operand1 * operand2; return true; } else if (instruction == IRInstruction.DivUnsigned && operand2 != 0) { result = operand1 / operand2; return true; } else if (instruction == IRInstruction.DivSigned && operand2 != 0) { result = (ulong)((long)operand1 / (long)operand2); return true; } else if (instruction == IRInstruction.RemUnsigned && operand2 != 0) { result = operand1 % operand2; return true; } else if (instruction == IRInstruction.RemSigned && operand2 != 0) { result = (ulong)((long)operand1 % (long)operand2); return true; } else if (instruction == IRInstruction.ArithmeticShiftRight) { result = (ulong)(((long)operand1) >> (int)operand2); return true; } else if (instruction == IRInstruction.ShiftRight) { result = operand1 >> (int)operand2; return true; } else if (instruction == IRInstruction.ShiftLeft) { result = operand1 << (int)operand2; return true; } else if (instruction == IRInstruction.CompareInteger) { bool? compare = Compare(operand1, operand2, conditionCode); if (compare.HasValue) { result = compare.Value ? 1u : 0u; return true; } } result = 0; return false; } private void Load(InstructionNode node) { var result = GetVariableState(node.Result); UpdateToOverDefined(result); } private void AddressOf(InstructionNode node) { var result = GetVariableState(node.Result); var operand1 = GetVariableState(node.Operand1); UpdateToOverDefined(result); UpdateToOverDefined(operand1); } private void FinallyStart(InstructionNode node) { var result = GetVariableState(node.Result); UpdateToOverDefined(result); } private void Default(InstructionNode node) { if (node.ResultCount == 0) return; Debug.Assert(node.ResultCount == 1); var result = GetVariableState(node.Result); UpdateToOverDefined(result); } private bool CompareIntegerBranch(InstructionNode node) { var operand1 = GetVariableState(node.Operand1); var operand2 = GetVariableState(node.Operand2); if (operand1.IsOverDefined || operand2.IsOverDefined) { Branch(node); return true; } else if (operand1.IsSingleConstant && operand2.IsSingleConstant) { bool? compare = Compare(operand1.ConstantUnsignedLongInteger, operand2.ConstantUnsignedLongInteger, node.ConditionCode); if (!compare.HasValue) { Branch(node); return true; } if (compare.Value) { Branch(node); } return !compare.Value; } else if (operand1.HasOnlyConstants && operand2.HasOnlyConstants) { bool? final = null; foreach (var c1 in operand1.Constants) { foreach (var c2 in operand2.Constants) { bool? compare = Compare(c1, c2, node.ConditionCode); if (!compare.HasValue) { Branch(node); return true; } if (!final.HasValue) { final = compare; continue; } else if (final.Value == compare.Value) { continue; } else { Branch(node); return true; } } } if (final.Value) { Branch(node); } return !final.Value; } Branch(node); return true; } private static bool? Compare(ulong operand1, ulong operand2, ConditionCode conditionCode) { switch (conditionCode) { case ConditionCode.Equal: return operand1 == operand2; case ConditionCode.NotEqual: return operand1 != operand2; case ConditionCode.GreaterOrEqual: return operand1 >= operand2; case ConditionCode.GreaterThan: return operand1 > operand2; case ConditionCode.LessOrEqual: return operand1 <= operand2; case ConditionCode.LessThan: return operand1 < operand2; case ConditionCode.UnsignedGreaterOrEqual: return operand1 >= operand2; case ConditionCode.UnsignedGreaterThan: return operand1 > operand2; case ConditionCode.UnsignedLessOrEqual: return operand1 <= operand2; case ConditionCode.UnsignedLessThan: return operand1 < operand2; case ConditionCode.Always: return true; case ConditionCode.Never: return false; // unknown integer comparison default: return null; } } private void Branch(InstructionNode node) { //Debug.Assert(node.BranchTargets.Length == 1); foreach (var block in node.BranchTargets) { AddExecutionBlock(block); } } private void Switch(InstructionNode node) { // no optimization attempted Branch(node); } private void Phi(InstructionNode node) { //if (Trace.Active) Trace.Log(node.ToString()); var result = GetVariableState(node.Result); //UpdateToOverDefined(result); // test if (result.IsOverDefined) return; var sourceBlocks = node.PhiBlocks; var currentBlock = node.Block; //if (Trace.Active) Trace.Log("Loop: " + currentBlock.PreviousBlocks.Count.ToString()); for (var index = 0; index < currentBlock.PreviousBlocks.Count; index++) { var predecessor = sourceBlocks[index]; phiStatements.AddIfNew(predecessor, node); bool executable = blockStates[predecessor.Sequence]; //if (Trace.Active) Trace.Log("# " + index.ToString() + ": " + predecessor.ToString() + " " + (executable ? "Yes" : "No")); if (!executable) continue; if (result.IsOverDefined) continue; var op = node.GetOperand(index); var operand = GetVariableState(op); //if (Trace.Active) Trace.Log("# " + index.ToString() + ": " + operand.ToString()); if (operand.IsOverDefined) { UpdateToOverDefined(result); continue; } else if (operand.IsSingleConstant) { UpdateToConstant(result, operand.ConstantUnsignedLongInteger); continue; } else if (operand.HasMultipleConstants) { foreach (var c in operand.Constants) { UpdateToConstant(result, c); if (result.IsOverDefined) break; } } } } } }
23.612791
169
0.671246
[ "BSD-3-Clause" ]
uQr/MOSA-Project
Source/Mosa.Compiler.Framework/Analysis/SparseConditionalConstantPropagation.cs
20,309
C#