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 BowlingScore; using NUnit.Framework; using System; using System.IO; namespace OldProgramTests { class OldProgramTests { string[] games = new[] { "X|X|X|X|X|X|X|X|X|X||XX", // 300 - perfect game "X|15|1/|X|9/|X|X|X|X|X||12", // 206 "X|1/|X|5/|X|3/|X|8/|X|9/||X1/", // 200 - "scottish" 200 "X|1/|X|5/|X|3/|X|8/|X|--||", // 170 }; string origOutput = "Game: X|X|X|X|X|X|X|X|X|X||XX Score: 300" + Environment.NewLine + "Game: X|15|1/|X|9/|X|X|X|X|X||12 Score: 206" + Environment.NewLine + "Game: X|1/|X|5/|X|3/|X|8/|X|9/||X1/ Score: 200" + Environment.NewLine + "Game: X|1/|X|5/|X|3/|X|8/|X|--|| Score: 170" + Environment.NewLine; [SetUp] public void Setup() { } [Test] public void OldProgramCanScore() { var oldOut = Console.Out; var memstream = new MemoryStream(); var stream = new StreamWriter(memstream); stream.AutoFlush = true; Console.SetOut(stream); var p = new OldProgram(); p.ScoreGames(games); Console.SetOut(oldOut); memstream.Seek(0,SeekOrigin.Begin); var pgmOutput = new StreamReader(memstream); var output = pgmOutput.ReadToEnd(); Assert.AreEqual(origOutput, output); } } }
30.595745
100
0.502782
[ "MIT" ]
oshea00/BowlingScores
BowlingScore.Tests/OldProgramTests.cs
1,440
C#
using System; using System.Net.Http; using LianZhao; using MediaWiki.Query.AllCategories; using MediaWiki.Query.AllPages; using MediaWiki.Query.CategoryMembers; namespace MediaWiki.Query { public class QueryApiClient : DisposableObjectOwner { private readonly string _site; private readonly HttpClient _httpClient; private readonly Lazy<CategoryMembersApiClient> _cmLazy; private readonly Lazy<AllCategoriesApiClient> _acLazy; private readonly Lazy<AllPagesApiClient> _apLazy; public QueryApiClient(string site) : this(site, new HttpClient(), isOwner: true) { } public QueryApiClient(string site, HttpClient httpClient, bool isOwner = false) : base(httpClient, isOwner) { if (string.IsNullOrEmpty(site)) { throw new ArgumentNullException("site"); } if (httpClient == null) { throw new ArgumentNullException("httpClient"); } _site = site; _httpClient = httpClient; _cmLazy = new Lazy<CategoryMembersApiClient>(() => new CategoryMembersApiClient(_site, _httpClient, isOwner: false)); _acLazy = new Lazy<AllCategoriesApiClient>(() => new AllCategoriesApiClient(_site, _httpClient, isOwner: false)); _apLazy = new Lazy<AllPagesApiClient>(() => new AllPagesApiClient(_site, _httpClient, isOwner: false)); } public CategoryMembersApiClient CategoryMembers { get { return _cmLazy.Value; } } public AllCategoriesApiClient AllCategories { get { return _acLazy.Value; } } public AllPagesApiClient AllPages { get { return _apLazy.Value; } } } }
28.619718
130
0.561024
[ "MIT" ]
lianzhao/WikiaWP
src/MediaWikiSDK/Query/QueryApiClient.cs
2,034
C#
using System.Data.Entity; using MeetingRoomBookingSystem.Migrations; using MeetingRoomBookingSystem.Models; using Microsoft.Owin; using Owin; [assembly: OwinStartupAttribute(typeof(MeetingRoomBookingSystem.Startup))] namespace MeetingRoomBookingSystem { public partial class Startup { public void Configuration(IAppBuilder app) { Database.SetInitializer( new MigrateDatabaseToLatestVersion<MeetingRoomBookingSystemDbContext, Configuration>()); ConfigureAuth(app); } } }
26.142857
104
0.726776
[ "MIT" ]
kemeh/MeetingRoomBooking
MeetingRoomBookingSystem/Startup.cs
551
C#
#if (UNITY_WINRT || UNITY_WP_8_1) && !UNITY_EDITOR && !UNITY_WP8 #region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. #endregion using System; namespace Newtonsoft.Json.Utilities { /// <summary> /// Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer. /// </summary> internal class StringBuffer { private char[] _buffer; private int _position; private static readonly char[] EmptyBuffer = new char[0]; public int Position { get { return _position; } set { _position = value; } } public StringBuffer() { _buffer = EmptyBuffer; } public StringBuffer(int initalSize) { _buffer = new char[initalSize]; } public void Append(char value) { // test if the buffer array is large enough to take the value if (_position == _buffer.Length) EnsureSize(1); // set value and increment poisition _buffer[_position++] = value; } public void Append(char[] buffer, int startIndex, int count) { if (_position + count >= _buffer.Length) EnsureSize(count); Array.Copy(buffer, startIndex, _buffer, _position, count); _position += count; } public void Clear() { _buffer = EmptyBuffer; _position = 0; } private void EnsureSize(int appendLength) { char[] newBuffer = new char[(_position + appendLength) * 2]; Array.Copy(_buffer, newBuffer, _position); _buffer = newBuffer; } public override string ToString() { return ToString(0, _position); } public string ToString(int start, int length) { // TODO: validation return new string(_buffer, start, length); } public char[] GetInternalBuffer() { return _buffer; } } } #endif
26.724771
91
0.672503
[ "Apache-2.0" ]
1st-SE-HCMUS/SpaceCrushUnity
Assets/JsonDotNet/Source/WinRT/Utilities/RT_StringBuffer.cs
2,913
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("AgileSqlClub.SqlPackageFilter")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("AgileSqlClub.SqlPackageFilter")] [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("ed47054b-a071-478f-94c3-dc3bfbace843")] // 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.4.4.0")] [assembly: AssemblyFileVersion("1.4.4.0")]
39.638889
85
0.728101
[ "MIT" ]
Jegapriya/Agile-Club-dll-file
SqlPackageFilter/Properties/AssemblyInfo.cs
1,430
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org) // Copyright (c) 2018-2021 Stride and its contributors (https://stride3d.net) // Copyright (c) 2011-2018 Silicon Studio Corp. (https://www.siliconstudio.co.jp) // See the LICENSE.md file in the project root for full license information. using Stride.Core; namespace Stride.Rendering.Images { /// <summary> /// The tonemap Reinhard operator. /// </summary> [DataContract("ToneMapReinhardOperator")] [Display("Reinhard")] public class ToneMapReinhardOperator : ToneMapCommonOperator { /// <summary> /// Initializes a new instance of the <see cref="ToneMapReinhardOperator"/> class. /// </summary> public ToneMapReinhardOperator() : base("ToneMapReinhardOperatorShader") { } } }
32.730769
90
0.668625
[ "MIT" ]
Ethereal77/stride
sources/engine/Stride.Rendering/Rendering/Images/ColorTransforms/ToneMap/ToneMapReinhardOperator.cs
851
C#
using System; using System.Runtime.InteropServices; namespace AudioSyncMSNUI.WindowsMediaToLiveMessenger { class LiveMessengerWrapper { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct COPYDATASTRUCT { /// <summary> /// The size, in bytes, of the data pointed to by the lpData member. /// </summary> public IntPtr dwData; /// <summary> /// The type of the data to be passed to the receiving application. The receiving application defines the valid types. /// </summary> public int cbData; /// <summary> /// The data to be passed to the receiving application. This member can be NULL. /// </summary> //[MarshalAs(UnmanagedType.LPStr)] public string lpData; } [DllImport("User32.dll", EntryPoint = "FindWindowEx", CharSet = CharSet.Unicode, SetLastError = false)] public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string className, string windowTitle); [DllImport("User32.dll", EntryPoint = "SendMessage", CharSet = CharSet.Auto, SetLastError = false)] public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, ref COPYDATASTRUCT lParam); [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern bool SendMessageTimeout(IntPtr hwnd, uint wMsg, IntPtr wParam, ref COPYDATASTRUCT lParam, uint fuFlags, uint uTimeout, out uint lpdwResult); /// <summary> /// This is a constant defined on the /// Data copy documentation /// <seealso cref="https://docs.microsoft.com/en-us/windows/win32/dataxchg/wm-copydata"/> /// </summary> private const uint WM_COPYDATA = 0x004A; /// <summary> /// Magic number for the timeout message /// function. /// </summary> public const uint SMTO_ABORTIFHUNG = 0x0002; /// <summary> /// This is the window class for messenger, used /// to search for the application on Windows. /// </summary> public const string MESSENGER_CLASS = "MsnMsgrUIManager"; /// <summary> /// This is the structure of the message that /// Live messenger and messenger expects. /// </summary> private const string MSG_FORMAT = @"{0}\0{1}\0{2}\0{3}\0{4}\0{5}\0{6}\0WMContentID\0"; /// <summary> /// This is the format of the message that /// will be displayed on MSN. The values /// "{0}", "{1}" and "{3}", represent the /// song name, artist and album name /// respectively. /// </summary> private string _format = "On Windows 10: ♪♫{1} - {0}♪♫"; private const string _formatDefault = "On Windows 10: ♪♫{1} - {0}♪♫"; /// <summary> /// This is the format of the message that /// will be displayed on MSN. The values /// "{0}", "{1}" and "{3}", represent the /// song name, artist and album name /// respectively. /// </summary> public string MsgFormat { get => _format; set => _format = value.Length == 0 ? _formatDefault : value; } public void SendUpdate(string player, CurrentMedia currentMedia) { string message = BuildMessage(player, _format, currentMedia); SendToMSN(message); } public static void EndsUpdate(string player) { CurrentMedia noMedia = new("", "", "", false); string message = BuildMessage(player, "", noMedia); SendToMSN(message); } private static void SendToMSN(string message) { IntPtr messengerWindow = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "MsnMsgrUIManager", null); if (messengerWindow != IntPtr.Zero) { do { SendToMessenger(message, messengerWindow); messengerWindow = FindWindowEx(IntPtr.Zero, messengerWindow, "MsnMsgrUIManager", null); } while (messengerWindow != IntPtr.Zero); } } private static string BuildMessage(string player, string format, CurrentMedia currentMedia) { string isPlaying = currentMedia.isPlaying ? "1" : "0"; string message = string.Format(MSG_FORMAT, player, "Music", isPlaying, format, currentMedia.title, currentMedia.artist, currentMedia.album); return message; } private static void SendToMessenger(string message, IntPtr messengerWindow) { var payload = new COPYDATASTRUCT { dwData = (IntPtr)0x547, cbData = (message.Length * sizeof(char)) + 2, lpData = message }; _ = SendMessageTimeout(messengerWindow, WM_COPYDATA, IntPtr.Zero, ref payload, SMTO_ABORTIFHUNG, 3000u, out uint response); /*IntPtr response = SendMessage(messengerWindow, WM_COPYDATA, IntPtr.Zero, ref payload); System.Diagnostics.Debug.WriteLine("Enviado " + message); System.Diagnostics.Debug.WriteLine($"a la ventana: {messengerWindow}"); System.Diagnostics.Debug.WriteLine($"Recibí {response} de messenger");*/ } } }
38.099338
135
0.557101
[ "MIT" ]
cawolfkreo/WindowsMediaToLiveMessenger
TasktrayUI/WindowsMediaToLiveMessenger/LiveMessengerWrapper.cs
5,772
C#
using System; using System.Reflection; namespace Kraken.Caching { [AttributeUsage( AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class CachedAttribute : Attribute { public CachedAttribute(Type manager, int durability) { if (manager == null) throw new ArgumentNullException(nameof(manager)); if (!typeof(ICacheManager) #if NETSTANDARD1_6 .GetTypeInfo() #endif .IsAssignableFrom(manager)) throw new ArgumentException($"Type '{manager.FullName}' does not implement {nameof(ICacheManager)}."); this.Manager = manager; this.Durability = durability; } public Type Manager { get; } public int Durability { get; } } }
23.305556
106
0.728248
[ "Apache-2.0" ]
MH1/Kraken.Caching
Kraken.Caching/Attributes/CachedAttribute.cs
841
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V3109</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><EnableLazyLoading>False</EnableLazyLoading><TrackingChangesEnable>False</TrackingChangesEnable><GenTrackingClasses>False</GenTrackingClasses><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>True</EnableSummaryComment><VirtualProp>False</VirtualProp><IncludeSerializeMethod>True</IncludeSerializeMethod><UseBaseClass>False</UseBaseClass><GenBaseClass>False</GenBaseClass><GenerateCloneMethod>True</GenerateCloneMethod><GenerateDataContracts>False</GenerateDataContracts><CodeBaseTag>Net35</CodeBaseTag><SerializeMethodName>Serialize</SerializeMethodName><DeserializeMethodName>Deserialize</DeserializeMethodName><SaveToFileMethodName>SaveToFile</SaveToFileMethodName><LoadFromFileMethodName>LoadFromFile</LoadFromFileMethodName><GenerateXMLAttributes>True</GenerateXMLAttributes><OrderXMLAttrib>False</OrderXMLAttrib><EnableEncoding>False</EnableEncoding><AutomaticProperties>False</AutomaticProperties><GenerateShouldSerialize>False</GenerateShouldSerialize><DisableDebug>False</DisableDebug><PropNameSpecified>Default</PropNameSpecified><Encoder>UTF8</Encoder><CustomUsings></CustomUsings><ExcludeIncludedTypes>True</ExcludeIncludedTypes><EnableInitializeFields>False</EnableInitializeFields> // </auto-generated> // ------------------------------------------------------------------------------ namespace Mim.V3109 { using System; using System.Diagnostics; using System.Xml.Serialization; using System.Collections; using System.Xml.Schema; using System.ComponentModel; using System.IO; using System.Text; [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.18239")] [System.SerializableAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(TypeName="RCCT_MT120101UK01.Agent", Namespace="urn:hl7-org:v3")] public partial class RCCT_MT120101UK01Agent { private II[] idField; private CV codeField; private AD[] addrField; private TEL[] telecomField; private object itemField; private object item1Field; private string typeField; private string classCodeField; private string[] typeIDField; private string[] realmCodeField; private string nullFlavorField; private static System.Xml.Serialization.XmlSerializer serializer; public RCCT_MT120101UK01Agent() { this.typeField = "RoleHeir"; this.classCodeField = "AGNT"; } [System.Xml.Serialization.XmlElementAttribute("id")] public II[] id { get { return this.idField; } set { this.idField = value; } } public CV code { get { return this.codeField; } set { this.codeField = value; } } [System.Xml.Serialization.XmlElementAttribute("addr")] public AD[] addr { get { return this.addrField; } set { this.addrField = value; } } [System.Xml.Serialization.XmlElementAttribute("telecom")] public TEL[] telecom { get { return this.telecomField; } set { this.telecomField = value; } } [System.Xml.Serialization.XmlElementAttribute("agentDevice", typeof(RCCT_MT120101UK01Device))] [System.Xml.Serialization.XmlElementAttribute("agentDeviceSDS", typeof(RCCT_MT120101UK01DeviceSDS))] [System.Xml.Serialization.XmlElementAttribute("agentOrganization", typeof(RCCT_MT120101UK01Organization))] [System.Xml.Serialization.XmlElementAttribute("agentOrganizationSDS", typeof(RCCT_MT120101UK01OrganizationSDS))] [System.Xml.Serialization.XmlElementAttribute("agentPerson", typeof(RCCT_MT120101UK01Person))] [System.Xml.Serialization.XmlElementAttribute("agentPersonSDS", typeof(RCCT_MT120101UK01PersonSDS))] public object Item { get { return this.itemField; } set { this.itemField = value; } } [System.Xml.Serialization.XmlElementAttribute("representedOrganization", typeof(RCCT_MT120101UK01Organization))] [System.Xml.Serialization.XmlElementAttribute("representedOrganizationSDS", typeof(RCCT_MT120101UK01OrganizationSDS))] [System.Xml.Serialization.XmlElementAttribute("representedPerson", typeof(RCCT_MT120101UK01Person))] [System.Xml.Serialization.XmlElementAttribute("representedPersonSDS", typeof(RCCT_MT120101UK01PersonSDS))] public object Item1 { get { return this.item1Field; } set { this.item1Field = value; } } [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")] public string type { get { return this.typeField; } set { this.typeField = value; } } [System.Xml.Serialization.XmlAttributeAttribute()] public string classCode { get { return this.classCodeField; } set { this.classCodeField = value; } } [System.Xml.Serialization.XmlAttributeAttribute()] public string[] typeID { get { return this.typeIDField; } set { this.typeIDField = value; } } [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")] public string[] realmCode { get { return this.realmCodeField; } set { this.realmCodeField = value; } } [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")] public string nullFlavor { get { return this.nullFlavorField; } set { this.nullFlavorField = value; } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(RCCT_MT120101UK01Agent)); } return serializer; } } #region Serialize/Deserialize /// <summary> /// Serializes current RCCT_MT120101UK01Agent object into an XML document /// </summary> /// <returns>string XML value</returns> public virtual string Serialize() { System.IO.StreamReader streamReader = null; System.IO.MemoryStream memoryStream = null; try { memoryStream = new System.IO.MemoryStream(); Serializer.Serialize(memoryStream, this); memoryStream.Seek(0, System.IO.SeekOrigin.Begin); streamReader = new System.IO.StreamReader(memoryStream); return streamReader.ReadToEnd(); } finally { if ((streamReader != null)) { streamReader.Dispose(); } if ((memoryStream != null)) { memoryStream.Dispose(); } } } /// <summary> /// Deserializes workflow markup into an RCCT_MT120101UK01Agent object /// </summary> /// <param name="xml">string workflow markup to deserialize</param> /// <param name="obj">Output RCCT_MT120101UK01Agent object</param> /// <param name="exception">output Exception value if deserialize failed</param> /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns> public static bool Deserialize(string xml, out RCCT_MT120101UK01Agent obj, out System.Exception exception) { exception = null; obj = default(RCCT_MT120101UK01Agent); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out RCCT_MT120101UK01Agent obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static RCCT_MT120101UK01Agent Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((RCCT_MT120101UK01Agent)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// <summary> /// Serializes current RCCT_MT120101UK01Agent object into file /// </summary> /// <param name="fileName">full path of outupt xml file</param> /// <param name="exception">output Exception value if failed</param> /// <returns>true if can serialize and save into file; otherwise, false</returns> public virtual bool SaveToFile(string fileName, out System.Exception exception) { exception = null; try { SaveToFile(fileName); return true; } catch (System.Exception e) { exception = e; return false; } } public virtual void SaveToFile(string fileName) { System.IO.StreamWriter streamWriter = null; try { string xmlString = Serialize(); System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName); streamWriter = xmlFile.CreateText(); streamWriter.WriteLine(xmlString); streamWriter.Close(); } finally { if ((streamWriter != null)) { streamWriter.Dispose(); } } } /// <summary> /// Deserializes xml markup from file into an RCCT_MT120101UK01Agent object /// </summary> /// <param name="fileName">string xml file to load and deserialize</param> /// <param name="obj">Output RCCT_MT120101UK01Agent object</param> /// <param name="exception">output Exception value if deserialize failed</param> /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns> public static bool LoadFromFile(string fileName, out RCCT_MT120101UK01Agent obj, out System.Exception exception) { exception = null; obj = default(RCCT_MT120101UK01Agent); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out RCCT_MT120101UK01Agent obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static RCCT_MT120101UK01Agent LoadFromFile(string fileName) { System.IO.FileStream file = null; System.IO.StreamReader sr = null; try { file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read); sr = new System.IO.StreamReader(file); string xmlString = sr.ReadToEnd(); sr.Close(); file.Close(); return Deserialize(xmlString); } finally { if ((file != null)) { file.Dispose(); } if ((sr != null)) { sr.Dispose(); } } } #endregion #region Clone method /// <summary> /// Create a clone of this RCCT_MT120101UK01Agent object /// </summary> public virtual RCCT_MT120101UK01Agent Clone() { return ((RCCT_MT120101UK01Agent)(this.MemberwiseClone())); } #endregion } }
39.696697
1,358
0.567668
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V3109/Generated/RCCT_MT120101UK01Agent.cs
13,219
C#
using System.Collections.Generic; using AdobeSignClient.V4.Client; using AdobeSignClient.V4.Model; using RestSharp; namespace AdobeSignClient.V4.Api { /// <summary> /// Represents a collection of functions to interact with the API endpoints /// </summary> public interface IWidgetsApi { /// <summary> /// Creates a widget and returns the Javascript snippet and URL to access the widget and widgetID in response to the /// client. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_write&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetCreationRequest">Information about the widget that you want to create.</param> /// <param name="xUserId">The ID of the user on whose behalf widget is being created.</param> /// <param name="xUserEmail"> /// The email address of the user on whose behalf widget is being created. If both X-User-Id and /// X-User-Email are provided then X-User-Id is given preference. If neither is specified then the user is inferred /// from the access token. /// </param> /// <returns>WidgetCreationResponse</returns> WidgetCreationResponse CreateWidget(string accessToken, WidgetCreationRequest widgetCreationRequest, string xUserId, string xUserEmail); /// <summary> /// Retrieves agreements for the widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>WidgetAgreements</returns> WidgetAgreements GetWidgetAgreements(string accessToken, string widgetId); /// <summary> /// Retrieves the audit trail of a widget identified by widgetId. PDF file stream containing audit trail information /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>byte[]</returns> byte[] GetWidgetAuditTrail(string accessToken, string widgetId); /// <summary> /// Gets a single combined PDF document for the documents associated with a widget. A File Stream of combined PDF /// document /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="versionId"> /// The version identifier of widget as provided by the API which retrieves information of a /// specific widget. If not provided then latest version will be used. /// </param> /// <param name="participantEmail">The email address of the participant to be used to retrieve documents.</param> /// <param name="auditReport">When set to YES, attach an audit report to the signed Widget PDF. Default value is false</param> /// <returns>byte[]</returns> byte[] GetWidgetCombinedDocument(string accessToken, string widgetId, string versionId, string participantEmail, bool? auditReport); /// <summary> /// Retrieves the file stream of a document of a widget. Raw stream of the file /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="documentId"> /// The document identifier, as retrieved from the API which fetches the documents of a specified /// widget /// </param> /// <returns>byte[]</returns> byte[] GetWidgetDocumentInfo(string accessToken, string widgetId, string documentId); /// <summary> /// Retrieves the IDs of the documents associated with widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="versionId"> /// The version identifier of widget as provided by the API which retrieves information of a /// specific widget. If not provided then latest version will be used. /// </param> /// <param name="participantEmail">The email address of the participant to be used to retrieve documents.</param> /// <returns>WidgetDocuments</returns> WidgetDocuments GetWidgetDocuments(string accessToken, string widgetId, string versionId, string participantEmail); /// <summary> /// Retrieves data entered by the user into interactive form fields at the time they signed the widget CSV file stream /// containing form data information /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>byte[]</returns> byte[] GetWidgetFormData(string accessToken, string widgetId); /// <summary> /// Retrieves the details of a widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>WidgetInfo</returns> WidgetInfo GetWidgetInfo(string accessToken, string widgetId); /// <summary> /// Retrieves widgets for a user. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="xUserId">The ID of the user whose widgets are being requested.</param> /// <param name="xUserEmail"> /// The email address of the user whose widgets are being requested. If both X-User-Id and /// X-User-Email are provided then X-User-Id is given preference. If neither is specified then the user is inferred /// from the access token. /// </param> /// <returns>UserWidgets</returns> UserWidgets GetWidgets(string accessToken, string xUserId, string xUserEmail); /// <summary> /// Personalize the widget to a signable document for a specific known user /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_write&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="widgetPersonalizationInfo">Widget Personalize update information object</param> /// <returns>WidgetPersonalizeResponse</returns> WidgetPersonalizeResponse UpdateWidgetPersonalize(string accessToken, string widgetId, WidgetPersonalizationInfo widgetPersonalizationInfo); /// <summary> /// Enables or Disables a widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_write&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="widgetStatusUpdateInfo">Widget status update information object.</param> /// <returns>WidgetStatusUpdateResponse</returns> WidgetStatusUpdateResponse UpdateWidgetStatus(string accessToken, string widgetId, WidgetStatusUpdateInfo widgetStatusUpdateInfo); } /// <summary> /// Represents a collection of functions to interact with the API endpoints /// </summary> public class WidgetsApi : IWidgetsApi { /// <summary> /// Initializes a new instance of the <see cref="WidgetsApi" /> class. /// </summary> /// <param name="apiClient"> an instance of ApiClient (optional)</param> /// <returns></returns> public WidgetsApi(ApiClient apiClient = null) { if (apiClient == null) // use the default one in Configuration ApiClient = Configuration.DefaultApiClient; else ApiClient = apiClient; } /// <summary> /// Initializes a new instance of the <see cref="WidgetsApi" /> class. /// </summary> /// <returns></returns> public WidgetsApi(string basePath) { ApiClient = new ApiClient(basePath); } /// <summary> /// Gets or sets the API client. /// </summary> /// <value>An instance of the ApiClient</value> public ApiClient ApiClient { get; set; } /// <summary> /// Creates a widget and returns the Javascript snippet and URL to access the widget and widgetID in response to the /// client. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_write&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetCreationRequest">Information about the widget that you want to create.</param> /// <param name="xUserId">The ID of the user on whose behalf widget is being created.</param> /// <param name="xUserEmail"> /// The email address of the user on whose behalf widget is being created. If both X-User-Id and /// X-User-Email are provided then X-User-Id is given preference. If neither is specified then the user is inferred /// from the access token. /// </param> /// <returns>WidgetCreationResponse</returns> public WidgetCreationResponse CreateWidget(string accessToken, WidgetCreationRequest widgetCreationRequest, string xUserId, string xUserEmail) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling CreateWidget"); // verify the required parameter 'widgetCreationRequest' is set if (widgetCreationRequest == null) throw new ApiException(400, "Missing required parameter 'widgetCreationRequest' when calling CreateWidget"); string path = "/widgets"; path = path.Replace("{format}", "json"); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter if (xUserId != null) headerParams.Add("x-user-id", ApiClient.ParameterToString(xUserId)); // header parameter if (xUserEmail != null) headerParams.Add("x-user-email", ApiClient.ParameterToString(xUserEmail)); // header parameter postBody = ApiClient.Serialize(widgetCreationRequest); // http body (model) parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling CreateWidget: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling CreateWidget: " + response.ErrorMessage, response.ErrorMessage); return (WidgetCreationResponse) ApiClient.Deserialize(response.Content, typeof(WidgetCreationResponse), response.Headers); } /// <summary> /// Retrieves agreements for the widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>WidgetAgreements</returns> public WidgetAgreements GetWidgetAgreements(string accessToken, string widgetId) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetAgreements"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetAgreements"); string path = "/widgets/{widgetId}/agreements"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetAgreements: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetAgreements: " + response.ErrorMessage, response.ErrorMessage); return (WidgetAgreements) ApiClient.Deserialize(response.Content, typeof(WidgetAgreements), response.Headers); } /// <summary> /// Retrieves the audit trail of a widget identified by widgetId. PDF file stream containing audit trail information /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>byte[]</returns> public byte[] GetWidgetAuditTrail(string accessToken, string widgetId) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetAuditTrail"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetAuditTrail"); string path = "/widgets/{widgetId}/auditTrail"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetAuditTrail: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetAuditTrail: " + response.ErrorMessage, response.ErrorMessage); return (byte[]) ApiClient.Deserialize(response.Content, typeof(byte[]), response.Headers); } /// <summary> /// Gets a single combined PDF document for the documents associated with a widget. A File Stream of combined PDF /// document /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="versionId"> /// The version identifier of widget as provided by the API which retrieves information of a /// specific widget. If not provided then latest version will be used. /// </param> /// <param name="participantEmail">The email address of the participant to be used to retrieve documents.</param> /// <param name="auditReport">When set to YES, attach an audit report to the signed Widget PDF. Default value is false</param> /// <returns>byte[]</returns> public byte[] GetWidgetCombinedDocument(string accessToken, string widgetId, string versionId, string participantEmail, bool? auditReport) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetCombinedDocument"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetCombinedDocument"); string path = "/widgets/{widgetId}/combinedDocument"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (versionId != null) queryParams.Add("versionId", ApiClient.ParameterToString(versionId)); // query parameter if (participantEmail != null) queryParams.Add("participantEmail", ApiClient.ParameterToString(participantEmail)); // query parameter if (auditReport != null) queryParams.Add("auditReport", ApiClient.ParameterToString(auditReport)); // query parameter if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetCombinedDocument: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetCombinedDocument: " + response.ErrorMessage, response.ErrorMessage); return (byte[]) ApiClient.Deserialize(response.Content, typeof(byte[]), response.Headers); } /// <summary> /// Retrieves the file stream of a document of a widget. Raw stream of the file /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="documentId"> /// The document identifier, as retrieved from the API which fetches the documents of a specified /// widget /// </param> /// <returns>byte[]</returns> public byte[] GetWidgetDocumentInfo(string accessToken, string widgetId, string documentId) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetDocumentInfo"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetDocumentInfo"); // verify the required parameter 'documentId' is set if (documentId == null) throw new ApiException(400, "Missing required parameter 'documentId' when calling GetWidgetDocumentInfo"); string path = "/widgets/{widgetId}/documents/{documentId}"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); path = path.Replace("{" + "documentId" + "}", ApiClient.ParameterToString(documentId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetDocumentInfo: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetDocumentInfo: " + response.ErrorMessage, response.ErrorMessage); return (byte[]) ApiClient.Deserialize(response.Content, typeof(byte[]), response.Headers); } /// <summary> /// Retrieves the IDs of the documents associated with widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="versionId"> /// The version identifier of widget as provided by the API which retrieves information of a /// specific widget. If not provided then latest version will be used. /// </param> /// <param name="participantEmail">The email address of the participant to be used to retrieve documents.</param> /// <returns>WidgetDocuments</returns> public WidgetDocuments GetWidgetDocuments(string accessToken, string widgetId, string versionId, string participantEmail) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetDocuments"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetDocuments"); string path = "/widgets/{widgetId}/documents"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (versionId != null) queryParams.Add("versionId", ApiClient.ParameterToString(versionId)); // query parameter if (participantEmail != null) queryParams.Add("participantEmail", ApiClient.ParameterToString(participantEmail)); // query parameter if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetDocuments: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetDocuments: " + response.ErrorMessage, response.ErrorMessage); return (WidgetDocuments) ApiClient.Deserialize(response.Content, typeof(WidgetDocuments), response.Headers); } /// <summary> /// Retrieves data entered by the user into interactive form fields at the time they signed the widget CSV file stream /// containing form data information /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>byte[]</returns> public byte[] GetWidgetFormData(string accessToken, string widgetId) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetFormData"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetFormData"); string path = "/widgets/{widgetId}/formData"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetFormData: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetFormData: " + response.ErrorMessage, response.ErrorMessage); return (byte[]) ApiClient.Deserialize(response.Content, typeof(byte[]), response.Headers); } /// <summary> /// Retrieves the details of a widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <returns>WidgetInfo</returns> public WidgetInfo GetWidgetInfo(string accessToken, string widgetId) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgetInfo"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling GetWidgetInfo"); string path = "/widgets/{widgetId}"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetInfo: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgetInfo: " + response.ErrorMessage, response.ErrorMessage); return (WidgetInfo) ApiClient.Deserialize(response.Content, typeof(WidgetInfo), response.Headers); } /// <summary> /// Retrieves widgets for a user. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_read&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_read&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="xUserId">The ID of the user whose widgets are being requested.</param> /// <param name="xUserEmail"> /// The email address of the user whose widgets are being requested. If both X-User-Id and /// X-User-Email are provided then X-User-Id is given preference. If neither is specified then the user is inferred /// from the access token. /// </param> /// <returns>UserWidgets</returns> public UserWidgets GetWidgets(string accessToken, string xUserId, string xUserEmail) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling GetWidgets"); string path = "/widgets"; path = path.Replace("{format}", "json"); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter if (xUserId != null) headerParams.Add("x-user-id", ApiClient.ParameterToString(xUserId)); // header parameter if (xUserEmail != null) headerParams.Add("x-user-email", ApiClient.ParameterToString(xUserEmail)); // header parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling GetWidgets: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling GetWidgets: " + response.ErrorMessage, response.ErrorMessage); return (UserWidgets) ApiClient.Deserialize(response.Content, typeof(UserWidgets), response.Headers); } /// <summary> /// Personalize the widget to a signable document for a specific known user /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_write&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="widgetPersonalizationInfo">Widget Personalize update information object</param> /// <returns>WidgetPersonalizeResponse</returns> public WidgetPersonalizeResponse UpdateWidgetPersonalize(string accessToken, string widgetId, WidgetPersonalizationInfo widgetPersonalizationInfo) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling UpdateWidgetPersonalize"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling UpdateWidgetPersonalize"); // verify the required parameter 'widgetPersonalizationInfo' is set if (widgetPersonalizationInfo == null) throw new ApiException(400, "Missing required parameter 'widgetPersonalizationInfo' when calling UpdateWidgetPersonalize"); string path = "/widgets/{widgetId}/personalize"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter postBody = ApiClient.Serialize(widgetPersonalizationInfo); // http body (model) parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling UpdateWidgetPersonalize: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling UpdateWidgetPersonalize: " + response.ErrorMessage, response.ErrorMessage); return (WidgetPersonalizeResponse) ApiClient.Deserialize(response.Content, typeof(WidgetPersonalizeResponse), response.Headers); } /// <summary> /// Enables or Disables a widget. /// </summary> /// <param name="accessToken"> /// An &lt;a href&#x3D;\&quot;#\&quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; /// oncontextmenu&#x3D;\&quot;this.href&#x3D;oauthDoc()\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;OAuth Access Token /// &lt;/a&gt; with scopes:&lt;ul&gt;&lt;li style&#x3D;&#39;list-style-type: square&#39;&gt;&lt;a href&#x3D;\&quot;#\ /// &quot; onclick&#x3D;\&quot;this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; oncontextmenu&#x3D;\&quot; /// this.href&#x3D;oauthDoc(&#39;widget_write&#39;)\&quot; target&#x3D;\&quot;oauthDoc\&quot;&gt;widget_write&lt;/a&gt; /// &lt;/li&gt;&lt;/ul&gt; /// </param> /// <param name="widgetId"> /// The widget identifier, as returned by the widget creation API or retrieved from the API to fetch /// widgets. /// </param> /// <param name="widgetStatusUpdateInfo">Widget status update information object.</param> /// <returns>WidgetStatusUpdateResponse</returns> public WidgetStatusUpdateResponse UpdateWidgetStatus(string accessToken, string widgetId, WidgetStatusUpdateInfo widgetStatusUpdateInfo) { // verify the required parameter 'accessToken' is set if (accessToken == null) throw new ApiException(400, "Missing required parameter 'accessToken' when calling UpdateWidgetStatus"); // verify the required parameter 'widgetId' is set if (widgetId == null) throw new ApiException(400, "Missing required parameter 'widgetId' when calling UpdateWidgetStatus"); // verify the required parameter 'widgetStatusUpdateInfo' is set if (widgetStatusUpdateInfo == null) throw new ApiException(400, "Missing required parameter 'widgetStatusUpdateInfo' when calling UpdateWidgetStatus"); string path = "/widgets/{widgetId}/status"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "widgetId" + "}", ApiClient.ParameterToString(widgetId)); Dictionary<string, string> queryParams = new Dictionary<string, string>(); Dictionary<string, string> headerParams = new Dictionary<string, string>(); Dictionary<string, string> formParams = new Dictionary<string, string>(); Dictionary<string, FileParameter> fileParams = new Dictionary<string, FileParameter>(); string postBody = null; if (accessToken != null) headerParams.Add("Access-Token", ApiClient.ParameterToString(accessToken)); // header parameter postBody = ApiClient.Serialize(widgetStatusUpdateInfo); // http body (model) parameter // authentication setting, if any string[] authSettings = { }; // make the HTTP request IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if ((int) response.StatusCode >= 400) throw new ApiException((int) response.StatusCode, "Error calling UpdateWidgetStatus: " + response.Content, response.Content); if ((int) response.StatusCode == 0) throw new ApiException((int) response.StatusCode, "Error calling UpdateWidgetStatus: " + response.ErrorMessage, response.ErrorMessage); return (WidgetStatusUpdateResponse) ApiClient.Deserialize(response.Content, typeof(WidgetStatusUpdateResponse), response.Headers); } /// <summary> /// Gets the base path of the API client. /// </summary> /// <param name="basePath">The base path</param> /// <value>The base path</value> public string GetBasePath(string basePath) => ApiClient.BasePath; /// <summary> /// Sets the base path of the API client. /// </summary> /// <param name="basePath">The base path</param> /// <value>The base path</value> public void SetBasePath(string basePath) { ApiClient.BasePath = basePath; } } }
62.95618
174
0.622477
[ "Apache-2.0" ]
superbee66/AdobeSignCSharpSdk
v4/src/main/CsharpDotNet2/IO/Swagger/Api/WidgetsApi.cs
56,031
C#
// // Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // * Neither the name of Jaroslaw Kowalski nor the names of its // contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT OWNER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) 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 THIS SOFTWARE, EVEN IF ADVISED OF // THE POSSIBILITY OF SUCH DAMAGE. // namespace NLog.LayoutRenderers { using System; using System.ComponentModel; using System.Text; using NLog.Config; using NLog.Internal; /// <summary> /// Globally-unique identifier (GUID). /// </summary> [LayoutRenderer("guid")] [ThreadSafe] [ThreadAgnostic] public class GuidLayoutRenderer : LayoutRenderer, IRawValue, IStringValueRenderer { /// <summary> /// Gets or sets the GUID format as accepted by Guid.ToString() method. /// </summary> /// <docgen category='Rendering Options' order='10' /> [DefaultValue("N")] public string Format { get; set; } = "N"; /// <summary> /// Generate the Guid from the NLog LogEvent (Will be the same for all targets) /// </summary> /// <docgen category='Rendering Options' order='100' /> [DefaultValue(false)] public bool GeneratedFromLogEvent { get; set; } /// <inheritdoc/> protected override void Append(StringBuilder builder, LogEventInfo logEvent) { builder.Append(GetStringValue(logEvent)); } /// <inheritdoc/> bool IRawValue.TryGetRawValue(LogEventInfo logEvent, out object value) { value = GetValue(logEvent); return true; } /// <inheritdoc/> string IStringValueRenderer.GetFormattedString(LogEventInfo logEvent) => GetStringValue(logEvent); private string GetStringValue(LogEventInfo logEvent) { return GetValue(logEvent).ToString(Format); } private Guid GetValue(LogEventInfo logEvent) { Guid guid; if (GeneratedFromLogEvent) { int hashCode = logEvent.GetHashCode(); short b = (short)((hashCode >> 16) & 0XFFFF); short c = (short)(hashCode & 0XFFFF); long zeroDateTicks = LogEventInfo.ZeroDate.Ticks; byte d = (byte)((zeroDateTicks >> 56) & 0xFF); byte e = (byte)((zeroDateTicks >> 48) & 0xFF); byte f = (byte)((zeroDateTicks >> 40) & 0xFF); byte g = (byte)((zeroDateTicks >> 32) & 0xFF); byte h = (byte)((zeroDateTicks >> 24) & 0xFF); byte i = (byte)((zeroDateTicks >> 16) & 0xFF); byte j = (byte)((zeroDateTicks >> 8) & 0xFF); byte k = (byte)(zeroDateTicks & 0XFF); guid = new Guid(logEvent.SequenceID, b, c, d, e, f, g, h, i, j, k); } else { guid = Guid.NewGuid(); } return guid; } } }
38.901786
106
0.622217
[ "BSD-3-Clause" ]
AlanLiu90/NLog
src/NLog/LayoutRenderers/Counters/GuidLayoutRenderer.cs
4,357
C#
// Project: Daggerfall Tools For Unity // Copyright: Copyright (C) 2009-2020 Daggerfall Workshop // Web Site: http://www.dfworkshop.net // License: MIT License (http://www.opensource.org/licenses/mit-license.php) // Source Code: https://github.com/Interkarma/daggerfall-unity // Original Author: TheLacus // Contributors: // // Notes: // using System.Collections; using System.IO; using UnityEngine; using DaggerfallWorkshop.Game.Utility.ModSupport; namespace DaggerfallWorkshop.Utility.AssetInjection { /// <summary> /// Handles import and injection of custom sounds and songs with the purpose of providing modding support. /// Sound files are imported from mod bundles with load order or loaded directly from disk. /// </summary> public static class SoundReplacement { #region Fields & Properties static readonly string soundPath = Path.Combine(Application.streamingAssetsPath, "Sound"); /// <summary> /// Path to custom sounds and songs on disk. /// </summary> public static string SoundPath { get { return soundPath; } } #endregion #region Public Methods /// <summary> /// Seek sound from mods. /// </summary> /// <param name="sound">Sound clip to seek.</param> /// <param name="audioClip">Audioclip with imported sound data.</param> /// <returns>True if sound is found.</returns> public static bool TryImportSound(SoundClips sound, out AudioClip audioClip) { return TryImportAudioClip(sound.ToString(), ".wav", false, out audioClip); } /// <summary> /// Seek song from mods. /// </summary> /// <param name="song">Song to seek.</param> /// <param name="audioClip">Audioclip with imported sound data.</param> /// <returns>True if song is found.</returns> public static bool TryImportSong(SongFiles song, out AudioClip audioClip) { return TryImportAudioClip(song.ToString(), ".ogg", true, out audioClip); } /// <summary> /// Seek midi song from mods. /// </summary> /// <param name="filename">Name of song to seek including .mid extension.</param> /// <param name="songBytes">Midi data as a byte array.</param> /// <returns>True if song is found.</returns> public static bool TryImportMidiSong(string filename, out byte[] songBytes) { return TryGetAudioBytes("song_" + filename, out songBytes); } #endregion #region Private Methods /// <summary> /// Import sound data from modding locations as an audio clip. /// </summary> private static bool TryImportAudioClip(string name, string extension, bool streaming, out AudioClip audioClip) { if (DaggerfallUnity.Settings.AssetInjection) { // Seek from loose files string path = Path.Combine(soundPath, name + extension); if (File.Exists(path)) { WWW www = new WWW("file://" + path); if (streaming) { audioClip = www.GetAudioClip(true, true); } else { audioClip = www.GetAudioClip(); DaggerfallUnity.Instance.StartCoroutine(LoadAudioData(www, audioClip)); } return true; } // Seek from mods if (ModManager.Instance != null && ModManager.Instance.TryGetAsset(name, false, out audioClip)) { if (audioClip.preloadAudioData || audioClip.LoadAudioData()) return true; Debug.LogErrorFormat("Failed to load audiodata for audioclip {0}", name); } } audioClip = null; return false; } /// <summary> /// Import midi data from modding locations as a byte array. /// </summary> private static bool TryGetAudioBytes(string name, out byte[] songBytes) { if (DaggerfallUnity.Settings.AssetInjection) { // Seek from loose files string path = Path.Combine(soundPath, name); if (File.Exists(path)) { songBytes = File.ReadAllBytes(path); return true; } // Seek from mods if (ModManager.Instance != null) { TextAsset textAsset; if (ModManager.Instance.TryGetAsset(name, false, out textAsset)) { songBytes = textAsset.bytes; return true; } } } songBytes = null; return false; } /// <summary> /// Load audio data from WWW in background. /// </summary> private static IEnumerator LoadAudioData(WWW www, AudioClip clip) { yield return www; if (clip.loadState == AudioDataLoadState.Failed) Debug.LogErrorFormat("Failed to load audioclip: {0}", www.error); www.Dispose(); } #endregion } }
34.006173
118
0.537847
[ "MIT" ]
BibleUs/daggerfall-unity
Assets/Scripts/Utility/AssetInjection/SoundReplacement.cs
5,511
C#
using ExtraOptions; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEngine; using UnityEngine.UI; using Upgrade; public class OptionsUI : MonoBehaviour { public GameObject PlaymatSelector { get; private set; } public static OptionsUI Instance { get; private set; } public GameObject Selector { get; private set; } private const float FREE_SPACE_EXTRA_OPTIONS = 25f; private void Start() { Instance = this; } public void OnClickPlaymatChange(GameObject playmatImage) { PlayerPrefs.SetString("PlaymatName", playmatImage.name); PlayerPrefs.Save(); Options.Playmat = playmatImage.name; PlaymatSelector.transform.position = playmatImage.transform.position; } public void RestoreDefaults() { Options.Playmat = "3DSceneHoth"; Options.ChangeParameterValue("Music Volume", 0.25f); Options.ChangeParameterValue("SFX Volume", 0.25f); Options.ChangeParameterValue("Animation Speed", 0.25f); Options.ChangeParameterValue("Maneuver Speed", 0.25f); Options.InitializePanel(); } public void InitializeOptionsPanel() { CategorySelected(GameObject.Find("UI/Panels/OptionsPanel/Content/CategoriesPanel/PlayerButton")); } public void CategorySelected(GameObject categoryGO) { ClearOptionsView(); categoryGO.GetComponent<Image>().color = new Color(0, 0.5f, 1, 100f/256f); switch (categoryGO.GetComponentInChildren<Text>().text) { case "Avatar": ShowAvatarSelection(); break; case "Player": ShowPlayerView(); break; case "Animations": ShowViewSimple("Animations"); break; case "Sounds": ShowViewSimple("Sounds"); break; case "Playmat": ShowPlaymatSelection(); break; case "Background": ShowBackgroundSelection(); break; case "Extra": ShowExtraView(); break; default: break; } } private void ShowBackgroundSelection() { Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; string prefabPath = "Prefabs/MainMenu/Options/BackgroundSelectionViewPanel"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); GameObject imageListParent = Instantiate(prefab, parentTransform); imageListParent.name = "BackgroundSelectionViewPanel"; foreach (Sprite backgroundImage in Resources.LoadAll<Sprite>("Sprites/Backgrounds/MainMenu")) { GameObject backgroundGO = new GameObject(backgroundImage.name); backgroundGO.AddComponent<Image>().sprite = backgroundImage; backgroundGO.transform.SetParent(imageListParent.transform); backgroundGO.transform.localScale = Vector3.one; Button button = backgroundGO.AddComponent<Button>(); ColorBlock buttonColors = button.colors; buttonColors.normalColor = new Color(1, 1, 1, 200f / 256f); button.colors = buttonColors; button.onClick.AddListener(() => { SetBackgroundImageSelected(backgroundImage.name); }); } ChangeBackground(); } private void SetBackgroundImageSelected(string name) { PlayerPrefs.SetString("BackgroundImage", name); PlayerPrefs.Save(); Options.BackgroundImage = name; ChangeBackground(); MainMenu.SetBackground(); } private void ChangeBackground() { GameObject.Destroy(Selector); string prefabPath = "Prefabs/MainMenu/Options/Selector"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); Selector = Instantiate(prefab, GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel/BackgroundSelectionViewPanel/" + Options.BackgroundImage).transform); } private void ShowPlaymatSelection() { Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; string prefabPath = "Prefabs/MainMenu/Options/PlaymatSelectionViewPanel"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); GameObject imageListParent = Instantiate(prefab, parentTransform); imageListParent.name = "PlaymatSelectionViewPanel"; foreach (Sprite playmatSprite in Resources.LoadAll<Sprite>("Playmats/Thumbnails")) { GameObject playmatPreviewGO = new GameObject(playmatSprite.name); playmatPreviewGO.AddComponent<Image>().sprite = playmatSprite; playmatPreviewGO.transform.SetParent(imageListParent.transform); playmatPreviewGO.transform.localScale = Vector3.one; playmatPreviewGO.name = playmatSprite.name.Replace("Playmat", ""); Button button = playmatPreviewGO.AddComponent<Button>(); ColorBlock buttonColors = button.colors; buttonColors.normalColor = new Color(1, 1, 1, 200f / 256f); button.colors = buttonColors; string playmatName = playmatSprite.name.Replace("Thumbnail", "").Replace("Playmat", ""); if (playmatName == Options.Playmat) { SetPlaymatSelected(); } button.onClick.AddListener(() => { PlayerPrefs.SetString("PlaymatName", playmatName); PlayerPrefs.Save(); Options.Playmat = playmatName; SetPlaymatSelected(); }); } } private void ShowAvatarSelection() { Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; string prefabPath = "Prefabs/MainMenu/Options/AvatarSelectionViewPanel"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); GameObject imageListParent = Instantiate(prefab, parentTransform); imageListParent.name = "AvatarSelectionViewPanel"; /*List<Type> typelist = Assembly.GetExecutingAssembly().GetTypes() .Where(t => String.Equals(t.Namespace, "UpgradesList.FirstEdition", StringComparison.Ordinal)) .ToList();*/ List<Type> typelist = Assembly.GetExecutingAssembly().GetTypes() .Where(t => String.Equals(t.Namespace, "UpgradesList.FirstEdition", StringComparison.Ordinal) || String.Equals(t.Namespace, "UpgradesList.SecondEdition", StringComparison.Ordinal)) .ToList(); foreach (var type in typelist) { if (type.MemberType == MemberTypes.NestedType) continue; GenericUpgrade newUpgradeContainer = (GenericUpgrade)System.Activator.CreateInstance(type); if (newUpgradeContainer.UpgradeInfo.Name != null) { // && newUpgradeContainer.Avatar.AvatarFaction == CurrentAvatarsFaction if (newUpgradeContainer.Avatar != null) AddAvailableAvatar(newUpgradeContainer); } } } private void AddAvailableAvatar(GenericUpgrade avatarUpgrade) { GameObject prefab = (GameObject)Resources.Load("Prefabs/MainMenu/AvatarImage", typeof(GameObject)); GameObject avatarPanel = MonoBehaviour.Instantiate(prefab, GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel/AvatarSelectionViewPanel").transform); avatarPanel.name = avatarUpgrade.GetType().ToString(); AvatarFromUpgrade avatar = avatarPanel.GetComponent<AvatarFromUpgrade>(); avatar.Initialize(avatarUpgrade.GetType().ToString(), ChangeAvatar); if (avatarUpgrade.GetType().ToString() == Options.Avatar) { SetAvatarSelected(); } } private void ChangeAvatar(string avatarName) { Options.Avatar = avatarName; Options.ChangeParameterValue("Avatar", avatarName); SetAvatarSelected(); } private void ShowPlayerView() { Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; string prefabPath = "Prefabs/MainMenu/Options/PlayerViewPanel"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); GameObject panel = Instantiate(prefab, parentTransform); InputField nameText = panel.transform.Find("NameInputPanel/InputField").GetComponent<InputField>(); nameText.text = Options.NickName; nameText.onEndEdit.AddListener(delegate { MainMenu.CurrentMainMenu.ChangeNickName(nameText.text); }); panel.transform.Find("TitleInputPanel/InputField").GetComponent<InputField>().text = Options.Title; } private void ShowViewSimple(string name) { Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; string prefabPath = "Prefabs/MainMenu/Options/" + name + "ViewPanel"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); //GameObject panel = Instantiate(prefab, parentTransform); } private void ClearOptionsView() { Transform categoryTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/CategoriesPanel").transform; foreach (Transform transform in categoryTransform.transform) { transform.GetComponent<Image>().color = new Color(0, 0.5f, 1, 0); } Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; foreach (Transform transform in parentTransform.transform) { Destroy(transform.gameObject); } } private void SetAvatarSelected() { GameObject.Destroy(Selector); string prefabPath = "Prefabs/MainMenu/Options/Selector"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); Selector = Instantiate(prefab, GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel/AvatarSelectionViewPanel/" + Options.Avatar).transform); } private void SetPlaymatSelected() { GameObject.Destroy(Selector); string prefabPath = "Prefabs/MainMenu/Options/Selector"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); Selector = Instantiate(prefab, GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel/PlaymatSelectionViewPanel/" + Options.Playmat + "Thumbnail").transform); } private void ShowExtraView() { Transform parentTransform = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel").transform; string prefabPath = "Prefabs/MainMenu/Options/ExtraOptionsViewPanel"; GameObject prefab = (GameObject)Resources.Load(prefabPath, typeof(GameObject)); GameObject panel = Instantiate(prefab, parentTransform); panel.name = "ExtraOptionsViewPanel"; GameObject itemPrefab = (GameObject)Resources.Load("Prefabs/UI/ExtraOptionPanel", typeof(GameObject)); GameObject ExtraOptionsPanel = GameObject.Find("UI/Panels/OptionsPanel/Content/ContentViewPanel/ExtraOptionsViewPanel/Viewport/Content").gameObject; RectTransform modsPanelRectTransform = ExtraOptionsPanel.GetComponent<RectTransform>(); Vector3 currentPosition = new Vector3(modsPanelRectTransform.sizeDelta.x / 2, -FREE_SPACE_EXTRA_OPTIONS, ExtraOptionsPanel.transform.localPosition.z); foreach (Transform transform in ExtraOptionsPanel.transform) { Destroy(transform.gameObject); } modsPanelRectTransform.sizeDelta = new Vector2(modsPanelRectTransform.sizeDelta.x, 0); GameObject.Find("UI/Panels").transform.Find("ModsPanel").Find("Scroll View").GetComponentInChildren<ScrollRect>().verticalNormalizedPosition = 0f; foreach (var mod in ExtraOptionsManager.ExtraOptions) { GameObject ModRecord; ModRecord = MonoBehaviour.Instantiate(itemPrefab, ExtraOptionsPanel.transform); ModRecord.transform.localPosition = currentPosition; ModRecord.name = mod.Key.ToString(); ModRecord.transform.Find("Label").GetComponent<Text>().text = mod.Value.Name; Text description = ModRecord.transform.Find("Text").GetComponent<Text>(); description.text = mod.Value.Description; RectTransform descriptionRectTransform = description.GetComponent<RectTransform>(); descriptionRectTransform.sizeDelta = new Vector2(descriptionRectTransform.sizeDelta.x, description.preferredHeight); RectTransform modRecordRectTransform = ModRecord.GetComponent<RectTransform>(); modRecordRectTransform.sizeDelta = new Vector2(modRecordRectTransform.sizeDelta.x, modRecordRectTransform.sizeDelta.y + description.preferredHeight); currentPosition = new Vector3(currentPosition.x, currentPosition.y - modRecordRectTransform.sizeDelta.y - FREE_SPACE_EXTRA_OPTIONS, currentPosition.z); modsPanelRectTransform.sizeDelta = new Vector2(modsPanelRectTransform.sizeDelta.x, modsPanelRectTransform.sizeDelta.y + modRecordRectTransform.sizeDelta.y + FREE_SPACE_EXTRA_OPTIONS); ModRecord.transform.Find("Toggle").GetComponent<Toggle>().isOn = ExtraOptionsManager.ExtraOptions[mod.Key].IsOn; } } }
41.914634
195
0.67828
[ "MIT" ]
Leomaxson/FlyCasual
Assets/Scripts/MainMenu/View/OptionsUI.cs
13,750
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using DotNetCore.Web.Models; namespace DotNetCore.Web.Controllers { public class HomeController : Controller { private readonly ILogger<HomeController> _logger; public HomeController(ILogger<HomeController> logger) { _logger = logger; } public IActionResult Index() { return View(); } public IActionResult Privacy() { return View(); } [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } } }
24.394737
112
0.640777
[ "MIT" ]
htl-leo/dotnetcore
DotNetCore.Web/Controllers/HomeController.cs
929
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/vsstyle.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { public enum MENUPARTS { MENU_MENUITEM_TMSCHEMA = 1, MENU_MENUDROPDOWN_TMSCHEMA = 2, MENU_MENUBARITEM_TMSCHEMA = 3, MENU_MENUBARDROPDOWN_TMSCHEMA = 4, MENU_CHEVRON_TMSCHEMA = 5, MENU_SEPARATOR_TMSCHEMA = 6, MENU_BARBACKGROUND = 7, MENU_BARITEM = 8, MENU_POPUPBACKGROUND = 9, MENU_POPUPBORDERS = 10, MENU_POPUPCHECK = 11, MENU_POPUPCHECKBACKGROUND = 12, MENU_POPUPGUTTER = 13, MENU_POPUPITEM = 14, MENU_POPUPSEPARATOR = 15, MENU_POPUPSUBMENU = 16, MENU_SYSTEMCLOSE = 17, MENU_SYSTEMMAXIMIZE = 18, MENU_SYSTEMMINIMIZE = 19, MENU_SYSTEMRESTORE = 20, } }
32.375
145
0.660232
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/vsstyle/MENUPARTS.cs
1,038
C#
using System; using SJP.Schematic.Core; using SJP.Schematic.Core.Extensions; namespace SJP.Schematic.DataAccess; /// <summary> /// A set of rules for determining the class and property names for a database mapping object. /// </summary> public class VerbatimNameTranslator : NameTranslator { /// <summary> /// Return a namespace name for a schema qualified object name. /// </summary> /// <param name="objectName">An optionally qualified object name.</param> /// <returns><c>null</c> if <paramref name="objectName"/> does not contain a schema name or should not be used.</returns> public override string? SchemaToNamespace(Identifier objectName) { if (objectName == null) throw new ArgumentNullException(nameof(objectName)); if (objectName.Schema == null) return null; return CreateValidIdentifier(objectName.Schema); } /// <summary> /// Return a name for a table. /// </summary> /// <param name="tableName">An optionally qualified table name.</param> /// <returns>A class name.</returns> public override string TableToClassName(Identifier tableName) { if (tableName == null) throw new ArgumentNullException(nameof(tableName)); return CreateValidIdentifier(tableName.LocalName); } /// <summary> /// Return a name for a view. /// </summary> /// <param name="viewName">An optionally qualified view name.</param> /// <returns>A class name.</returns> public override string ViewToClassName(Identifier viewName) { if (viewName == null) throw new ArgumentNullException(nameof(viewName)); return CreateValidIdentifier(viewName.LocalName); } /// <summary> /// Return a property name for a column. /// </summary> /// <param name="className">The name of the class the column is a member of.</param> /// <param name="columnName">A column name.</param> /// <returns>A property name.</returns> public override string ColumnToPropertyName(string className, string columnName) { if (className.IsNullOrWhiteSpace()) throw new ArgumentNullException(nameof(className)); if (columnName.IsNullOrWhiteSpace()) throw new ArgumentNullException(nameof(columnName)); var isValid = IsValidIdentifier(columnName); var columnIdentifier = isValid ? columnName : CreateValidIdentifier(className, columnName); return string.Equals(columnIdentifier, className, StringComparison.Ordinal) ? columnIdentifier + "_" : columnIdentifier; } }
36.48
126
0.641082
[ "MIT" ]
sjp/SJP.Schema
src/SJP.Schematic.DataAccess/VerbatimNameTranslator.cs
2,664
C#
namespace InvestmentManagementReport.Model { public sealed class InvestmentManagementReportHeaders { public string CompanyName { get; set; } public string DocumentName { get; set; } public string FullNameShort { get; set; } public string FullNameTrust { get; set; } public string UnderAgreementDated { get; set; } public string AccountNumber { get; set; } public string StatementPeriodStart { get; set; } public string StatementPeriodEnd { get; set; } public string FooterText { get; set; } } }
38.6
57
0.658031
[ "Apache-2.0" ]
gehtsoft-usa/PDF.Flow.Examples
Examples/InvestmentManagementReport/Model/InvestmentManagementReportHeaders.cs
581
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/DirectML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.DirectX; /// <include file='DML_GRAPH_EDGE_TYPE.xml' path='doc/member[@name="DML_GRAPH_EDGE_TYPE"]/*' /> public enum DML_GRAPH_EDGE_TYPE { /// <include file='DML_GRAPH_EDGE_TYPE.xml' path='doc/member[@name="DML_GRAPH_EDGE_TYPE.DML_GRAPH_EDGE_TYPE_INVALID"]/*' /> DML_GRAPH_EDGE_TYPE_INVALID, /// <include file='DML_GRAPH_EDGE_TYPE.xml' path='doc/member[@name="DML_GRAPH_EDGE_TYPE.DML_GRAPH_EDGE_TYPE_INPUT"]/*' /> DML_GRAPH_EDGE_TYPE_INPUT, /// <include file='DML_GRAPH_EDGE_TYPE.xml' path='doc/member[@name="DML_GRAPH_EDGE_TYPE.DML_GRAPH_EDGE_TYPE_OUTPUT"]/*' /> DML_GRAPH_EDGE_TYPE_OUTPUT, /// <include file='DML_GRAPH_EDGE_TYPE.xml' path='doc/member[@name="DML_GRAPH_EDGE_TYPE.DML_GRAPH_EDGE_TYPE_INTERMEDIATE"]/*' /> DML_GRAPH_EDGE_TYPE_INTERMEDIATE, }
48.086957
145
0.764014
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/DirectML/DML_GRAPH_EDGE_TYPE.cs
1,108
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("POSUPClass.iOS")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("POSUPClass.iOS")] [assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] // 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.864865
84
0.744468
[ "MIT" ]
carlosleandro1/teste
UPMOBILE2017-master/src/POSUPClass/POSUPClass/POSUPClass.iOS/Properties/AssemblyInfo.cs
1,404
C#
namespace EnvironmentAssessment.Common.VimApi { public class GuestRegValueSpec : DynamicData { protected GuestRegValueNameSpec _name; protected GuestRegValueDataSpec _data; public GuestRegValueNameSpec Name { get { return this._name; } set { this._name = value; } } public GuestRegValueDataSpec Data { get { return this._data; } set { this._data = value; } } } }
14
45
0.652074
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/G/GuestRegValueSpec.cs
434
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(ICodepipelineArtifactStoreEncryptionKey), fullyQualifiedName: "aws.CodepipelineArtifactStoreEncryptionKey")] public interface ICodepipelineArtifactStoreEncryptionKey { [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"string\"}")] string Id { get; } [JsiiProperty(name: "type", typeJson: "{\"primitive\":\"string\"}")] string Type { get; } [JsiiTypeProxy(nativeType: typeof(ICodepipelineArtifactStoreEncryptionKey), fullyQualifiedName: "aws.CodepipelineArtifactStoreEncryptionKey")] internal sealed class _Proxy : DeputyBase, aws.ICodepipelineArtifactStoreEncryptionKey { private _Proxy(ByRefValue reference): base(reference) { } [JsiiProperty(name: "id", typeJson: "{\"primitive\":\"string\"}")] public string Id { get => GetInstanceProperty<string>()!; } [JsiiProperty(name: "type", typeJson: "{\"primitive\":\"string\"}")] public string Type { get => GetInstanceProperty<string>()!; } } } }
31
150
0.589647
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/ICodepipelineArtifactStoreEncryptionKey.cs
1,333
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; using Xunit.Abstractions; using Xunit.Sdk; namespace Roslyn.Test.Utilities { public class WpfFactDiscoverer : FactDiscoverer { private readonly IMessageSink _diagnosticMessageSink; /// <summary> /// The name of a <see cref="Semaphore"/> used to ensure that only a single /// <see cref="WpfFactAttribute"/>-attributed test runs at once. This requirement must be made because, /// currently, <see cref="WpfTestCase"/>'s logic sets various static state before a method runs. If two tests /// run interleaved on the same scheduler (i.e. if one yields with an await) then all bets are off. /// </summary> private readonly Guid _wpfTestSerializationGate = Guid.NewGuid(); public WpfFactDiscoverer(IMessageSink diagnosticMessageSink) : base(diagnosticMessageSink) { _diagnosticMessageSink = diagnosticMessageSink; } protected override IXunitTestCase CreateTestCase(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) => new WpfTestCase(_diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), testMethod, _wpfTestSerializationGate); } }
46.064516
161
0.72619
[ "Apache-2.0" ]
ElanHasson/roslyn
src/EditorFeatures/TestUtilities/Threading/WpfFactDiscoverer.cs
1,430
C#
namespace NWaves.Audio.Interfaces { /// <summary> /// Interface for audio recorders. /// </summary> public interface IAudioRecorder { /// <summary> /// Starts recording audio with specific settings. /// </summary> /// <param name="samplingRate">Sampling rate</param> /// <param name="channelCount">Number of channels (1=mono, 2=stereo)</param> /// <param name="bitsPerSample">Number of bits per sample (8, 16, 24 or 32)</param> void StartRecording(int samplingRate, short channelCount, short bitsPerSample); /// <summary> /// Stops recording audio and saves recorded sound to file or any other destination. /// </summary> /// <param name="destination">Path to output file (destination)</param> void StopRecording(string destination); } }
37.391304
92
0.624419
[ "MIT" ]
ar1st0crat/NWaves
NWaves/Audio/Interfaces/IAudioRecorder.cs
862
C#
using System; using System.Collections.Generic; using System.Text; namespace OOP3 { class MortgageLoanManager : ILoanManager { public void Calculate() { Console.WriteLine("Mortgage Loan Calculated!"); } } }
17.133333
59
0.626459
[ "MIT" ]
hamdidamar/Step-by-Step-Bootcamp
day-5/OOP3/MortgageLoanManager.cs
259
C#
using AutoMapper.Internal; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; namespace AutoMapper { [DebuggerDisplay("{RequestedTypes.SourceType.Name}, {RequestedTypes.DestinationType.Name} : {RuntimeTypes.SourceType.Name}, {RuntimeTypes.DestinationType.Name}")] public readonly struct MapRequest : IEquatable<MapRequest> { public TypePair RequestedTypes { get; } public TypePair RuntimeTypes { get; } public IMemberMap MemberMap { get; } public MapRequest(TypePair requestedTypes, TypePair runtimeTypes, IMemberMap memberMap = null) { RequestedTypes = requestedTypes; RuntimeTypes = runtimeTypes; MemberMap = memberMap; } public bool Equals(MapRequest other) => RequestedTypes.Equals(other.RequestedTypes) && RuntimeTypes.Equals(other.RuntimeTypes) && Equals(MemberMap, other.MemberMap); public override bool Equals(object obj) => obj is MapRequest other && Equals(other); public override int GetHashCode() { var hashCode = HashCodeCombiner.Combine(RequestedTypes, RuntimeTypes); if(MemberMap != null) { hashCode = HashCodeCombiner.Combine(hashCode, MemberMap.GetHashCode()); } return hashCode; } public static bool operator ==(MapRequest left, MapRequest right) => left.Equals(right); public static bool operator !=(MapRequest left, MapRequest right) => !left.Equals(right); } [DebuggerDisplay("{SourceType.Name}, {DestinationType.Name}")] public readonly struct TypePair : IEquatable<TypePair> { public static bool operator ==(TypePair left, TypePair right) => left.Equals(right); public static bool operator !=(TypePair left, TypePair right) => !left.Equals(right); public TypePair(Type sourceType, Type destinationType) { SourceType = sourceType; DestinationType = destinationType; } public Type SourceType { get; } public Type DestinationType { get; } public bool Equals(TypePair other) => SourceType == other.SourceType && DestinationType == other.DestinationType; public override bool Equals(object other) => other is TypePair otherPair && Equals(otherPair); public override int GetHashCode() => HashCodeCombiner.Combine(SourceType, DestinationType); public bool IsGeneric => SourceType.IsGenericType || DestinationType.IsGenericType; public bool IsGenericTypeDefinition => SourceType.IsGenericTypeDefinition || DestinationType.IsGenericTypeDefinition; public bool ContainsGenericParameters => SourceType.ContainsGenericParameters || DestinationType.ContainsGenericParameters; public TypePair? GetOpenGenericTypePair() { if(!IsGeneric) { return null; } var sourceGenericDefinition = SourceType.GetTypeDefinitionIfGeneric(); var destinationGenericDefinition = DestinationType.GetTypeDefinitionIfGeneric(); return new TypePair(sourceGenericDefinition, destinationGenericDefinition); } public TypePair CloseGenericTypes(TypePair closedTypes) { var sourceArguments = closedTypes.SourceType.GetGenericArguments(); var destinationArguments = closedTypes.DestinationType.GetGenericArguments(); if(sourceArguments.Length == 0) { sourceArguments = destinationArguments; } else if(destinationArguments.Length == 0) { destinationArguments = sourceArguments; } var closedSourceType = SourceType.IsGenericTypeDefinition ? SourceType.MakeGenericType(sourceArguments) : SourceType; var closedDestinationType = DestinationType.IsGenericTypeDefinition ? DestinationType.MakeGenericType(destinationArguments) : DestinationType; return new TypePair(closedSourceType, closedDestinationType); } public IEnumerable<TypePair> GetRelatedTypePairs() { var @this = this; var subTypePairs = from destinationType in GetAllTypes(DestinationType) from sourceType in GetAllTypes(@this.SourceType) select new TypePair(sourceType, destinationType); return subTypePairs; } private static IEnumerable<Type> GetAllTypes(Type type) { var typeInheritance = type.GetTypeInheritance(); foreach(var item in typeInheritance) { yield return item; } var interfaceComparer = new InterfaceComparer(type); var allInterfaces = type.GetTypeInfo().ImplementedInterfaces.OrderByDescending(t => t, interfaceComparer); foreach(var interfaceType in allInterfaces) { yield return interfaceType; } } private class InterfaceComparer : IComparer<Type> { private readonly List<TypeInfo> _typeInheritance; public InterfaceComparer(Type target) { _typeInheritance = target.GetTypeInheritance().Select(type => type.GetTypeInfo()).Reverse().ToList(); } public int Compare(Type x, Type y) { var xLessOrEqualY = x.IsAssignableFrom(y); var yLessOrEqualX = y.IsAssignableFrom(x); if (xLessOrEqualY & !yLessOrEqualX) { return -1; } if (!xLessOrEqualY & yLessOrEqualX) { return 1; } if (xLessOrEqualY & yLessOrEqualX) { return 0; } var xFirstIntroduceTypeIndex = _typeInheritance.FindIndex(type => type.ImplementedInterfaces.Contains(x)); var yFirstIntroduceTypeIndex = _typeInheritance.FindIndex(type => type.ImplementedInterfaces.Contains(y)); if (xFirstIntroduceTypeIndex < yFirstIntroduceTypeIndex) { return -1; } if (yFirstIntroduceTypeIndex > xFirstIntroduceTypeIndex) { return 1; } return 0; } } } public static class HashCodeCombiner { public static int Combine<T1, T2>(T1 obj1, T2 obj2) => CombineCodes(obj1.GetHashCode(), obj2.GetHashCode()); public static int CombineCodes(int h1, int h2) => ((h1 << 5) + h1) ^ h2; } }
38.491525
166
0.617643
[ "MIT" ]
Kunter-Bunt/AutoMapper
src/Automapper.Shared/TypePair.cs
6,813
C#
namespace Shared.Contracts { public enum LogLevel { Debug, Info, Warn, Error } }
12.6
27
0.47619
[ "MIT" ]
bnayae/autofac-module-sample
AutofacModuleSamples/Infra/Shared.Contracts/LogLevel.cs
128
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.Collections.Generic; using Aliyun.Acs.Core; using Aliyun.Acs.Core.Http; using Aliyun.Acs.Core.Transform; using Aliyun.Acs.Core.Utils; using Aliyun.Acs.Dbs.Transform; using Aliyun.Acs.Dbs.Transform.V20190306; namespace Aliyun.Acs.Dbs.Model.V20190306 { public class UpgradeBackupPlanRequest : RpcAcsRequest<UpgradeBackupPlanResponse> { public UpgradeBackupPlanRequest() : base("Dbs", "2019-03-06", "UpgradeBackupPlan", "cbs", "openAPI") { if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) { this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Endpoint.endpointMap, null); this.GetType().GetProperty("ProductEndpointType").SetValue(this, Endpoint.endpointRegionalType, null); } Method = MethodType.POST; } private string clientToken; private string backupPlanId; private string ownerId; private string instanceClass; public string ClientToken { get { return clientToken; } set { clientToken = value; DictionaryUtil.Add(QueryParameters, "ClientToken", value); } } public string BackupPlanId { get { return backupPlanId; } set { backupPlanId = value; DictionaryUtil.Add(QueryParameters, "BackupPlanId", value); } } public string OwnerId { get { return ownerId; } set { ownerId = value; DictionaryUtil.Add(QueryParameters, "OwnerId", value); } } public string InstanceClass { get { return instanceClass; } set { instanceClass = value; DictionaryUtil.Add(QueryParameters, "InstanceClass", value); } } public override UpgradeBackupPlanResponse GetResponse(UnmarshallerContext unmarshallerContext) { return UpgradeBackupPlanResponseUnmarshaller.Unmarshall(unmarshallerContext); } } }
26.293578
134
0.673064
[ "Apache-2.0" ]
chys0404/aliyun-openapi-net-sdk
aliyun-net-sdk-dbs/Dbs/Model/V20190306/UpgradeBackupPlanRequest.cs
2,866
C#
using UnityEngine; using UnityEditor; public static class UIH { #region Layout // Toggle Button Style. static GUIStyle ToggleButtonStyleNormal = null; static GUIStyle ToggleButtonStyleToggled = null; static UIH() { // Define styles to make buttons visually toggable. ToggleButtonStyleNormal = "Button"; ToggleButtonStyleToggled = new GUIStyle(ToggleButtonStyleNormal); ToggleButtonStyleToggled.normal.background = ToggleButtonStyleToggled.active.background; } public static void LayoutV(System.Action action, bool box = false, int colorID = 0) { if (box) { GUIStyle style = new GUIStyle(GUI.skin.box); style.padding = new RectOffset(6, 6, 2, 2); Color old = GUI.color; GUI.color = GetLayoutColor(colorID); GUILayout.BeginVertical(style); GUI.color = old; } else { GUILayout.BeginVertical(); } Color _old = GUI.color; GUI.color = Color.Lerp(GetLayoutColor(colorID), Color.white, 0.94f); action(); GUI.color = _old; GUILayout.EndVertical(); } public static void LayoutH(System.Action action, bool box = false, int colorID = 0) { if (box) { GUIStyle style = new GUIStyle(GUI.skin.box); Color old = GUI.color; GUI.color = GetLayoutColor(colorID); GUILayout.BeginHorizontal(style); GUI.color = old; } else { GUILayout.BeginHorizontal(); } action(); GUILayout.EndHorizontal(); } public static void LayoutF(System.Action action, string label, ref bool open, bool box = false, int colorID = 0) { bool _open = open; LayoutV(() => { _open = GUILayout.Toggle( _open, label, GUI.skin.GetStyle("foldout"), GUILayout.ExpandWidth(true), GUILayout.Height(18) ); if (_open) { action(); } }, box, colorID); open = _open; } public static Color GetLayoutColor(int id) { switch (id) { default: case 0: return Color.white; case 1: return Color.black; case 2: return new Color(1, 0.24f, 0.14f, 1); case 3: return new Color(1, 1, 0.14f, 1); case 4: return new Color(0.14f, 1, 0.14f, 1); case 5: return new Color(0.14f, 1, 1, 1); case 6: return new Color(0.14f, 0.14f, 1, 1); } } public static Rect GUIRect(float width, float height, bool exWidth = false, bool exHeight = false) { return GUILayoutUtility.GetRect(width, height, GUILayout.ExpandWidth(exWidth), GUILayout.ExpandHeight(exHeight)); } public static void Space(float space = 4f) { GUILayout.Space(space); } public static void Header(string text) { EditorGUILayout.LabelField(text, EditorStyles.boldLabel); } public static bool TextureToggleButton(Texture texture, bool isSelected) { return GUILayout.Button(texture, isSelected ? ToggleButtonStyleToggled : ToggleButtonStyleNormal); } public static bool TextureToggleButton(string text, bool isSelected) { return GUILayout.Button(text, isSelected ? ToggleButtonStyleToggled : ToggleButtonStyleNormal); } #endregion #region Editor public static void Dialog (string title, string msg, string ok, string cancel = "") { EditorApplication.Beep(); if (string.IsNullOrEmpty(cancel)) { EditorUtility.DisplayDialog(title, msg, ok); } else { EditorUtility.DisplayDialog(title, msg, ok, cancel); } } public static void TimeSpentDialog(System.Action action, string logPrefix = "Time", bool logMessage = true) { string successMsg; System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch(); watch.Start(); action(); watch.Stop(); string secondStr = watch.Elapsed.TotalSeconds.ToString("0.00"); successMsg = string.Format("Done in {0}s", secondStr); if (logMessage) { Debug.Log("[" + logPrefix + "] " + successMsg); } UIH.Dialog("Success", successMsg, "OK"); } public static void ProgressBar (string title, string msg, float value) { value = Mathf.Clamp01(value); EditorUtility.DisplayProgressBar(title, msg, value); } public static void ClearProgressBar () { EditorUtility.ClearProgressBar(); } #endregion }
25.606452
115
0.70068
[ "MIT" ]
ArnaudValensi/warfest-voxel-unity
Assets/Core/Utils/UIH.cs
3,971
C#
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Common.Interfaces; using ProtoBuf; namespace Common.EntityModels { [ProtoContract] public class OrderStatusMessage : IEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [ProtoMember(1)] public int ID { get; set; } [ProtoMember(2)] public int OrderId { get; set; } [ProtoMember(3)] public string Status { get; set; } [ProtoMember(4)] public int Filled { get; set; } [ProtoMember(5)] public int Remaining { get; set; } [ProtoMember(6)] public decimal AverageFillPrice { get; set; } [ProtoMember(7)] public int PermanentId { get; set; } [ProtoMember(8)] public int ParentId { get; set; } [ProtoMember(9)] public decimal LastFillPrice { get; set; } [ProtoMember(10)] public int ClientId { get; set; } [ProtoMember(11)] public string WhyHeld { get; set; } } }
30.194444
61
0.600736
[ "MIT" ]
salda8/Quant-Finance-Mngmt-System
CommonStandard/EntityModels/TradingEntities/OrderStatusMessage.cs
1,087
C#
using UnityEngine; public class CameraController : MonoBehaviour { [HideInInspector] public static Transform target; [Header("Play Mode")] public Vector3 offset; public float smoothSpeed = 0.125f; [Header("Edit Mode")] public float turnSpeed = 5f; public float zoomSpeed = 5f; public float smoothLookAtSpeed = 5f; void FixedUpdate() { if (State.isPlaying) { Vector3 reqiredPosition = target.position + offset; Vector3 lerpedPosition = Vector3.Lerp(transform.position, reqiredPosition, smoothSpeed); transform.position = lerpedPosition; transform.LookAt(target); } else if (!GameObjectsManager.isSaveShown) { float x = Input.GetAxis("Horizontal"); float y = Input.GetAxis("Vertical"); float z = Input.GetAxis("Mouse ScrollWheel"); Vector3 reqiredMovement = new Vector3(x * turnSpeed, y * turnSpeed, z * zoomSpeed); transform.Translate(reqiredMovement); /* if (Input.GetKeyDown(KeyCode.Alpha4)) x = -turnSpeed; if (Input.GetKeyDown(KeyCode.Alpha6)) x = turnSpeed; if (Input.GetKeyDown(KeyCode.Alpha8)) y = turnSpeed; if (Input.GetKeyDown(KeyCode.Alpha2)) y = -turnSpeed; Vector3 requiredRotation = new Vector3(x, y, 0); transform.Rotate(requiredRotation); if (!requiredRotation.Equals(Vector3.zero)) {*/ if (GameObjectsManager.lastSelectedObject != null) { Quaternion targetRotation = Quaternion.LookRotation(GameObjectsManager.lastSelectedObject.transform.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, smoothLookAtSpeed * Time.deltaTime); } /*}*/ } } }
32.508475
147
0.61366
[ "MIT" ]
sudoio/3d-platformer-maker
Assets/Scripts/CameraController.cs
1,920
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; namespace _03.BigFactorial { class BigFactorial { static void Main() { int n = int.Parse(Console.ReadLine()); Console.WriteLine(CalculateFactorial(n)); } private static BigInteger CalculateFactorial(int n) { if (n == 1 || n == 0) { return 1; } else { return n * CalculateFactorial(n - 1); } } } }
19.9
59
0.494137
[ "MIT" ]
KristiyanSevov/SoftUni-Programming-Fundamentals
Exercises/09. ObjectsAndClasses-Lab/03. BigFactorial/BigFactorial.cs
599
C#
using System; using System.Text; namespace Musoq.Parser.Nodes { public class CreateTableNode : Node { public CreateTableNode(string name, (string ColumnName, string TypeName)[] tableTypePairs) { Name = name; TableTypePairs = tableTypePairs; Id = $"{nameof(CreateTableNode)}{name}"; } public string Name { get; } public (string ColumnName, string TypeName)[] TableTypePairs { get; } public override Type ReturnType => null; public override string Id { get; } public override void Accept(IExpressionVisitor visitor) { visitor.Visit(this); } public override string ToString() { var cols = new StringBuilder(); cols.Append($"{TableTypePairs[0].ColumnName} {TableTypePairs[0].TypeName}"); for (var i = 1; i < TableTypePairs.Length - 1; ++i) { cols.Append($"{TableTypePairs[i].ColumnName} {TableTypePairs[i].TypeName}"); } cols.Append($"{TableTypePairs[TableTypePairs.Length - 1].ColumnName} {TableTypePairs[TableTypePairs.Length - 1].TypeName}"); return $"CREATE TABLE {Name}"; } } }
29.139535
136
0.582602
[ "MIT" ]
JTOne123/Musoq
Musoq.Parser/Nodes/CreateTableNode.cs
1,255
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace StackExchange.Opserver.Data.Dashboard { public partial class Volume { public class VolumeUtilization : GraphPoint { public override long DateEpoch { get; set; } public double AvgDiskUsed { get; internal set; } public override double? Value => AvgDiskUsed; } public class VolumePerformanceUtilization : DoubleGraphPoint { public override long DateEpoch { get; set; } public float? ReadAvgBps { get; internal set; } public float? WriteAvgBps { get; internal set; } public override double? Value => ReadAvgBps; public override double? BottomValue => WriteAvgBps; } /// <summary> /// Gets usage for this volume (optionally) for the given time period, optionally sampled if pointCount is specified /// </summary> /// <param name="start">Start date, unbounded if null</param> /// <param name="end">End date, unbounded if null</param> /// <param name="pointCount">Points to return, if specified results will be sampled rather than including every point</param> /// <returns>Volume usage data points</returns> public Task<List<GraphPoint>> GetVolumeUtilization(DateTime? start, DateTime? end, int? pointCount = null) { return Node.DataProvider.GetUtilizationAsync(this, start, end, pointCount); } /// <summary> /// Gets I/O utilization for this volume (optionally) for the given time period, optionally sampled if pointCount is specified /// </summary> /// <param name="start">Start date, unbounded if null</param> /// <param name="end">End date, unbounded if null</param> /// <param name="pointCount">Points to return, if specified results will be sampled rather than including every point</param> /// <returns>Volume usage data points</returns> public Task<List<DoubleGraphPoint>> GetPerformanceUtilization(DateTime? start, DateTime? end, int? pointCount = null) { return Node.DataProvider.GetPerformanceUtilizationAsync(this, start, end, pointCount); } } }
44.823529
134
0.648294
[ "MIT" ]
AaronBertrand/Opserver
Opserver.Core/Data/Dashboard/Volume.Data.cs
2,288
C#
 namespace Teronis.Identity.Datransjects { public interface IUserDescriptor { string UserName { get; } string Password { get; } string[]? Roles { get; } } }
16.25
39
0.584615
[ "MIT" ]
BrunoZell/Teronis.DotNet
src/NetCoreApp/Identity/Identity/src/Datransjects/IUserDescriptor.cs
197
C#
// Copyright (c) Umbraco. // See LICENSE for more details. using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Xml.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using NUnit.Framework; using Umbraco.Cms.Core.Services.Implement; namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Services { [TestFixture] public class LocalizedTextServiceTests { private static readonly ILoggerFactory s_loggerFactory = NullLoggerFactory.Instance; [Test] public void Using_Dictionary_Gets_All_Stored_Values() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea1", new Dictionary<string, string> { { "testKey1", "testValue1" }, { "testKey2", "testValue2" } } }, { "testArea2", new Dictionary<string, string> { { "blah1", "blahValue1" }, { "blah2", "blahValue2" } } }, }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); IDictionary<string, string> result = txtService.GetAllStoredValues(culture); Assert.AreEqual(4, result.Count); Assert.AreEqual("testArea1/testKey1", result.ElementAt(0).Key); Assert.AreEqual("testArea1/testKey2", result.ElementAt(1).Key); Assert.AreEqual("testArea2/blah1", result.ElementAt(2).Key); Assert.AreEqual("testArea2/blah2", result.ElementAt(3).Key); Assert.AreEqual("testValue1", result["testArea1/testKey1"]); Assert.AreEqual("testValue2", result["testArea1/testKey2"]); Assert.AreEqual("blahValue1", result["testArea2/blah1"]); Assert.AreEqual("blahValue2", result["testArea2/blah2"]); } [Test] public void Using_XDocument_Gets_All_Stored_Values() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement( "language", new XElement("area", new XAttribute("alias", "testArea1"), new XElement("key", new XAttribute("alias", "testKey1"), "testValue1"), new XElement("key", new XAttribute("alias", "testKey2"), "testValue2")), new XElement("area", new XAttribute("alias", "testArea2"), new XElement("key", new XAttribute("alias", "blah1"), "blahValue1"), new XElement("key", new XAttribute("alias", "blah2"), "blahValue2"))))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); IDictionary<string, string> result = txtService.GetAllStoredValues(culture); Assert.AreEqual(4, result.Count()); Assert.AreEqual("testArea1/testKey1", result.ElementAt(0).Key); Assert.AreEqual("testArea1/testKey2", result.ElementAt(1).Key); Assert.AreEqual("testArea2/blah1", result.ElementAt(2).Key); Assert.AreEqual("testArea2/blah2", result.ElementAt(3).Key); Assert.AreEqual("testValue1", result["testArea1/testKey1"]); Assert.AreEqual("testValue2", result["testArea1/testKey2"]); Assert.AreEqual("blahValue1", result["testArea2/blah1"]); Assert.AreEqual("blahValue2", result["testArea2/blah2"]); } [Test] public void Using_XDocument_Gets_All_Stored_Values_With_Duplicates() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement( "language", new XElement("area", new XAttribute("alias", "testArea1"), new XElement("key", new XAttribute("alias", "testKey1"), "testValue1"), new XElement("key", new XAttribute("alias", "testKey1"), "testValue1"))))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); IDictionary<string, string> result = txtService.GetAllStoredValues(culture); Assert.AreEqual(1, result.Count()); } [Test] public void Using_Dictionary_Returns_Text_With_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea", new Dictionary<string, string> { { "testKey", "testValue" } } } }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testArea/testKey", culture); Assert.AreEqual("testValue", result); } [Test] public void Using_Dictionary_Returns_Text_Without_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea", new Dictionary<string, string> { { "testKey", "testValue" } } } }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testKey", culture); Assert.AreEqual("testValue", result); } [Test] public void Using_Dictionary_Returns_Default_Text_When_Not_Found_With_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea", new Dictionary<string, string> { { "testKey", "testValue" } } } }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testArea/doNotFind", culture); // NOTE: Based on how legacy works, the default text does not contain the area, just the key Assert.AreEqual("[doNotFind]", result); } [Test] public void Using_Dictionary_Returns_Default_Text_When_Not_Found_Without_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea", new Dictionary<string, string> { { "testKey", "testValue" } } } }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("doNotFind", culture); Assert.AreEqual("[doNotFind]", result); } [Test] public void Using_Dictionary_Returns_Tokenized_Text() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea", new Dictionary<string, string> { { "testKey", "Hello %0%, you are such a %1% %2%" } } } }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize( "testKey", culture, new Dictionary<string, string> { { "0", "world" }, { "1", "great" }, { "2", "planet" } }); Assert.AreEqual("Hello world, you are such a great planet", result); } [Test] public void Using_XDocument_Returns_Text_With_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement("area", new XAttribute("alias", "testArea"), new XElement("key", new XAttribute("alias", "testKey"), "testValue")))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testArea/testKey", culture); Assert.AreEqual("testValue", result); } [Test] public void Using_XDocument_Returns_Text_Without_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement("area", new XAttribute("alias", "testArea"), new XElement("key", new XAttribute("alias", "testKey"), "testValue")))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testKey", culture); Assert.AreEqual("testValue", result); } [Test] public void Using_XDocument_Returns_Default_Text_When_Not_Found_With_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement("area", new XAttribute("alias", "testArea"), new XElement("key", new XAttribute("alias", "testKey"), "testValue")))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testArea/doNotFind", culture); // NOTE: Based on how legacy works, the default text does not contain the area, just the key Assert.AreEqual("[doNotFind]", result); } [Test] public void Using_XDocument_Returns_Default_Text_When_Not_Found_Without_Area() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement("area", new XAttribute("alias", "testArea"), new XElement("key", new XAttribute("alias", "testKey"), "testValue")))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("doNotFind", culture); Assert.AreEqual("[doNotFind]", result); } [Test] public void Using_XDocument_Returns_Tokenized_Text() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement("area", new XAttribute("alias", "testArea"), new XElement("key", new XAttribute("alias", "testKey"), "Hello %0%, you are such a %1% %2%")))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); string result = txtService.Localize("testKey", culture, new Dictionary<string, string> { { "0", "world" }, { "1", "great" }, { "2", "planet" } }); Assert.AreEqual("Hello world, you are such a great planet", result); } [Test] public void Using_Dictionary_Returns_Default_Text__When_No_Culture_Found() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> { { culture, new Lazy<IDictionary<string, IDictionary<string, string>>>(() => new Dictionary<string, IDictionary<string, string>> { { "testArea", new Dictionary<string, string> { { "testKey", "testValue" } } } }) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); Assert.AreEqual("[testKey]", txtService.Localize("testArea/testKey", CultureInfo.GetCultureInfo("en-AU"))); } [Test] public void Using_XDocument_Returns_Default_Text_When_No_Culture_Found() { var culture = CultureInfo.GetCultureInfo("en-US"); var txtService = new LocalizedTextService( new Dictionary<CultureInfo, Lazy<XDocument>> { { culture, new Lazy<XDocument>(() => new XDocument( new XElement("area", new XAttribute("alias", "testArea"), new XElement("key", new XAttribute("alias", "testKey"), "testValue")))) } }, s_loggerFactory.CreateLogger<LocalizedTextService>()); Assert.AreEqual("[testKey]", txtService.Localize("testArea/testKey", CultureInfo.GetCultureInfo("en-AU"))); } } }
44.849105
149
0.491845
[ "MIT" ]
Ambertvu/Umbraco-CMS
tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/LocalizedTextServiceTests.cs
17,536
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; using Microsoft.Xna.Framework.Net; using Microsoft.Xna.Framework.Storage; namespace MouseGetStateAndIsMouseVisibleTester { public class TextManager : Microsoft.Xna.Framework.DrawableGameComponent { public SpriteFont sfStandard; protected SpriteBatch spriteBatch = null; private Game1 cG; public TextManager(Game game, SpriteFont sfStandardFont) : base(game) { cG = (Game1)game; spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); sfStandard = sfStandardFont; }//TextManager public override void Draw(GameTime gameTime) { spriteBatch.DrawString(sfStandard, "LeftMouse = " + cG.mousestatus.LeftButton.ToString(), new Vector2(0, 50), Color.White); #if LINUX spriteBatch.DrawString(sfStandard, "MouseX = " + Mouse.GetState().X.ToString(), new Vector2(0, 100), Color.White); spriteBatch.DrawString(sfStandard, "MouseY = " + Mouse.GetState().Y.ToString(), new Vector2(0, 130), Color.White); #else try { spriteBatch.DrawString(sfStandard, "MouseX = " + cG.Window.Window.MouseLocationOutsideOfEventStream.X.ToString(), new Vector2(0, 100), Color.White); spriteBatch.DrawString(sfStandard, "MouseY = " + cG.Window.Window.MouseLocationOutsideOfEventStream.Y.ToString(), new Vector2(0, 130), Color.White); }//try catch(Exception ex) { } #endif spriteBatch.DrawString(sfStandard, "Click here to Toggle Full Screen", new Vector2(0, 200), Color.White); spriteBatch.DrawString(sfStandard, "Click here to center window if in windowed mode", new Vector2(0, 300), Color.White); }//Draw } }
36.982456
161
0.683112
[ "MIT" ]
06needhamt/MonoGame
Test/Interactive/MacOS/MouseGetStateAndIsMouseVisibleTester/MouseGetStateAndIsMouseVisibleTester/TextManager.cs
2,110
C#
// <copyright> // MIT License // // Copyright (c) 2017 Sebastian K. Erben // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. //</copyright> //<author> // Sebastian K. Erben // github.com/SebastianKErben // @SebastianKErben //</author> namespace SKE.Unity3D.Savegame.Utils { using System.IO; using UnityEngine; /// <summary> /// ISaveDataAccess implementation for file access. /// </summary> public class SaveFile : ISaveDataAccess { /// <summary> /// Loads data from a data store as Json. /// </summary> /// <returns>Save data serialized as json.</returns> /// <param name="dataStore">Data store.</param> public string LoadData(string dataStore) { var result = string.Empty; if (string.Empty.Equals (dataStore)) return result; var filePath = Path.Combine (Application.persistentDataPath, dataStore); if (!File.Exists (filePath)) return result; using (var fileReader = new StreamReader(filePath)) result = fileReader.ReadToEnd (); return result; } /// <summary> /// Writes data to a data store. /// </summary> /// <returns><c>true</c>, if data was written, /// <c>false</c> otherwise.</returns> /// <param name="dataStore">Data store.</param> /// <param name="saveData">Save data serialized as Json.</param> public bool WriteData(string dataStore, string saveData) { if (string.Empty.Equals (dataStore)) return false; var filePath = Path.Combine (Application.persistentDataPath, dataStore); using (var fileWriter = new StreamWriter(filePath)) { fileWriter.Write (saveData); return true; } } } }
32.95
82
0.707511
[ "MIT" ]
SebastianKErben/SKE.Unity3D
SKE/Unity3D/Savegame/Utils/SaveFile.cs
2,638
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> //------------------------------------------------------------------------------ using NMF.Collections.Generic; using NMF.Collections.ObjectModel; using NMF.Expressions; using NMF.Expressions.Linq; using NMF.Models; using NMF.Models.Collections; using NMF.Models.Expressions; using NMF.Models.Meta; using NMF.Models.Repository; using NMF.Serialization; using NMF.Utilities; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Linq; namespace TTC2021.LabWorkflows.LaboratoryAutomation { /// <summary> /// The default implementation of the Sample class /// </summary> [XmlNamespaceAttribute("http://www.transformation-tool-contest.eu/ttc21/laboratoryAutomation")] [XmlNamespacePrefixAttribute("lab")] [ModelRepresentationClassAttribute("http://www.transformation-tool-contest.eu/ttc21/laboratoryAutomation#//Sample")] public partial class Sample : ModelElement, ISample, IModelElement { /// <summary> /// The backing field for the SampleID property /// </summary> [DebuggerBrowsableAttribute(DebuggerBrowsableState.Never)] private string _sampleID; private static Lazy<ITypedElement> _sampleIDAttribute = new Lazy<ITypedElement>(RetrieveSampleIDAttribute); /// <summary> /// The backing field for the State property /// </summary> [DebuggerBrowsableAttribute(DebuggerBrowsableState.Never)] private SampleState _state; private static Lazy<ITypedElement> _stateAttribute = new Lazy<ITypedElement>(RetrieveStateAttribute); private static IClass _classInstance; /// <summary> /// The sampleID property /// </summary> [DisplayNameAttribute("sampleID")] [CategoryAttribute("Sample")] [XmlElementNameAttribute("sampleID")] [XmlAttributeAttribute(true)] public string SampleID { get { return this._sampleID; } set { if ((this._sampleID != value)) { string old = this._sampleID; ValueChangedEventArgs e = new ValueChangedEventArgs(old, value); this.OnSampleIDChanging(e); this.OnPropertyChanging("SampleID", e, _sampleIDAttribute); this._sampleID = value; this.OnSampleIDChanged(e); this.OnPropertyChanged("SampleID", e, _sampleIDAttribute); } } } /// <summary> /// The state property /// </summary> [DisplayNameAttribute("state")] [CategoryAttribute("Sample")] [XmlElementNameAttribute("state")] [XmlAttributeAttribute(true)] public SampleState State { get { return this._state; } set { if ((this._state != value)) { SampleState old = this._state; ValueChangedEventArgs e = new ValueChangedEventArgs(old, value); this.OnStateChanging(e); this.OnPropertyChanging("State", e, _stateAttribute); this._state = value; this.OnStateChanged(e); this.OnPropertyChanged("State", e, _stateAttribute); } } } /// <summary> /// Gets the Class model for this type /// </summary> public new static IClass ClassInstance { get { if ((_classInstance == null)) { _classInstance = ((IClass)(MetaRepository.Instance.Resolve("http://www.transformation-tool-contest.eu/ttc21/laboratoryAutomation#//Sample"))); } return _classInstance; } } /// <summary> /// Gets fired before the SampleID property changes its value /// </summary> public event System.EventHandler<ValueChangedEventArgs> SampleIDChanging; /// <summary> /// Gets fired when the SampleID property changed its value /// </summary> public event System.EventHandler<ValueChangedEventArgs> SampleIDChanged; /// <summary> /// Gets fired before the State property changes its value /// </summary> public event System.EventHandler<ValueChangedEventArgs> StateChanging; /// <summary> /// Gets fired when the State property changed its value /// </summary> public event System.EventHandler<ValueChangedEventArgs> StateChanged; private static ITypedElement RetrieveSampleIDAttribute() { return ((ITypedElement)(((ModelElement)(TTC2021.LabWorkflows.LaboratoryAutomation.Sample.ClassInstance)).Resolve("sampleID"))); } /// <summary> /// Raises the SampleIDChanging event /// </summary> /// <param name="eventArgs">The event data</param> protected virtual void OnSampleIDChanging(ValueChangedEventArgs eventArgs) { System.EventHandler<ValueChangedEventArgs> handler = this.SampleIDChanging; if ((handler != null)) { handler.Invoke(this, eventArgs); } } /// <summary> /// Raises the SampleIDChanged event /// </summary> /// <param name="eventArgs">The event data</param> protected virtual void OnSampleIDChanged(ValueChangedEventArgs eventArgs) { System.EventHandler<ValueChangedEventArgs> handler = this.SampleIDChanged; if ((handler != null)) { handler.Invoke(this, eventArgs); } } private static ITypedElement RetrieveStateAttribute() { return ((ITypedElement)(((ModelElement)(TTC2021.LabWorkflows.LaboratoryAutomation.Sample.ClassInstance)).Resolve("state"))); } /// <summary> /// Raises the StateChanging event /// </summary> /// <param name="eventArgs">The event data</param> protected virtual void OnStateChanging(ValueChangedEventArgs eventArgs) { System.EventHandler<ValueChangedEventArgs> handler = this.StateChanging; if ((handler != null)) { handler.Invoke(this, eventArgs); } } /// <summary> /// Raises the StateChanged event /// </summary> /// <param name="eventArgs">The event data</param> protected virtual void OnStateChanged(ValueChangedEventArgs eventArgs) { System.EventHandler<ValueChangedEventArgs> handler = this.StateChanged; if ((handler != null)) { handler.Invoke(this, eventArgs); } } /// <summary> /// Resolves the given attribute name /// </summary> /// <returns>The attribute value or null if it could not be found</returns> /// <param name="attribute">The requested attribute name</param> /// <param name="index">The index of this attribute</param> protected override object GetAttributeValue(string attribute, int index) { if ((attribute == "SAMPLEID")) { return this.SampleID; } if ((attribute == "STATE")) { return this.State; } return base.GetAttributeValue(attribute, index); } /// <summary> /// Sets a value to the given feature /// </summary> /// <param name="feature">The requested feature</param> /// <param name="value">The value that should be set to that feature</param> protected override void SetFeature(string feature, object value) { if ((feature == "SAMPLEID")) { this.SampleID = ((string)(value)); return; } if ((feature == "STATE")) { this.State = ((SampleState)(value)); return; } base.SetFeature(feature, value); } /// <summary> /// Gets the property expression for the given attribute /// </summary> /// <returns>An incremental property expression</returns> /// <param name="attribute">The requested attribute in upper case</param> protected override NMF.Expressions.INotifyExpression<object> GetExpressionForAttribute(string attribute) { if ((attribute == "SAMPLEID")) { return new SampleIDProxy(this); } if ((attribute == "STATE")) { return Observable.Box(new StateProxy(this)); } return base.GetExpressionForAttribute(attribute); } /// <summary> /// Gets the Class for this model element /// </summary> public override IClass GetClass() { if ((_classInstance == null)) { _classInstance = ((IClass)(MetaRepository.Instance.Resolve("http://www.transformation-tool-contest.eu/ttc21/laboratoryAutomation#//Sample"))); } return _classInstance; } /// <summary> /// Represents a proxy to represent an incremental access to the sampleID property /// </summary> private sealed class SampleIDProxy : ModelPropertyChange<ISample, string> { /// <summary> /// Creates a new observable property access proxy /// </summary> /// <param name="modelElement">The model instance element for which to create the property access proxy</param> public SampleIDProxy(ISample modelElement) : base(modelElement, "sampleID") { } /// <summary> /// Gets or sets the value of this expression /// </summary> public override string Value { get { return this.ModelElement.SampleID; } set { this.ModelElement.SampleID = value; } } } /// <summary> /// Represents a proxy to represent an incremental access to the state property /// </summary> private sealed class StateProxy : ModelPropertyChange<ISample, SampleState> { /// <summary> /// Creates a new observable property access proxy /// </summary> /// <param name="modelElement">The model instance element for which to create the property access proxy</param> public StateProxy(ISample modelElement) : base(modelElement, "state") { } /// <summary> /// Gets or sets the value of this expression /// </summary> public override SampleState Value { get { return this.ModelElement.State; } set { this.ModelElement.State = value; } } } } }
35.051724
162
0.536071
[ "MIT" ]
ESEO-Tech/ttc21incrementalLabWorkflows
solutions/Reference/Metamodel/LaboratoryAutomation/Sample.cs
12,198
C#
using System; using LoopBack.Sdk.Xamarin.Common; using LoopBack.Sdk.Xamarin.Remooting; namespace LoopBack.Sdk.Xamarin.Loopback { /// <summary> /// An extension to the vanilla <see cref="RestAdapter"/> to make working with <see cref="Model"/> s easier. /// </summary> public class RestAdapter : Remooting.Adapters.RestAdapter { public static string SHARED_PREFERENCES_NAME = "RestAdapter"; public static string PROPERTY_ACCESS_TOKEN = "accessToken"; private readonly IContext _context; public RestAdapter(IContext context, string url) : base(context, url) { if (context == null) { throw new ArgumentNullException("context", "context must be not null"); } _context = context; AccessToken = LoadAccessToken(); } public virtual string AccessToken { set { if (!string.IsNullOrEmpty(value)) { SaveAccessToken(value); Client.DefaultRequestHeaders.Add("Authorization", value); } } } public virtual IContext ApplicationContext { get { return _context; } } public virtual void ClearAccessToken() { Client.DefaultRequestHeaders.Add("Authorization", string.Empty); } /// <summary> /// Creates a new <see cref="ModelRepository{T}"/> representing the named model type. /// </summary> /// <param name="name">The model name.</param> /// <returns> A new repository instance.</returns> public virtual ModelRepository<Model> CreateRepository(string name) { return CreateRepository<Model>(name, null, null); } /// <summary> /// Creates a new <see cref="ModelRepository{T}"/> representing the named model type. /// </summary> /// <param name="name">The model name.</param> /// <param name="nameForRestUrl">The model name to use in REST URL, usually the plural form of `name`.</param> /// <returns>A new repository instance.</returns> public virtual ModelRepository<Model> CreateRepository(string name, string nameForRestUrl) { return CreateRepository<Model>(name, nameForRestUrl, null); } /// <summary> /// Creates a new <see cref="ModelRepository{T}"/> representing the named model type. /// </summary> /// <typeparam name="T">The model type that inherited from <see cref="Model"/>.</typeparam> /// <param name="name">The model name.</param> /// <param name="nameForRestUrl">The model name to use in REST URL, usually the plural form of `name`.</param> /// <param name="modelClass">modelClass The model class. The class must have a public no-argument constructor.</param> /// <returns>A new repository instance.</returns> public virtual ModelRepository<T> CreateRepository<T>(string name, string nameForRestUrl, Type modelClass) where T : Model { var repository = new ModelRepository<T>(name, nameForRestUrl, modelClass); AttachModelRepository(repository); return repository; } /// <summary> /// Creates a new <see cref="ModelRepository{T}"/> from the given subclass. /// </summary> /// <typeparam name="TRepository">A subclass of <see cref="RestRepository{T}"/> to use. The class must have a public no-argument constructor.</typeparam> /// <typeparam name="T">The model calss that inherited from <see cref="Model"/></typeparam> /// <returns>A new repository instance.</returns> public virtual TRepository CreateRepository<TRepository, T>() where TRepository : RestRepository<T>, new() where T : RemoteClass { TRepository repository; try { repository = new TRepository { Adapter = this }; } catch (Exception e) { var ex = new ArgumentException("", e); throw ex; } AttachModelRepository(repository); return repository; } private void AttachModelRepository<T>(RestRepository<T> repository) where T : RemoteClass { Contract.AddItemsFromContract(repository.CreateContract()); repository.Adapter = this; } private void SaveAccessToken(string accessToken) { //TODO: SharedPreferences } private string LoadAccessToken() { //TODO: SharedPreferences return null; } } }
36.074074
161
0.576181
[ "MIT" ]
ziyasal-archive/loopback-sdk-net
src/LoopBack.Sdk.Xamarin/Loopback/RestAdapter.cs
4,872
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.Collections.Generic; using Aliyun.Acs.Core; namespace Aliyun.Acs.CCC.Model.V20170705 { public class CreateCCCPostOrderResponse : AcsResponse { private string requestId; private bool? success; private string code; private string message; private int? httpStatusCode; private string orderId; public string RequestId { get { return requestId; } set { requestId = value; } } public bool? Success { get { return success; } set { success = value; } } public string Code { get { return code; } set { code = value; } } public string Message { get { return message; } set { message = value; } } public int? HttpStatusCode { get { return httpStatusCode; } set { httpStatusCode = value; } } public string OrderId { get { return orderId; } set { orderId = value; } } } }
16.769912
63
0.617942
[ "Apache-2.0" ]
bitType/aliyun-openapi-net-sdk
aliyun-net-sdk-ccc/CCC/Model/V20170705/CreateCCCPostOrderResponse.cs
1,895
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26.Maps { using V26; /// <summary> /// OML_O33_ORDER (GroupMap) - /// </summary> public class OML_O33_ORDERMap : HL7V26LayoutMap<OML_O33_ORDER> { public OML_O33_ORDERMap() { Segment(x => x.ORC, 0, x => x.Required = true); Layout(x => x.Timing, 1); Layout(x => x.ObservationRequest, 2); Segment(x => x.FT1, 3); Segment(x => x.CTI, 4); Segment(x => x.BLG, 5); } } }
30.166667
105
0.570442
[ "Apache-2.0" ]
AreebaAroosh/Machete
src/Machete.HL7Schema/Generated/V26/Groups/Maps/OML_O33_ORDERMap.cs
724
C#
using System; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; namespace QueueApp { class Program { static async Task Main(string[] args) { if (args.Length > 0) { string value = String.Join(" ", args); await SendArticleAsync(value); Console.WriteLine($"Sent: {value}"); } else { string value = await ReceiveArticleAsync(); Console.WriteLine($"Received: {value}"); } } static async Task SendArticleAsync(string newsMessage) { string ConnectionString = Environment.GetEnvironmentVariable("storageConnectionString"); CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConnectionString); CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient(); CloudQueue queue = queueClient.GetQueueReference("newsqueue"); bool createdQueue = await queue.CreateIfNotExistsAsync(); if (createdQueue) { Console.WriteLine("The queue of news articles was created."); } CloudQueueMessage articleMessage = new CloudQueueMessage(newsMessage); await queue.AddMessageAsync(articleMessage); } static CloudQueue GetQueue() { string ConnectionString = Environment.GetEnvironmentVariable("storageConnectionString"); CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConnectionString); CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient(); return queueClient.GetQueueReference("newsqueue"); } static async Task<string> ReceiveArticleAsync() { CloudQueue queue = GetQueue(); bool exists = await queue.ExistsAsync(); if (exists) { CloudQueueMessage retrievedArticle = await queue.GetMessageAsync(); if (retrievedArticle != null) { string newsMessage = retrievedArticle.AsString; await queue.DeleteMessageAsync(retrievedArticle); return newsMessage; } } return "<queue empty or not created>"; } } }
33.819444
100
0.591376
[ "MIT" ]
RodolfoDiaz/CodeLibrary
azure/azcli/storage/queues/ProgramV11.cs
2,435
C#
using Surging.Core.CPlatform.Utilities; using Surging.Core.Protocol.WS; using Surging.Core.Protocol.WS.Runtime; using Surging.Core.ProxyGenerator; using Surging.IModuleServices.Common; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using WebSocketCore; namespace Surging.Modules.Common.Domain { public class ChatService : WSServiceBase, IChatService { private static readonly ConcurrentDictionary<string, string> _users = new ConcurrentDictionary<string, string>(); private static readonly ConcurrentDictionary<string, string> _clients = new ConcurrentDictionary<string, string>(); private string _name; private int _number = 0; private int getNumber() { return Interlocked.Increment(ref _number); } protected override void OnClose(CloseEventArgs e) { //Sessions.Broadcast(String.Format("{0} got logged off...", _name)); } protected override void OnMessage(MessageEventArgs e) { if (_clients.ContainsKey(ID)) { Dictionary<string, object> model = new Dictionary<string, object>(); model.Add("name", _clients[ID]); model.Add("data", e.Data); var result= ServiceLocator.GetService<IServiceProxyProvider>() .Invoke<object>(model, "api/chat/SendMessage").Result; //this.CreateProxy<IChatService>() // .SendMessage(_clients[ID], e.Data); } } protected override void OnOpen() { _name = Context.QueryString["name"]; if (!string.IsNullOrEmpty(_name)) { _clients[ID] = _name; _users[_name] = ID; } } public Task SendMessage(string name, string data) { if (_users.ContainsKey(name)) { this.GetClient().SendTo($"hello,{name},{data}", _users[name]); } return Task.CompletedTask; } } }
31.927536
123
0.592374
[ "MIT" ]
panyoujin/surging
src/Surging.Modules/Surging.Modules.Common/Domain/ChatService.cs
2,205
C#
using Microsoft.QueryStringDotNET; using Microsoft.Toolkit.Uwp.Notifications; using System.IO; using Windows.UI.Notifications; namespace MyerSplash.Common { public static class ToastHelper { public static ToastNotification CreateToastNotification(string title, string content, string filePath) { ToastContent toastContent = new ToastContent() { Visual = new ToastVisual() { BindingGeneric = new ToastBindingGeneric() { Children = { new AdaptiveText() { Text = title }, new AdaptiveText() { Text = content }, }, HeroImage = new ToastGenericHeroImage() { Source = filePath, AlternateText = Path.GetFileName(filePath) } } }, Actions = new ToastActionsCustom() { Buttons = { new ToastButton("Set as wallpaper", new QueryString() { { Key.ACTION_KEY, Value.SET_AS }, { Key.FILE_PATH_KEY, filePath } }.ToString()) } }, Launch = new QueryString() { { Key.ACTION_KEY, Value.DOWNLOADS }, }.ToString() }; return new ToastNotification(toastContent.GetXml()); } } }
32.433333
111
0.369476
[ "MIT" ]
JuniperPhoton/MyerSplash.UWP
MyerSplash/Common/ToastHelper.cs
1,948
C#
using DeBroglie.Models; using DeBroglie.Topo; using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; namespace DeBroglie.Test { [TestFixture] public class TilePropagatorTest { [Test] public void TestToTopArray() { var a = new int[,]{ { 1, 0 }, { 0, 1 }, }; var model = OverlappingModel.Create(a, 2, false, 8); var propagator = new TilePropagator(model, new Topology(4, 4, false)); propagator.Select(0, 0, 0, new Tile(1)); var status = propagator.Run(); Assert.AreEqual(Resolution.Decided, status); var result = propagator.ToValueArray<int>().ToArray2d(); Assert.AreEqual(4, result.GetLength(0)); Assert.AreEqual(4, result.GetLength(1)); Assert.AreEqual(1, result[0, 0]); Assert.AreEqual(1, result[3, 3]); } [Test] public void TestMask() { var a = new int[,]{ { 1, 0 }, { 0, 1 }, }; var model = new AdjacentModel(); model.AddSample(TopoArray.Create(a, true).ToTiles()); var mask = new bool[5 * 5]; for (var x = 0; x < 5; x++) { for (var y = 0; y < 5; y++) { if (x == 2 || y == 2) { mask[x + y * 5] = false; } else { mask[x + y * 5] = true; } } } var topology = new Topology(5, 5, true).WithMask(mask); var propagator = new TilePropagator(model, topology); propagator.Run(); Assert.AreEqual(Resolution.Decided, propagator.Status); } [Test] public void TestMaskWithOverlapping() { var a = new int[,]{ { 1, 0 }, { 0, 1 }, }; var model = OverlappingModel.Create(a, 2, false, 8); var mask = new bool[4 * 5]; for (var x = 0; x < 5; x++) { for (var y = 0; y < 4; y++) { if (x == 2 || x == 3) { mask[x + y * 5] = false; } else { mask[x + y * 5] = true; } } } var topology = new Topology(5, 4, false).WithMask(mask); var propagator = new TilePropagator(model, topology); propagator.Select(0, 0, 0, new Tile(1)); propagator.Select(4, 0, 0, new Tile(0)); propagator.Run(); Assert.AreEqual(Resolution.Decided, propagator.Status); } // This test illustrates a problem with how masks interact with the overlapping model. // The two select calls are not possible to fulfill with one pattern across the entire // output. // But cut the output region in two using a mask, and the overlap rectangle is 2x2 and so // not wide enough to cause interactions across the divide. So this should give Resolution.Decided, // Filling each half of the output with a chess pattern. // // But at the moment, it gives contradiction. The implementation doesn't handle masks properly, // and errs on the side of caution, basically ignoring the mask entirely. // // I hope to resolve this with https://github.com/BorisTheBrave/DeBroglie/issues/7 [Test] [Ignore("Overlapping masks don't work ideally at the moment")] public void TestMaskWithThinOverlapping() { var a = new int[,]{ { 1, 0 }, { 0, 1 }, }; var model = OverlappingModel.Create(a, 2, false, 8); var mask = new bool[4 * 5]; for (var x = 0; x < 5; x++) { for (var y = 0; y < 4; y++) { if (x == 2) { mask[x + y * 5] = false; } else { mask[x + y * 5] = true; } } } var topology = new Topology(5, 4, false).WithMask(mask); var propagator = new TilePropagator(model, topology); propagator.Select(0, 0, 0, new Tile(1)); propagator.Select(4, 0, 0, new Tile(0)); propagator.Run(); Assert.AreEqual(Resolution.Decided, propagator.Status); } } }
30.2375
107
0.446259
[ "MIT" ]
RolandMQuiros/DeBroglie
DeBroglie.Test/TilePropagatorTest.cs
4,840
C#
using System; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace Statiq.Common { public static class BootstrapperConfigurationExtensions { public static TBootstrapper ConfigureSettings<TBootstrapper>(this TBootstrapper bootstrapper, Action<ISettings> action) where TBootstrapper : IBootstrapper { bootstrapper.ThrowIfNull(nameof(bootstrapper)); action.ThrowIfNull(nameof(action)); bootstrapper.Configurators.Add<ConfigurableSettings>(x => action(x.Settings)); return bootstrapper; } public static TBootstrapper BuildConfiguration<TBootstrapper>(this TBootstrapper bootstrapper, Action<IConfigurationBuilder> action) where TBootstrapper : IBootstrapper { bootstrapper.ThrowIfNull(nameof(bootstrapper)); action.ThrowIfNull(nameof(action)); bootstrapper.Configurators.Add<ConfigurableConfiguration>(x => action(x.Builder)); return bootstrapper; } public static TBootstrapper ConfigureServices<TBootstrapper>(this TBootstrapper bootstrapper, Action<IServiceCollection> action) where TBootstrapper : IBootstrapper { bootstrapper.ThrowIfNull(nameof(bootstrapper)); action.ThrowIfNull(nameof(action)); bootstrapper.Configurators.Add<ConfigurableServices>(x => action(x.Services)); return bootstrapper; } public static TBootstrapper ConfigureServices<TBootstrapper>(this TBootstrapper bootstrapper, Action<IServiceCollection, ISettings> action) where TBootstrapper : IBootstrapper { bootstrapper.ThrowIfNull(nameof(bootstrapper)); action.ThrowIfNull(nameof(action)); bootstrapper.Configurators.Add<ConfigurableServices>(x => action(x.Services, x.Settings)); return bootstrapper; } public static TBootstrapper ConfigureEngine<TBootstrapper>(this TBootstrapper bootstrapper, Action<IEngine> action) where TBootstrapper : IBootstrapper { bootstrapper.ThrowIfNull(nameof(bootstrapper)); action.ThrowIfNull(nameof(action)); bootstrapper.Configurators.Add<IEngine>(x => action(x)); return bootstrapper; } } }
43.309091
147
0.685139
[ "MIT" ]
JoshClose/Statiq.Framework
src/core/Statiq.Common/Bootstrapper/BootstrapperConfigurationExtensions.cs
2,384
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DitherSize : MonoBehaviour { private Material dithermtl; private float cameraSize; public float staticMultiplier; public GameObject cameraGO; // Start is called before the first frame update void Start() { dithermtl = this.GetComponent<Renderer>().material; cameraSize = cameraGO.GetComponent<Camera>().orthographicSize; } // Update is called once per frame void Update() { cameraSize = cameraGO.GetComponent<Camera>().orthographicSize; dithermtl.SetTextureScale("_Dither", new Vector2(staticMultiplier / cameraSize, staticMultiplier / cameraSize)); } }
27.074074
120
0.709986
[ "MIT" ]
innogames/IGJam_Gamescom_2019
igjam/Assets/Scripts/DitherSize.cs
733
C#
using NBitcoin.JsonConverters; using Newtonsoft.Json; namespace Jellyfish.API.Oracle; public class OracleTokenPrice { public string Token { get; init; } = string.Empty; public string Currency { get; init; } = string.Empty; /// <summary> /// example: 0.5 /// </summary> public decimal Amount { get; init; } /// <summary> /// example: 1623161076 is an Epoch time which every digit represents a second. /// </summary> [JsonProperty("timestamp")] [JsonConverter(typeof(DateTimeToUnixTimeConverter))] public DateTimeOffset Time { get; init; } }
28.142857
83
0.670051
[ "MIT" ]
defichaininfo/Jellyfish.NET
Jellyfish.NET/API/Oracle/OracleTokenPrice.cs
593
C#
using System; using RuleScript.Data; using RuleScript.Metadata; using UnityEngine; namespace RuleScript.Validation { static internal class ValidationLogic { static internal void ValidateTable(RSRuleTableData inTable, RSValidationState ioState, RSValidationContext inContext) { if (inContext.Library == null) { ioState.Error("No library provided"); return; } else if (!inContext.Library.IsLoaded()) { ioState.Error("Library not fully loaded"); return; } if (inTable == null || inTable.Rules == null || inTable.Rules.Length == 0) { return; } for (int i = 0; i < inTable.Rules.Length; ++i) { ioState.PushContext("Rule {0}: {1}", i, inTable.Rules[i]?.Name); ValidateRule(inTable.Rules[i], ioState, inContext); ioState.PopContext(); } } static private void ValidateRule(RSRuleData inRule, RSValidationState ioState, RSValidationContext inContext) { if (inRule == null) { ioState.Error("Null rule"); return; } ioState.PushContext("Trigger"); RSTriggerInfo triggerInfo = ValidateTriggerId(inRule.TriggerId, RSValidationFlags.None, ioState, inContext); inContext = inContext.WithTrigger(triggerInfo); ioState.PopContext(); if (inRule.Conditions != null && inRule.Conditions.Length > 0) { for (int i = 0; i < inRule.Conditions.Length; ++i) { ioState.PushContext("Condition {0}", i); ValidateCondition(inRule.Conditions[i], ioState, inContext); ioState.PopContext(); } } if (inRule.Actions != null && inRule.Actions.Length > 0) { for (int i = 0; i < inRule.Actions.Length; ++i) { ioState.PushContext("Action {0}", i); ValidateAction(inRule.Actions[i], ioState, inContext); ioState.PopContext(); } } } static private void ValidateCondition(RSConditionData inCondition, RSValidationState ioState, RSValidationContext inContext) { ioState.PushContext("Query"); ValidateResolvableValue(inCondition.Query, null, RSValidationFlags.None.ForConditionQuery(), ioState, inContext); ioState.PopContext(); RSTypeInfo expectedType = inCondition.Query.TypeInfo(inContext.Trigger, inContext.Library); if (inCondition.Query.Mode != ResolvableValueMode.Value && expectedType != null) { ioState.PushContext("Operator"); CompareOperator op = inCondition.Operator; if (!expectedType.IsOperatorAllowed(op)) { ioState.Error("Operator {0} is not allowed for type {1}", op, expectedType); } ioState.PopContext(); if (op.IsBinary()) { ioState.PushContext("Target"); ValidateResolvableValue(inCondition.Target, expectedType, RSValidationFlags.None.ForConditionTarget(), ioState, inContext); ioState.PopContext(); } } } static private void ValidateAction(RSActionData inAction, RSValidationState ioState, RSValidationContext inContext) { ioState.PushContext("Action Id"); RSActionInfo actionInfo = ValidateActionId(inAction.Action, RSValidationFlags.None, ioState, inContext); ioState.PopContext(); ioState.PushContext("Arguments"); if (actionInfo != null) { int argCount = actionInfo.Parameters.Length; if (argCount <= 0) { if (inAction.Arguments != null && inAction.Arguments.Length > 0) ioState.Error("Arguments provided for action {0} but none required", actionInfo.Name); } else { if (inAction.Arguments == null) { ioState.Error("No arguments provided for action {0} but {1} required", actionInfo.Name, argCount); } else if (inAction.Arguments.Length != argCount) { ioState.Error("Argument count mismatch for action {0} - {1} required but {2} provided", actionInfo.Name, argCount, inAction.Arguments.Length); } else { for (int i = 0; i < argCount; ++i) { ValidateParameter(actionInfo.Parameters[i], inAction.Arguments[i], ioState, inContext); } } } } ioState.PopContext(); } static private void ValidateParameter(RSParameterInfo inParameterInfo, RSResolvableValueData inValue, RSValidationState ioState, RSValidationContext inContext) { ioState.PushContext("Parameter: {0}", inParameterInfo.Name); ValidateResolvableValue(inValue, inParameterInfo.Type, RSValidationFlags.None.ForParameter(inParameterInfo), ioState, inContext.WithParameter(inParameterInfo)); ioState.PopContext(); } static private void ValidateNestedParameter(RSParameterInfo inParameterInfo, NestedValue inValue, RSValidationState ioState, RSValidationContext inContext) { ioState.PushContext("Parameter: {0}", inParameterInfo.Name); ValidateNestedValue(inValue, inParameterInfo.Type, RSValidationFlags.None.ForParameter(inParameterInfo), ioState, inContext.WithParameter(inParameterInfo)); ioState.PopContext(); } static private void ValidateResolvableValue(RSResolvableValueData inValue, RSTypeInfo inExpectedType, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { bool bDisallowDirectValue = (inExpectedType == null || inExpectedType == RSBuiltInTypes.Any || inFlags.Has(RSValidationFlags.DisallowDirectValue)); switch (inValue.Mode) { case ResolvableValueMode.Argument: { ValidateTriggerArgument(inExpectedType, inFlags, ioState, inContext); break; } case ResolvableValueMode.Value: { if (bDisallowDirectValue) { ioState.Error("Cannot specify a direct value in this context"); } else { ValidateValue(inValue.Value, inExpectedType, inFlags, ioState, inContext); } break; } case ResolvableValueMode.Register: { if (inFlags.Has(RSValidationFlags.DisallowRegisters)) { ioState.Error("Cannot use a register in this context"); } break; } case ResolvableValueMode.Query: { ioState.PushContext("Query Id"); RSQueryInfo queryInfo = ValidateQueryId(inValue.Query, inExpectedType, inFlags.ForMethod(true), ioState, inContext); ioState.PopContext(); ioState.PushContext("Arguments"); if (queryInfo != null) { int argCount = queryInfo.Parameters.Length; if (argCount <= 0) { if (inValue.QueryArguments != null && inValue.QueryArguments.Length > 0) ioState.Error("Arguments provided for action {0} but none required", queryInfo.Name); } else { if (inValue.QueryArguments == null) { ioState.Error("No arguments provided for action {0} but {1} required", queryInfo.Name, argCount); } else if (inValue.QueryArguments.Length != argCount) { ioState.Error("Argument count mismatch for action {0} - {1} required but {2} provided", queryInfo.Name, argCount, inValue.QueryArguments.Length); } else { for (int i = 0; i < argCount; ++i) { ValidateNestedParameter(queryInfo.Parameters[i], inValue.QueryArguments[i], ioState, inContext); } } } } ioState.PopContext(); break; } } } static private void ValidateNestedValue(NestedValue inValue, RSTypeInfo inExpectedType, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { bool bDisallowDirectValue = (inExpectedType == null || inExpectedType == RSBuiltInTypes.Any || inFlags.Has(RSValidationFlags.DisallowDirectValue)); switch (inValue.Mode) { case ResolvableValueMode.Argument: { ValidateTriggerArgument(inExpectedType, inFlags, ioState, inContext); break; } case ResolvableValueMode.Register: { if (inFlags.Has(RSValidationFlags.DisallowRegisters)) { ioState.Error("Cannot use a register in this context"); } break; } case ResolvableValueMode.Value: { if (bDisallowDirectValue) { ioState.Error("Cannot specify a direct value in this context"); } else { ValidateValue(inValue.Value, inExpectedType, inFlags, ioState, inContext); } break; } case ResolvableValueMode.Query: { ValidateQueryId(inValue.Query, inExpectedType, inFlags.ForMethod(false), ioState, inContext); break; } } } static private void ValidateEntityScope(EntityScopeData inScope, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { bool bForceFirst = inFlags.Has(RSValidationFlags.RequireSingleEntity); switch (inScope.Type) { case EntityScopeType.ObjectById: { RSEntityId entityId = inScope.IdArg; ValidateEntityId(entityId, inFlags, ioState, inContext); break; } case EntityScopeType.ObjectsWithGroup: { if (bForceFirst && !inScope.UseFirst) { ioState.Error("Potentially multiple return values in context where only one value is accepted"); } ValidateGroupId(inScope.GroupArg, inFlags, ioState, inContext); break; } case EntityScopeType.ObjectsWithName: case EntityScopeType.ObjectsWithPrefab: { if (bForceFirst && !inScope.UseFirst) { ioState.Error("Potentially multiple return values in context where only one value is accepted"); } string name = inScope.SearchArg; if (string.IsNullOrEmpty(name)) { ioState.Warn("Empty search string"); } break; } case EntityScopeType.Null: { if (!inFlags.Has(RSValidationFlags.AllowNullEntity)) { ioState.Error("Null entity not allowed in this context"); } break; } case EntityScopeType.Invalid: { ioState.Error("Missing entity"); break; } case EntityScopeType.Global: { if (!inFlags.Has(RSValidationFlags.AllowGlobalEntity)) { ioState.Error("Global entity not allowed in this context"); } break; } case EntityScopeType.Argument: { ValidateTriggerArgument(RSBuiltInTypes.Entity, inFlags, ioState, inContext); break; } } } static private void ValidateValue(RSValue inValue, RSTypeInfo inExpectedType, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { Type systemType = inExpectedType.SystemType; if (systemType.IsEnum) { try { Enum currentValue = inValue.AsEnum(); } catch (Exception e) { Debug.LogException(e); ioState.Error("Enum {0} cannot be represented as type {1}", inValue, inExpectedType); } return; } if (inExpectedType == RSBuiltInTypes.Entity) { EntityScopeData scope = inValue.AsEntity; ValidateEntityScope(scope, inFlags.ForEntityValue(), ioState, inContext); } else if (inExpectedType == RSBuiltInTypes.GroupId) { RSGroupId group = inValue.AsGroupId; ValidateGroupId(group, inFlags, ioState, inContext); } else if (inExpectedType == RSBuiltInTypes.TriggerId) { RSTriggerId triggerId = inValue.AsTriggerId; ValidateTriggerId(triggerId, inFlags, ioState, inContext); } } static private RSGroupInfo ValidateGroupId(RSGroupId inGroupId, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { if (inGroupId != RSGroupId.Null) { RSGroupInfo groupInfo = inContext.Library.GetGroup(inGroupId); if (groupInfo == null) { ioState.Error("Group {0} does not exist", inGroupId); } return groupInfo; } else { return null; } } static private RSTriggerInfo ValidateTriggerId(RSTriggerId inTriggerId, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { RSTypeInfo restrictTriggerType = inContext.Parameter?.TriggerParameterType; if (inTriggerId == RSTriggerId.Null) { if (restrictTriggerType != null) ioState.Error("Null trigger id provided - require trigger with parameter type {0}", restrictTriggerType); else ioState.Warn("Null trigger provided"); return null; } else { RSTriggerInfo triggerInfo = inContext.Library.GetTrigger(inTriggerId); if (triggerInfo == null) { ioState.Error("Trigger {0} does not exist", inTriggerId); } else { if (restrictTriggerType != null) { if (restrictTriggerType == RSBuiltInTypes.Void) { if (triggerInfo.ParameterType != null) ioState.Error("Trigger with no parameter required, but trigger {0} with parameter {1} provided", triggerInfo.Name, triggerInfo.ParameterType.Type); } else { if (triggerInfo.ParameterType == null) { ioState.Error("Trigger with parameter {0} required, but trigger {1} with no parameter provided", restrictTriggerType, triggerInfo.Name); } else if (!restrictTriggerType.CanConvert(triggerInfo.ParameterType.Type)) { ioState.Error("Trigger with parameter {0} required, but trigger {1} with incompatible parameter {2} provided", restrictTriggerType, triggerInfo.Name, triggerInfo.ParameterType.Type); } } } } return triggerInfo; } } static private void ValidateEntityId(RSEntityId inEntityId, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { if (inEntityId == RSEntityId.Null && !inFlags.Has(RSValidationFlags.AllowNullEntity)) { ioState.Error("Null entity not allowed in this context"); } else if (inEntityId != RSEntityId.Null) { if (inContext.Manager != null) { var entity = inContext.Manager.Lookup.EntityWithId(inEntityId); if (entity == null) ioState.Error("No entity with id {0} found in entity manager", inEntityId); } else { ioState.Warn("No entity manager found - unable to verify that entity with id {0} exists", inEntityId); } } } static private void ValidateTriggerArgument(RSTypeInfo inExpectedType, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { if (inContext.Trigger == null) { ioState.Error("Cannot use trigger parameter - no trigger"); } else if (inContext.Trigger.ParameterType == null) { ioState.Error("Cannot use trigger parameter - trigger {0} has no parameter", inContext.Trigger.Name); } else if (inExpectedType != null && !inContext.Trigger.ParameterType.Type.CanConvert(inExpectedType)) { ioState.Error("Cannot use trigger parameter - trigger {0} has incompatible parameter type {1}, which cannot convert to {2}", inContext.Trigger.Name, inContext.Trigger.ParameterType.Type, inExpectedType); } } static private RSQueryInfo ValidateQueryId(EntityScopedIdentifier inIdentifier, RSTypeInfo inExpectedType, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { bool bNoParams = inFlags.Has(RSValidationFlags.DisallowParameters); ValidateEntityScope(inIdentifier.Scope, inFlags.ForMethodScope(), ioState, inContext); if (inIdentifier.Id == 0) { ioState.Error("Null query not allowed"); return null; } else { RSQueryInfo queryInfo = inContext.Library.GetQuery(inIdentifier.Id); if (queryInfo == null) { ioState.Error("Query {0} does not exist", inIdentifier.Id); } else { if (inExpectedType != null && !queryInfo.ReturnType.CanConvert(inExpectedType)) { ioState.Error("Query {0} returns incompatible type {1}, which cannot convert to desired type {2}", queryInfo.Name, queryInfo.ReturnType, inExpectedType); } if (bNoParams && queryInfo.Parameters != null && queryInfo.Parameters.Length > 0) { ioState.Error("Query {0} has parameters, which is not allowed in this context", queryInfo.Name); } switch (inIdentifier.Scope.Type) { case EntityScopeType.Global: { if (queryInfo.OwnerType != null) ioState.Error("Query {0} is bound to type {1} but was specified as a global query", queryInfo.Name, queryInfo.OwnerType.Name); break; } case EntityScopeType.Null: case EntityScopeType.Invalid: break; default: { if (queryInfo.OwnerType == null) ioState.Error("Query {0} is bound to global scope but was specified as a local query", queryInfo.Name); break; } } } return queryInfo; } } static private RSActionInfo ValidateActionId(EntityScopedIdentifier inIdentifier, RSValidationFlags inFlags, RSValidationState ioState, RSValidationContext inContext) { ValidateEntityScope(inIdentifier.Scope, inFlags.ForMethodScope(), ioState, inContext); if (inIdentifier.Id == 0) { ioState.Error("Null action not allowed"); return null; } else { RSActionInfo actionInfo = inContext.Library.GetAction(inIdentifier.Id); if (actionInfo == null) { ioState.Error("Action {0} does not exist", inIdentifier.Id); } else { switch (inIdentifier.Scope.Type) { case EntityScopeType.Global: { if (actionInfo.OwnerType != null) ioState.Error("Action {0} is bound to type {1} but was specified as a global action", actionInfo.Name, actionInfo.OwnerType.Name); break; } case EntityScopeType.Null: case EntityScopeType.Invalid: break; default: { if (actionInfo.OwnerType == null) ioState.Error("Action {0} is bound to global scope but was specified as a local action", actionInfo.Name); break; } } } return actionInfo; } } } }
43.332155
219
0.486749
[ "MIT" ]
FilamentGames/RuleScript
Assets/RuleScript/Validation/ValidationLogic.cs
24,526
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Nancy.Helpers; namespace Autodash.Core.UI.Models { public class SuiteDetailsVm { public TestSuite Suite { get; set; } public List<SuiteRun> SuiteRuns { get; set; } public FileExplorerVm FileExplorer { get; set; } public List<KeyValuePair<string, string>> AvailableBrowsers { get; set; } public bool IsBrowserSelected(string browserVersion) { string[] parts = browserVersion.Split('|'); return Suite.Configuration.Browsers.Any(b => b.Name == parts[0] && (b.Version == null || b.Version == parts[1])); } public string ScheduleTime { get { if (Suite.Schedule == null) return ""; return Suite.Schedule.Time.Hours.ToString("00", CultureInfo.InvariantCulture) + ":" + Suite.Schedule.Time.Minutes.ToString("00", CultureInfo.InvariantCulture); } } public string ScheduleInterval { get { if (Suite.Schedule == null) return ""; return Suite.Schedule.Interval.TotalHours.ToString(CultureInfo.InvariantCulture); } } } public class FileExplorerVm { public List<FileExplorerItem> Files { get; set; } public string TestSuiteId { get; set; } } public class FileExplorerItem { public string Filename { get; set; } public string FileContent { get; set; } public string TestSuiteId { get; set; } public string EditLink { get; set; } } public static class SuiteRunExtensions { public static string DurationFriendly(this SuiteRun run) { var duration = run.Duration; return duration == TimeSpan.MaxValue ? "" : duration.TotalMinutes.ToString("0.00", CultureInfo.InvariantCulture); } public static string PassedFailedInconclusive(this SuiteRun run) { if (run.Result == null) return ""; return string.Format("{0}/{1}/{2}", run.Result.PassedTotal, run.Result.FailedTotal, run.Result.InconclusiveTotal); } public static string StatusColored(this SuiteRun run) { string title = null; if (run.Status == SuiteRunStatus.Complete) { if(run.Result.Outcome == TestOutcome.Passed) title = "<span class='label label-success' title='{0}'>Complete</span>"; else if (run.Result.Outcome == TestOutcome.Inconclusive) title = "<span class='label label-warning' title='{0}'>Complete</span>"; else if (run.Result.Outcome == TestOutcome.Failed) title = "<span class='label label-danger' title='{0}'>Complete</span>"; } else if (run.Status == SuiteRunStatus.Scheduled) { title = "<span class='label label-info' title='{0}'>Scheduled</span>"; } else if (run.Status == SuiteRunStatus.Running) { title = "<span class='label label-primary' title='{0}'>Running</span>"; } if(!string.IsNullOrEmpty(title)) return string.Format(title, HttpUtility.HtmlAttributeEncode(run.Result == null ? "" : run.Result.Details)); return ""; } } }
34.813725
126
0.560124
[ "MIT" ]
epignosisx/autodash
src/Autodash.Core/UI/Models/SuiteDetailsVm.cs
3,553
C#
using UnityEngine; using UnityEditor; using System; using System.Collections; namespace AdvancedInspector { public class DateTimeEditor : FieldEditor, IModal { private InspectorField field; public override Type[] EditedTypes { get { return new Type[] { typeof(DateTime) }; } } private static Texture calendar; internal static Texture Calendar { get { if (calendar == null) calendar = Helper.Load(EditorResources.Calendar); return calendar; } } public override void Draw(InspectorField field, GUIStyle style) { DateTime time = field.GetValue<DateTime>(); if (time == DateTime.MinValue) time = DateTime.Now; string title = time.ToString(); if (field.Mixed) title = " - - - "; EditorGUILayout.BeginHorizontal(); EditorGUILayout.Space(); if (GUILayout.Button(Calendar, GUIStyle.none, GUILayout.Width(18), GUILayout.Height(18))) { this.field = field; DateTimeDialog.Create(this, time, GUIUtility.GUIToScreenPoint(Event.current.mousePosition)); } TextAnchor anchor = GUI.skin.label.alignment; GUI.skin.label.alignment = TextAnchor.MiddleLeft; GUILayout.Label(title); GUI.skin.label.alignment = anchor; GUILayout.FlexibleSpace(); EditorGUILayout.EndHorizontal(); } public void ModalRequest(bool shift) { } public void ModalClosed(ModalWindow window) { if (window.Result != WindowResult.Ok) return; field.SetValue(((DateTimeDialog)window).Time); } } }
28.955224
109
0.535052
[ "MIT" ]
chuckeles/cannon-ships
Assets/Plugins/Editor/AdvancedInspector/FieldEditors/DateTimeEditor.cs
1,942
C#
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license * * 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. */ namespace Apache.Ignite.Core.Compute { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Apache.Ignite.Core.Cluster; using Apache.Ignite.Core.Common; using Apache.Ignite.Core.Impl.Compute; /// <summary> /// Convenience adapter for <see cref="IComputeTask{TArg,TJobRes,TTaskRes}"/> interface /// </summary> public abstract class ComputeTaskAdapter<TArg, TJobRes, TTaskRes> : IComputeTask<TArg, TJobRes, TTaskRes> { /// <summary> /// Default implementation which will wait for all jobs to complete before /// calling <see cref="IComputeTask{A,T,R}.Reduce"/> method. /// <p/> /// If remote job resulted in exception <see cref="IComputeJobResult{T}.Exception()"/> /// is not <c>null</c>), /// then <see cref="ComputeJobResultPolicy.Failover"/> policy will be returned if /// the exception is instance of <see cref="ClusterTopologyException"/> /// or <see cref="ComputeExecutionRejectedException"/>, which means that /// remote node either failed or job execution was rejected before it got a chance to start. In all /// other cases the exception will be rethrown which will ultimately cause task to fail. /// </summary> /// <param name="res">Received remote Ignite executable result.</param> /// <param name="rcvd">All previously received results.</param> /// <returns>Result policy that dictates how to process further upcoming job results.</returns> [SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods")] public virtual ComputeJobResultPolicy OnResult(IComputeJobResult<TJobRes> res, IList<IComputeJobResult<TJobRes>> rcvd) { Exception err = res.Exception; if (err != null) { if (Compute.IsFailoverException(err)) return ComputeJobResultPolicy.Failover; throw new IgniteException("Remote job threw user exception (override or implement " + "IComputeTask.result(..) method if you would like to have automatic failover for this exception).", err); } return ComputeJobResultPolicy.Wait; } /// <summary> /// This method is called to map or split Ignite task into multiple Ignite jobs. This is the /// first method that gets called when task execution starts. /// </summary> /// <param name="subgrid">Nodes available for this task execution. Note that order of nodes is /// guaranteed to be randomized by container. This ensures that every time you simply iterate /// through Ignite nodes, the order of nodes will be random which over time should result into /// all nodes being used equally.</param> /// <param name="arg">Task execution argument. Can be <c>null</c>. This is the same argument /// as the one passed into <c>ICompute.Execute()</c> methods.</param> /// <returns> /// Map of Ignite jobs assigned to subgrid node. If <c>null</c> or empty map is returned, /// exception will be thrown. /// </returns> public abstract IDictionary<IComputeJob<TJobRes>, IClusterNode> Map(IList<IClusterNode> subgrid, TArg arg); /// <summary> /// Reduces (or aggregates) results received so far into one compound result to be returned to /// caller via task. /// <para /> /// Note, that if some jobs did not succeed and could not be failed over then the list of /// results passed into this method will include the failed results. Otherwise, failed /// results will not be in the list. /// </summary> /// <param name="results">Received job results. Note that if task class has /// <see cref="ComputeTaskNoResultCacheAttribute" /> attribute, then this list will be empty.</param> /// <returns> /// Task result constructed from results of remote executions. /// </returns> public abstract TTaskRes Reduce(IList<IComputeJobResult<TJobRes>> results); } }
50.690722
119
0.656905
[ "CC0-1.0" ]
Diffblue-benchmarks/Gridgain-gridgain
modules/platforms/dotnet/Apache.Ignite.Core/Compute/ComputeTaskAdapter.cs
4,917
C#
namespace SeleniumDotNetTemplate.Shared.Enums { public enum Browser { Chrome, Edge, Firefox } }
14.625
46
0.649573
[ "MIT" ]
jordnkr/SeleniumDotNetTemplate
Shared/Enums/Browser.cs
119
C#
using System; namespace _18_HotelRoom { public class hotelRoom { public static void Main(string[] args) { var month = Console.ReadLine(); var nights = int.Parse(Console.ReadLine()); var studio = 0.0; var flat = 0.0; if (month.Equals("May") || month.Equals("October")) { if (nights > 14) { flat = (nights * (65 - (65 * 0.1))); Console.WriteLine("Apartment: " + string.Format("{0:0.00}", flat) + " lv."); } else { flat = nights * 65; Console.WriteLine("Apartment: " + string.Format("{0:0.00}", flat) + " lv."); } if (nights > 7) { studio = nights * (50 - (50 * 0.05)); Console.WriteLine("Studio: " + string.Format("{0:0.00}", studio) + " lv."); } else if (nights > 14) { studio = nights * (50 - (50 * 0.3)); Console.WriteLine("Studio: " + string.Format("{0:0.00}", studio) + " lv."); } else { studio = nights * 50; Console.WriteLine("Studio: " + string.Format("{0:0.00}", studio) + " lv."); } } else if (month.Equals("June") || month.Equals("September")) { if (nights > 14) { flat = nights * (68.7 - (68.7 * 0.1)); Console.WriteLine("Apartment: " + string.Format("{0:0.00}", flat) + " lv."); } else { flat = nights * 68.7; Console.WriteLine("Apartment: " + string.Format("{0:0.00}", flat) + " lv."); } if (nights > 14) { studio = nights * (75.2 - (75.2 * 0.2)); Console.WriteLine("Studio: " + string.Format("{0:0.00}", studio) + " lv."); } else { studio = nights * 75.2; Console.WriteLine("Studio: " + string.Format("{0:0.00}", studio) + " lv."); } } else if (month.Equals("July") || month.Equals("August")) { if (nights > 14) { flat = nights * (77 - (77 * 0.1)); Console.WriteLine("Apartment: " + string.Format("{0:0.00}", flat) + " lv."); } else { flat = nights * 77; Console.WriteLine("Apartment: " + string.Format("{0:0.00}", flat) + " lv."); } studio = nights * 76; Console.WriteLine("Studio: " + string.Format("{0:0.00}", studio) + " lv."); } } } }
33.582418
96
0.35962
[ "MIT" ]
Brankovanov/SoftUniCourses
1.ProgrammingBasics/complexConditions/18_HotelRoom/hotelRoom.cs
3,058
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.AzureNextGen.ContainerService.Latest { [Obsolete(@"The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-nextgen:containerservice:listManagedClusterAccessProfile'.")] public static class ListManagedClusterAccessProfile { /// <summary> /// Managed cluster Access Profile. /// Latest API Version: 2020-03-01. /// </summary> public static Task<ListManagedClusterAccessProfileResult> InvokeAsync(ListManagedClusterAccessProfileArgs args, InvokeOptions? options = null) => Pulumi.Deployment.Instance.InvokeAsync<ListManagedClusterAccessProfileResult>("azure-nextgen:containerservice/latest:listManagedClusterAccessProfile", args ?? new ListManagedClusterAccessProfileArgs(), options.WithVersion()); } public sealed class ListManagedClusterAccessProfileArgs : Pulumi.InvokeArgs { /// <summary> /// The name of the resource group. /// </summary> [Input("resourceGroupName", required: true)] public string ResourceGroupName { get; set; } = null!; /// <summary> /// The name of the managed cluster resource. /// </summary> [Input("resourceName", required: true)] public string ResourceName { get; set; } = null!; /// <summary> /// The name of the role for managed cluster accessProfile resource. /// </summary> [Input("roleName", required: true)] public string RoleName { get; set; } = null!; public ListManagedClusterAccessProfileArgs() { } } [OutputType] public sealed class ListManagedClusterAccessProfileResult { /// <summary> /// Resource Id /// </summary> public readonly string Id; /// <summary> /// Base64-encoded Kubernetes configuration file. /// </summary> public readonly string? KubeConfig; /// <summary> /// Resource location /// </summary> public readonly string Location; /// <summary> /// Resource name /// </summary> public readonly string Name; /// <summary> /// Resource tags /// </summary> public readonly ImmutableDictionary<string, string>? Tags; /// <summary> /// Resource type /// </summary> public readonly string Type; [OutputConstructor] private ListManagedClusterAccessProfileResult( string id, string? kubeConfig, string location, string name, ImmutableDictionary<string, string>? tags, string type) { Id = id; KubeConfig = kubeConfig; Location = location; Name = name; Tags = tags; Type = type; } } }
31.732673
240
0.608736
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/ContainerService/Latest/ListManagedClusterAccessProfile.cs
3,205
C#
using OkonkwoOandaV20.TradeLibrary.DataTypes.Position; using OkonkwoOandaV20.TradeLibrary.DataTypes.Order; using OkonkwoOandaV20.TradeLibrary.DataTypes.Trade; using System.Collections.Generic; namespace OkonkwoOandaV20.TradeLibrary.DataTypes.Account { /// <summary> /// http://developer.oanda.com/rest-live-v20/account-df/#AccountChangesState /// </summary> public class AccountChangesState { public double unrealizedPL { get; set; } public double NAV { get; set; } public double marginUsed { get; set; } public double marginAvailable { get; set; } public double positionValue { get; set; } public double marginCloseoutUnrealizedPL { get; set; } public double marginCloseoutNAV { get; set; } public double marginCloseoutMarginUsed { get; set; } public double marginCloseoutPercent { get; set; } public double marginCloseoutPositionValue { get; set; } public double withdrawalLimit { get; set; } public double marginCallMarginUsed { get; set; } public double marginCallPercent { get; set; } public List<DynamicOrderState> orders { get; set; } public List<CalculatedTradeState> trades { get; set; } public List<CalculatedPositionState> positions { get; set; } } }
41.225806
79
0.711268
[ "Apache-2.0" ]
svopex/SierraChartOandaV20
OkonkwoOandaV20/TradeLibrary/DataTypes/Account/AccountChangesState.cs
1,280
C#
//----------------------------------------------------------------------- // <copyright company="CoApp Project"> // Copyright (c) 2010-2012 Garrett Serack and CoApp Contributors. // Contributors can be discovered using the 'git log' command. // All rights reserved. // </copyright> // <license> // The software is licensed under the Apache 2.0 License (the "License") // You may not use the software except in compliance with the License. // </license> //----------------------------------------------------------------------- namespace CoApp.Packaging.Service { using System; using System.Collections.Generic; using System.Linq; using Toolkit.Collections; using Toolkit.Tasks; public class SessionCache<T> : Cache<T> where T : class { private static IDictionary<Type, object> _nullSessionCache = new XDictionary<Type, object>(); public new static SessionCache<T> Value { get { SessionCache<T> result = null; try { result = (Event<GetSessionCache>.RaiseFirst(typeof (T), () => new SessionCache<T>())) as SessionCache<T>; } catch { } if (result == null) { var type = typeof (T); lock (_nullSessionCache) { if (!_nullSessionCache.ContainsKey(type)) { _nullSessionCache.Add(type, new SessionCache<T>()); } result = _nullSessionCache[type] as SessionCache<T>; } } return result; } } public override T this[string index] { get { if (index == null) { return default(T); } // check current cache. return _cache.ContainsKey(index) ? _cache[index] : GetAndRememberDelegateValue(index) ?? Cache<T>.Value[index]; } set { lock (_cache) { if (_cache.ContainsKey(index)) { _cache[index] = value; } else { _cache.Add(index, value); } } } } public override IEnumerable<string> Keys { get { return _cache.Keys.Union(Cache<T>.Value.Keys); } } public override IEnumerable<T> Values { get { return _cache.Values.AsEnumerable().Union(Cache<T>.Value.Values); } } public IEnumerable<string> SessionKeys { get { return _cache.Keys; } } public IEnumerable<T> SessionValues { get { return _cache.Values.AsEnumerable(); } } } }
34.825581
128
0.450417
[ "Apache-2.0" ]
fearthecowboy/coapp
Packaging/Service/SessionCache.cs
2,995
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using UVACanvasAccess.Model.Authentications; using UVACanvasAccess.Structures.Authentications; using UVACanvasAccess.Util; namespace UVACanvasAccess.ApiParts { public partial class Api { /// <summary> /// Streams the list of authentication events recorded for the given account. /// </summary> /// <param name="accountId">The account id. Defaults to <c>self</c>.</param> /// <param name="start">The beginning of the date range to search in.</param> /// <param name="end">The end of the date range to search in.</param> /// <returns>The stream of events.</returns> /// <remarks> /// The authentication log keeps any given event for 1 year. /// </remarks> public async IAsyncEnumerable<AuthenticationEvent> StreamAccountAuthenticationEvents(ulong? accountId = null, DateTime? start = null, DateTime? end = null) { var response = await RawListAuthenticationEvents("accounts", accountId?.ToString() ?? "self", start, end); var events = StreamDeserializeObjectPages<AuthenticationEventsResponseModel>(response) .SelectMany(r => r.Events.ToAsyncEnumerable(), (_, m) => new AuthenticationEvent(this, m)); await foreach (var e in events) { yield return e; } } /// <summary> /// Streams the list of authentication events recorded for the given user. /// </summary> /// <param name="userId">The user id.</param> /// <param name="start">The beginning of the date range to search in.</param> /// <param name="end">The end of the date range to search in.</param> /// <returns>The stream of events.</returns> /// <remarks> /// The authentication log keeps any given event for 1 year. /// </remarks> public async IAsyncEnumerable<AuthenticationEvent> StreamUserAuthenticationEvents(ulong userId, DateTime? start = null, DateTime? end = null) { var response = await RawListAuthenticationEvents("users", userId.ToString(), start, end); var events = StreamDeserializeObjectPages<AuthenticationEventsResponseModel>(response) .SelectMany(r => r.Events.ToAsyncEnumerable(), (_, m) => new AuthenticationEvent(this, m)); await foreach (var e in events) { yield return e; } } [PaginatedResponse] private Task<HttpResponseMessage> RawListAuthenticationEvents(string endpoint, string id, DateTime? start, DateTime? end) { var url = $"audit/authentication/{endpoint}/{id}"; return _client.GetAsync(url + BuildQueryString(("start_time", start?.ToIso8601Date()), ("end_time", end?.ToIso8601Date()))); } } }
40.519481
118
0.601282
[ "MIT" ]
sabihoshi/UVACanvasAccess
UVACanvasAccess/ApiParts/Authentications.cs
3,120
C#
// Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System; using System.Windows; using Xenko.Core.Mathematics; namespace Xenko.Core.Presentation.Controls { public class Int4Editor : VectorEditorBase<Int4?> { /// <summary> /// Identifies the <see cref="X"/> dependency property. /// </summary> public static readonly DependencyProperty XProperty = DependencyProperty.Register("X", typeof(int?), typeof(Int4Editor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnComponentPropertyChanged, CoerceComponentValue)); /// <summary> /// Identifies the <see cref="Y"/> dependency property. /// </summary> public static readonly DependencyProperty YProperty = DependencyProperty.Register("Y", typeof(int?), typeof(Int4Editor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnComponentPropertyChanged, CoerceComponentValue)); /// <summary> /// Identifies the <see cref="Z"/> dependency property. /// </summary> public static readonly DependencyProperty ZProperty = DependencyProperty.Register("Z", typeof(int?), typeof(Int4Editor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnComponentPropertyChanged, CoerceComponentValue)); /// <summary> /// Identifies the <see cref="W"/> dependency property. /// </summary> public static readonly DependencyProperty WProperty = DependencyProperty.Register("W", typeof(int?), typeof(Int4Editor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnComponentPropertyChanged, CoerceComponentValue)); /// <summary> /// Gets or sets the X component of the <see cref="Int4"/> associated to this control. /// </summary> public int? X { get { return (int?)GetValue(XProperty); } set { SetValue(XProperty, value); } } /// <summary> /// Gets or sets the Y component of the <see cref="Int4"/> associated to this control. /// </summary> public int? Y { get { return (int?)GetValue(YProperty); } set { SetValue(YProperty, value); } } /// <summary> /// Gets or sets the Z component of the <see cref="Int4"/> associated to this control. /// </summary> public int? Z { get { return (int?)GetValue(ZProperty); } set { SetValue(ZProperty, value); } } /// <summary> /// Gets or sets the W component of the <see cref="Int4"/> associated to this control. /// </summary> public int? W { get { return (int?)GetValue(WProperty); } set { SetValue(WProperty, value); } } /// <inheritdoc/> protected override void UpdateComponentsFromValue(Int4? value) { if (value != null) { SetCurrentValue(XProperty, value.Value.X); SetCurrentValue(YProperty, value.Value.Y); SetCurrentValue(ZProperty, value.Value.Z); SetCurrentValue(WProperty, value.Value.W); } } /// <inheritdoc/> protected override Int4? UpdateValueFromComponent(DependencyProperty property) { if (property == XProperty) return X.HasValue && Value.HasValue ? (Int4?)new Int4(X.Value, Value.Value.Y, Value.Value.Z, Value.Value.W) : null; if (property == YProperty) return Y.HasValue && Value.HasValue ? (Int4?)new Int4(Value.Value.X, Y.Value, Value.Value.Z, Value.Value.W) : null; if (property == ZProperty) return Z.HasValue && Value.HasValue ? (Int4?)new Int4(Value.Value.X, Value.Value.Y, Z.Value, Value.Value.W) : null; if (property == WProperty) return W.HasValue && Value.HasValue ? (Int4?)new Int4(Value.Value.X, Value.Value.Y, Value.Value.Z, W.Value) : null; throw new ArgumentException("Property unsupported by method UpdateValueFromComponent."); } /// <inheritdoc/> protected override Int4? UpateValueFromFloat(float value) { return new Int4((int)Math.Round(value, MidpointRounding.AwayFromZero)); } } }
51.593023
271
0.649763
[ "MIT" ]
Aminator/xenko
sources/presentation/Xenko.Core.Presentation/Controls/Int4Editor.cs
4,437
C#
namespace System { using System.Threading; using Fx; /// <summary> /// A <see cref="Random"/> implementation that reads from a predictable set of data bytes for testing purposes /// </summary> /// <threadsafety static="true" instance="true"/> public sealed class MockRandom : Random { /// <summary> /// The range of the <see cref="int"/> values /// </summary> private const long IntegerRange = (long)int.MaxValue - int.MinValue + 1; /// <summary> /// The <see cref="T:byte[]"/> that will be the source of the resulting "random" values /// </summary> private readonly byte[] data; /// <summary> /// The current index within <see cref="data"/> that should be read from next /// </summary> private int index; /// <summary> /// Initializes a new instance of the <see cref="MockRandom"/> class /// </summary> /// <param name="data">The <see cref="T:byte[]"/> that will be the source of the resulting "random" values</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="data"/> is null</exception> /// <exception cref="ArgumentException">Thrown if <paramref name="data"/> is empty</exception> public MockRandom(byte[] data) { Ensure.EnumerableNotEmpty(data, nameof(data)); this.data = data.Clone() as byte[]; this.index = 0; } /// <summary> /// Returns a non-negative random integer /// </summary> /// <returns>A 32-bit signed integer that is greater than or equal to 0 and less than <see cref="int.MaxValue"/></returns> public override int Next() { return this.Next(0, int.MaxValue); } /// <summary> /// Returns a non-negative random integer that is less than the specified maximum /// </summary> /// <param name="maxValue">The exclusive upper bound of the random number generated</param> /// <returns>A 32-bit signed integer that is greater than or equal to 0, and less than <paramref name="maxValue"/>; that is, the range of the return values ordinarily includes 0 but not <paramref name="maxValue"/>. However, if <paramref name="maxValue"/> equals 0, <paramref name="maxValue"/> is returned</returns> /// <exception cref="ArgumentOutOfRangeException">Thrown if <paramref name="maxValue"/> is less than 0</exception> public override int Next(int maxValue) { Ensure.NotNegative(maxValue, nameof(maxValue)); return this.Next(0, maxValue); } /// <summary> /// Returns a random integer that is within a specified range /// </summary> /// <param name="minValue">The inclusive lower bound of the random number returned</param> /// <param name="maxValue">The exclusive upper bound of the random number returned</param> /// <returns>A 32-bit signed integer greater than or equal to <paramref name="minValue"/> and less than <paramref name="maxValue"/>; that is, the range of return values includes <paramref name="minValue"/> but not <paramref name="maxValue"/>. If <paramref name="minValue"/> equals <paramref name="maxValue"/>, <paramref name="minValue"/> is returned</returns> /// <exception cref="ArgumentOutOfRangeException">Thrown if <paramref name="minValue"/> is greater than <paramref name="maxValue"/></exception> public override int Next(int minValue, int maxValue) { if (minValue > maxValue) { throw new ArgumentOutOfRangeException(nameof(minValue)); } var buffer = new byte[4]; this.NextBytes(buffer); var a = BitConverter.ToInt32(buffer, 0); //// int.MinValue <= a <= int.MaxValue var b = a - (long)int.MinValue; //// 0 <= b <= int.MaxValue - int.MinValue var c = b * (1.0 / IntegerRange); //// 0 <= c < 1 var d = c * ((long)maxValue - minValue); //// 0 <= d < maxValue - minValue var e = (long)d + minValue; //// minValue <= thing7 < maxValue return (int)e; } /// <summary> /// Fills the elements of a specified array of bytes with random numbers /// </summary> /// <param name="buffer">An array of bytes to contain random numbers</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="buffer"/> is null</exception> public override void NextBytes(byte[] buffer) { Ensure.NotNull(buffer, nameof(buffer)); var end = Interlocked.Add(ref this.index, buffer.Length); var start = (end - buffer.Length) % this.data.Length; var written = 0; while (written < buffer.Length) { var dataLength = this.data.Length - start; var bufferLength = buffer.Length - written; var length = dataLength < bufferLength ? dataLength : bufferLength; Array.Copy(this.data, start, buffer, written, length); written += length; start = 0; } } /// <summary> /// Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0 /// </summary> /// <returns>A double-precision floating point number that is greater than or equal to 0.0, and less than 1.0</returns> public override double NextDouble() { return this.Next() * (1.0 / int.MaxValue); } } }
45.333333
368
0.57199
[ "MIT" ]
corranrogue9/FxCore
Source/Core/System/MockRandom.cs
5,850
C#
 namespace System { partial class User { /// <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.dataGridView1 = new System.Windows.Forms.DataGridView(); this.id = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.textBox3 = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.button3 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.comboBox1 = new System.Windows.Forms.ComboBox(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // // dataGridView1 // this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.id}); this.dataGridView1.Location = new System.Drawing.Point(391, 28); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.RowHeadersWidth = 51; this.dataGridView1.RowTemplate.Height = 24; this.dataGridView1.Size = new System.Drawing.Size(609, 421); this.dataGridView1.TabIndex = 16; // // id // this.id.DataPropertyName = "id"; this.id.HeaderText = "id"; this.id.MinimumWidth = 6; this.id.Name = "id"; this.id.Width = 125; // // textBox3 // this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox3.Location = new System.Drawing.Point(181, 265); this.textBox3.Name = "textBox3"; this.textBox3.PasswordChar = '*'; this.textBox3.Size = new System.Drawing.Size(190, 30); this.textBox3.TabIndex = 15; // // label3 // this.label3.AutoSize = true; this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.Color.White; this.label3.Location = new System.Drawing.Point(51, 265); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(98, 25); this.label3.TabIndex = 14; this.label3.Text = "Password"; // // textBox2 // this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox2.Location = new System.Drawing.Point(181, 205); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(190, 30); this.textBox2.TabIndex = 13; // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.White; this.label2.Location = new System.Drawing.Point(85, 201); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(68, 25); this.label2.TabIndex = 12; this.label2.Text = "Userid"; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.White; this.label1.Location = new System.Drawing.Point(85, 139); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(57, 25); this.label1.TabIndex = 10; this.label1.Text = "Type"; // // button3 // this.button3.Location = new System.Drawing.Point(551, 467); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(214, 36); this.button3.TabIndex = 19; this.button3.Text = "Refresh"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button2 // this.button2.Location = new System.Drawing.Point(231, 343); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(149, 43); this.button2.TabIndex = 18; this.button2.Text = "Cancel"; this.button2.UseVisualStyleBackColor = true; // // button1 // this.button1.Location = new System.Drawing.Point(70, 344); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(152, 42); this.button1.TabIndex = 17; this.button1.Text = "Save"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { "Admin", "User"}); this.comboBox1.Location = new System.Drawing.Point(181, 139); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(190, 33); this.comboBox1.TabIndex = 20; // // User // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = global::System.Properties.Resources.wp2581371_plain_background; this.ClientSize = new System.Drawing.Size(1000, 542); this.Controls.Add(this.comboBox1); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.textBox3); this.Controls.Add(this.label3); this.Controls.Add(this.textBox2); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Name = "User"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private Windows.Forms.DataGridView dataGridView1; private Windows.Forms.DataGridViewTextBoxColumn id; private Windows.Forms.TextBox textBox3; private Windows.Forms.Label label3; private Windows.Forms.TextBox textBox2; private Windows.Forms.Label label2; private Windows.Forms.Label label1; private Windows.Forms.Button button3; private Windows.Forms.Button button2; private Windows.Forms.Button button1; private Windows.Forms.ComboBox comboBox1; } }
47.343284
170
0.57314
[ "MIT" ]
Rohan12e/student-mgmt-system
System/User.Designer.cs
9,518
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Emgu.CV; namespace com.bytewild.imaging.cropper { public class CropPolygon: IConvexPolygonF { public System.Drawing.PointF[] Vertices {get; set;} public CropPolygon() { Vertices = new System.Drawing.PointF[0]; } public CropPolygon(System.Drawing.PointF[] vertices) { Vertices = vertices; } public CropPolygon(System.Drawing.Point[] vertices) { List<System.Drawing.PointF> pf = new List<System.Drawing.PointF>(); foreach(var p in vertices) pf.Add(new System.Drawing.PointF(p.X, p.Y)); Vertices = pf.ToArray(); } public System.Drawing.PointF[] GetVertices() { return Vertices; } public double Area() { // TODO: Tis is not right but should be good enough to figure who si the biggist polygon for the prototype var verts = this.GetOrderedVertices().ToArray(); int num_points = verts.Length; System.Drawing.PointF[] pts = new System.Drawing.PointF[num_points + 1]; verts.CopyTo(pts, 0); pts[num_points] = verts[0]; // Get the areas. float area = 0; for (int i = 0; i < num_points; i++) { area += (pts[i + 1].X - pts[i].X) * (pts[i + 1].Y + pts[i].Y) / 2; } // Return the result. return -(area); // reverse the sign, the value is negative if this is a clockwise polygon } public List<System.Drawing.PointF> GetOrderedVertices() { var points = ConvexHull.CH2(new List<System.Drawing.PointF>(this.Vertices)); if (points == null) points = new List<System.Drawing.PointF>(); return points; } } }
28.525641
120
0.528539
[ "MIT" ]
ymitis/xamarin-scan-it
ScanIt/ScanIt/cropper/CropPolygon.cs
2,225
C#
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Generated code. DO NOT EDIT! using gagvr = Google.Ads.GoogleAds.V9.Resources; using gax = Google.Api.Gax; using gaxgrpc = Google.Api.Gax.Grpc; using gaxgrpccore = Google.Api.Gax.Grpc.GrpcCore; using proto = Google.Protobuf; using grpccore = Grpc.Core; using grpcinter = Grpc.Core.Interceptors; using sys = System; using scg = System.Collections.Generic; using sco = System.Collections.ObjectModel; using st = System.Threading; using stt = System.Threading.Tasks; namespace Google.Ads.GoogleAds.V9.Services { /// <summary>Settings for <see cref="DetailPlacementViewServiceClient"/> instances.</summary> public sealed partial class DetailPlacementViewServiceSettings : gaxgrpc::ServiceSettingsBase { /// <summary>Get a new instance of the default <see cref="DetailPlacementViewServiceSettings"/>.</summary> /// <returns>A new instance of the default <see cref="DetailPlacementViewServiceSettings"/>.</returns> public static DetailPlacementViewServiceSettings GetDefault() => new DetailPlacementViewServiceSettings(); /// <summary> /// Constructs a new <see cref="DetailPlacementViewServiceSettings"/> object with default settings. /// </summary> public DetailPlacementViewServiceSettings() { } private DetailPlacementViewServiceSettings(DetailPlacementViewServiceSettings existing) : base(existing) { gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); GetDetailPlacementViewSettings = existing.GetDetailPlacementViewSettings; OnCopy(existing); } partial void OnCopy(DetailPlacementViewServiceSettings existing); /// <summary> /// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to /// <c>DetailPlacementViewServiceClient.GetDetailPlacementView</c> and /// <c>DetailPlacementViewServiceClient.GetDetailPlacementViewAsync</c>. /// </summary> /// <remarks> /// <list type="bullet"> /// <item><description>Initial retry delay: 5000 milliseconds.</description></item> /// <item><description>Retry delay multiplier: 1.3</description></item> /// <item><description>Retry maximum delay: 60000 milliseconds.</description></item> /// <item><description>Maximum attempts: Unlimited</description></item> /// <item> /// <description> /// Retriable status codes: <see cref="grpccore::StatusCode.Unavailable"/>, /// <see cref="grpccore::StatusCode.DeadlineExceeded"/>. /// </description> /// </item> /// <item><description>Timeout: 3600 seconds.</description></item> /// </list> /// </remarks> public gaxgrpc::CallSettings GetDetailPlacementViewSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(3600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); /// <summary>Creates a deep clone of this object, with all the same property values.</summary> /// <returns>A deep clone of this <see cref="DetailPlacementViewServiceSettings"/> object.</returns> public DetailPlacementViewServiceSettings Clone() => new DetailPlacementViewServiceSettings(this); } /// <summary> /// Builder class for <see cref="DetailPlacementViewServiceClient"/> to provide simple configuration of credentials, /// endpoint etc. /// </summary> internal sealed partial class DetailPlacementViewServiceClientBuilder : gaxgrpc::ClientBuilderBase<DetailPlacementViewServiceClient> { /// <summary>The settings to use for RPCs, or <c>null</c> for the default settings.</summary> public DetailPlacementViewServiceSettings Settings { get; set; } /// <summary>Creates a new builder with default settings.</summary> public DetailPlacementViewServiceClientBuilder() { UseJwtAccessWithScopes = DetailPlacementViewServiceClient.UseJwtAccessWithScopes; } partial void InterceptBuild(ref DetailPlacementViewServiceClient client); partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task<DetailPlacementViewServiceClient> task); /// <summary>Builds the resulting client.</summary> public override DetailPlacementViewServiceClient Build() { DetailPlacementViewServiceClient client = null; InterceptBuild(ref client); return client ?? BuildImpl(); } /// <summary>Builds the resulting client asynchronously.</summary> public override stt::Task<DetailPlacementViewServiceClient> BuildAsync(st::CancellationToken cancellationToken = default) { stt::Task<DetailPlacementViewServiceClient> task = null; InterceptBuildAsync(cancellationToken, ref task); return task ?? BuildAsyncImpl(cancellationToken); } private DetailPlacementViewServiceClient BuildImpl() { Validate(); grpccore::CallInvoker callInvoker = CreateCallInvoker(); return DetailPlacementViewServiceClient.Create(callInvoker, Settings); } private async stt::Task<DetailPlacementViewServiceClient> BuildAsyncImpl(st::CancellationToken cancellationToken) { Validate(); grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); return DetailPlacementViewServiceClient.Create(callInvoker, Settings); } /// <summary>Returns the endpoint for this builder type, used if no endpoint is otherwise specified.</summary> protected override string GetDefaultEndpoint() => DetailPlacementViewServiceClient.DefaultEndpoint; /// <summary> /// Returns the default scopes for this builder type, used if no scopes are otherwise specified. /// </summary> protected override scg::IReadOnlyList<string> GetDefaultScopes() => DetailPlacementViewServiceClient.DefaultScopes; /// <summary>Returns the channel pool to use when no other options are specified.</summary> protected override gaxgrpc::ChannelPool GetChannelPool() => DetailPlacementViewServiceClient.ChannelPool; /// <summary>Returns the default <see cref="gaxgrpc::GrpcAdapter"/>to use if not otherwise specified.</summary> protected override gaxgrpc::GrpcAdapter DefaultGrpcAdapter => gaxgrpccore::GrpcCoreAdapter.Instance; } /// <summary>DetailPlacementViewService client wrapper, for convenient use.</summary> /// <remarks> /// Service to fetch Detail Placement views. /// </remarks> public abstract partial class DetailPlacementViewServiceClient { /// <summary> /// The default endpoint for the DetailPlacementViewService service, which is a host of /// "googleads.googleapis.com" and a port of 443. /// </summary> public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; /// <summary>The default DetailPlacementViewService scopes.</summary> /// <remarks> /// The default DetailPlacementViewService scopes are: /// <list type="bullet"><item><description>https://www.googleapis.com/auth/adwords</description></item></list> /// </remarks> public static scg::IReadOnlyList<string> DefaultScopes { get; } = new sco::ReadOnlyCollection<string>(new string[] { "https://www.googleapis.com/auth/adwords", }); internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(DefaultScopes, UseJwtAccessWithScopes); internal static bool UseJwtAccessWithScopes { get { bool useJwtAccessWithScopes = true; MaybeUseJwtAccessWithScopes(ref useJwtAccessWithScopes); return useJwtAccessWithScopes; } } static partial void MaybeUseJwtAccessWithScopes(ref bool useJwtAccessWithScopes); /// <summary> /// Asynchronously creates a <see cref="DetailPlacementViewServiceClient"/> using the default credentials, /// endpoint and settings. To specify custom credentials or other settings, use /// <see cref="DetailPlacementViewServiceClientBuilder"/>. /// </summary> /// <param name="cancellationToken"> /// The <see cref="st::CancellationToken"/> to use while creating the client. /// </param> /// <returns>The task representing the created <see cref="DetailPlacementViewServiceClient"/>.</returns> public static stt::Task<DetailPlacementViewServiceClient> CreateAsync(st::CancellationToken cancellationToken = default) => new DetailPlacementViewServiceClientBuilder().BuildAsync(cancellationToken); /// <summary> /// Synchronously creates a <see cref="DetailPlacementViewServiceClient"/> using the default credentials, /// endpoint and settings. To specify custom credentials or other settings, use /// <see cref="DetailPlacementViewServiceClientBuilder"/>. /// </summary> /// <returns>The created <see cref="DetailPlacementViewServiceClient"/>.</returns> public static DetailPlacementViewServiceClient Create() => new DetailPlacementViewServiceClientBuilder().Build(); /// <summary> /// Creates a <see cref="DetailPlacementViewServiceClient"/> which uses the specified call invoker for remote /// operations. /// </summary> /// <param name="callInvoker"> /// The <see cref="grpccore::CallInvoker"/> for remote operations. Must not be null. /// </param> /// <param name="settings">Optional <see cref="DetailPlacementViewServiceSettings"/>.</param> /// <returns>The created <see cref="DetailPlacementViewServiceClient"/>.</returns> internal static DetailPlacementViewServiceClient Create(grpccore::CallInvoker callInvoker, DetailPlacementViewServiceSettings settings = null) { gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); grpcinter::Interceptor interceptor = settings?.Interceptor; if (interceptor != null) { callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); } DetailPlacementViewService.DetailPlacementViewServiceClient grpcClient = new DetailPlacementViewService.DetailPlacementViewServiceClient(callInvoker); return new DetailPlacementViewServiceClientImpl(grpcClient, settings); } /// <summary> /// Shuts down any channels automatically created by <see cref="Create()"/> and /// <see cref="CreateAsync(st::CancellationToken)"/>. Channels which weren't automatically created are not /// affected. /// </summary> /// <remarks> /// After calling this method, further calls to <see cref="Create()"/> and /// <see cref="CreateAsync(st::CancellationToken)"/> will create new channels, which could in turn be shut down /// by another call to this method. /// </remarks> /// <returns>A task representing the asynchronous shutdown operation.</returns> public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); /// <summary>The underlying gRPC DetailPlacementViewService client</summary> public virtual DetailPlacementViewService.DetailPlacementViewServiceClient GrpcClient => throw new sys::NotImplementedException(); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual gagvr::DetailPlacementView GetDetailPlacementView(GetDetailPlacementViewRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(GetDetailPlacementViewRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(GetDetailPlacementViewRequest request, st::CancellationToken cancellationToken) => GetDetailPlacementViewAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="resourceName"> /// Required. The resource name of the Detail Placement view to fetch. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual gagvr::DetailPlacementView GetDetailPlacementView(string resourceName, gaxgrpc::CallSettings callSettings = null) => GetDetailPlacementView(new GetDetailPlacementViewRequest { ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), }, callSettings); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="resourceName"> /// Required. The resource name of the Detail Placement view to fetch. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(string resourceName, gaxgrpc::CallSettings callSettings = null) => GetDetailPlacementViewAsync(new GetDetailPlacementViewRequest { ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), }, callSettings); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="resourceName"> /// Required. The resource name of the Detail Placement view to fetch. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(string resourceName, st::CancellationToken cancellationToken) => GetDetailPlacementViewAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="resourceName"> /// Required. The resource name of the Detail Placement view to fetch. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual gagvr::DetailPlacementView GetDetailPlacementView(gagvr::DetailPlacementViewName resourceName, gaxgrpc::CallSettings callSettings = null) => GetDetailPlacementView(new GetDetailPlacementViewRequest { ResourceNameAsDetailPlacementViewName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), }, callSettings); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="resourceName"> /// Required. The resource name of the Detail Placement view to fetch. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(gagvr::DetailPlacementViewName resourceName, gaxgrpc::CallSettings callSettings = null) => GetDetailPlacementViewAsync(new GetDetailPlacementViewRequest { ResourceNameAsDetailPlacementViewName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), }, callSettings); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="resourceName"> /// Required. The resource name of the Detail Placement view to fetch. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(gagvr::DetailPlacementViewName resourceName, st::CancellationToken cancellationToken) => GetDetailPlacementViewAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); } /// <summary>DetailPlacementViewService client wrapper implementation, for convenient use.</summary> /// <remarks> /// Service to fetch Detail Placement views. /// </remarks> public sealed partial class DetailPlacementViewServiceClientImpl : DetailPlacementViewServiceClient { private readonly gaxgrpc::ApiCall<GetDetailPlacementViewRequest, gagvr::DetailPlacementView> _callGetDetailPlacementView; /// <summary> /// Constructs a client wrapper for the DetailPlacementViewService service, with the specified gRPC client and /// settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings"> /// The base <see cref="DetailPlacementViewServiceSettings"/> used within this client. /// </param> public DetailPlacementViewServiceClientImpl(DetailPlacementViewService.DetailPlacementViewServiceClient grpcClient, DetailPlacementViewServiceSettings settings) { GrpcClient = grpcClient; DetailPlacementViewServiceSettings effectiveSettings = settings ?? DetailPlacementViewServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetDetailPlacementView = clientHelper.BuildApiCall<GetDetailPlacementViewRequest, gagvr::DetailPlacementView>(grpcClient.GetDetailPlacementViewAsync, grpcClient.GetDetailPlacementView, effectiveSettings.GetDetailPlacementViewSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); Modify_ApiCall(ref _callGetDetailPlacementView); Modify_GetDetailPlacementViewApiCall(ref _callGetDetailPlacementView); OnConstruction(grpcClient, effectiveSettings, clientHelper); } partial void Modify_ApiCall<TRequest, TResponse>(ref gaxgrpc::ApiCall<TRequest, TResponse> call) where TRequest : class, proto::IMessage<TRequest> where TResponse : class, proto::IMessage<TResponse>; partial void Modify_GetDetailPlacementViewApiCall(ref gaxgrpc::ApiCall<GetDetailPlacementViewRequest, gagvr::DetailPlacementView> call); partial void OnConstruction(DetailPlacementViewService.DetailPlacementViewServiceClient grpcClient, DetailPlacementViewServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); /// <summary>The underlying gRPC DetailPlacementViewService client</summary> public override DetailPlacementViewService.DetailPlacementViewServiceClient GrpcClient { get; } partial void Modify_GetDetailPlacementViewRequest(ref GetDetailPlacementViewRequest request, ref gaxgrpc::CallSettings settings); /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public override gagvr::DetailPlacementView GetDetailPlacementView(GetDetailPlacementViewRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_GetDetailPlacementViewRequest(ref request, ref callSettings); return _callGetDetailPlacementView.Sync(request, callSettings); } /// <summary> /// Returns the requested Detail Placement view in full detail. /// /// List of thrown errors: /// [AuthenticationError]() /// [AuthorizationError]() /// [HeaderError]() /// [InternalError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public override stt::Task<gagvr::DetailPlacementView> GetDetailPlacementViewAsync(GetDetailPlacementViewRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_GetDetailPlacementViewRequest(ref request, ref callSettings); return _callGetDetailPlacementView.Async(request, callSettings); } } }
52.278226
566
0.66988
[ "Apache-2.0" ]
friedenberg/google-ads-dotnet
src/V9/Services/DetailPlacementViewServiceClient.g.cs
25,930
C#
using Abstractions.API; using Abstractions.ISecurity; using Abstractions.Model; using Abstractions.Model.Queries; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace API.Controllers.Private { public partial class PrivateController : PrivateControllerBase { public override async Task<IActionResult> SaveAccountAsync([FromBody] Account account) { var result = await _supervisor.SafeExecuteAsync ( () => _accountRepository.SaveAsync(account) ); return new JsonResult(result); } public override async Task<IActionResult> CountAccountAsync() { var result = await _supervisor.SafeExecuteAsync ( () => _accountRepository.CountAsync() ); return new JsonResult(result); } public override async Task<IActionResult> DeleteAccountAsync([FromBody] Account account) { var result = await _supervisor.SafeExecuteAsync ( () => _accountRepository.DeleteAsync(account) ); return new JsonResult(result); } public override async Task<IActionResult> GetAccountAsync(int id) { var result = await _supervisor.SafeExecuteAsync ( () => _accountRepository.GetAsync(id) ); return new JsonResult(result); } public override async Task<IActionResult> GetAccountsAsync([FromQuery] Paging paging) { var result = await _supervisor.SafeExecuteAsync ( () => _accountRepository.SearchAsync(paging.Start, paging.Length) ); return new JsonResult(result); } public override IActionResult GetRoles() { var result = _supervisor.SafeExecute ( () => { return RoleNames.GetRoles(); } ); return new JsonResult(result); } } }
27.697368
96
0.564846
[ "Apache-2.0" ]
ChiefNoir/BusinessCard
back-end/API/Controllers/Private/PrivateController_Account.cs
2,107
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch), fullyQualifiedName: "aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch")] public interface IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch { /// <summary>all_query_arguments block.</summary> [JsiiProperty(name: "allQueryArguments", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments[]? AllQueryArguments { get { return null; } } /// <summary>body block.</summary> [JsiiProperty(name: "body", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody[]? Body { get { return null; } } /// <summary>method block.</summary> [JsiiProperty(name: "method", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod[]? Method { get { return null; } } /// <summary>query_string block.</summary> [JsiiProperty(name: "queryString", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString[]? QueryString { get { return null; } } /// <summary>single_header block.</summary> [JsiiProperty(name: "singleHeader", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader[]? SingleHeader { get { return null; } } /// <summary>single_query_argument block.</summary> [JsiiProperty(name: "singleQueryArgument", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument[]? SingleQueryArgument { get { return null; } } /// <summary>uri_path block.</summary> [JsiiProperty(name: "uriPath", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath\"},\"kind\":\"array\"}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath[]? UriPath { get { return null; } } [JsiiTypeProxy(nativeType: typeof(IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch), fullyQualifiedName: "aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch")] internal sealed class _Proxy : DeputyBase, aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch { private _Proxy(ByRefValue reference): base(reference) { } /// <summary>all_query_arguments block.</summary> [JsiiOptional] [JsiiProperty(name: "allQueryArguments", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments[]? AllQueryArguments { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments[]?>(); } /// <summary>body block.</summary> [JsiiOptional] [JsiiProperty(name: "body", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody[]? Body { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody[]?>(); } /// <summary>method block.</summary> [JsiiOptional] [JsiiProperty(name: "method", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod[]? Method { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod[]?>(); } /// <summary>query_string block.</summary> [JsiiOptional] [JsiiProperty(name: "queryString", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString[]? QueryString { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString[]?>(); } /// <summary>single_header block.</summary> [JsiiOptional] [JsiiProperty(name: "singleHeader", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader[]? SingleHeader { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader[]?>(); } /// <summary>single_query_argument block.</summary> [JsiiOptional] [JsiiProperty(name: "singleQueryArgument", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument[]? SingleQueryArgument { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument[]?>(); } /// <summary>uri_path block.</summary> [JsiiOptional] [JsiiProperty(name: "uriPath", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.Wafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath\"},\"kind\":\"array\"}}", isOptional: true)] public aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath[]? UriPath { get => GetInstanceProperty<aws.IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath[]?>(); } } } }
70.381579
306
0.737334
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IWafv2WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.cs
10,698
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 Windows.UI.Composition; namespace Microsoft.Toolkit.Uwp.UI.Animations { /// <summary> /// A rotation in degrees animation working on the composition or layer. /// </summary> public sealed class RotationInDegreesAnimation : ImplicitAnimation<double?, double> { /// <inheritdoc/> protected override string ExplicitTarget => nameof(Visual.RotationAngleInDegrees); /// <inheritdoc/> protected override (double?, double?) GetParsedValues() { return (To, From); } } }
32.913043
90
0.675033
[ "MIT" ]
ArchieCoder/WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Default/RotationInDegreesAnimation.cs
757
C#
using AVDump3GUI.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace AVDump3GUI.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); var vm = (MainWindowViewModel)DataContext; vm.ConsoleWrite += Vm_ConsoleWrite; } private void Vm_ConsoleWrite(string obj) { Dispatcher.Invoke(() => { ConsoleTextBox.AppendText(obj + "\n"); }); } private void FilesView_FilesDrop(object sender, string[] e) { var vm = (MainWindowViewModel)DataContext; vm.AddPaths(e); } } }
23.071429
63
0.742002
[ "MIT" ]
acidburn0zzz/AVDump3
AVDump3GUI/Views/MainWindow.xaml.cs
971
C#
using Heroes.Models; using System; namespace Heroes.Icons.ModelExtensions { /// <summary> /// Contains extensions for <see cref="Spray"/>. /// </summary> public static class SprayExtensions { /// <summary> /// Updates the localized gamestrings to the selected <see cref="Localization"/>. /// </summary> /// <param name="spray">The data to be updated.</param> /// <param name="gameStringDocument">Instance of a <see cref="GameStringDocument"/>.</param> /// <exception cref="ArgumentNullException"><paramref name="gameStringDocument"/> is null.</exception> public static void UpdateGameStrings(this Spray spray, GameStringDocument gameStringDocument) { if (gameStringDocument is null) throw new ArgumentNullException(nameof(gameStringDocument)); gameStringDocument.UpdateGameStrings(spray); } } }
35.923077
110
0.646681
[ "MIT" ]
HeroesToolChest/Heroes.Icons
Heroes.Icons/ModelExtensions/SprayExtensions.cs
936
C#
// WARNING - AUTOGENERATED - DO NOT EDIT // // Generated using `sharpie urho` // // Font.cs // // Copyright 2015 Xamarin Inc. All rights reserved. using System; using System.Runtime.InteropServices; using System.Collections.Generic; using Urho.Urho2D; using Urho.Gui; using Urho.Resources; using Urho.IO; using Urho.Navigation; using Urho.Network; namespace Urho.Gui { /// <summary> /// %Font resource. /// </summary> public unsafe partial class Font : Resource { unsafe partial void OnFontCreated (); [Preserve] public Font (IntPtr handle) : base (handle) { OnFontCreated (); } [Preserve] protected Font (UrhoObjectFlag emptyFlag) : base (emptyFlag) { OnFontCreated (); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern int Font_GetType (IntPtr handle); private StringHash UrhoGetType () { Runtime.ValidateRefCounted (this); return new StringHash (Font_GetType (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr Font_GetTypeName (IntPtr handle); private string GetTypeName () { Runtime.ValidateRefCounted (this); return Marshal.PtrToStringAnsi (Font_GetTypeName (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern int Font_GetTypeStatic (); private static StringHash GetTypeStatic () { Runtime.Validate (typeof(Font)); return new StringHash (Font_GetTypeStatic ()); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr Font_GetTypeNameStatic (); private static string GetTypeNameStatic () { Runtime.Validate (typeof(Font)); return Marshal.PtrToStringAnsi (Font_GetTypeNameStatic ()); } [Preserve] public Font () : this (Application.CurrentContext) { } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr Font_Font (IntPtr context); [Preserve] public Font (Context context) : base (UrhoObjectFlag.Empty) { Runtime.Validate (typeof(Font)); handle = Font_Font ((object)context == null ? IntPtr.Zero : context.Handle); Runtime.RegisterObject (this); OnFontCreated (); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void Font_RegisterObject (IntPtr context); /// <summary> /// Register object factory. /// </summary> public static void RegisterObject (Context context) { Runtime.Validate (typeof(Font)); Font_RegisterObject ((object)context == null ? IntPtr.Zero : context.Handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern bool Font_BeginLoad_File (IntPtr handle, IntPtr source); /// <summary> /// Load resource from stream. May be called from a worker thread. Return true if successful. /// </summary> public override bool BeginLoad (File source) { Runtime.ValidateRefCounted (this); return Font_BeginLoad_File (handle, (object)source == null ? IntPtr.Zero : source.Handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern bool Font_BeginLoad_MemoryBuffer (IntPtr handle, IntPtr source); /// <summary> /// Load resource from stream. May be called from a worker thread. Return true if successful. /// </summary> public override bool BeginLoad (MemoryBuffer source) { Runtime.ValidateRefCounted (this); return Font_BeginLoad_MemoryBuffer (handle, (object)source == null ? IntPtr.Zero : source.Handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern bool Font_SaveXML_File (IntPtr handle, IntPtr dest, int pointSize, bool usedGlyphs, string indentation); /// <summary> /// Save resource as a new bitmap font type in XML format. Return true if successful. /// </summary> public bool SaveXml (File dest, int pointSize, bool usedGlyphs = false, string indentation = "\t") { Runtime.ValidateRefCounted (this); return Font_SaveXML_File (handle, (object)dest == null ? IntPtr.Zero : dest.Handle, pointSize, usedGlyphs, indentation); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern bool Font_SaveXML_MemoryBuffer (IntPtr handle, IntPtr dest, int pointSize, bool usedGlyphs, string indentation); /// <summary> /// Save resource as a new bitmap font type in XML format. Return true if successful. /// </summary> public bool SaveXml (MemoryBuffer dest, int pointSize, bool usedGlyphs = false, string indentation = "\t") { Runtime.ValidateRefCounted (this); return Font_SaveXML_MemoryBuffer (handle, (object)dest == null ? IntPtr.Zero : dest.Handle, pointSize, usedGlyphs, indentation); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void Font_SetAbsoluteGlyphOffset (IntPtr handle, ref Urho.IntVector2 offset); /// <summary> /// Set absolute (in pixels) position adjustment for glyphs. /// </summary> private void SetAbsoluteGlyphOffset (Urho.IntVector2 offset) { Runtime.ValidateRefCounted (this); Font_SetAbsoluteGlyphOffset (handle, ref offset); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void Font_SetScaledGlyphOffset (IntPtr handle, ref Urho.Vector2 offset); /// <summary> /// Set point size scaled position adjustment for glyphs. /// </summary> private void SetScaledGlyphOffset (Urho.Vector2 offset) { Runtime.ValidateRefCounted (this); Font_SetScaledGlyphOffset (handle, ref offset); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr Font_GetFace (IntPtr handle, float pointSize); /// <summary> /// Return font face. Pack and render to a texture if not rendered yet. Return null on error. /// </summary> public FontFace GetFace (float pointSize) { Runtime.ValidateRefCounted (this); return Runtime.LookupRefCounted<FontFace> (Font_GetFace (handle, pointSize)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern FontType Font_GetFontType (IntPtr handle); /// <summary> /// Return font type. /// </summary> private FontType GetFontType () { Runtime.ValidateRefCounted (this); return Font_GetFontType (handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern bool Font_IsSDFFont (IntPtr handle); /// <summary> /// Is signed distance field font. /// </summary> private bool IsSDFFont () { Runtime.ValidateRefCounted (this); return Font_IsSDFFont (handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern Urho.IntVector2 Font_GetAbsoluteGlyphOffset (IntPtr handle); /// <summary> /// Return absolute position adjustment for glyphs. /// </summary> private Urho.IntVector2 GetAbsoluteGlyphOffset () { Runtime.ValidateRefCounted (this); return Font_GetAbsoluteGlyphOffset (handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern Urho.Vector2 Font_GetScaledGlyphOffset (IntPtr handle); /// <summary> /// Return point size scaled position adjustment for glyphs. /// </summary> private Urho.Vector2 GetScaledGlyphOffset () { Runtime.ValidateRefCounted (this); return Font_GetScaledGlyphOffset (handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern Urho.IntVector2 Font_GetTotalGlyphOffset (IntPtr handle, float pointSize); /// <summary> /// Return the total effective offset for a point size. /// </summary> public Urho.IntVector2 GetTotalGlyphOffset (float pointSize) { Runtime.ValidateRefCounted (this); return Font_GetTotalGlyphOffset (handle, pointSize); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void Font_ReleaseFaces (IntPtr handle); /// <summary> /// Release font faces and recreate them next time when requested. Called when font textures lost or global font properties change. /// </summary> public void ReleaseFaces () { Runtime.ValidateRefCounted (this); Font_ReleaseFaces (handle); } public override StringHash Type { get { return UrhoGetType (); } } public override string TypeName { get { return GetTypeName (); } } [Preserve] public new static StringHash TypeStatic { get { return GetTypeStatic (); } } public new static string TypeNameStatic { get { return GetTypeNameStatic (); } } /// <summary> /// Return absolute position adjustment for glyphs. /// Or /// Set absolute (in pixels) position adjustment for glyphs. /// </summary> public Urho.IntVector2 AbsoluteGlyphOffset { get { return GetAbsoluteGlyphOffset (); } set { SetAbsoluteGlyphOffset (value); } } /// <summary> /// Return point size scaled position adjustment for glyphs. /// Or /// Set point size scaled position adjustment for glyphs. /// </summary> public Urho.Vector2 ScaledGlyphOffset { get { return GetScaledGlyphOffset (); } set { SetScaledGlyphOffset (value); } } /// <summary> /// Return font type. /// </summary> public FontType FontType { get { return GetFontType (); } } /// <summary> /// Is signed distance field font. /// </summary> public bool SDFFont { get { return IsSDFFont (); } } } }
29.537538
137
0.722651
[ "MIT" ]
Acidburn0zzz/urho
Bindings/Portable/Generated/Font.cs
9,836
C#
namespace Atc.CodingRules.Updater.Models { public class DotnetNugetPackage { public DotnetNugetPackage(string packageId, Version currentVersion) { this.PackageId = packageId; this.Version = currentVersion; this.NewestVersion = currentVersion; } public DotnetNugetPackage(string packageId, Version currentVersion, Version newestVersion) { this.PackageId = packageId; this.Version = currentVersion; this.NewestVersion = newestVersion; } public string PackageId { get; } public Version Version { get; } public Version NewestVersion { get; set; } public bool IsNewest => Version >= NewestVersion; public override string ToString() => $"{nameof(PackageId)}: {PackageId}, {nameof(Version)}: {Version}, {nameof(NewestVersion)}: {NewestVersion}, {nameof(IsNewest)}: {IsNewest}"; } }
32.133333
155
0.625519
[ "MIT" ]
JKrag/atc-coding-rules-updater
src/Atc.CodingRules.Updater/Models/DotnetNugetPackage.cs
964
C#
using System; using System.Collections; namespace Dio.SerieFilme { public class Filme : EntidadeBase { private string Gravadora { set; get; } public Filme(int id, Genero genero, string titulo, int ano, string gravadora, string descricao) { this.Id = id; this.Genero = genero; this.Titulo = titulo; this.Descricao = descricao; this.Ano = ano; this.Gravadora = gravadora; this.Excluido = false; } public override string ToString() { //Environment.NewLine http://docs.microsoft.com/en-us/dotnet/api/system.encironment.net string retorno = ""; retorno += "Gênero: " + this.Genero + Environment.NewLine; retorno += "Titulo: " + this.Titulo + Environment.NewLine; retorno += "Descrição: " + this.Descricao + Environment.NewLine; retorno += "Ano de Lançamento: " + this.Ano + Environment.NewLine; retorno += "Emisora: " + this.Gravadora + Environment.NewLine; retorno += "Excluir: " + this.Excluido; return retorno; } public string retornaTitulo() { return this.Titulo; } public int retornaId() { return this.Id; } public void excluir() { this.Excluido = true; } public bool retornaExcluido() { return this.Excluido; } } }
31.64
104
0.516435
[ "Unlicense" ]
atomyc2000/Dio.SerieFilme
Classes/Filme.cs
1,586
C#
using Xamarin.Forms; namespace Channel9.Views.Templates { public partial class HomeBigItemTemplate : ContentView { public HomeBigItemTemplate() { InitializeComponent(); } } }
18.666667
58
0.625
[ "MIT" ]
davidortinau/xamarin-forms-channel9-sample
src/Channel9/Channel9/Views/Templates/HomeBigItemTemplate.xaml.cs
226
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MyAcademy { public partial class F_GridProfessoresOnFormBusca : Form { public F_GridProfessoresOnFormBusca() { InitializeComponent(); } private void F_GridProfessoresOnFormBusca_Load(object sender, EventArgs e) { gridProfessores.DataSource = Professor.obterProfessores(); gridProfessores.Columns[0].Width = 40; gridProfessores.Columns[1].Width = 80; gridProfessores.Columns[2].Width = 98; gridProfessores.Columns[3].Width = 98; } private void gridProfessores_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { DataTable dataTable = new DataTable(); string id = gridProfessores.SelectedRows[0].Cells[0].Value.ToString(); dataTable = Professor.localizarProfessorInativoPorID(id); F_ViewProfissional viewProfissional = new F_ViewProfissional(); viewProfissional.tbox_codigo.Text = dataTable.Rows[0].Field<Int64>("CODIGO").ToString(); viewProfissional.tbox_nome.Text = dataTable.Rows[0].Field<string>("NOME").ToString(); viewProfissional.tbox_especialidade.Text = dataTable.Rows[0].Field<string>("ESPECIALIDADE").ToString(); viewProfissional.tbox_celular.Text = dataTable.Rows[0].Field<string>("CELULAR").ToString(); viewProfissional.tbox_telefone.Text = dataTable.Rows[0].Field<string>("TELEFONE").ToString(); viewProfissional.tbox_horario.Text = dataTable.Rows[0].Field<string>("HORARIO").ToString(); viewProfissional.cbox_ativo.Text = dataTable.Rows[0].Field<string>("ATIVO").ToString(); viewProfissional.ShowDialog(); this.Close(); } } }
39.215686
115
0.675
[ "MIT" ]
JulioAlgouver/MyAcademy
F_GridProfessoresOnFormBusca.cs
2,002
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using Microsoft.Extensions.Logging; namespace Bicep.Cli.Logging { /// <summary> /// Writes messages to the console. /// </summary> /// <remarks>The built-in dotnet ConsoleLogger class does not write messages in the format we needed for a compiler and does not allow customization.</remarks> public class BicepConsoleLogger : ILogger { private readonly BicepLoggerOptions options; public BicepConsoleLogger(BicepLoggerOptions options) { this.options = options; } public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter) { string message = formatter(state, exception); if (this.options.EnableColors) { this.LogMessageWithColors(logLevel, message); } else { this.LogMessage(message); } } private void LogMessageWithColors(LogLevel logLevel, string message) { var color = logLevel switch { LogLevel.Critical => this.options.ErrorColor, LogLevel.Error => this.options.ErrorColor, LogLevel.Warning => this.options.WarningColor, _ => Console.ForegroundColor }; ConsoleColor saved = Console.ForegroundColor; Console.ForegroundColor = color; this.LogMessage(message); Console.ForegroundColor = saved; } private void LogMessage(string message) { this.options.Writer.WriteLine(message); } public bool IsEnabled(LogLevel logLevel) { switch (logLevel) { case LogLevel.Error: case LogLevel.Critical: case LogLevel.Information: case LogLevel.Warning: return true; default: return false; } } public IDisposable BeginScope<TState>(TState state) { return new NullDisposable(); } private class NullDisposable: IDisposable { public void Dispose() { } } } }
28.093023
163
0.55505
[ "MIT" ]
SMBrook/bicep
src/Bicep.Cli/Logging/BicepConsoleLogger.cs
2,416
C#
using System; namespace Checky.Common.Healthbot { public class DeployedVersion { public Version Version { get; set; } } }
19.857143
44
0.669065
[ "Apache-2.0" ]
RichardSlater/CheckyChatbot
src/Common/Healthbot/DeployedVersion.cs
141
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26.Maps { using V26; /// <summary> /// OSR_Q06_ORDER (GroupMap) - /// </summary> public class OSR_Q06_ORDERMap : HL7V26LayoutMap<OSR_Q06_ORDER> { public OSR_Q06_ORDERMap() { Segment(x => x.ORC, 0, x => x.Required = true); Layout(x => x.Timing, 1); Segment(x => x.OBR, 2, x => x.Required = true); Segment(x => x.RQD, 3, x => x.Required = true); Segment(x => x.RQ1, 4, x => x.Required = true); Segment(x => x.RXO, 5, x => x.Required = true); Segment(x => x.ODS, 6, x => x.Required = true); Segment(x => x.ODT, 7, x => x.Required = true); Segment(x => x.NTE, 8); Segment(x => x.CTI, 9); } } }
35.642857
105
0.536072
[ "Apache-2.0" ]
amccool/Machete
src/Machete.HL7Schema/Generated/V26/Groups/Maps/OSR_Q06_ORDERMap.cs
998
C#
using System; using System.Collections.Generic; namespace ScoutingPay.Models { public class PaymentRequest { public DateTime Date = DateTime.Now; public Person Person; public List<Product> ProductList = new List<Product>(); public string RequestURL { get; set; } public decimal PriceTotal => CalculateTotal(); public PaymentRequest() { ProductList = new List<Product>(); } public PaymentRequest(Person person, List<Product> products) { Person = person; ProductList = products; } private decimal CalculateTotal() { decimal total = new decimal(); foreach (Product prod in ProductList) { total += prod.Count * prod.Price; } return total; } } }
24.527778
68
0.551529
[ "Apache-2.0" ]
Merlijnv/ScoutingPay
ScoutingPay/ScoutingPay/Models/PaymentRequest.cs
885
C#
using Inshapardaz.Api.Tests.Asserts; using Inshapardaz.Api.Tests.Helpers; using Inshapardaz.Api.Views.Library; using NUnit.Framework; using System.Net.Http; using System.Threading.Tasks; namespace Inshapardaz.Api.Tests.Library.Periodical.AddPeriodical { [TestFixture] public class WhenAddingPeriodicalAsAnonymousUser : TestBase { private HttpResponseMessage _response; public WhenAddingPeriodicalAsAnonymousUser() : base(periodicalsEnabled: true) { } [OneTimeSetUp] public async Task Setup() { var periodical = new PeriodicalView { Title = RandomData.Name, Description = RandomData.Words(20) }; _response = await Client.PostObject($"/libraries/{LibraryId}/periodicals", periodical); } [OneTimeTearDown] public void Teardown() { Cleanup(); } [Test] public void ShouldHaveUnauthorizedResult() { _response.ShouldBeUnauthorized(); } } }
25.463415
112
0.640805
[ "Apache-2.0" ]
inshapardaz/api
src/Inshapardaz.Api.Tests/Library/Periodical/AddPeriodical/WhenAddingPeriodicalAsAnonymousUser.cs
1,046
C#
using Core.DomainModel; namespace Infrastructure.DataAccess.Mapping { public class TextMap : EntityMap<Text> { public TextMap() { // Properties // Table & Column Mappings this.ToTable("Text"); this.Property(t => t.Value).HasColumnName("Value"); } } }
19.882353
63
0.547337
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Strongminds/kitos
Infrastructure.DataAccess/Mapping/TextMap.cs
340
C#
namespace OggVorbisEncoder.Setup.Templates.BookBlocks.Stereo8.Uncoupled.Chapter0 { public class Page6_0 : IStaticCodeBook { public int Dimensions { get; } = 2; public byte[] LengthList { get; } = { 1, 4, 4, 7, 7, 9, 9,11,11,12,12,16,16, 3, 6, 6, 9, 9,11,11,12,12,13,14,18,16, 3, 6, 7, 9, 9,11, 11,13,12,14,14,17,16, 7, 9, 9,11,11,12,12,14,14, 14,14,17,16, 7, 9, 9,11,11,13,12,13,13,14,14,17, 0, 9,11,11,12,13,14,14,14,13,15,14,17,17, 9,11, 11,12,12,14,14,13,14,14,15, 0, 0,11,12,12,15,14, 15,14,15,14,15,16,17, 0,11,12,13,13,13,14,14,15, 14,15,15, 0, 0,12,14,14,15,15,14,16,15,15,17,16, 0,18,13,14,14,15,14,15,14,15,16,17,16, 0, 0,17, 17,18, 0,16,18,16, 0, 0, 0,17, 0, 0,16, 0, 0,16, 16, 0,15, 0,17, 0, 0, 0, 0, }; public CodeBookMapType MapType { get; } = (CodeBookMapType)1; public int QuantMin { get; } = -526516224; public int QuantDelta { get; } = 1616117760; public int Quant { get; } = 4; public int QuantSequenceP { get; } = 0; public int[] QuantList { get; } = { 6, 5, 7, 4, 8, 3, 9, 2, 10, 1, 11, 0, 12, }; } }
30.116279
80
0.488031
[ "MIT" ]
FriesBoury/.NET-Ogg-Vorbis-Encoder
OggVorbisEncoder/Setup/Templates/BookBlocks/Stereo8/Uncoupled/Chapter0/Page6_0.cs
1,295
C#
using System; using System.Collections.Generic; using NHapi.Base.Log; using NHapi.Model.V26.Group; using NHapi.Model.V26.Segment; using NHapi.Model.V26.Datatype; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; namespace NHapi.Model.V26.Message { ///<summary> /// Represents a PTR_PCF message structure (see chapter 12.3.10). This structure contains the /// following elements: ///<ol> ///<li>0: MSH (Message Header) </li> ///<li>1: SFT (Software Segment) optional repeating</li> ///<li>2: UAC (User Authentication Credential Segment) optional </li> ///<li>3: MSA (Message Acknowledgment) </li> ///<li>4: ERR (Error) optional repeating</li> ///<li>5: QAK (Query Acknowledgment) optional </li> ///<li>6: QRD (Original-Style Query Definition) </li> ///<li>7: PTR_PCF_PATIENT (a Group object) repeating</li> ///</ol> ///</summary> [Serializable] public class PTR_PCF : AbstractMessage { ///<summary> /// Creates a new PTR_PCF Group with custom IModelClassFactory. ///</summary> public PTR_PCF(IModelClassFactory factory) : base(factory){ init(factory); } ///<summary> /// Creates a new PTR_PCF Group with DefaultModelClassFactory. ///</summary> public PTR_PCF() : base(new DefaultModelClassFactory()) { init(new DefaultModelClassFactory()); } ///<summary> /// initalize method for PTR_PCF. This does the segment setup for the message. ///</summary> private void init(IModelClassFactory factory) { try { this.add(typeof(MSH), true, false); this.add(typeof(SFT), false, true); this.add(typeof(UAC), false, false); this.add(typeof(MSA), true, false); this.add(typeof(ERR), false, true); this.add(typeof(QAK), false, false); this.add(typeof(QRD), true, false); this.add(typeof(PTR_PCF_PATIENT), true, true); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating PTR_PCF - this is probably a bug in the source code generator.", e); } } public override string Version { get{ return Constants.VERSION; } } ///<summary> /// Returns MSH (Message Header) - creates it if necessary ///</summary> public MSH MSH { get{ MSH ret = null; try { ret = (MSH)this.GetStructure("MSH"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns first repetition of SFT (Software Segment) - creates it if necessary ///</summary> public SFT GetSFT() { SFT ret = null; try { ret = (SFT)this.GetStructure("SFT"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } ///<summary> ///Returns a specific repetition of SFT /// * (Software Segment) - creates it if necessary /// throws HL7Exception if the repetition requested is more than one /// greater than the number of existing repetitions. ///</summary> public SFT GetSFT(int rep) { return (SFT)this.GetStructure("SFT", rep); } /** * Returns the number of existing repetitions of SFT */ public int SFTRepetitionsUsed { get{ int reps = -1; try { reps = this.GetAll("SFT").Length; } catch (HL7Exception e) { string message = "Unexpected error accessing data - this is probably a bug in the source code generator."; HapiLogFactory.GetHapiLog(GetType()).Error(message, e); throw new System.Exception(message); } return reps; } } /** * Enumerate over the SFT results */ public IEnumerable<SFT> SFTs { get { for (int rep = 0; rep < SFTRepetitionsUsed; rep++) { yield return (SFT)this.GetStructure("SFT", rep); } } } ///<summary> ///Adds a new SFT ///</summary> public SFT AddSFT() { return this.AddStructure("SFT") as SFT; } ///<summary> ///Removes the given SFT ///</summary> public void RemoveSFT(SFT toRemove) { this.RemoveStructure("SFT", toRemove); } ///<summary> ///Removes the SFT at the given index ///</summary> public void RemoveSFTAt(int index) { this.RemoveRepetition("SFT", index); } ///<summary> /// Returns UAC (User Authentication Credential Segment) - creates it if necessary ///</summary> public UAC UAC { get{ UAC ret = null; try { ret = (UAC)this.GetStructure("UAC"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns MSA (Message Acknowledgment) - creates it if necessary ///</summary> public MSA MSA { get{ MSA ret = null; try { ret = (MSA)this.GetStructure("MSA"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns first repetition of ERR (Error) - creates it if necessary ///</summary> public ERR GetERR() { ERR ret = null; try { ret = (ERR)this.GetStructure("ERR"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } ///<summary> ///Returns a specific repetition of ERR /// * (Error) - creates it if necessary /// throws HL7Exception if the repetition requested is more than one /// greater than the number of existing repetitions. ///</summary> public ERR GetERR(int rep) { return (ERR)this.GetStructure("ERR", rep); } /** * Returns the number of existing repetitions of ERR */ public int ERRRepetitionsUsed { get{ int reps = -1; try { reps = this.GetAll("ERR").Length; } catch (HL7Exception e) { string message = "Unexpected error accessing data - this is probably a bug in the source code generator."; HapiLogFactory.GetHapiLog(GetType()).Error(message, e); throw new System.Exception(message); } return reps; } } /** * Enumerate over the ERR results */ public IEnumerable<ERR> ERRs { get { for (int rep = 0; rep < ERRRepetitionsUsed; rep++) { yield return (ERR)this.GetStructure("ERR", rep); } } } ///<summary> ///Adds a new ERR ///</summary> public ERR AddERR() { return this.AddStructure("ERR") as ERR; } ///<summary> ///Removes the given ERR ///</summary> public void RemoveERR(ERR toRemove) { this.RemoveStructure("ERR", toRemove); } ///<summary> ///Removes the ERR at the given index ///</summary> public void RemoveERRAt(int index) { this.RemoveRepetition("ERR", index); } ///<summary> /// Returns QAK (Query Acknowledgment) - creates it if necessary ///</summary> public QAK QAK { get{ QAK ret = null; try { ret = (QAK)this.GetStructure("QAK"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns QRD (Original-Style Query Definition) - creates it if necessary ///</summary> public QRD QRD { get{ QRD ret = null; try { ret = (QRD)this.GetStructure("QRD"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns first repetition of PTR_PCF_PATIENT (a Group object) - creates it if necessary ///</summary> public PTR_PCF_PATIENT GetPATIENT() { PTR_PCF_PATIENT ret = null; try { ret = (PTR_PCF_PATIENT)this.GetStructure("PATIENT"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } ///<summary> ///Returns a specific repetition of PTR_PCF_PATIENT /// * (a Group object) - creates it if necessary /// throws HL7Exception if the repetition requested is more than one /// greater than the number of existing repetitions. ///</summary> public PTR_PCF_PATIENT GetPATIENT(int rep) { return (PTR_PCF_PATIENT)this.GetStructure("PATIENT", rep); } /** * Returns the number of existing repetitions of PTR_PCF_PATIENT */ public int PATIENTRepetitionsUsed { get{ int reps = -1; try { reps = this.GetAll("PATIENT").Length; } catch (HL7Exception e) { string message = "Unexpected error accessing data - this is probably a bug in the source code generator."; HapiLogFactory.GetHapiLog(GetType()).Error(message, e); throw new System.Exception(message); } return reps; } } /** * Enumerate over the PTR_PCF_PATIENT results */ public IEnumerable<PTR_PCF_PATIENT> PATIENTs { get { for (int rep = 0; rep < PATIENTRepetitionsUsed; rep++) { yield return (PTR_PCF_PATIENT)this.GetStructure("PATIENT", rep); } } } ///<summary> ///Adds a new PTR_PCF_PATIENT ///</summary> public PTR_PCF_PATIENT AddPATIENT() { return this.AddStructure("PATIENT") as PTR_PCF_PATIENT; } ///<summary> ///Removes the given PTR_PCF_PATIENT ///</summary> public void RemovePATIENT(PTR_PCF_PATIENT toRemove) { this.RemoveStructure("PATIENT", toRemove); } ///<summary> ///Removes the PTR_PCF_PATIENT at the given index ///</summary> public void RemovePATIENTAt(int index) { this.RemoveRepetition("PATIENT", index); } } }
26.784062
145
0.654093
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V26/Message/PTR_PCF.cs
10,419
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Xabe.AutoUpdater { public interface IReleaseProvider { /// <summary> /// Get latest version number /// </summary> /// <returns>String with version number eg. 1.0.1</returns> Task<string> GetLatestVersionNumber(); /// <summary> /// Download current version. /// </summary> /// <returns>Aall files included in this version</returns> Task<List<string>> DownloadCurrentVersion(); } }
27.85
67
0.601436
[ "MIT" ]
tomaszzmuda/Xabe.AutoUpdater
Xabe.AutoUpdater/IReleaseProvider.cs
559
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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. // This file was automatically generated and should not be edited directly. using System; using System.Runtime.InteropServices; namespace SharpVk.Khronos { /// <summary> /// /// </summary> [StructLayout(LayoutKind.Sequential)] public partial struct DisplayPlaneInfo2 { /// <summary> /// /// </summary> public SharpVk.Khronos.DisplayMode Mode { get; set; } /// <summary> /// /// </summary> public uint PlaneIndex { get; set; } /// <summary> /// /// </summary> /// <param name="pointer"> /// </param> internal unsafe void MarshalTo(SharpVk.Interop.Khronos.DisplayPlaneInfo2* pointer) { pointer->SType = StructureType.DisplayPlaneInfo2; pointer->Next = null; pointer->Mode = this.Mode?.handle ?? default(SharpVk.Interop.Khronos.DisplayMode); pointer->PlaneIndex = this.PlaneIndex; } /// <summary> /// /// </summary> /// <param name="pointer"> /// </param> internal static unsafe DisplayPlaneInfo2 MarshalFrom(SharpVk.Interop.Khronos.DisplayPlaneInfo2* pointer) { DisplayPlaneInfo2 result = default(DisplayPlaneInfo2); result.Mode = new SharpVk.Khronos.DisplayMode(default(SharpVk.PhysicalDevice), pointer->Mode); result.PlaneIndex = pointer->PlaneIndex; return result; } } }
34.098765
112
0.631427
[ "MIT" ]
FacticiusVir/SharpVk
src/SharpVk/Khronos/DisplayPlaneInfo2.gen.cs
2,762
C#
//using System; //using System.Collections.Generic; //using System.Text; //namespace GNet.Profiler.MacroSystem //{ // public class CancelMacro : Macro // { // public CancelMacro(Macro macro) // { // Macro = macro; // Priority = int.MaxValue; // IsCanceling = true; // } // public Macro Macro { get; set; } // } //}
21.368421
43
0.509852
[ "MIT" ]
HaKDMoDz/GNet
src/Profiler/MacroSystem/CancelMacro.cs
408
C#
using System; using System.Text; using SharpCifs.Util; namespace SharpCifs.Smb { // Token: 0x0200006D RID: 109 public class Ace { // Token: 0x06000322 RID: 802 RVA: 0x0000C884 File Offset: 0x0000AA84 public virtual bool IsAllow() { return this.Allow; } // Token: 0x06000323 RID: 803 RVA: 0x0000C89C File Offset: 0x0000AA9C public virtual bool IsInherited() { return (this.Flags & 16) != 0; } // Token: 0x06000324 RID: 804 RVA: 0x0000C8BC File Offset: 0x0000AABC public virtual int GetFlags() { return this.Flags; } // Token: 0x06000325 RID: 805 RVA: 0x0000C8D4 File Offset: 0x0000AAD4 public virtual string GetApplyToText() { switch (this.Flags & 11) { case 0: return "This folder only"; case 1: return "This folder and files"; case 2: return "This folder and subfolders"; case 3: return "This folder, subfolders and files"; case 9: return "Files only"; case 10: return "Subfolders only"; case 11: return "Subfolders and files only"; } return "Invalid"; } // Token: 0x06000326 RID: 806 RVA: 0x0000C96C File Offset: 0x0000AB6C public virtual int GetAccessMask() { return this.Access; } // Token: 0x06000327 RID: 807 RVA: 0x0000C984 File Offset: 0x0000AB84 public virtual Sid GetSid() { return this.Sid; } // Token: 0x06000328 RID: 808 RVA: 0x0000C99C File Offset: 0x0000AB9C internal virtual int Decode(byte[] buf, int bi) { this.Allow = (buf[bi++] == 0); this.Flags = (int)(buf[bi++] & byte.MaxValue); int result = ServerMessageBlock.ReadInt2(buf, bi); bi += 2; this.Access = ServerMessageBlock.ReadInt4(buf, bi); bi += 4; this.Sid = new Sid(buf, bi); return result; } // Token: 0x06000329 RID: 809 RVA: 0x0000CA00 File Offset: 0x0000AC00 internal virtual void AppendCol(StringBuilder sb, string str, int width) { sb.Append(str); int num = width - str.Length; for (int i = 0; i < num; i++) { sb.Append(' '); } } // Token: 0x0600032A RID: 810 RVA: 0x0000CA3C File Offset: 0x0000AC3C public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(this.IsAllow() ? "Allow " : "Deny "); this.AppendCol(stringBuilder, this.Sid.ToDisplayString(), 25); stringBuilder.Append(" 0x").Append(Hexdump.ToHexString(this.Access, 8)).Append(' '); stringBuilder.Append(this.IsInherited() ? "Inherited " : "Direct "); this.AppendCol(stringBuilder, this.GetApplyToText(), 34); return stringBuilder.ToString(); } // Token: 0x0400009B RID: 155 public const int FileReadData = 1; // Token: 0x0400009C RID: 156 public const int FileWriteData = 2; // Token: 0x0400009D RID: 157 public const int FileAppendData = 4; // Token: 0x0400009E RID: 158 public const int FileReadEa = 8; // Token: 0x0400009F RID: 159 public const int FileWriteEa = 16; // Token: 0x040000A0 RID: 160 public const int FileExecute = 32; // Token: 0x040000A1 RID: 161 public const int FileDelete = 64; // Token: 0x040000A2 RID: 162 public const int FileReadAttributes = 128; // Token: 0x040000A3 RID: 163 public const int FileWriteAttributes = 256; // Token: 0x040000A4 RID: 164 public const int Delete = 65536; // Token: 0x040000A5 RID: 165 public const int ReadControl = 131072; // Token: 0x040000A6 RID: 166 public const int WriteDac = 262144; // Token: 0x040000A7 RID: 167 public const int WriteOwner = 524288; // Token: 0x040000A8 RID: 168 public const int Synchronize = 1048576; // Token: 0x040000A9 RID: 169 public const int GenericAll = 268435456; // Token: 0x040000AA RID: 170 public const int GenericExecute = 536870912; // Token: 0x040000AB RID: 171 public const int GenericWrite = 1073741824; // Token: 0x040000AC RID: 172 public const int GenericRead = -2147483648; // Token: 0x040000AD RID: 173 public const int FlagsObjectInherit = 1; // Token: 0x040000AE RID: 174 public const int FlagsContainerInherit = 2; // Token: 0x040000AF RID: 175 public const int FlagsNoPropagate = 4; // Token: 0x040000B0 RID: 176 public const int FlagsInheritOnly = 8; // Token: 0x040000B1 RID: 177 public const int FlagsInherited = 16; // Token: 0x040000B2 RID: 178 internal bool Allow; // Token: 0x040000B3 RID: 179 internal int Flags; // Token: 0x040000B4 RID: 180 internal int Access; // Token: 0x040000B5 RID: 181 internal Sid Sid; } }
25.801105
88
0.653319
[ "BSD-2-Clause", "BSD-3-Clause" ]
0x727/metasploit-framework
external/source/Scanner/smb/SharpCifs.shack2.SmbClient/Smb/Ace.cs
4,672
C#
#if URP using UnityEngine.Rendering.Universal; #endif using UnityEngine.Rendering; using UnityEngine; namespace SCPE { #if URP public class KuwaharaRenderer : ScriptableRendererFeature { class KuwaharaRenderPass : PostEffectRenderer<Kuwahara> { public KuwaharaRenderPass() { shaderName = ShaderNames.Kuwahara; ProfilerTag = this.ToString(); } public void Setup(ScriptableRenderer renderer) { this.cameraColorTarget = GetCameraTarget(renderer); this.cameraDepthTarget = GetCameraDepthTarget(renderer); volumeSettings = VolumeManager.instance.stack.GetComponent<Kuwahara>(); if(volumeSettings) renderer.EnqueuePass(this); } public override void ConfigurePass(CommandBuffer cmd, RenderTextureDescriptor cameraTextureDescriptor) { if (!volumeSettings) return; requiresDepth = volumeSettings.mode == Kuwahara.KuwaharaMode.DepthFade; base.ConfigurePass(cmd, cameraTextureDescriptor); } public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData) { if (!volumeSettings) return; if (volumeSettings.IsActive() == false) return; var cmd = CommandBufferPool.Get(ProfilerTag); CopyTargets(cmd, renderingData); Material.SetFloat("_Radius", (float)volumeSettings.radius); Material.SetFloat("_FadeDistance", volumeSettings.fadeDistance.value); Material.SetVector("_DistanceParams", new Vector4(volumeSettings.fadeDistance.value, (volumeSettings.invertFadeDistance.value) ? 1 : 0, 0, 0)); FinalBlit(this, context, cmd, mainTexID.id, cameraColorTarget, Material, (int)volumeSettings.mode.value); } } KuwaharaRenderPass m_ScriptablePass; public override void Create() { m_ScriptablePass = new KuwaharaRenderPass(); // Configures where the render pass should be injected. m_ScriptablePass.renderPassEvent = RenderPassEvent.BeforeRenderingPostProcessing; } public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData) { m_ScriptablePass.CheckForStackedRendering(renderer, renderingData.cameraData); m_ScriptablePass.Setup(renderer); } } #endif }
35.60274
159
0.63486
[ "MIT" ]
Walter-Hulsebos/Adrift
Assets/SC Post Effects/Runtime/Kuwahara/KuwaharaRenderer.cs
2,601
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-messaging-2021-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ChimeSDKMessaging.Model { /// <summary> /// Container for the parameters to the DescribeChannelMembership operation. /// Returns the full details of a user's channel membership. /// /// <note> /// <para> /// The <code>x-amz-chime-bearer</code> request header is mandatory. Use the <code>AppInstanceUserArn</code> /// of the user that makes the API call as the value in the header. /// </para> /// </note> /// </summary> public partial class DescribeChannelMembershipRequest : AmazonChimeSDKMessagingRequest { private string _channelArn; private string _chimeBearer; private string _memberArn; /// <summary> /// Gets and sets the property ChannelArn. /// <para> /// The ARN of the channel. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string ChannelArn { get { return this._channelArn; } set { this._channelArn = value; } } // Check to see if ChannelArn property is set internal bool IsSetChannelArn() { return this._channelArn != null; } /// <summary> /// Gets and sets the property ChimeBearer. /// <para> /// The <code>AppInstanceUserArn</code> of the user that makes the API call. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string ChimeBearer { get { return this._chimeBearer; } set { this._chimeBearer = value; } } // Check to see if ChimeBearer property is set internal bool IsSetChimeBearer() { return this._chimeBearer != null; } /// <summary> /// Gets and sets the property MemberArn. /// <para> /// The ARN of the member. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=1600)] public string MemberArn { get { return this._memberArn; } set { this._memberArn = value; } } // Check to see if MemberArn property is set internal bool IsSetMemberArn() { return this._memberArn != null; } } }
30.490566
117
0.603342
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ChimeSDKMessaging/Generated/Model/DescribeChannelMembershipRequest.cs
3,232
C#
using System; using System.Collections.Generic; namespace QIQO.Business.Client.Entities { public class Order { public int OrderKey { get; set; } public int AccountKey { get; set; } public Account Account { get; set; } = new Account(); public int AccountContactKey { get; set; } public string OrderNumber { get; set; } public PersonBase OrderAccountContact { get; set; } = new PersonBase(); public int OrderItemCount { get; set; } public decimal OrderValueSum { get; set; } public DateTime OrderEntryDate { get; set; } public DateTime OrderStatusDate { get; set; } public DateTime? OrderShipDate { get; set; } public DateTime? OrderCompleteDate { get; set; } public DateTime? DeliverByDate { get; set; } public int SalesRepKey { get; set; } public Representative SalesRep { get; set; } = new Representative(QIQOPersonType.SalesRepresentative); public int AccountRepKey { get; set; } public Representative AccountRep { get; set; } = new Representative(QIQOPersonType.AccountRepresentative); public QIQOOrderStatus OrderStatus { get; set; } = QIQOOrderStatus.Open; public OrderStatus OrderStatusData { get; set; } = new OrderStatus(); public List<OrderItem> OrderItems { get; set; } = new List<OrderItem>(); public List<Comment> Comments { get; set; } = new List<Comment>(); public string AddedUserID { get; set; } public DateTime AddedDateTime { get; set; } public string UpdateUserID { get; set; } public DateTime UpdateDateTime { get; set; } } }
42.666667
114
0.649038
[ "MIT" ]
rdrrichards/QIQO.Business.Client.Solution
QIQO.Business.Client.Entities/Classes/Order.cs
1,666
C#
//------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします // </auto-generated> //------------------------------------------------------------------------------ namespace TaskReminder.Properties { /// <summary> /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 /// </summary> // このクラスは StronglyTypedResourceBuilder クラスが ResGen // または Visual Studio のようなツールを使用して自動生成されました。 // メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に // ResGen を実行し直すか、または 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 Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// このクラスで使用されるキャッシュされた ResourceManager インスタンスを返します。 /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if((resourceMan == null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TaskReminder.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// 厳密に型指定されたこのリソース クラスを使用して、すべての検索リソースに対し、 /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } }
35.206349
163
0.70018
[ "MIT" ]
PastFantasy1640/TaskReminder
Properties/Resources.Designer.cs
2,854
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.UI.Xaml.Media.Imaging { #if false || false || false || false || false [global::Uno.NotImplemented] #endif public partial class BitmapImage : global::Windows.UI.Xaml.Media.Imaging.BitmapSource { // Skipping already declared property UriSource // Skipping already declared property DecodePixelWidth // Skipping already declared property DecodePixelHeight // Skipping already declared property CreateOptions // Skipping already declared property DecodePixelType #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public bool AutoPlay { get { return (bool)this.GetValue(AutoPlayProperty); } set { this.SetValue(AutoPlayProperty, value); } } #endif #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public bool IsAnimatedBitmap { get { return (bool)this.GetValue(IsAnimatedBitmapProperty); } } #endif #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public bool IsPlaying { get { return (bool)this.GetValue(IsPlayingProperty); } } #endif // Skipping already declared property CreateOptionsProperty // Skipping already declared property DecodePixelHeightProperty // Skipping already declared property DecodePixelWidthProperty // Skipping already declared property UriSourceProperty // Skipping already declared property DecodePixelTypeProperty #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public static global::Windows.UI.Xaml.DependencyProperty AutoPlayProperty { get; } = Windows.UI.Xaml.DependencyProperty.Register( nameof(AutoPlay), typeof(bool), typeof(global::Windows.UI.Xaml.Media.Imaging.BitmapImage), new FrameworkPropertyMetadata(default(bool))); #endif #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public static global::Windows.UI.Xaml.DependencyProperty IsAnimatedBitmapProperty { get; } = Windows.UI.Xaml.DependencyProperty.Register( nameof(IsAnimatedBitmap), typeof(bool), typeof(global::Windows.UI.Xaml.Media.Imaging.BitmapImage), new FrameworkPropertyMetadata(default(bool))); #endif #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public static global::Windows.UI.Xaml.DependencyProperty IsPlayingProperty { get; } = Windows.UI.Xaml.DependencyProperty.Register( nameof(IsPlaying), typeof(bool), typeof(global::Windows.UI.Xaml.Media.Imaging.BitmapImage), new FrameworkPropertyMetadata(default(bool))); #endif // Skipping already declared method Windows.UI.Xaml.Media.Imaging.BitmapImage.BitmapImage(System.Uri) // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.BitmapImage(System.Uri) // Skipping already declared method Windows.UI.Xaml.Media.Imaging.BitmapImage.BitmapImage() // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.BitmapImage() // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.CreateOptions.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.CreateOptions.set // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.UriSource.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.UriSource.set // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelWidth.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelWidth.set // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelHeight.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelHeight.set // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DownloadProgress.add // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DownloadProgress.remove // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.ImageOpened.add // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.ImageOpened.remove // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.ImageFailed.add // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.ImageFailed.remove // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelType.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelType.set // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.IsAnimatedBitmap.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.IsPlaying.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.AutoPlay.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.AutoPlay.set #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public void Play() { global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.Media.Imaging.BitmapImage", "void BitmapImage.Play()"); } #endif #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] public void Stop() { global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.Media.Imaging.BitmapImage", "void BitmapImage.Stop()"); } #endif // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.IsAnimatedBitmapProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.IsPlayingProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.AutoPlayProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelTypeProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.CreateOptionsProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.UriSourceProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelWidthProperty.get // Forced skipping of method Windows.UI.Xaml.Media.Imaging.BitmapImage.DecodePixelHeightProperty.get // Skipping already declared event Windows.UI.Xaml.Media.Imaging.BitmapImage.DownloadProgress // Skipping already declared event Windows.UI.Xaml.Media.Imaging.BitmapImage.ImageFailed // Skipping already declared event Windows.UI.Xaml.Media.Imaging.BitmapImage.ImageOpened } }
51.379845
149
0.777158
[ "Apache-2.0" ]
JTOne123/uno
src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Media.Imaging/BitmapImage.cs
6,628
C#
using System; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using GitStat.Core.Entities; namespace GitStat.Core.Contracts { public interface ICommitRepository { void AddRange(Commit[] commits); IEnumerable <Commit> GetCommitsOf2019(); Commit GetCommitByID(int v); } }
21.875
48
0.722857
[ "MIT" ]
MIGU-1/csharp_samples_ef_uow_gitstatistics-template
source/GitStat.Core/Contracts/ICommitRepository.cs
352
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System.Linq.Expressions; using Microsoft.TestCommon; namespace System.Web.Razor.Test.Utils { public static class MiscAssert { public static void AssertBothNullOrPropertyEqual<T>(T expected, T actual, Expression<Func<T, object>> propertyExpr, string objectName) { // Unpack convert expressions Expression expr = propertyExpr.Body; while (expr.NodeType == ExpressionType.Convert) { expr = ((UnaryExpression)expr).Operand; } string propertyName = ((MemberExpression)expr).Member.Name; Func<T, object> property = propertyExpr.Compile(); if (expected == null) { Assert.Null(actual); } else { Assert.NotNull(actual); Assert.Equal(property(expected), property(actual)); } } } }
31.5
142
0.585434
[ "Apache-2.0" ]
Darth-Fx/AspNetMvcStack
test/System.Web.Razor.Test/Utils/MiscAssert.cs
1,073
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Quasar Common Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Quasar")] [assembly: AssemblyCopyright("Copyright © MaxXor 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("cfda6d2e-8ab3-4349-b89a-33e1f0dab32b")] // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.4.0.1")] [assembly: AssemblyFileVersion("1.4.0.1")]
30.047619
56
0.754358
[ "Apache-2.0", "MIT" ]
marlkiller/Quasar
Quasar.Common.Tests/Properties/AssemblyInfo.cs
632
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace PropertyManagementService.Web.Areas.Admin.Views.Buildings { public class IndexModel : PageModel { public void OnGet() { } } }
21.5
67
0.726744
[ "MIT" ]
MJordanov81/PropertManagamentService
PropertyManagementService/PropertyManagementService.Web/Areas/Admin/Views/Buildings/Index.cshtml.cs
344
C#
using System; using System.Data; using CMS.Base; using CMS.Base.Web.UI; using CMS.Base.Web.UI.ActionsConfig; using CMS.Core; using CMS.CustomTables; using CMS.DataEngine; using CMS.EventLog; using CMS.FormEngine; using CMS.Helpers; using CMS.Membership; using CMS.UIControls; [UIElement(ModuleName.CUSTOMTABLES, "CustomTable.Fields")] public partial class CMSModules_CustomTables_CustomTable_Edit_Fields : CMSCustomTablesPage { #region "Variables" protected DataClassInfo dci = null; protected string className = null; private FormInfo mFormInfo; private HeaderAction btnGenerateGuid; #endregion #region "Properties" /// <summary> /// Form info. /// </summary> public FormInfo FormInfo { get { if ((mFormInfo == null) && (dci != null)) { mFormInfo = FormHelper.GetFormInfo(dci.ClassName, true); } return mFormInfo; } } #endregion protected void Page_Load(object sender, EventArgs e) { int classId = QueryHelper.GetInteger("objectid", 0); dci = DataClassInfoProvider.GetDataClassInfo(classId); // Set edited object EditedObject = dci; CurrentMaster.BodyClass += " FieldEditorBody"; btnGenerateGuid = new HeaderAction { Tooltip = GetString("customtable.GenerateGUID"), Text = GetString("customtable.GenerateGUIDField"), Visible = false, CommandName = "createguid", OnClientClick = "return confirm(" + ScriptHelper.GetLocalizedString("customtable.generateguidconfirmation") + ");" }; FieldEditor.HeaderActions.AddAction(btnGenerateGuid); FieldEditor.HeaderActions.ActionPerformed += (s, ea) => { if (ea.CommandName == "createguid") CreateGUID(); }; // Class exists if (dci != null) { className = dci.ClassName; if (dci.ClassIsCoupledClass) { FieldEditor.Visible = true; FieldEditor.ClassName = className; FieldEditor.Mode = FieldEditorModeEnum.CustomTable; FieldEditor.OnFieldNameChanged += FieldEditor_OnFieldNameChanged; FieldEditor.OnAfterDefinitionUpdate += FieldEditor_OnAfterDefinitionUpdate; } else { FieldEditor.ShowError(GetString("customtable.ErrorNoFields")); } } ScriptHelper.HideVerticalTabs(this); } protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); // Class exists if (dci != null) { if (dci.ClassIsCoupledClass) { // GUID column is not present if ((FormInfo != null) && (FormInfo.GetFormField("ItemGUID") == null)) { btnGenerateGuid.Visible = true; FieldEditor.ShowInformation(GetString("customtable.GUIDColumMissing")); } } if (!RequestHelper.IsPostBack() && QueryHelper.GetBoolean("gen", false)) { FieldEditor.ShowInformation(GetString("customtable.GUIDFieldGenerated")); } } } private void FieldEditor_OnFieldNameChanged(object sender, string oldFieldName, string newFieldName) { if (dci != null) { // Rename field in layout(s) FormHelper.RenameFieldInFormLayout(dci.ClassID, oldFieldName, newFieldName); } } private void FieldEditor_OnAfterDefinitionUpdate(object sender, EventArgs e) { if (dci != null) { // State of unigrids may contain where/order by clauses no longer valid after definition update UniGrid.ResetStates(CustomTableItemProvider.GetObjectType(dci.ClassName)); } } /// <summary> /// Adds GUID field to form definition. /// </summary> private void CreateGUID() { bool success; try { if (FormInfo == null) { return; } // Create GUID field FormFieldInfo ffiGuid = new FormFieldInfo(); // Fill FormInfo object ffiGuid.Name = "ItemGUID"; ffiGuid.SetPropertyValue(FormFieldPropertyEnum.FieldCaption, "GUID"); ffiGuid.DataType = FieldDataType.Guid; ffiGuid.SetPropertyValue(FormFieldPropertyEnum.DefaultValue, string.Empty); ffiGuid.SetPropertyValue(FormFieldPropertyEnum.FieldDescription, String.Empty); ffiGuid.FieldType = FormFieldControlTypeEnum.CustomUserControl; ffiGuid.Settings["controlname"] = Enum.GetName(typeof(FormFieldControlTypeEnum), FormFieldControlTypeEnum.LabelControl).ToLowerCSafe(); ffiGuid.PrimaryKey = false; ffiGuid.System = true; ffiGuid.Visible = false; ffiGuid.Size = 0; ffiGuid.AllowEmpty = false; FormInfo.AddFormItem(ffiGuid); // Update definition dci.ClassFormDefinition = FormInfo.GetXmlDefinition(); using (CMSActionContext context = new CMSActionContext()) { // Disable logging into event log context.LogEvents = false; DataClassInfoProvider.SetDataClassInfo(dci); } // Clear the default queries QueryInfoProvider.ClearDefaultQueries(dci, true, false); // Clear the object type hashtable AbstractProviderDictionary.ReloadDictionaries(className, true); // Clear the classes hashtable AbstractProviderDictionary.ReloadDictionaries("cms.class", true); // Clear class strucures ClassStructureInfo.Remove(className, true); // Ensure GUIDs for all items using (CMSActionContext ctx = new CMSActionContext()) { ctx.UpdateSystemFields = false; ctx.LogSynchronization = false; DataSet dsItems = CustomTableItemProvider.GetItems(className); if (!DataHelper.DataSourceIsEmpty(dsItems)) { foreach (DataRow dr in dsItems.Tables[0].Rows) { CustomTableItem item = CustomTableItem.New(className, dr); item.ItemGUID = Guid.NewGuid(); item.Update(); } } } // Log event UserInfo currentUser = MembershipContext.AuthenticatedUser; EventLogProvider.LogEvent(EventType.INFORMATION, "Custom table", "GENERATEGUID", String.Format(ResHelper.GetAPIString("customtable.GUIDGenerated", "Field 'ItemGUID' for custom table '{0}' was created and GUID values were generated."), dci.ClassName), null, currentUser.UserID, currentUser.UserName); success = true; } catch (Exception ex) { success = false; FieldEditor.ShowError(GetString("customtable.ErrorGUID")); // Log event EventLogProvider.LogException("Custom table", "GENERATEGUID", ex); } if (success) { URLHelper.Redirect(URLHelper.AddParameterToUrl(RequestContext.CurrentURL, "gen", "1")); } } }
32.34632
311
0.59007
[ "MIT" ]
BryanSoltis/KenticoMVCWidgetShowcase
CMS/CMSModules/CustomTables/CustomTable_Edit_Fields.aspx.cs
7,474
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Stateless.WorkflowEngine.Exceptions { public class SingleInstanceWorkflowAlreadyExistsException : Exception { public SingleInstanceWorkflowAlreadyExistsException(string message) : base(message) { } public SingleInstanceWorkflowAlreadyExistsException(string message, Exception innerException) : base(message, innerException) { } } }
23.318182
101
0.703704
[ "MIT" ]
cafc79/Stateless.WorkflowEngine
source/Stateless.WorkflowEngine/Exceptions/SingleInstanceWorkflowAlreadyExistsException.cs
515
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace Aliyun.SDK.PDS.Client.Models { /** * List drive request */ public class ListDriveRequest : TeaModel { [NameInMap("headers")] [Validation(Required=false)] public Dictionary<string, string> Headers { get; set; } /// <summary> /// 每页大小限制 /// </summary> [NameInMap("limit")] [Validation(Required=false)] public int? Limit { get; set; } /// <summary> /// 翻页标记, 接口返回的标记值 /// </summary> [NameInMap("marker")] [Validation(Required=false)] public string Marker { get; set; } /// <summary> /// 所属者 /// </summary> [NameInMap("owner")] [Validation(Required=false)] public string Owner { get; set; } } }
21.627907
63
0.544086
[ "Apache-2.0" ]
neozhang2013/alibabacloud-pds-sdk
pds/csharp/core/Models/ListDriveRequest.cs
972
C#
// <copyright> // Copyright Southeast Christian Church // // Licensed under the Southeast Christian Church License (the "License"); // you may not use this file except in compliance with the License. // A copy of the License shoud be included with this file. // // 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. // </copyright> // using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Rock; using Rock.Plugin; using Rock.Web.Cache; namespace org.secc.PastoralCare.Migrations { [MigrationNumber( 2, "1.2.0" )] class Pastoral_WorkflowData : Migration { public override void Up() { RockMigrationHelper.UpdateCategory( "C9F3C4A5-1526-474D-803F-D6C7A45CBBAE", "Pastoral Care", "fa fa-heartbeat", "Pastoral Care", "549AA5EB-6506-47EA-BD9A-00AAC00F1C73"); RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0A800013-51F7-4902-885A-5BE215D67D3D" ); // Rock.Workflow.Action.SetWorkflowName:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "NameValue", "The value to use for the workflow's name. <span class='tip tip-lava'></span>", 1, @"", "93852244-A667-4749-961A-D47F88675BE4" ); // Rock.Workflow.Action.SetWorkflowName:Text Value|Attribute Value RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5D95C15A-CCAE-40AD-A9DD-F929DA587115" ); // Rock.Workflow.Action.SetWorkflowName:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE" ); // Rock.Workflow.Action.UserEntryForm:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C178113D-7C86-4229-8424-C6D0CF4A7E23" ); // Rock.Workflow.Action.UserEntryForm:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8E176D08-1ABB-4563-8BDA-0F0A5BA6E92B" ); // Rock.Workflow.Action.SetAttributeToInitiator:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the initiator.", 0, @"", "6AF13055-0AF4-4EB9-9722-0CC02DE502FB" ); // Rock.Workflow.Action.SetAttributeToInitiator:Person Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "6066D937-E36B-4DB1-B752-673B0EACC6F0" ); // Rock.Workflow.Action.SetAttributeToInitiator:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Lava Template", "LavaTemplate", "By default this action will set the attribute value equal to the guid (or id) of the entity that was passed in for processing. If you include a lava template here, the action will instead set the attribute value to the output of this template. The mergefield to use for the entity is 'Entity.' For example, use {{ Entity.Name }} if the entity has a Name property. <span class='tip tip-lava'></span>", 4, @"", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B" ); // Rock.Workflow.Action.SetAttributeFromEntity:Lava Template RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1" ); // Rock.Workflow.Action.SetAttributeFromEntity:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Entity Is Required", "EntityIsRequired", "Should an error be returned if the entity is missing or not a valid entity type?", 2, @"True", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC" ); // Rock.Workflow.Action.SetAttributeFromEntity:Entity Is Required RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Use Id instead of Guid", "UseId", "Most entity attribute field types expect the Guid of the entity (which is used by default). Select this option if the entity's Id should be used instead (should be rare).", 3, @"False", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B" ); // Rock.Workflow.Action.SetAttributeFromEntity:Use Id instead of Guid RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 1, @"", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7" ); // Rock.Workflow.Action.SetAttributeFromEntity:Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB" ); // Rock.Workflow.Action.SetAttributeFromEntity:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "D7EAA859-F500-4521-9523-488B12EAA7D2" ); // Rock.Workflow.Action.SetAttributeValue:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 0, @"", "44A0B977-4730-4519-8FF6-B0A01A95B212" ); // Rock.Workflow.Action.SetAttributeValue:Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "Value", "The text or attribute to set the value from. <span class='tip tip-lava'></span>", 1, @"", "E5272B11-A2B8-49DC-860D-8D574E2BC15C" ); // Rock.Workflow.Action.SetAttributeValue:Text Value|Attribute Value RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "57093B41-50ED-48E5-B72B-8829E62704C8" ); // Rock.Workflow.Action.SetAttributeValue:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "50B01639-4938-40D2-A791-AA0EB4F86847" ); // Rock.Workflow.Action.PersistWorkflow:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Persist Immediately", "PersistImmediately", "This action will normally cause the workflow to be persisted (saved) once all the current activites/actions have completed processing. Set this flag to true, if the workflow should be persisted immediately. This is only required if a subsequent action needs a persisted workflow with a valid id.", 0, @"False", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA" ); // Rock.Workflow.Action.PersistWorkflow:Persist Immediately RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361" ); // Rock.Workflow.Action.PersistWorkflow:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0B768E17-C64A-4212-BAD5-8A16B9F05A5C" ); // Rock.Workflow.Action.AssignActivityToPerson:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5C5F7DB4-51DE-4293-BD73-CABDEB6564AC" ); // Rock.Workflow.Action.AssignActivityToPerson:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Person", "Person", "The person to assign this activity to.", 0, @"", "7ED2571D-B1BF-4DB6-9D04-9B5D064F51D8" ); // Rock.Workflow.Action.AssignActivityToPerson:Person RockMigrationHelper.UpdateWorkflowType( false, true, "Homebound Resident", "", "549AA5EB-6506-47EA-BD9A-00AAC00F1C73", "Homebound Resident", "fa fa-bed", 28800, false, 0, "3621645F-FBD0-4741-90EC-E032354AA375" ); // Homebound Resident RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Requester", "Requester", "", 0, @"", "CDB4A290-DE50-4389-891A-E495C2AB83A4" ); // Homebound Resident:Requester RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Homebound Person", "HomeboundPerson", "", 1, @"", "A83F09EB-CE2E-4BA1-B8F8-FC36296C091C" ); // Homebound Resident:Homebound Person RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Homebound Resident Description", "HomeboundResidentDescription", "", 3, @"", "C624FABE-4AB1-4F74-8B54-BAFF43BAD126" ); // Homebound Resident:Homebound Resident Description RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Start Date", "StartDate", "", 4, @"", "667840C0-4CEC-44F0-93FE-04F4D6895ECE" ); // Homebound Resident:Start Date RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Notified By", "NotifiedBy", "", 5, @"", "ED09443E-481C-4B0B-A750-66B5C41AABEC" ); // Homebound Resident:Notified By RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Notified On", "NotifiedOn", "", 6, @"", "51239928-8DCF-4A9B-8838-F82FC21FD247" ); // Homebound Resident:Notified On RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "7525C4CB-EE6B-41D4-9B64-A08048D5A5C0", "Communion", "Communion", "", 7, @"", "E6747C95-C890-4FDA-BB1A-C32504033E7C" ); // Homebound Resident:Communion RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "End Date", "EndDate", "", 8, @"", "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA" ); // Homebound Resident:End Date RockMigrationHelper.UpdateWorkflowTypeAttribute( "3621645F-FBD0-4741-90EC-E032354AA375", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Close Note", "CloseNote", "", 9, @"", "09E1BB0B-82A6-493B-968F-597EF9F0921E" ); // Homebound Resident:Close Note RockMigrationHelper.UpdateAttributeQualifier( "CDB4A290-DE50-4389-891A-E495C2AB83A4", "EnableSelfSelection", @"True", "490C3136-8BB6-49F7-8894-CC6EB539774E" ); // Homebound Resident:Requester:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "A83F09EB-CE2E-4BA1-B8F8-FC36296C091C", "EnableSelfSelection", @"False", "CF88D24B-63B2-4DD0-97F0-2FAFBC24FF81" ); // Homebound Resident:Homebound Person:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "C624FABE-4AB1-4F74-8B54-BAFF43BAD126", "allowhtml", @"False", "A982F09E-4F73-4B67-B7D8-552CE57D6AEC" ); // Homebound Resident:Homebound Resident Description:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "C624FABE-4AB1-4F74-8B54-BAFF43BAD126", "numberofrows", @"6", "A30DB389-5184-42AB-A058-CC3351F61E4A" ); // Homebound Resident:Homebound Resident Description:numberofrows RockMigrationHelper.UpdateAttributeQualifier( "667840C0-4CEC-44F0-93FE-04F4D6895ECE", "displayCurrentOption", @"False", "58A0D637-AC09-4649-B700-A91FF5B5A540" ); // Homebound Resident:Start Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "667840C0-4CEC-44F0-93FE-04F4D6895ECE", "displayDiff", @"False", "5C6C3ACB-D217-4938-A5DF-6FE3E7D08D5A" ); // Homebound Resident:Start Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "667840C0-4CEC-44F0-93FE-04F4D6895ECE", "format", @"", "F9C33148-5D7E-47D9-9513-7136DBEAB35B" ); // Homebound Resident:Start Date:format RockMigrationHelper.UpdateAttributeQualifier( "ED09443E-481C-4B0B-A750-66B5C41AABEC", "ispassword", @"False", "36085CC4-100A-4390-A8DE-0D761778F895" ); // Homebound Resident:Notified By:ispassword RockMigrationHelper.UpdateAttributeQualifier( "51239928-8DCF-4A9B-8838-F82FC21FD247", "displayCurrentOption", @"False", "5EBB0266-69E9-41CB-93E5-BC7039E6BC8A" ); // Homebound Resident:Notified On:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "51239928-8DCF-4A9B-8838-F82FC21FD247", "displayDiff", @"False", "A56AA9D3-E12F-4EE3-B337-C09DBA9FD80B" ); // Homebound Resident:Notified On:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "51239928-8DCF-4A9B-8838-F82FC21FD247", "format", @"", "030ED3EE-FE36-40B6-BE11-9060E1BE1A32" ); // Homebound Resident:Notified On:format RockMigrationHelper.UpdateAttributeQualifier( "E6747C95-C890-4FDA-BB1A-C32504033E7C", "fieldtype", @"rb", "5866E185-BFDE-4497-B779-C460E285ABCC" ); // Homebound Resident:Communion:fieldtype RockMigrationHelper.UpdateAttributeQualifier( "E6747C95-C890-4FDA-BB1A-C32504033E7C", "values", @"Yes,No", "4C7492E3-034D-4C8C-AD79-E6B94E3716AB" ); // Homebound Resident:Communion:values RockMigrationHelper.UpdateAttributeQualifier( "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", "displayCurrentOption", @"False", "69BB6A40-3F35-404F-A532-CF78BCA55729" ); // Homebound Resident:End Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", "displayDiff", @"False", "2C72DD67-57A5-4910-90E7-C44F1FBCBEE1" ); // Homebound Resident:End Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", "format", @"", "8BDC357D-32AF-4DE9-A400-6BAE2AA9ADF1" ); // Homebound Resident:End Date:format RockMigrationHelper.UpdateAttributeQualifier( "09E1BB0B-82A6-493B-968F-597EF9F0921E", "allowhtml", @"False", "2DFD325A-3FE0-4ECE-8AC0-EE10216F6922" ); // Homebound Resident:Close Note:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "09E1BB0B-82A6-493B-968F-597EF9F0921E", "numberofrows", @"3", "1597B2F5-7CE3-487F-A9A5-1113EC535A73" ); // Homebound Resident:Close Note:numberofrows RockMigrationHelper.UpdateWorkflowActivityType( "3621645F-FBD0-4741-90EC-E032354AA375", true, "Homebound Resident Setup Info", "", true, 0, "F5F74E70-3643-4122-9221-5FAAB0DBF47F" ); // Homebound Resident:Homebound Resident Setup Info RockMigrationHelper.UpdateWorkflowActivityType( "3621645F-FBD0-4741-90EC-E032354AA375", true, "Homebound Resident Summary", "", false, 1, "3B165553-0D50-4D1D-A53F-F4FFF50CBE3F" ); // Homebound Resident:Homebound Resident Summary RockMigrationHelper.UpdateWorkflowActivityType( "3621645F-FBD0-4741-90EC-E032354AA375", true, "Visitation Info", "", false, 2, "61E356D3-2A02-457B-9A43-B67806C67A45" ); // Homebound Resident:Visitation Info RockMigrationHelper.UpdateWorkflowActivityType( "3621645F-FBD0-4741-90EC-E032354AA375", true, "Close Info", "", false, 3, "9F9FEF18-1259-43D1-B922-C37C17B7D9D8" ); // Homebound Resident:Close Info RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "61E356D3-2A02-457B-9A43-B67806C67A45", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Visitor", "Visitor", "", 0, @"", "9772094D-6FEF-4E99-A782-BBF04D29BA7F" ); // Homebound Resident:Visitation Info:Visitor RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "61E356D3-2A02-457B-9A43-B67806C67A45", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Visit Date", "VisitDate", "", 1, @"", "5F961235-C39A-41E1-BA6E-A030815F8AAB" ); // Homebound Resident:Visitation Info:Visit Date RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "61E356D3-2A02-457B-9A43-B67806C67A45", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Visit Note", "VisitNote", "", 2, @"", "69F48626-29A1-488F-A60E-CF72067B9527" ); // Homebound Resident:Visitation Info:Visit Note RockMigrationHelper.UpdateAttributeQualifier( "9772094D-6FEF-4E99-A782-BBF04D29BA7F", "EnableSelfSelection", @"True", "CB2C3BC0-2E3D-41F7-A051-B90A74733D00" ); // Homebound Resident:Visitor:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "5F961235-C39A-41E1-BA6E-A030815F8AAB", "displayCurrentOption", @"False", "FFDE315F-B61E-4380-91DF-6A054830F1E0" ); // Homebound Resident:Visit Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "5F961235-C39A-41E1-BA6E-A030815F8AAB", "displayDiff", @"False", "C6E6F9E2-A984-4103-A6B4-BBF8220A3C69" ); // Homebound Resident:Visit Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "5F961235-C39A-41E1-BA6E-A030815F8AAB", "format", @"", "795BE8E1-A264-4138-AD1B-983B023B976C" ); // Homebound Resident:Visit Date:format RockMigrationHelper.UpdateAttributeQualifier( "69F48626-29A1-488F-A60E-CF72067B9527", "allowhtml", @"False", "185CC5E4-611C-460F-A76C-B231265AFC93" ); // Homebound Resident:Visit Note:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "69F48626-29A1-488F-A60E-CF72067B9527", "numberofrows", @"3", "6E2BE48E-4949-4D45-ABC0-E285F50A1F91" ); // Homebound Resident:Visit Note:numberofrows RockMigrationHelper.UpdateWorkflowActionForm( @"<div class=""pull-right"" style=""margin-top: -50px""> <a href=""#"" onclick=""window.open('/Pastoral/NewFamily?t=Pastoral Care', '_blank', 'toolbar=no,scrollbars=yes,resizable=yes,top=100,left=300,width=1200,height=622');return false;"" class=""btn btn-action btn-sm""><i class=""fa fa-plus""></i><span> Pastoral Care</span></a> </div>", @"", "Save^fdc397cd-8b4a-436e-bea1-bce2e6717c03^3b165553-0d50-4d1d-a53f-f4fff50cbe3f^Your information has been submitted successfully.", "", true, "", "5BB981D7-9668-41CE-9A6E-C96F9057249C" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"<div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""> <i class=""fa fa-info-circle""></i> Homebound Resident Information </div> </div> <div class=""panel-body""> <div class=""col-md-6""> <div class=""form-group static-control"" style=""margin-top: 57px;""> <label class=""control-label"">Age</label><div class=""control-wrapper""> <p class=""form-control-static"">{{ Workflow | Attribute:'HomeboundPerson','Age' }}</p> </div> </div>", @" </div> </div> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""> <i class=""fa fa-calendar""></i> Visit History </div> </div> <div class=""panel-body""> <table class=""table table-striped table-bordered""> <thead> <tr> <th>Visitor</th> <th>Date</th> <th>Visit Notes</th> </tr> </thead> <tbody> {% for activity in Workflow.Activities reversed %} {% if activity.ActivityType.Name == 'Visitation Info' %} <tr> <td>{{ activity.Visitor }}</td> <td>{{ activity.VisitDate }}</td> <td>{{ activity.VisitNote }}</td> </tr> {% endif %} {% endfor %} </tbody> </table> </div> </div>", "Edit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^F5F74E70-3643-4122-9221-5FAAB0DBF47F^Your information has been submitted successfully.|Add Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^61E356D3-2A02-457B-9A43-B67806C67A45^|Close^fdc397cd-8b4a-436e-bea1-bce2e6717c03^9F9FEF18-1259-43D1-B922-C37C17B7D9D8^|", "", true, "", "87FDE195-3C3E-408C-BD42-19A9FE01D224" ); // Homebound Resident:Homebound Resident Summary:Entry Form RockMigrationHelper.UpdateWorkflowActionForm( @"", @"", "Save Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^3b165553-0d50-4d1d-a53f-f4fff50cbe3f^Your information has been submitted successfully.", "", true, "", "D8CC1582-5F0A-4270-931D-C9AE1BF91672" ); // Homebound Resident:Visitation Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"", @"", "Finish^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Close info has been recorded!|Cancel^fdc397cd-8b4a-436e-bea1-bce2e6717c03^3B165553-0D50-4D1D-A53F-F4FFF50CBE3F^|", "", true, "", "0893BE77-C5FA-4465-8DBC-F72B420E152B" ); // Homebound Resident:Close Info:Form Entry RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "CDB4A290-DE50-4389-891A-E495C2AB83A4", 0, true, false, true, false, @"<div class=""row""> <div class=""col-md-4""> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-info-circle""></i> Request Information</div> </div> <div class=""panel-body"" style=""min-height: 312px"" >", @"", "73AA4980-1F49-4F38-93D5-E372B44FAE50" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "CDB4A290-DE50-4389-891A-E495C2AB83A4", 0, false, true, false, false, @"", @"", "D6397D29-2C2E-4D61-AEB8-1B1CDB6171CA" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "CDB4A290-DE50-4389-891A-E495C2AB83A4", 1, false, true, false, false, @"", @"", "999185AC-BB51-443B-896A-9A70F3AC45E1" ); // Homebound Resident:Visitation Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "CDB4A290-DE50-4389-891A-E495C2AB83A4", 0, false, true, false, false, @"", @"", "B170DEAE-CD14-4993-8A92-AD3722BC04E5" ); // Homebound Resident:Close Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "A83F09EB-CE2E-4BA1-B8F8-FC36296C091C", 3, true, false, true, false, @"<div class=""col-md-8""> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-user-plus""></i> Homebound Resident Information</div> </div> <div class=""panel-body""> <div class=""row""> <div class=""col-md-4"">", @"</div>", "B297E27C-9F30-48D3-9AAB-4F5623B23313" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Homebound Person RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "A83F09EB-CE2E-4BA1-B8F8-FC36296C091C", 1, true, true, false, false, @"<div style=""margin-top: -120px; margin-bottom: 73px;"">", @"</div> </div>", "4864A094-175F-4CBB-ABDB-2F38830957EB" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Homebound Person RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "A83F09EB-CE2E-4BA1-B8F8-FC36296C091C", 2, false, true, false, false, @"", @"", "C4F9DF83-D762-4ED4-9D21-87A4F3519825" ); // Homebound Resident:Visitation Info:Form Entry:Homebound Person RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "A83F09EB-CE2E-4BA1-B8F8-FC36296C091C", 1, true, true, false, false, @"", @"", "A691E8A4-6E9C-4060-AB61-8E0977F8C79C" ); // Homebound Resident:Close Info:Form Entry:Homebound Person RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "C624FABE-4AB1-4F74-8B54-BAFF43BAD126", 6, true, false, true, false, @"", @"", "1957B252-86F4-46A8-BDC1-1EA2A026301E" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Homebound Resident Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "C624FABE-4AB1-4F74-8B54-BAFF43BAD126", 4, true, true, false, false, @"<div class=""col-md-12"">", @"</div>", "C4AFDD88-D16F-4289-A71D-30439F46A0F4" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Homebound Resident Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "C624FABE-4AB1-4F74-8B54-BAFF43BAD126", 0, false, true, false, false, @"", @"", "0C3A3E82-86A0-4C2C-904C-168398EF29AB" ); // Homebound Resident:Visitation Info:Form Entry:Homebound Resident Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "C624FABE-4AB1-4F74-8B54-BAFF43BAD126", 2, false, true, false, false, @"", @"", "5F9D6249-DE61-416E-A83D-0F38FDCFD888" ); // Homebound Resident:Close Info:Form Entry:Homebound Resident Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "667840C0-4CEC-44F0-93FE-04F4D6895ECE", 5, true, false, true, false, @"<div class=""col-md-4"">", @"</div> </div>", "284EEBDE-58B5-4069-BBEF-8C26991E6EF3" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Start Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "667840C0-4CEC-44F0-93FE-04F4D6895ECE", 3, true, true, false, false, @"", @"</div>", "3458185C-4443-4FAB-9DB1-3298F1306EBA" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Start Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "667840C0-4CEC-44F0-93FE-04F4D6895ECE", 3, false, true, false, false, @"", @"", "21C3BA00-7117-4F20-A3ED-90C00C34FBBF" ); // Homebound Resident:Visitation Info:Form Entry:Start Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "667840C0-4CEC-44F0-93FE-04F4D6895ECE", 3, false, true, false, false, @"", @"", "57587AFF-7890-489C-B376-22AE9B63F37E" ); // Homebound Resident:Close Info:Form Entry:Start Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "ED09443E-481C-4B0B-A750-66B5C41AABEC", 1, true, false, true, false, @"", @"", "926FBAD3-663F-4E39-BE91-8C8A6BBB4D15" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "ED09443E-481C-4B0B-A750-66B5C41AABEC", 5, false, true, false, false, @"", @"", "72DADB08-ECF2-40E7-8891-1525758DB618" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "ED09443E-481C-4B0B-A750-66B5C41AABEC", 4, false, true, false, false, @"", @"", "5944C068-FC7C-45FF-A781-0F26AE3526FA" ); // Homebound Resident:Visitation Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "ED09443E-481C-4B0B-A750-66B5C41AABEC", 4, false, true, false, false, @"", @"", "6B004722-24DF-4D59-8380-27710581CB51" ); // Homebound Resident:Close Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "51239928-8DCF-4A9B-8838-F82FC21FD247", 2, true, false, true, false, @"", @"</div> </div> </div>", "E66C842F-1045-4BBD-BFF8-33A87B65A07B" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "51239928-8DCF-4A9B-8838-F82FC21FD247", 6, false, true, false, false, @"", @"", "51785B89-E380-438C-8088-B8B68A3EA3DD" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "51239928-8DCF-4A9B-8838-F82FC21FD247", 5, false, true, false, false, @"", @"", "7335A0C6-D201-418B-9025-1EE9A05DB354" ); // Homebound Resident:Visitation Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "51239928-8DCF-4A9B-8838-F82FC21FD247", 5, false, true, false, false, @"", @"", "979B0935-A0D2-4E2A-A92E-A78450F4F7E4" ); // Homebound Resident:Close Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "E6747C95-C890-4FDA-BB1A-C32504033E7C", 4, true, false, true, false, @"<div class=""col-md-4"">", @"</div>", "92F76543-5D4D-404C-9B08-01E78A1FCA40" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "E6747C95-C890-4FDA-BB1A-C32504033E7C", 2, true, true, false, false, @"<div class=""col-md-6"">", @"", "296F97A1-1E8E-4635-ACD4-FC504653427C" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "E6747C95-C890-4FDA-BB1A-C32504033E7C", 6, false, true, false, false, @"", @"", "DADD12C5-5CFA-43AE-89A8-DCC887D895B2" ); // Homebound Resident:Visitation Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "E6747C95-C890-4FDA-BB1A-C32504033E7C", 6, false, true, false, false, @"", @"", "1029C07D-FD76-4A8C-BD09-501A3B0E7C4E" ); // Homebound Resident:Close Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", 7, false, true, false, false, @"", @"", "55A9C00B-3325-461A-8D19-C3E8F4A5E049" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:End Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", 7, false, true, false, false, @"", @"", "9FA639CA-9179-481A-B2E1-CCB86659C784" ); // Homebound Resident:Homebound Resident Summary:Entry Form:End Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", 7, false, true, false, false, @"", @"", "B580553E-3E2E-4777-AA38-44F68ED0D484" ); // Homebound Resident:Visitation Info:Form Entry:End Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "4A0CB146-AAF4-4714-A2D3-FD9C8BAC75BA", 7, true, false, false, false, @"", @"", "53B424B8-CAE4-45BB-9458-9731BC58D1BB" ); // Homebound Resident:Close Info:Form Entry:End Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "5BB981D7-9668-41CE-9A6E-C96F9057249C", "09E1BB0B-82A6-493B-968F-597EF9F0921E", 8, false, true, false, false, @"", @"", "E052DF8E-3CDC-4087-838D-C57EC9097CC5" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Close Note RockMigrationHelper.UpdateWorkflowActionFormAttribute( "87FDE195-3C3E-408C-BD42-19A9FE01D224", "09E1BB0B-82A6-493B-968F-597EF9F0921E", 8, false, true, false, false, @"", @"", "C1694936-9EED-4966-AEB0-80CB50E996CB" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Close Note RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "09E1BB0B-82A6-493B-968F-597EF9F0921E", 11, false, true, false, false, @"", @"", "5CB24FD2-3901-4B63-9CB6-2AB143D6A611" ); // Homebound Resident:Visitation Info:Form Entry:Close Note RockMigrationHelper.UpdateWorkflowActionFormAttribute( "0893BE77-C5FA-4465-8DBC-F72B420E152B", "09E1BB0B-82A6-493B-968F-597EF9F0921E", 8, true, false, false, false, @"", @"", "D137768B-8446-400D-A0DF-DA430A5165A5" ); // Homebound Resident:Close Info:Form Entry:Close Note RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "9772094D-6FEF-4E99-A782-BBF04D29BA7F", 8, true, false, true, false, @"<div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-heart""></i> Visit Information</div> </div> <div class=""panel-body""> <div class=""row""> <div class=""col-sm-6"">", @"</div>", "ECC91844-BB35-4130-BC11-1A422EED81DA" ); // Homebound Resident:Visitation Info:Form Entry:Visitor RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "5F961235-C39A-41E1-BA6E-A030815F8AAB", 9, true, false, true, false, @"<div class=""col-sm-6"">", @"</div> </div>", "F0BC0F4C-6841-4278-8B7D-51DC6523249D" ); // Homebound Resident:Visitation Info:Form Entry:Visit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "69F48626-29A1-488F-A60E-CF72067B9527", 10, true, false, true, false, @"", @"</div> </div>", "2171A6B8-BDED-47EB-8A6D-1C2C22BF4002" ); // Homebound Resident:Visitation Info:Form Entry:Visit Note RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Set Assignee", 4, "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", true, false, "", "", 1, "", "04A8CADF-DFEE-4574-8100-8DC960FF9486" ); // Homebound Resident:Homebound Resident Setup Info:Set Assignee RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Persist Workflow", 6, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "CD6BD2E2-7A6B-48F5-AFAD-75235E90D53C" ); // Homebound Resident:Homebound Resident Setup Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Set Homebound Person", 0, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 1, "", "3C48A0CA-598C-4227-864F-B6A50EF7CC1F" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Set Current Date", 1, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "", 1, "", "87D2A144-496F-433A-8A48-239A7D4B84BF" ); // Homebound Resident:Homebound Resident Setup Info:Set Current Date RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Set Workflow Name", 5, "36005473-BD5D-470B-B28D-98E6D7ED808D", true, false, "", "", 1, "", "EADC371C-2E62-4B73-9AB6-1BF2BBC06E3D" ); // Homebound Resident:Homebound Resident Setup Info:Set Workflow Name RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Set Initiator", 2, "4EEAC6FA-B838-410B-A8DD-21A364029F5D", true, false, "", "", 1, "", "5F7E754E-2E69-422E-A5C6-D40C83B36717" ); // Homebound Resident:Homebound Resident Setup Info:Set Initiator RockMigrationHelper.UpdateWorkflowActionType( "F5F74E70-3643-4122-9221-5FAAB0DBF47F", "Form Entry", 3, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "5BB981D7-9668-41CE-9A6E-C96F9057249C", "", 1, "", "297A2DBC-9C3E-484D-BCFD-6A4D52CFE0DF" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "3B165553-0D50-4D1D-A53F-F4FFF50CBE3F", "Entry Form", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "87FDE195-3C3E-408C-BD42-19A9FE01D224", "", 1, "", "C714C730-EC84-47C4-9885-A5D86716BE18" ); // Homebound Resident:Homebound Resident Summary:Entry Form RockMigrationHelper.UpdateWorkflowActionType( "3B165553-0D50-4D1D-A53F-F4FFF50CBE3F", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "DDBC3EC5-8B0F-4FD3-B9B4-94545159ADA7" ); // Homebound Resident:Homebound Resident Summary:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "61E356D3-2A02-457B-9A43-B67806C67A45", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "6B6844D5-9921-4D1B-93C1-016DED0223C7" ); // Homebound Resident:Visitation Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "61E356D3-2A02-457B-9A43-B67806C67A45", "Form Entry", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "D8CC1582-5F0A-4270-931D-C9AE1BF91672", "", 1, "", "64AEAD3C-0657-40C3-AC85-043250D52138" ); // Homebound Resident:Visitation Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "9F9FEF18-1259-43D1-B922-C37C17B7D9D8", "Form Entry", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "0893BE77-C5FA-4465-8DBC-F72B420E152B", "", 1, "", "A16788EE-974D-4A11-8009-2E389677BAEF" ); // Homebound Resident:Close Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "9F9FEF18-1259-43D1-B922-C37C17B7D9D8", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "AB006ED6-A588-42D9-BB39-BC836DEABD1B" ); // Homebound Resident:Close Info:Persist Workflow RockMigrationHelper.AddActionTypeAttributeValue( "3C48A0CA-598C-4227-864F-B6A50EF7CC1F", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person:Active RockMigrationHelper.AddActionTypeAttributeValue( "3C48A0CA-598C-4227-864F-B6A50EF7CC1F", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person:Order RockMigrationHelper.AddActionTypeAttributeValue( "3C48A0CA-598C-4227-864F-B6A50EF7CC1F", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"a83f09eb-ce2e-4ba1-b8f8-fc36296c091c" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "3C48A0CA-598C-4227-864F-B6A50EF7CC1F", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person:Entity Is Required RockMigrationHelper.AddActionTypeAttributeValue( "3C48A0CA-598C-4227-864F-B6A50EF7CC1F", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"True" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person:Use Id instead of Guid RockMigrationHelper.AddActionTypeAttributeValue( "3C48A0CA-598C-4227-864F-B6A50EF7CC1F", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B", @"" ); // Homebound Resident:Homebound Resident Setup Info:Set Homebound Person:Lava Template RockMigrationHelper.AddActionTypeAttributeValue( "87D2A144-496F-433A-8A48-239A7D4B84BF", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Set Current Date:Active RockMigrationHelper.AddActionTypeAttributeValue( "87D2A144-496F-433A-8A48-239A7D4B84BF", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"51239928-8dcf-4a9b-8838-f82fc21fd247" ); // Homebound Resident:Homebound Resident Setup Info:Set Current Date:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "87D2A144-496F-433A-8A48-239A7D4B84BF", "57093B41-50ED-48E5-B72B-8829E62704C8", @"" ); // Homebound Resident:Homebound Resident Setup Info:Set Current Date:Order RockMigrationHelper.AddActionTypeAttributeValue( "87D2A144-496F-433A-8A48-239A7D4B84BF", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"{{ 'Now' | Date:'MM/dd/yyyy' }}" ); // Homebound Resident:Homebound Resident Setup Info:Set Current Date:Text Value|Attribute Value RockMigrationHelper.AddActionTypeAttributeValue( "5F7E754E-2E69-422E-A5C6-D40C83B36717", "8E176D08-1ABB-4563-8BDA-0F0A5BA6E92B", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Set Initiator:Active RockMigrationHelper.AddActionTypeAttributeValue( "5F7E754E-2E69-422E-A5C6-D40C83B36717", "6AF13055-0AF4-4EB9-9722-0CC02DE502FB", @"cdb4a290-de50-4389-891a-e495c2ab83a4" ); // Homebound Resident:Homebound Resident Setup Info:Set Initiator:Person Attribute RockMigrationHelper.AddActionTypeAttributeValue( "5F7E754E-2E69-422E-A5C6-D40C83B36717", "6066D937-E36B-4DB1-B752-673B0EACC6F0", @"" ); // Homebound Resident:Homebound Resident Setup Info:Set Initiator:Order RockMigrationHelper.AddActionTypeAttributeValue( "297A2DBC-9C3E-484D-BCFD-6A4D52CFE0DF", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "297A2DBC-9C3E-484D-BCFD-6A4D52CFE0DF", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Homebound Resident:Homebound Resident Setup Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "04A8CADF-DFEE-4574-8100-8DC960FF9486", "0B768E17-C64A-4212-BAD5-8A16B9F05A5C", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Set Assignee:Active RockMigrationHelper.AddActionTypeAttributeValue( "04A8CADF-DFEE-4574-8100-8DC960FF9486", "5C5F7DB4-51DE-4293-BD73-CABDEB6564AC", @"" ); // Homebound Resident:Homebound Resident Setup Info:Set Assignee:Order RockMigrationHelper.AddActionTypePersonAttributeValue( "04A8CADF-DFEE-4574-8100-8DC960FF9486", "7ED2571D-B1BF-4DB6-9D04-9B5D064F51D8", @"6de0071f-538e-45bb-b80f-b06f81fed1c5" ); // Homebound Resident:Homebound Resident Setup Info:Set Assignee:Person RockMigrationHelper.AddActionTypeAttributeValue( "EADC371C-2E62-4B73-9AB6-1BF2BBC06E3D", "5D95C15A-CCAE-40AD-A9DD-F929DA587115", @"" ); // Homebound Resident:Homebound Resident Setup Info:Set Workflow Name:Order RockMigrationHelper.AddActionTypeAttributeValue( "EADC371C-2E62-4B73-9AB6-1BF2BBC06E3D", "0A800013-51F7-4902-885A-5BE215D67D3D", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Set Workflow Name:Active RockMigrationHelper.AddActionTypeAttributeValue( "EADC371C-2E62-4B73-9AB6-1BF2BBC06E3D", "93852244-A667-4749-961A-D47F88675BE4", @"{{ Workflow.HomeboundPerson }}" ); // Homebound Resident:Homebound Resident Setup Info:Set Workflow Name:Text Value|Attribute Value RockMigrationHelper.AddActionTypeAttributeValue( "CD6BD2E2-7A6B-48F5-AFAD-75235E90D53C", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Homebound Resident:Homebound Resident Setup Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "CD6BD2E2-7A6B-48F5-AFAD-75235E90D53C", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Homebound Resident:Homebound Resident Setup Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "CD6BD2E2-7A6B-48F5-AFAD-75235E90D53C", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Homebound Resident:Homebound Resident Setup Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "C714C730-EC84-47C4-9885-A5D86716BE18", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Active RockMigrationHelper.AddActionTypeAttributeValue( "C714C730-EC84-47C4-9885-A5D86716BE18", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Homebound Resident:Homebound Resident Summary:Entry Form:Order RockMigrationHelper.AddActionTypeAttributeValue( "DDBC3EC5-8B0F-4FD3-B9B4-94545159ADA7", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Homebound Resident:Homebound Resident Summary:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "DDBC3EC5-8B0F-4FD3-B9B4-94545159ADA7", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Homebound Resident:Homebound Resident Summary:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "DDBC3EC5-8B0F-4FD3-B9B4-94545159ADA7", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Homebound Resident:Homebound Resident Summary:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "64AEAD3C-0657-40C3-AC85-043250D52138", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Homebound Resident:Visitation Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "64AEAD3C-0657-40C3-AC85-043250D52138", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Homebound Resident:Visitation Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "6B6844D5-9921-4D1B-93C1-016DED0223C7", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Homebound Resident:Visitation Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "6B6844D5-9921-4D1B-93C1-016DED0223C7", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Homebound Resident:Visitation Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "6B6844D5-9921-4D1B-93C1-016DED0223C7", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"False" ); // Homebound Resident:Visitation Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "A16788EE-974D-4A11-8009-2E389677BAEF", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Homebound Resident:Close Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "A16788EE-974D-4A11-8009-2E389677BAEF", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Homebound Resident:Close Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "AB006ED6-A588-42D9-BB39-BC836DEABD1B", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Homebound Resident:Close Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "AB006ED6-A588-42D9-BB39-BC836DEABD1B", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Homebound Resident:Close Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "AB006ED6-A588-42D9-BB39-BC836DEABD1B", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Homebound Resident:Close Info:Persist Workflow:Persist Immediately RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0A800013-51F7-4902-885A-5BE215D67D3D" ); // Rock.Workflow.Action.SetWorkflowName:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "NameValue", "The value to use for the workflow's name. <span class='tip tip-lava'></span>", 1, @"", "93852244-A667-4749-961A-D47F88675BE4" ); // Rock.Workflow.Action.SetWorkflowName:Text Value|Attribute Value RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5D95C15A-CCAE-40AD-A9DD-F929DA587115" ); // Rock.Workflow.Action.SetWorkflowName:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE" ); // Rock.Workflow.Action.UserEntryForm:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C178113D-7C86-4229-8424-C6D0CF4A7E23" ); // Rock.Workflow.Action.UserEntryForm:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8E176D08-1ABB-4563-8BDA-0F0A5BA6E92B" ); // Rock.Workflow.Action.SetAttributeToInitiator:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the initiator.", 0, @"", "6AF13055-0AF4-4EB9-9722-0CC02DE502FB" ); // Rock.Workflow.Action.SetAttributeToInitiator:Person Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "6066D937-E36B-4DB1-B752-673B0EACC6F0" ); // Rock.Workflow.Action.SetAttributeToInitiator:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Lava Template", "LavaTemplate", "By default this action will set the attribute value equal to the guid (or id) of the entity that was passed in for processing. If you include a lava template here, the action will instead set the attribute value to the output of this template. The mergefield to use for the entity is 'Entity.' For example, use {{ Entity.Name }} if the entity has a Name property. <span class='tip tip-lava'></span>", 4, @"", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B" ); // Rock.Workflow.Action.SetAttributeFromEntity:Lava Template RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1" ); // Rock.Workflow.Action.SetAttributeFromEntity:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Entity Is Required", "EntityIsRequired", "Should an error be returned if the entity is missing or not a valid entity type?", 2, @"True", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC" ); // Rock.Workflow.Action.SetAttributeFromEntity:Entity Is Required RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Use Id instead of Guid", "UseId", "Most entity attribute field types expect the Guid of the entity (which is used by default). Select this option if the entity's Id should be used instead (should be rare).", 3, @"False", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B" ); // Rock.Workflow.Action.SetAttributeFromEntity:Use Id instead of Guid RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 1, @"", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7" ); // Rock.Workflow.Action.SetAttributeFromEntity:Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB" ); // Rock.Workflow.Action.SetAttributeFromEntity:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "D7EAA859-F500-4521-9523-488B12EAA7D2" ); // Rock.Workflow.Action.SetAttributeValue:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 0, @"", "44A0B977-4730-4519-8FF6-B0A01A95B212" ); // Rock.Workflow.Action.SetAttributeValue:Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "Value", "The text or attribute to set the value from. <span class='tip tip-lava'></span>", 1, @"", "E5272B11-A2B8-49DC-860D-8D574E2BC15C" ); // Rock.Workflow.Action.SetAttributeValue:Text Value|Attribute Value RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "57093B41-50ED-48E5-B72B-8829E62704C8" ); // Rock.Workflow.Action.SetAttributeValue:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "50B01639-4938-40D2-A791-AA0EB4F86847" ); // Rock.Workflow.Action.PersistWorkflow:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Persist Immediately", "PersistImmediately", "This action will normally cause the workflow to be persisted (saved) once all the current activites/actions have completed processing. Set this flag to true, if the workflow should be persisted immediately. This is only required if a subsequent action needs a persisted workflow with a valid id.", 0, @"False", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA" ); // Rock.Workflow.Action.PersistWorkflow:Persist Immediately RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361" ); // Rock.Workflow.Action.PersistWorkflow:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0B768E17-C64A-4212-BAD5-8A16B9F05A5C" ); // Rock.Workflow.Action.AssignActivityToPerson:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5C5F7DB4-51DE-4293-BD73-CABDEB6564AC" ); // Rock.Workflow.Action.AssignActivityToPerson:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Person", "Person", "The person to assign this activity to.", 0, @"", "7ED2571D-B1BF-4DB6-9D04-9B5D064F51D8" ); // Rock.Workflow.Action.AssignActivityToPerson:Person RockMigrationHelper.UpdateWorkflowType( false, true, "Nursing Home Resident", "", "549AA5EB-6506-47EA-BD9A-00AAC00F1C73", "Nursing Home Resident", "fa fa-wheelchair", 28800, false, 0, "7818DFD9-E347-43B2-95E3-8FBF83AB962D" ); // Nursing Home Resident RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "59D5A94C-94A0-4630-B80A-BB25697D74C7", "Nursing Home", "NursingHome", "", 0, @"", "D5C60481-A4D1-48F3-B525-53BCF7873236" ); // Nursing Home Resident:Nursing Home RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Requester", "Requester", "", 1, @"", "D5D59A53-73C0-443A-918C-7FC2F6E3030A" ); // Nursing Home Resident:Requester RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Person To Visit", "PersonToVisit", "", 2, @"", "329B5F7B-F521-4268-89CA-CDA3A9B2CE0F" ); // Nursing Home Resident:Person To Visit RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Room", "Room", "", 3, @"", "928805D4-C8E8-4CD8-AA47-C830CCDC682C" ); // Nursing Home Resident:Room RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Visitation Request Description", "VisitationRequestDescription", "", 4, @"", "A6885C02-7A03-47BE-91E1-468AE9F5C440" ); // Nursing Home Resident:Visitation Request Description RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Admit Date", "AdmitDate", "", 5, @"", "EC1CA939-F818-441C-887E-59CABCD28963" ); // Nursing Home Resident:Admit Date RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Notified By", "NotifiedBy", "", 6, @"", "10F8669B-11B7-4FBE-92A7-B618EEC5539D" ); // Nursing Home Resident:Notified By RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Notified On", "NotifiedOn", "", 7, @"", "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8" ); // Nursing Home Resident:Notified On RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "7525C4CB-EE6B-41D4-9B64-A08048D5A5C0", "Communion", "Communion", "", 8, @"", "FC7739E4-4763-4849-82C7-8ACE6792A00E" ); // Nursing Home Resident:Communion RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Discharge Date", "DischargeDate", "", 9, @"", "DDED341E-97D8-4D32-9D3D-8F8020928D56" ); // Nursing Home Resident:Discharge Date RockMigrationHelper.UpdateWorkflowTypeAttribute( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Discharge Reason", "DischargeReason", "", 10, @"", "24A018FA-75B4-4DCB-B598-DC315DC58F3D" ); // Nursing Home Resident:Discharge Reason RockMigrationHelper.UpdateAttributeQualifier( "D5C60481-A4D1-48F3-B525-53BCF7873236", "allowmultiple", @"False", "9DA406EF-35CC-4BCF-B9B9-ACE162EA1D27" ); // Nursing Home Resident:Nursing Home:allowmultiple RockMigrationHelper.UpdateAttributeQualifier( "D5C60481-A4D1-48F3-B525-53BCF7873236", "definedtype", DefinedTypeCache.Get( "4573E600-4E00-4BE9-BA92-D17093C735D6".AsGuid() ).Id.ToString(), "4573E600-4E00-4BE9-BA92-D17093C735D6" ); // Nursing Home Resident:Nursing Home:definedtype RockMigrationHelper.UpdateAttributeQualifier( "D5C60481-A4D1-48F3-B525-53BCF7873236", "displaydescription", @"False", "69D9164D-D38D-4CC1-A2E7-6C989E2470E5" ); // Nursing Home Resident:Nursing Home:displaydescription RockMigrationHelper.UpdateAttributeQualifier( "D5D59A53-73C0-443A-918C-7FC2F6E3030A", "EnableSelfSelection", @"True", "39BA078A-2A08-42B8-88B1-AA2002C1E772" ); // Nursing Home Resident:Requester:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "329B5F7B-F521-4268-89CA-CDA3A9B2CE0F", "EnableSelfSelection", @"False", "A8BFF33A-5C74-47E7-B434-7D279BF5C0E0" ); // Nursing Home Resident:Person To Visit:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "928805D4-C8E8-4CD8-AA47-C830CCDC682C", "ispassword", @"False", "3BE4CF70-B4B3-46FE-9E58-C940BBF15E26" ); // Nursing Home Resident:Room:ispassword RockMigrationHelper.UpdateAttributeQualifier( "A6885C02-7A03-47BE-91E1-468AE9F5C440", "allowhtml", @"False", "39D679BE-8D78-4FA0-BFB3-5BA98750C406" ); // Nursing Home Resident:Visitation Request Description:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "A6885C02-7A03-47BE-91E1-468AE9F5C440", "numberofrows", @"6", "0A94F0DB-B05F-418C-91C1-FD8BCC38A51C" ); // Nursing Home Resident:Visitation Request Description:numberofrows RockMigrationHelper.UpdateAttributeQualifier( "EC1CA939-F818-441C-887E-59CABCD28963", "displayCurrentOption", @"False", "E54E716A-B12D-4BC4-B22A-6A064781FA2F" ); // Nursing Home Resident:Admit Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "EC1CA939-F818-441C-887E-59CABCD28963", "displayDiff", @"False", "D62DA4B6-9BAB-4B2B-AE68-7EE526BAA32B" ); // Nursing Home Resident:Admit Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "EC1CA939-F818-441C-887E-59CABCD28963", "format", @"", "017E5870-3077-45F3-BB87-8119C7CD7763" ); // Nursing Home Resident:Admit Date:format RockMigrationHelper.UpdateAttributeQualifier( "10F8669B-11B7-4FBE-92A7-B618EEC5539D", "ispassword", @"False", "43BBF056-32CE-4046-B2B5-17F804C1524C" ); // Nursing Home Resident:Notified By:ispassword RockMigrationHelper.UpdateAttributeQualifier( "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", "displayCurrentOption", @"False", "255BC51C-F605-49AB-8609-783914CA927B" ); // Nursing Home Resident:Notified On:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", "displayDiff", @"False", "08151CA0-02FB-4CFE-8806-E86DBE87D7E5" ); // Nursing Home Resident:Notified On:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", "format", @"", "D6D37388-B2C9-4BCE-85D0-3F1B5685C4E9" ); // Nursing Home Resident:Notified On:format RockMigrationHelper.UpdateAttributeQualifier( "FC7739E4-4763-4849-82C7-8ACE6792A00E", "fieldtype", @"rb", "96F49ED0-AC79-426F-BE64-CD411740AD16" ); // Nursing Home Resident:Communion:fieldtype RockMigrationHelper.UpdateAttributeQualifier( "FC7739E4-4763-4849-82C7-8ACE6792A00E", "values", @"Yes,No", "44D78C38-E2A9-4121-A238-8E74F605F847" ); // Nursing Home Resident:Communion:values RockMigrationHelper.UpdateAttributeQualifier( "DDED341E-97D8-4D32-9D3D-8F8020928D56", "displayCurrentOption", @"False", "D7B2F8C6-AD6E-41B1-B2A8-809F4501DD80" ); // Nursing Home Resident:Discharge Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "DDED341E-97D8-4D32-9D3D-8F8020928D56", "displayDiff", @"False", "09F86653-B3B3-41FE-9D2C-35FAC0C5B892" ); // Nursing Home Resident:Discharge Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "DDED341E-97D8-4D32-9D3D-8F8020928D56", "format", @"", "261089D2-9A3C-4C8B-8E9B-B11C83726A1A" ); // Nursing Home Resident:Discharge Date:format RockMigrationHelper.UpdateAttributeQualifier( "24A018FA-75B4-4DCB-B598-DC315DC58F3D", "allowhtml", @"False", "285046F5-781E-4173-B84D-1C1DB003E65B" ); // Nursing Home Resident:Discharge Reason:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "24A018FA-75B4-4DCB-B598-DC315DC58F3D", "numberofrows", @"3", "7067E82D-A3C3-49D1-BFD9-5C3BF4789E13" ); // Nursing Home Resident:Discharge Reason:numberofrows RockMigrationHelper.UpdateWorkflowActivityType( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", true, "Resident Setup Info", "", true, 0, "C5BC1151-7A01-4422-8A67-FC495C2D937C" ); // Nursing Home Resident:Resident Setup Info RockMigrationHelper.UpdateWorkflowActivityType( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", true, "Resident Summary Info", "", false, 1, "B55F9A75-D6FA-4854-B67D-4C84AFA0883D" ); // Nursing Home Resident:Resident Summary Info RockMigrationHelper.UpdateWorkflowActivityType( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", true, "Visitation Info", "", false, 2, "6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B" ); // Nursing Home Resident:Visitation Info RockMigrationHelper.UpdateWorkflowActivityType( "7818DFD9-E347-43B2-95E3-8FBF83AB962D", true, "Discharge Info", "", false, 3, "8A694803-6CCE-4BE1-B3C5-5FF23E0E5539" ); // Nursing Home Resident:Discharge Info RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Visitor", "Visitor", "", 0, @"", "8665F2E0-FF2C-423E-9B07-E8C0A751EE7F" ); // Nursing Home Resident:Visitation Info:Visitor RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Visit Date", "VisitDate", "", 1, @"", "6800068F-D799-4787-8241-948F1F910949" ); // Nursing Home Resident:Visitation Info:Visit Date RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Visit Note", "VisitNote", "", 2, @"", "38181714-9690-4824-AA55-4CD3D6A28E06" ); // Nursing Home Resident:Visitation Info:Visit Note RockMigrationHelper.UpdateAttributeQualifier( "8665F2E0-FF2C-423E-9B07-E8C0A751EE7F", "EnableSelfSelection", @"True", "1108F0BE-CD12-4787-B213-D8DA358BF5F3" ); // Nursing Home Resident:Visitor:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "6800068F-D799-4787-8241-948F1F910949", "displayCurrentOption", @"False", "C648AC26-A1B1-4A60-8CB1-1689AF23FEB1" ); // Nursing Home Resident:Visit Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "6800068F-D799-4787-8241-948F1F910949", "displayDiff", @"False", "11304E03-0CD4-44BF-AFAB-5D31CD0E6E83" ); // Nursing Home Resident:Visit Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "6800068F-D799-4787-8241-948F1F910949", "format", @"", "F29477FD-AA28-4395-8EC2-CEC339A9DF35" ); // Nursing Home Resident:Visit Date:format RockMigrationHelper.UpdateAttributeQualifier( "38181714-9690-4824-AA55-4CD3D6A28E06", "allowhtml", @"False", "E10FAE51-4BAE-4109-BE87-2AFF29062EFC" ); // Nursing Home Resident:Visit Note:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "38181714-9690-4824-AA55-4CD3D6A28E06", "numberofrows", @"3", "128E3BD5-E51A-493F-B6DE-29845A6AF97F" ); // Nursing Home Resident:Visit Note:numberofrows RockMigrationHelper.UpdateWorkflowActionForm( @"<div class=""pull-right"" style=""margin-top: -50px""> <a href=""#"" onclick=""window.open('/Pastoral/NewFamily?t=Pastoral Care', '_blank', 'toolbar=no,scrollbars=yes,resizable=yes,top=100,left=300,width=1200,height=622');return false;"" class=""btn btn-action btn-sm""><i class=""fa fa-plus""></i><span> Pastoral Care</span></a> </div>", @"", "Save^fdc397cd-8b4a-436e-bea1-bce2e6717c03^b55f9a75-d6fa-4854-b67d-4c84afa0883d^Your information has been submitted successfully.", "", true, "", "EEAC2CE2-13E4-48F0-862E-52109F5C40F1" ); // Nursing Home Resident:Resident Setup Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"<div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""> <i class=""fa fa-info-circle""></i> Resident Information </div> </div> <div class=""panel-body""> <div class=""col-md-6""> <div class=""form-group static-control"" style=""margin-top: 57px;""> <label class=""control-label"">Age</label><div class=""control-wrapper""> <p class=""form-control-static"">{{ Workflow | Attribute:'PersonToVisit','Age' }}&nbsp;</p> </div> </div>", @" </div> </div> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""> <i class=""fa fa-calendar""></i> Visit History </div> </div> <div class=""panel-body""> <table class=""table table-striped table-bordered""> <thead> <tr> <th>Visitor</th> <th>Date</th> <th>Visit Notes</th> </tr> </thead> <tbody> {% for activity in Workflow.Activities reversed %} {% if activity.ActivityType.Name == 'Visitation Info' %} <tr> <td>{{ activity.Visitor }}</td> <td>{{ activity.VisitDate }}</td> <td>{{ activity.VisitNote }}</td> </tr> {% endif %} {% endfor %} </tbody> </table> </div> </div>", "Edit Request^fdc397cd-8b4a-436e-bea1-bce2e6717c03^c5bc1151-7a01-4422-8a67-fc495c2d937c^Your information has been submitted successfully.|Add Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^6dcf3214-b88f-4d4e-9251-3cf4a8cbea6b^|Discharge^fdc397cd-8b4a-436e-bea1-bce2e6717c03^8a694803-6cce-4be1-b3c5-5ff23e0e5539^", "", true, "", "4992F4AB-998B-4939-B442-AF93A11485F0" ); // Nursing Home Resident:Resident Summary Info:Entry Form RockMigrationHelper.UpdateWorkflowActionForm( @"", @"", "Save Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^b55f9a75-d6fa-4854-b67d-4c84afa0883d^Your information has been submitted successfully.", "", true, "", "41C3DD25-249D-42E7-90E4-F2ED09A40938" ); // Nursing Home Resident:Visitation Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"", @"", "Finish^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Discharge info has been recorded!|Cancel^fdc397cd-8b4a-436e-bea1-bce2e6717c03^b55f9a75-d6fa-4854-b67d-4c84afa0883d^", "", true, "", "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC" ); // Nursing Home Resident:Discharge Info:Form Entry RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "D5C60481-A4D1-48F3-B525-53BCF7873236", 7, true, false, true, false, @"<div class=""row""> <div class=""col-sm-8"">", @"</div>", "67FFB51B-3EA9-425D-BD8B-A34E8D195031" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Nursing Home RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "D5C60481-A4D1-48F3-B525-53BCF7873236", 3, true, true, false, false, @"<div class=""col-md-6"">", @"", "D739D7E9-4DE0-486E-9411-C491CA245DCE" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Nursing Home RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "D5C60481-A4D1-48F3-B525-53BCF7873236", 3, false, true, false, false, @"", @"", "8E444E73-35D8-4974-A3E5-66A1EFA786BC" ); // Nursing Home Resident:Visitation Info:Form Entry:Nursing Home RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "D5C60481-A4D1-48F3-B525-53BCF7873236", 3, true, true, false, false, @"", @"", "3C40C1EA-1B68-4B3D-A794-1D08BB9409BA" ); // Nursing Home Resident:Discharge Info:Form Entry:Nursing Home RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "D5D59A53-73C0-443A-918C-7FC2F6E3030A", 0, true, false, true, false, @"<div class=""row""> <div class=""col-md-4""> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-info-circle""></i> Request Information</div> </div> <div class=""panel-body"" style=""min-height: 352px"" >", @"", "DA0E2B2B-70C9-4AFB-9CC6-F86469135551" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "D5D59A53-73C0-443A-918C-7FC2F6E3030A", 0, false, true, false, false, @"", @"", "0DCDDDEB-F83D-44EB-8B1D-2C295F19BC99" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "D5D59A53-73C0-443A-918C-7FC2F6E3030A", 1, false, true, false, false, @"", @"", "FCDCA4D0-697C-4A30-AD79-E23B73F4444E" ); // Nursing Home Resident:Visitation Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "D5D59A53-73C0-443A-918C-7FC2F6E3030A", 0, false, true, false, false, @"", @"", "D3EDC6FD-5759-468C-B667-66154B319961" ); // Nursing Home Resident:Discharge Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "329B5F7B-F521-4268-89CA-CDA3A9B2CE0F", 3, true, false, true, false, @"<div class=""col-md-8""> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-user-plus""></i> Resident Information</div> </div> <div class=""panel-body""> <div class=""row""> <div class=""col-md-4"">", @"</div>", "50397642-AB64-4F25-871E-FFCAA75D3D7D" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "329B5F7B-F521-4268-89CA-CDA3A9B2CE0F", 1, true, true, false, false, @"<div style=""margin-top: -120px; margin-bottom: 73px;"">", @"</div>", "54C94772-2F8C-4BFA-A968-9BF59A7982DF" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "329B5F7B-F521-4268-89CA-CDA3A9B2CE0F", 2, false, true, false, false, @"", @"", "63E19460-1EBF-49B3-931C-C740A7048062" ); // Nursing Home Resident:Visitation Info:Form Entry:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "329B5F7B-F521-4268-89CA-CDA3A9B2CE0F", 1, true, true, false, false, @"", @"", "1B797826-18B4-4F90-9979-66BF8D09A26A" ); // Nursing Home Resident:Discharge Info:Form Entry:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "928805D4-C8E8-4CD8-AA47-C830CCDC682C", 8, true, false, true, false, @"<div class=""col-sm-4"">", @"</div> </div> </div> </div> </div> </div> </div>", "96B1CBF0-B919-415B-9F44-E9BBABAB9FD6" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "928805D4-C8E8-4CD8-AA47-C830CCDC682C", 4, true, true, false, false, @"", @"", "E58C155C-A31B-455D-877F-F50C6846E7D9" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "928805D4-C8E8-4CD8-AA47-C830CCDC682C", 4, false, true, false, false, @"", @"", "749DD2BA-E6CD-4BED-990D-114D4EE36333" ); // Nursing Home Resident:Visitation Info:Form Entry:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "928805D4-C8E8-4CD8-AA47-C830CCDC682C", 4, true, true, false, false, @"", @"", "B4FD95BD-DD5F-4185-844B-7B0F0A30C873" ); // Nursing Home Resident:Discharge Info:Form Entry:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "A6885C02-7A03-47BE-91E1-468AE9F5C440", 6, true, false, true, false, @"", @"", "C4A97700-8BF4-4F55-A358-393DE7C9DE55" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "A6885C02-7A03-47BE-91E1-468AE9F5C440", 6, true, true, false, false, @"<div class=""col-md-12"">", @"</div>", "6900D01F-132E-4C1F-9F2A-C181C2B32931" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "A6885C02-7A03-47BE-91E1-468AE9F5C440", 0, false, true, false, false, @"", @"", "CED9DE59-ACFD-4B5B-9FEE-0782944F3F91" ); // Nursing Home Resident:Visitation Info:Form Entry:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "A6885C02-7A03-47BE-91E1-468AE9F5C440", 2, false, true, false, false, @"", @"", "E59CDEDF-9F50-4F1D-B8A1-C0A4F57D4887" ); // Nursing Home Resident:Discharge Info:Form Entry:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "EC1CA939-F818-441C-887E-59CABCD28963", 5, true, false, true, false, @"<div class=""col-md-4"">", @"</div> </div>", "CCF5471E-C36D-4EF7-B0B8-8A7CB2F056F7" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "EC1CA939-F818-441C-887E-59CABCD28963", 5, true, true, false, false, @"", @"</div>", "1C1AC5C1-3546-46EA-90E3-297BDA40A89D" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "EC1CA939-F818-441C-887E-59CABCD28963", 5, false, true, false, false, @"", @"", "C712063F-3367-4A7F-A617-6FFAD2152453" ); // Nursing Home Resident:Visitation Info:Form Entry:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "EC1CA939-F818-441C-887E-59CABCD28963", 5, false, true, false, false, @"", @"", "8AF1D772-5296-4519-97F1-E29C1FCE38D0" ); // Nursing Home Resident:Discharge Info:Form Entry:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "10F8669B-11B7-4FBE-92A7-B618EEC5539D", 1, true, false, true, false, @"", @"", "E642E658-B595-4E5C-B57F-3599E82C72B5" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "10F8669B-11B7-4FBE-92A7-B618EEC5539D", 7, false, true, false, false, @"", @"", "A6C8EB19-5EF8-4ED6-B4CA-5151E75867F1" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "10F8669B-11B7-4FBE-92A7-B618EEC5539D", 6, false, true, false, false, @"", @"", "EB9FC783-F793-4C6E-9461-30AF73D909FA" ); // Nursing Home Resident:Visitation Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "10F8669B-11B7-4FBE-92A7-B618EEC5539D", 6, false, true, false, false, @"", @"", "A0AC09AD-D209-4245-A3CA-61EC29833FA6" ); // Nursing Home Resident:Discharge Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", 2, true, false, true, false, @"", @"</div> </div> </div>", "D45EBAB2-1687-4399-BDFE-907B8902B9CA" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", 8, false, true, false, false, @"", @"", "B692BD27-530F-4819-982F-427C16D8F9BF" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", 7, false, true, false, false, @"", @"", "15156091-5748-4879-A011-7CD5ADEE64DB" ); // Nursing Home Resident:Visitation Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "7688EC4F-05F5-47FC-BDAC-FFC0C5C593C8", 7, false, true, false, false, @"", @"", "937117DE-9292-4973-A4BE-D4CCF0C50D12" ); // Nursing Home Resident:Discharge Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "FC7739E4-4763-4849-82C7-8ACE6792A00E", 4, true, false, true, false, @"<div class=""col-md-4"">", @"</div>", "DD54BD03-933D-46E8-B89E-009EFB445323" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "FC7739E4-4763-4849-82C7-8ACE6792A00E", 2, true, true, false, false, @"", @"</div>", "139A57B4-51F4-4963-A110-0DFFF31FACA9" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "FC7739E4-4763-4849-82C7-8ACE6792A00E", 8, false, true, false, false, @"", @"", "7C8E8F09-45FB-4C50-8753-1CEDC48CF17D" ); // Nursing Home Resident:Visitation Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "FC7739E4-4763-4849-82C7-8ACE6792A00E", 8, false, true, false, false, @"", @"", "F7ED80F7-7DAD-4775-9287-7F18E9367C03" ); // Nursing Home Resident:Discharge Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "DDED341E-97D8-4D32-9D3D-8F8020928D56", 9, false, true, false, false, @"", @"", "FDEB8634-86EC-45CD-8420-1AC13BD28F75" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "DDED341E-97D8-4D32-9D3D-8F8020928D56", 9, false, true, false, false, @"", @"", "F14EDE27-03FA-49C5-BF8B-8ABB337C0C20" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "DDED341E-97D8-4D32-9D3D-8F8020928D56", 9, false, true, false, false, @"", @"", "1448EE36-8268-4C5A-9E53-E3434300D2F2" ); // Nursing Home Resident:Visitation Info:Form Entry:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "DDED341E-97D8-4D32-9D3D-8F8020928D56", 9, true, false, false, false, @"", @"", "29FF5591-AAFD-4351-8ED4-E4C977F2604E" ); // Nursing Home Resident:Discharge Info:Form Entry:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "24A018FA-75B4-4DCB-B598-DC315DC58F3D", 10, false, true, false, false, @"", @"", "3A905881-EA2D-4C68-9B5F-6F194C05EE02" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "4992F4AB-998B-4939-B442-AF93A11485F0", "24A018FA-75B4-4DCB-B598-DC315DC58F3D", 10, false, true, false, false, @"", @"", "BBB5EDDD-9B59-40B3-95EC-8F9B17287420" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "24A018FA-75B4-4DCB-B598-DC315DC58F3D", 13, false, true, false, false, @"", @"", "C7AF715B-578B-4979-A330-73D63B158181" ); // Nursing Home Resident:Visitation Info:Form Entry:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "24A018FA-75B4-4DCB-B598-DC315DC58F3D", 10, true, false, false, false, @"", @"", "E3A359D1-425C-4888-8EEC-EF97C1E9C947" ); // Nursing Home Resident:Discharge Info:Form Entry:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "8665F2E0-FF2C-423E-9B07-E8C0A751EE7F", 10, true, false, true, false, @"<div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-heart""></i> Visit Information</div> </div> <div class=""panel-body""> <div class=""row""> <div class=""col-sm-6"">", @"</div>", "F1EA7FC2-36E4-4DA0-AA89-30B56BDB635D" ); // Nursing Home Resident:Visitation Info:Form Entry:Visitor RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "6800068F-D799-4787-8241-948F1F910949", 11, true, false, true, false, @"<div class=""col-sm-6"">", @"</div> </div>", "E79025C2-DAA8-4413-8B02-ADB9D762E3BA" ); // Nursing Home Resident:Visitation Info:Form Entry:Visit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "41C3DD25-249D-42E7-90E4-F2ED09A40938", "38181714-9690-4824-AA55-4CD3D6A28E06", 12, true, false, true, false, @"", @"</div> </div>", "CFDB4A4D-D258-4D86-A251-C96AFFE17743" ); // Nursing Home Resident:Visitation Info:Form Entry:Visit Note RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Form Entry", 3, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "EEAC2CE2-13E4-48F0-862E-52109F5C40F1", "", 1, "", "9325F709-BD75-4A00-95A8-EAF8C1E25C18" ); // Nursing Home Resident:Resident Setup Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Set Initiator", 2, "4EEAC6FA-B838-410B-A8DD-21A364029F5D", true, false, "", "", 1, "", "D7C79C21-4F40-4388-83B3-F1F6B30C9DD2" ); // Nursing Home Resident:Resident Setup Info:Set Initiator RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Set Assignee", 4, "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", true, false, "", "", 1, "", "7CDF3947-37A7-4D3A-9539-35BB459BBFEE" ); // Nursing Home Resident:Resident Setup Info:Set Assignee RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Persist Workflow", 6, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "DA8A5D2D-2D8A-4F75-AE28-8276EBF92919" ); // Nursing Home Resident:Resident Setup Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Set Person to Visit", 7, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 1, "", "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Set Person to Visit", 0, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 32, "", "46A8D90F-70C1-464D-9404-F7C264408ED7" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Set Current Date", 1, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "", 1, "", "874617A7-1692-4E7D-8A56-64827D5E5586" ); // Nursing Home Resident:Resident Setup Info:Set Current Date RockMigrationHelper.UpdateWorkflowActionType( "C5BC1151-7A01-4422-8A67-FC495C2D937C", "Set Workflow Name", 5, "36005473-BD5D-470B-B28D-98E6D7ED808D", true, false, "", "", 1, "", "7F429FFC-DCDB-4117-8C83-7C845A14EB5C" ); // Nursing Home Resident:Resident Setup Info:Set Workflow Name RockMigrationHelper.UpdateWorkflowActionType( "B55F9A75-D6FA-4854-B67D-4C84AFA0883D", "Entry Form", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "4992F4AB-998B-4939-B442-AF93A11485F0", "", 1, "", "2DC5200D-C0C1-4951-8AE4-673DCD2E8123" ); // Nursing Home Resident:Resident Summary Info:Entry Form RockMigrationHelper.UpdateWorkflowActionType( "B55F9A75-D6FA-4854-B67D-4C84AFA0883D", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "A542B739-C90B-4468-B54B-D35FFDCABD08" ); // Nursing Home Resident:Resident Summary Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "1B9B0720-E74F-49EE-8E84-26B739D8D8A4" ); // Nursing Home Resident:Visitation Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "Form Entry", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "41C3DD25-249D-42E7-90E4-F2ED09A40938", "", 1, "", "010F5DD2-8FA8-4DAE-8C7A-10D39B7AFE8B" ); // Nursing Home Resident:Visitation Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "8A694803-6CCE-4BE1-B3C5-5FF23E0E5539", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "0CCF46EA-EC53-4C5D-80FC-2D079D2D0F76" ); // Nursing Home Resident:Discharge Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "8A694803-6CCE-4BE1-B3C5-5FF23E0E5539", "Form Entry", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "A3C5DFFE-66E0-42A4-AE4A-DD459F803AAC", "", 1, "", "104153EC-8B71-41AF-90B4-83AC245A932E" ); // Nursing Home Resident:Discharge Info:Form Entry RockMigrationHelper.AddActionTypeAttributeValue( "46A8D90F-70C1-464D-9404-F7C264408ED7", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Active RockMigrationHelper.AddActionTypeAttributeValue( "46A8D90F-70C1-464D-9404-F7C264408ED7", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Order RockMigrationHelper.AddActionTypeAttributeValue( "46A8D90F-70C1-464D-9404-F7C264408ED7", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"329b5f7b-f521-4268-89ca-cda3a9b2ce0f" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "46A8D90F-70C1-464D-9404-F7C264408ED7", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Entity Is Required RockMigrationHelper.AddActionTypeAttributeValue( "46A8D90F-70C1-464D-9404-F7C264408ED7", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"True" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Use Id instead of Guid RockMigrationHelper.AddActionTypeAttributeValue( "46A8D90F-70C1-464D-9404-F7C264408ED7", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B", @"" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Lava Template RockMigrationHelper.AddActionTypeAttributeValue( "874617A7-1692-4E7D-8A56-64827D5E5586", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Current Date:Active RockMigrationHelper.AddActionTypeAttributeValue( "874617A7-1692-4E7D-8A56-64827D5E5586", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"7688ec4f-05f5-47fc-bdac-ffc0c5c593c8" ); // Nursing Home Resident:Resident Setup Info:Set Current Date:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "874617A7-1692-4E7D-8A56-64827D5E5586", "57093B41-50ED-48E5-B72B-8829E62704C8", @"" ); // Nursing Home Resident:Resident Setup Info:Set Current Date:Order RockMigrationHelper.AddActionTypeAttributeValue( "874617A7-1692-4E7D-8A56-64827D5E5586", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"{{ 'Now' | Date:'MM/dd/yyyy' }}" ); // Nursing Home Resident:Resident Setup Info:Set Current Date:Text Value|Attribute Value RockMigrationHelper.AddActionTypeAttributeValue( "D7C79C21-4F40-4388-83B3-F1F6B30C9DD2", "8E176D08-1ABB-4563-8BDA-0F0A5BA6E92B", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Initiator:Active RockMigrationHelper.AddActionTypeAttributeValue( "D7C79C21-4F40-4388-83B3-F1F6B30C9DD2", "6AF13055-0AF4-4EB9-9722-0CC02DE502FB", @"d5d59a53-73c0-443a-918c-7fc2f6e3030a" ); // Nursing Home Resident:Resident Setup Info:Set Initiator:Person Attribute RockMigrationHelper.AddActionTypeAttributeValue( "D7C79C21-4F40-4388-83B3-F1F6B30C9DD2", "6066D937-E36B-4DB1-B752-673B0EACC6F0", @"" ); // Nursing Home Resident:Resident Setup Info:Set Initiator:Order RockMigrationHelper.AddActionTypeAttributeValue( "9325F709-BD75-4A00-95A8-EAF8C1E25C18", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "9325F709-BD75-4A00-95A8-EAF8C1E25C18", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Nursing Home Resident:Resident Setup Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "7CDF3947-37A7-4D3A-9539-35BB459BBFEE", "0B768E17-C64A-4212-BAD5-8A16B9F05A5C", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Assignee:Active RockMigrationHelper.AddActionTypeAttributeValue( "7CDF3947-37A7-4D3A-9539-35BB459BBFEE", "5C5F7DB4-51DE-4293-BD73-CABDEB6564AC", @"" ); // Nursing Home Resident:Resident Setup Info:Set Assignee:Order RockMigrationHelper.AddActionTypePersonAttributeValue( "7CDF3947-37A7-4D3A-9539-35BB459BBFEE", "7ED2571D-B1BF-4DB6-9D04-9B5D064F51D8", @"6de0071f-538e-45bb-b80f-b06f81fed1c5" ); // Nursing Home Resident:Resident Setup Info:Set Assignee:Person RockMigrationHelper.AddActionTypeAttributeValue( "7F429FFC-DCDB-4117-8C83-7C845A14EB5C", "0A800013-51F7-4902-885A-5BE215D67D3D", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Workflow Name:Active RockMigrationHelper.AddActionTypeAttributeValue( "7F429FFC-DCDB-4117-8C83-7C845A14EB5C", "5D95C15A-CCAE-40AD-A9DD-F929DA587115", @"" ); // Nursing Home Resident:Resident Setup Info:Set Workflow Name:Order RockMigrationHelper.AddActionTypeAttributeValue( "7F429FFC-DCDB-4117-8C83-7C845A14EB5C", "93852244-A667-4749-961A-D47F88675BE4", @"{{ Workflow.PersonToVisit }} - {{ Workflow.NursingHome }}" ); // Nursing Home Resident:Resident Setup Info:Set Workflow Name:Text Value|Attribute Value RockMigrationHelper.AddActionTypeAttributeValue( "DA8A5D2D-2D8A-4F75-AE28-8276EBF92919", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Nursing Home Resident:Resident Setup Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "DA8A5D2D-2D8A-4F75-AE28-8276EBF92919", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Nursing Home Resident:Resident Setup Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "DA8A5D2D-2D8A-4F75-AE28-8276EBF92919", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Nursing Home Resident:Resident Setup Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Active RockMigrationHelper.AddActionTypeAttributeValue( "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Order RockMigrationHelper.AddActionTypeAttributeValue( "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"329b5f7b-f521-4268-89ca-cda3a9b2ce0f" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC", @"False" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Entity Is Required RockMigrationHelper.AddActionTypeAttributeValue( "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"True" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Use Id instead of Guid RockMigrationHelper.AddActionTypeAttributeValue( "30C0ACDE-D2D5-4EE8-88A8-787D55550CAC", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B", @"" ); // Nursing Home Resident:Resident Setup Info:Set Person to Visit:Lava Template RockMigrationHelper.AddActionTypeAttributeValue( "2DC5200D-C0C1-4951-8AE4-673DCD2E8123", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Active RockMigrationHelper.AddActionTypeAttributeValue( "2DC5200D-C0C1-4951-8AE4-673DCD2E8123", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Nursing Home Resident:Resident Summary Info:Entry Form:Order RockMigrationHelper.AddActionTypeAttributeValue( "A542B739-C90B-4468-B54B-D35FFDCABD08", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Nursing Home Resident:Resident Summary Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "A542B739-C90B-4468-B54B-D35FFDCABD08", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Nursing Home Resident:Resident Summary Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "A542B739-C90B-4468-B54B-D35FFDCABD08", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Nursing Home Resident:Resident Summary Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "010F5DD2-8FA8-4DAE-8C7A-10D39B7AFE8B", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Nursing Home Resident:Visitation Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "010F5DD2-8FA8-4DAE-8C7A-10D39B7AFE8B", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Nursing Home Resident:Visitation Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "1B9B0720-E74F-49EE-8E84-26B739D8D8A4", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Nursing Home Resident:Visitation Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "1B9B0720-E74F-49EE-8E84-26B739D8D8A4", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Nursing Home Resident:Visitation Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "1B9B0720-E74F-49EE-8E84-26B739D8D8A4", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"False" ); // Nursing Home Resident:Visitation Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "104153EC-8B71-41AF-90B4-83AC245A932E", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Nursing Home Resident:Discharge Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "104153EC-8B71-41AF-90B4-83AC245A932E", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Nursing Home Resident:Discharge Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "0CCF46EA-EC53-4C5D-80FC-2D079D2D0F76", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Nursing Home Resident:Discharge Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "0CCF46EA-EC53-4C5D-80FC-2D079D2D0F76", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Nursing Home Resident:Discharge Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "0CCF46EA-EC53-4C5D-80FC-2D079D2D0F76", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Nursing Home Resident:Discharge Info:Persist Workflow:Persist Immediately RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0A800013-51F7-4902-885A-5BE215D67D3D" ); // Rock.Workflow.Action.SetWorkflowName:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "NameValue", "The value to use for the workflow's name. <span class='tip tip-lava'></span>", 1, @"", "93852244-A667-4749-961A-D47F88675BE4" ); // Rock.Workflow.Action.SetWorkflowName:Text Value|Attribute Value RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "36005473-BD5D-470B-B28D-98E6D7ED808D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5D95C15A-CCAE-40AD-A9DD-F929DA587115" ); // Rock.Workflow.Action.SetWorkflowName:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE" ); // Rock.Workflow.Action.UserEntryForm:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C178113D-7C86-4229-8424-C6D0CF4A7E23" ); // Rock.Workflow.Action.UserEntryForm:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8E176D08-1ABB-4563-8BDA-0F0A5BA6E92B" ); // Rock.Workflow.Action.SetAttributeToInitiator:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the initiator.", 0, @"", "6AF13055-0AF4-4EB9-9722-0CC02DE502FB" ); // Rock.Workflow.Action.SetAttributeToInitiator:Person Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "4EEAC6FA-B838-410B-A8DD-21A364029F5D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "6066D937-E36B-4DB1-B752-673B0EACC6F0" ); // Rock.Workflow.Action.SetAttributeToInitiator:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Lava Template", "LavaTemplate", "By default this action will set the attribute value equal to the guid (or id) of the entity that was passed in for processing. If you include a lava template here, the action will instead set the attribute value to the output of this template. The mergefield to use for the entity is 'Entity.' For example, use {{ Entity.Name }} if the entity has a Name property. <span class='tip tip-lava'></span>", 4, @"", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B" ); // Rock.Workflow.Action.SetAttributeFromEntity:Lava Template RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1" ); // Rock.Workflow.Action.SetAttributeFromEntity:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Entity Is Required", "EntityIsRequired", "Should an error be returned if the entity is missing or not a valid entity type?", 2, @"True", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC" ); // Rock.Workflow.Action.SetAttributeFromEntity:Entity Is Required RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Use Id instead of Guid", "UseId", "Most entity attribute field types expect the Guid of the entity (which is used by default). Select this option if the entity's Id should be used instead (should be rare).", 3, @"False", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B" ); // Rock.Workflow.Action.SetAttributeFromEntity:Use Id instead of Guid RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 1, @"", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7" ); // Rock.Workflow.Action.SetAttributeFromEntity:Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "972F19B9-598B-474B-97A4-50E56E7B59D2", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB" ); // Rock.Workflow.Action.SetAttributeFromEntity:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "D7EAA859-F500-4521-9523-488B12EAA7D2" ); // Rock.Workflow.Action.SetAttributeValue:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 0, @"", "44A0B977-4730-4519-8FF6-B0A01A95B212" ); // Rock.Workflow.Action.SetAttributeValue:Attribute RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "Value", "The text or attribute to set the value from. <span class='tip tip-lava'></span>", 1, @"", "E5272B11-A2B8-49DC-860D-8D574E2BC15C" ); // Rock.Workflow.Action.SetAttributeValue:Text Value|Attribute Value RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "C789E457-0783-44B3-9D8F-2EBAB5F11110", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "57093B41-50ED-48E5-B72B-8829E62704C8" ); // Rock.Workflow.Action.SetAttributeValue:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "50B01639-4938-40D2-A791-AA0EB4F86847" ); // Rock.Workflow.Action.PersistWorkflow:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Persist Immediately", "PersistImmediately", "This action will normally cause the workflow to be persisted (saved) once all the current activites/actions have completed processing. Set this flag to true, if the workflow should be persisted immediately. This is only required if a subsequent action needs a persisted workflow with a valid id.", 0, @"False", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA" ); // Rock.Workflow.Action.PersistWorkflow:Persist Immediately RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "F1A39347-6FE0-43D4-89FB-544195088ECF", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361" ); // Rock.Workflow.Action.PersistWorkflow:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0B768E17-C64A-4212-BAD5-8A16B9F05A5C" ); // Rock.Workflow.Action.AssignActivityToPerson:Active RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5C5F7DB4-51DE-4293-BD73-CABDEB6564AC" ); // Rock.Workflow.Action.AssignActivityToPerson:Order RockMigrationHelper.UpdateWorkflowActionEntityAttribute( "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Person", "Person", "The person to assign this activity to.", 0, @"", "7ED2571D-B1BF-4DB6-9D04-9B5D064F51D8" ); // Rock.Workflow.Action.AssignActivityToPerson:Person RockMigrationHelper.UpdateWorkflowType( false, true, "Hospital Admission", "", "549AA5EB-6506-47EA-BD9A-00AAC00F1C73", "Hospital Admission", "fa fa-hospital-o", 28800, false, 0, "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38" ); // Hospital Admission RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Visitation Request Description", "VisitationRequestDescription", "", 4, @"", "3936CF04-BF52-4580-8067-2B6445525FAC" ); // Hospital Admission:Visitation Request Description RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Requester", "Requester", "", 1, @"", "ADCB9C6B-8F5B-4563-8DB7-BFCF7346426D" ); // Hospital Admission:Requester RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Person To Visit", "PersonToVisit", "", 2, @"", "413C7503-9597-4887-A489-D22B7C065089" ); // Hospital Admission:Person To Visit RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "59D5A94C-94A0-4630-B80A-BB25697D74C7", "Hospital", "Hospital", "", 0, @"", "B37E5A27-C656-462D-9048-FF23234F0185" ); // Hospital Admission:Hospital RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Room", "Room", "", 3, @"", "BA7D94AE-FD67-4422-8E5F-DF032BDF8EFF" ); // Hospital Admission:Room RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Admit Date", "AdmitDate", "", 5, @"", "E76A7BA3-231B-45B8-96FE-A593151E2B03" ); // Hospital Admission:Admit Date RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Notified By", "NotifiedBy", "", 6, @"", "C739B677-3573-4398-892E-F9DC6FD86D9F" ); // Hospital Admission:Notified By RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Notified On", "NotifiedOn", "", 7, @"", "7F0FD482-BA3A-4C28-86ED-73587BB73982" ); // Hospital Admission:Notified On RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "7525C4CB-EE6B-41D4-9B64-A08048D5A5C0", "Communion", "Communion", "", 8, @"", "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4" ); // Hospital Admission:Communion RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Discharge Date", "DischargeDate", "", 9, @"", "5617BE64-1342-4095-A387-71B96530A6CD" ); // Hospital Admission:Discharge Date RockMigrationHelper.UpdateWorkflowTypeAttribute( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Discharge Reason", "DischargeReason", "", 10, @"", "AEF08838-6637-4D58-B769-8CB54CD7F168" ); // Hospital Admission:Discharge Reason RockMigrationHelper.UpdateAttributeQualifier( "3936CF04-BF52-4580-8067-2B6445525FAC", "allowhtml", @"False", "0B7046BB-B478-4877-92F8-21C2C03AA183" ); // Hospital Admission:Visitation Request Description:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "3936CF04-BF52-4580-8067-2B6445525FAC", "numberofrows", @"6", "D66ACC02-D613-49CE-B080-6419816CB2D0" ); // Hospital Admission:Visitation Request Description:numberofrows RockMigrationHelper.UpdateAttributeQualifier( "ADCB9C6B-8F5B-4563-8DB7-BFCF7346426D", "EnableSelfSelection", @"True", "5D6CE3BB-8B9B-4AD4-B67D-23719F2E4F1A" ); // Hospital Admission:Requester:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "413C7503-9597-4887-A489-D22B7C065089", "EnableSelfSelection", @"False", "7F30F1F8-8D4A-468D-911F-BB72A3C460C4" ); // Hospital Admission:Person To Visit:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "B37E5A27-C656-462D-9048-FF23234F0185", "allowmultiple", @"False", "276A613D-9081-4107-AEB0-68A865493967" ); // Hospital Admission:Hospital:allowmultiple RockMigrationHelper.UpdateAttributeQualifier( "B37E5A27-C656-462D-9048-FF23234F0185", "definedtype", DefinedTypeCache.Get( "0913F7A9-A2BF-479C-96EC-6CDB56310A83".AsGuid() ).Id.ToString(), "0913F7A9-A2BF-479C-96EC-6CDB56310A83" ); // Hospital Admission:Hospital:definedtype RockMigrationHelper.UpdateAttributeQualifier( "B37E5A27-C656-462D-9048-FF23234F0185", "displaydescription", @"False", "AA4006C9-3064-43FC-9CE6-515511D7A050" ); // Hospital Admission:Hospital:displaydescription RockMigrationHelper.UpdateAttributeQualifier( "BA7D94AE-FD67-4422-8E5F-DF032BDF8EFF", "ispassword", @"False", "C46219C9-BE38-41D7-BED8-C8FCBBFB4A01" ); // Hospital Admission:Room:ispassword RockMigrationHelper.UpdateAttributeQualifier( "E76A7BA3-231B-45B8-96FE-A593151E2B03", "displayCurrentOption", @"False", "9AD423D0-4EED-4C80-9DC1-40671BFFF738" ); // Hospital Admission:Admit Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "E76A7BA3-231B-45B8-96FE-A593151E2B03", "displayDiff", @"False", "ABC39985-6708-46C4-890E-1744B7D1E012" ); // Hospital Admission:Admit Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "E76A7BA3-231B-45B8-96FE-A593151E2B03", "format", @"", "424A42EA-149C-4886-812B-782AEAB05091" ); // Hospital Admission:Admit Date:format RockMigrationHelper.UpdateAttributeQualifier( "C739B677-3573-4398-892E-F9DC6FD86D9F", "ispassword", @"False", "0436F7B0-5A6D-4461-8B1E-D2AA00AFD370" ); // Hospital Admission:Notified By:ispassword RockMigrationHelper.UpdateAttributeQualifier( "7F0FD482-BA3A-4C28-86ED-73587BB73982", "displayCurrentOption", @"False", "3CA20F42-400F-4010-BD0F-4CDDDB74D6C6" ); // Hospital Admission:Notified On:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "7F0FD482-BA3A-4C28-86ED-73587BB73982", "displayDiff", @"False", "DE4D3DF6-E005-42A7-8D61-57592D7B24A4" ); // Hospital Admission:Notified On:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "7F0FD482-BA3A-4C28-86ED-73587BB73982", "format", @"", "7565B6A4-AD0C-41CB-98B0-CA129605639B" ); // Hospital Admission:Notified On:format RockMigrationHelper.UpdateAttributeQualifier( "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4", "fieldtype", @"rb", "497D2C52-E5D7-4D92-8FB0-B135B0E11FC8" ); // Hospital Admission:Communion:fieldtype RockMigrationHelper.UpdateAttributeQualifier( "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4", "values", @"Yes,No", "C1F5B2A1-9256-4122-97C0-235708FAD06E" ); // Hospital Admission:Communion:values RockMigrationHelper.UpdateAttributeQualifier( "5617BE64-1342-4095-A387-71B96530A6CD", "displayCurrentOption", @"False", "595D29E8-8AC1-4876-8276-01CAED1BBCEE" ); // Hospital Admission:Discharge Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "5617BE64-1342-4095-A387-71B96530A6CD", "displayDiff", @"False", "AA089B65-3873-4DE6-A3BC-13C314F9F671" ); // Hospital Admission:Discharge Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "5617BE64-1342-4095-A387-71B96530A6CD", "format", @"", "CDC14DDA-D741-4748-AD8B-8CDF093651E7" ); // Hospital Admission:Discharge Date:format RockMigrationHelper.UpdateAttributeQualifier( "AEF08838-6637-4D58-B769-8CB54CD7F168", "allowhtml", @"False", "395E93B1-DC67-4507-A7AE-B418545F3C56" ); // Hospital Admission:Discharge Reason:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "AEF08838-6637-4D58-B769-8CB54CD7F168", "numberofrows", @"3", "74D5BAA5-6A87-47CB-9F05-B9C921A2A224" ); // Hospital Admission:Discharge Reason:numberofrows RockMigrationHelper.UpdateWorkflowActivityType( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", true, "Patient Setup Info", "", true, 0, "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B" ); // Hospital Admission:Patient Setup Info RockMigrationHelper.UpdateWorkflowActivityType( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", true, "Visitation Info", "", false, 2, "8E7746D0-5920-434B-BC61-78333100740A" ); // Hospital Admission:Visitation Info RockMigrationHelper.UpdateWorkflowActivityType( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", true, "Discharge Info", "", false, 3, "03FCE7A7-82BE-49E2-9A67-05D31AE0E1CA" ); // Hospital Admission:Discharge Info RockMigrationHelper.UpdateWorkflowActivityType( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38", true, "Patient Summary Info", "", false, 1, "A24F45F9-CDCC-42C9-8457-7F4438F9C0F9" ); // Hospital Admission:Patient Summary Info RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "8E7746D0-5920-434B-BC61-78333100740A", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Visitor", "Visitor", "", 0, @"", "64CB035C-7614-4B4C-8B8D-BC1EC35CF2EE" ); // Hospital Admission:Visitation Info:Visitor RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "8E7746D0-5920-434B-BC61-78333100740A", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Visit Date", "VisitDate", "", 1, @"", "A411555B-D3F9-4341-A27A-69C767C8EE83" ); // Hospital Admission:Visitation Info:Visit Date RockMigrationHelper.UpdateWorkflowActivityTypeAttribute( "8E7746D0-5920-434B-BC61-78333100740A", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Visit Note", "VisitNote", "", 2, @"", "194C2C88-0776-4129-AA9D-AE4D00D9E78B" ); // Hospital Admission:Visitation Info:Visit Note RockMigrationHelper.UpdateAttributeQualifier( "64CB035C-7614-4B4C-8B8D-BC1EC35CF2EE", "EnableSelfSelection", @"True", "282CB7DD-606F-4C1A-BE31-5704F7326C8A" ); // Hospital Admission:Visitor:EnableSelfSelection RockMigrationHelper.UpdateAttributeQualifier( "A411555B-D3F9-4341-A27A-69C767C8EE83", "displayCurrentOption", @"False", "F7E551AA-A833-4314-89E0-74D3E16A38D9" ); // Hospital Admission:Visit Date:displayCurrentOption RockMigrationHelper.UpdateAttributeQualifier( "A411555B-D3F9-4341-A27A-69C767C8EE83", "displayDiff", @"False", "A706F829-4226-4496-BD74-AD1C2F14BE12" ); // Hospital Admission:Visit Date:displayDiff RockMigrationHelper.UpdateAttributeQualifier( "A411555B-D3F9-4341-A27A-69C767C8EE83", "format", @"", "1EE42F46-097A-4AF3-B013-06B5A2CBA074" ); // Hospital Admission:Visit Date:format RockMigrationHelper.UpdateAttributeQualifier( "194C2C88-0776-4129-AA9D-AE4D00D9E78B", "allowhtml", @"False", "9A771534-0A23-45EE-BBE9-33EF278E05E2" ); // Hospital Admission:Visit Note:allowhtml RockMigrationHelper.UpdateAttributeQualifier( "194C2C88-0776-4129-AA9D-AE4D00D9E78B", "numberofrows", @"3", "8E3F247D-944A-4C10-A0F5-C07042CCA300" ); // Hospital Admission:Visit Note:numberofrows RockMigrationHelper.UpdateWorkflowActionForm( @"<div class=""pull-right"" style=""margin-top: -50px""> <a href=""#"" onclick=""window.open('/Pastoral/NewFamily?t=Pastoral Care', '_blank', 'toolbar=no,scrollbars=yes,resizable=yes,top=100,left=300,width=1200,height=622');return false;"" class=""btn btn-action btn-sm""><i class=""fa fa-plus""></i><span> Pastoral Care</span></a> </div>", @"", "Save^fdc397cd-8b4a-436e-bea1-bce2e6717c03^A24F45F9-CDCC-42C9-8457-7F4438F9C0F9^Your information has been submitted successfully.|", "", true, "", "422BF8C7-6D0A-4709-A7E6-3D90D9D90271" ); // Hospital Admission:Patient Setup Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"", @"", "Save Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^A24F45F9-CDCC-42C9-8457-7F4438F9C0F9^Your information has been submitted successfully.|", "", true, "", "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49" ); // Hospital Admission:Visitation Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"", @"", "Finish^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Discharge info has been recorded!|Cancel^fdc397cd-8b4a-436e-bea1-bce2e6717c03^A24F45F9-CDCC-42C9-8457-7F4438F9C0F9^|", "", true, "", "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26" ); // Hospital Admission:Discharge Info:Form Entry RockMigrationHelper.UpdateWorkflowActionForm( @"<div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""> <i class=""fa fa-info-circle""></i> Patient Information </div> </div> <div class=""panel-body""> <div class=""col-md-6""> <div class=""form-group static-control"" style=""margin-top: 57px;""> <label class=""control-label"">Age</label><div class=""control-wrapper""> <p class=""form-control-static"">{{ Workflow | Attribute:'PersonToVisit','Age' }}&nbsp;</p> </div> </div>", @" </div> </div> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""> <i class=""fa fa-calendar""></i> Visit History </div> </div> <div class=""panel-body""> <table class=""table table-striped table-bordered""> <thead> <tr> <th>Visitor</th> <th>Date</th> <th>Visit Notes</th> </tr> </thead> <tbody> {% for activity in Workflow.Activities reversed %} {% if activity.ActivityType.Name == 'Visitation Info' %} <tr> <td>{{ activity.Visitor }}</td> <td>{{ activity.VisitDate }}</td> <td>{{ activity.VisitNote }}</td> </tr> {% endif %} {% endfor %} </tbody> </table> </div> </div>", "Edit Request^fdc397cd-8b4a-436e-bea1-bce2e6717c03^00E9E98E-2027-4B7D-AAAD-87D11B0EC06B^Your information has been submitted successfully.|Add Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^8E7746D0-5920-434B-BC61-78333100740A^|Discharge^fdc397cd-8b4a-436e-bea1-bce2e6717c03^03FCE7A7-82BE-49E2-9A67-05D31AE0E1CA^|", "", true, "", "7E6636A3-52C3-4727-8B9E-0DB50406BCF8" ); // Hospital Admission:Patient Summary Info:Entry Form RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "3936CF04-BF52-4580-8067-2B6445525FAC", 6, true, false, true, false, @"", @"", "64E4EE37-89C9-4A7B-BCB5-E1B765CD7BA8" ); // Hospital Admission:Patient Setup Info:Form Entry:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "3936CF04-BF52-4580-8067-2B6445525FAC", 0, false, true, false, false, @"", @"", "9F3FF546-DA2A-434C-B192-C4BEE1C8DD74" ); // Hospital Admission:Visitation Info:Form Entry:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "3936CF04-BF52-4580-8067-2B6445525FAC", 2, false, true, false, false, @"", @"", "110772DB-1504-49C2-AEFF-C96F740E059B" ); // Hospital Admission:Discharge Info:Form Entry:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "3936CF04-BF52-4580-8067-2B6445525FAC", 6, true, true, false, false, @"<div class=""col-md-12"">", @"</div>", "18484472-9396-4EE4-A1A5-6A1C37AE1FED" ); // Hospital Admission:Patient Summary Info:Entry Form:Visitation Request Description RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "ADCB9C6B-8F5B-4563-8DB7-BFCF7346426D", 0, true, false, true, false, @"<div class=""row""> <div class=""col-md-4""> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-info-circle""></i> Request Information</div> </div> <div class=""panel-body"" style=""min-height: 352px"" >", @"", "95E9AEB5-921B-4E77-BB12-C39A8DE2A1DA" ); // Hospital Admission:Patient Setup Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "ADCB9C6B-8F5B-4563-8DB7-BFCF7346426D", 1, false, true, false, false, @"", @"", "3F11DB81-4BBF-4489-B461-BA749FA76489" ); // Hospital Admission:Visitation Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "ADCB9C6B-8F5B-4563-8DB7-BFCF7346426D", 0, false, true, false, false, @"", @"", "861FE91E-09CA-4995-8049-A82B16C10D2B" ); // Hospital Admission:Discharge Info:Form Entry:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "ADCB9C6B-8F5B-4563-8DB7-BFCF7346426D", 0, false, true, false, false, @"", @"", "DFFC6200-353F-4366-91BF-EC8BD36A210F" ); // Hospital Admission:Patient Summary Info:Entry Form:Requester RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "413C7503-9597-4887-A489-D22B7C065089", 3, true, false, true, false, @"<div class=""col-md-8""> <div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-user-plus""></i> Patient Information</div> </div> <div class=""panel-body""> <div class=""row""> <div class=""col-md-4"">", @"</div>", "87667A86-60BE-4FF7-81D7-70918E4F630D" ); // Hospital Admission:Patient Setup Info:Form Entry:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "413C7503-9597-4887-A489-D22B7C065089", 2, false, true, false, false, @"", @"", "80DBED24-5E63-4699-AC10-DD882374040A" ); // Hospital Admission:Visitation Info:Form Entry:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "413C7503-9597-4887-A489-D22B7C065089", 1, true, true, false, false, @"", @"", "ECAEC958-F247-4CDC-A984-953817D0D8A8" ); // Hospital Admission:Discharge Info:Form Entry:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "413C7503-9597-4887-A489-D22B7C065089", 1, true, true, false, false, @"<div style=""margin-top: -120px; margin-bottom: 73px;"">", @"</div>", "5CE54A93-7294-46E6-8EDF-E93355FFAD2D" ); // Hospital Admission:Patient Summary Info:Entry Form:Person To Visit RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "B37E5A27-C656-462D-9048-FF23234F0185", 7, true, false, true, false, @"<div class=""row""> <div class=""col-sm-8"">", @"</div>", "20D64DD2-6407-4882-8E29-100E977CA0D5" ); // Hospital Admission:Patient Setup Info:Form Entry:Hospital RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "B37E5A27-C656-462D-9048-FF23234F0185", 3, false, true, false, false, @"", @"", "13734ED2-97BD-4E6F-919C-7F0B4C1748EB" ); // Hospital Admission:Visitation Info:Form Entry:Hospital RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "B37E5A27-C656-462D-9048-FF23234F0185", 3, true, true, false, false, @"", @"", "8A5A244C-DB39-480B-BE8A-828081A7F1AC" ); // Hospital Admission:Discharge Info:Form Entry:Hospital RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "B37E5A27-C656-462D-9048-FF23234F0185", 3, true, true, false, false, @"<div class=""col-md-6"">", @"", "CDF5D8DC-FD0F-4FB2-98BC-754EF8988CDA" ); // Hospital Admission:Patient Summary Info:Entry Form:Hospital RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "BA7D94AE-FD67-4422-8E5F-DF032BDF8EFF", 8, true, false, true, false, @"<div class=""col-sm-4"">", @"</div> </div> </div> </div> </div> </div> </div>", "0A3B4F9C-FF3B-4BFA-B9D9-CD4235114CF2" ); // Hospital Admission:Patient Setup Info:Form Entry:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "BA7D94AE-FD67-4422-8E5F-DF032BDF8EFF", 4, false, true, false, false, @"", @"", "40B867AD-A132-468E-A33C-F59A12F0B584" ); // Hospital Admission:Visitation Info:Form Entry:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "BA7D94AE-FD67-4422-8E5F-DF032BDF8EFF", 4, true, true, false, false, @"", @"", "81F905FA-1E56-48BA-B363-4D6E9A284ECC" ); // Hospital Admission:Discharge Info:Form Entry:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "BA7D94AE-FD67-4422-8E5F-DF032BDF8EFF", 4, true, true, false, false, @"", @"", "96B9E2C5-E2A8-4E79-A37A-75BED12E4FC6" ); // Hospital Admission:Patient Summary Info:Entry Form:Room RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "E76A7BA3-231B-45B8-96FE-A593151E2B03", 5, true, false, true, false, @"<div class=""col-md-4"">", @"</div> </div>", "AFCA1F4B-26D9-4D7C-BB29-9BD1185661CD" ); // Hospital Admission:Patient Setup Info:Form Entry:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "E76A7BA3-231B-45B8-96FE-A593151E2B03", 5, false, true, false, false, @"", @"", "7FEF3BB6-71C2-4539-9A99-A73A8475EB09" ); // Hospital Admission:Visitation Info:Form Entry:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "E76A7BA3-231B-45B8-96FE-A593151E2B03", 5, false, true, false, false, @"", @"", "DCA011F3-B376-4342-8671-8EDF60BD4C28" ); // Hospital Admission:Discharge Info:Form Entry:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "E76A7BA3-231B-45B8-96FE-A593151E2B03", 5, true, true, false, false, @"", @"</div>", "9F3122EB-B2EF-48DA-9C94-4C5237B2EA17" ); // Hospital Admission:Patient Summary Info:Entry Form:Admit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "C739B677-3573-4398-892E-F9DC6FD86D9F", 1, true, false, true, false, @"", @"", "696BFD6C-AD50-474E-A056-C07E4F7AB4D0" ); // Hospital Admission:Patient Setup Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "C739B677-3573-4398-892E-F9DC6FD86D9F", 6, false, true, false, false, @"", @"", "E8DA013D-5BEB-4F2D-9D0E-ACF65973D101" ); // Hospital Admission:Visitation Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "C739B677-3573-4398-892E-F9DC6FD86D9F", 6, false, true, false, false, @"", @"", "2A6B64AA-2AE8-43BC-B223-3CB344A3F0A5" ); // Hospital Admission:Discharge Info:Form Entry:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "C739B677-3573-4398-892E-F9DC6FD86D9F", 7, false, true, false, false, @"", @"", "452933AB-2B08-457A-B429-C3F4257DA72E" ); // Hospital Admission:Patient Summary Info:Entry Form:Notified By RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "7F0FD482-BA3A-4C28-86ED-73587BB73982", 2, true, false, true, false, @"", @"</div> </div> </div>", "CD2EA453-1B58-4824-B286-90FA9D015BA6" ); // Hospital Admission:Patient Setup Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "7F0FD482-BA3A-4C28-86ED-73587BB73982", 7, false, true, false, false, @"", @"", "58482A3E-881A-4221-9348-BD1028353171" ); // Hospital Admission:Visitation Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "7F0FD482-BA3A-4C28-86ED-73587BB73982", 7, false, true, false, false, @"", @"", "B217607C-541A-4976-94E6-9F530ED24C2E" ); // Hospital Admission:Discharge Info:Form Entry:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "7F0FD482-BA3A-4C28-86ED-73587BB73982", 8, false, true, false, false, @"", @"", "D94D74EE-346C-4E8B-9E52-9824D9E544F3" ); // Hospital Admission:Patient Summary Info:Entry Form:Notified On RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4", 4, true, false, true, false, @"<div class=""col-md-4"">", @"</div>", "9B372874-BC02-44F8-A63E-16B4211BFAE2" ); // Hospital Admission:Patient Setup Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4", 8, false, true, false, false, @"", @"", "D50509E2-0A81-4976-9817-CA96B794EA69" ); // Hospital Admission:Visitation Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4", 8, false, true, false, false, @"", @"", "9FEDE5D3-268E-44BA-9649-220C92A84FEA" ); // Hospital Admission:Discharge Info:Form Entry:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "D44E1992-B4CF-45D2-A893-DEFB8F2ABAE4", 2, true, true, false, false, @"", @"</div>", "41003744-648E-4821-9283-575E69F62361" ); // Hospital Admission:Patient Summary Info:Entry Form:Communion RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "5617BE64-1342-4095-A387-71B96530A6CD", 9, false, true, false, false, @"", @"", "491738C5-BD9D-466E-96F0-842EAF258D1A" ); // Hospital Admission:Patient Setup Info:Form Entry:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "5617BE64-1342-4095-A387-71B96530A6CD", 9, false, true, false, false, @"", @"", "1BD06B76-6F31-462B-B7BB-FB882844FB59" ); // Hospital Admission:Visitation Info:Form Entry:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "5617BE64-1342-4095-A387-71B96530A6CD", 9, true, false, false, false, @"", @"", "1C601D12-559E-450E-AD07-20BEB2B5DF8F" ); // Hospital Admission:Discharge Info:Form Entry:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "5617BE64-1342-4095-A387-71B96530A6CD", 9, false, true, false, false, @"", @"", "889AE62E-987C-4281-A5FC-02637984AEEF" ); // Hospital Admission:Patient Summary Info:Entry Form:Discharge Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "AEF08838-6637-4D58-B769-8CB54CD7F168", 10, false, true, false, false, @"", @"", "574AFFB4-5D09-4E30-817E-02023DAF6AC9" ); // Hospital Admission:Patient Setup Info:Form Entry:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "AEF08838-6637-4D58-B769-8CB54CD7F168", 10, false, true, false, false, @"", @"", "EE709F11-840A-427E-8668-18C460D189BD" ); // Hospital Admission:Patient Summary Info:Entry Form:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "AEF08838-6637-4D58-B769-8CB54CD7F168", 13, false, true, false, false, @"", @"", "3E8917F0-2F9A-4274-BCAA-89B8B59220FE" ); // Hospital Admission:Visitation Info:Form Entry:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "AEF08838-6637-4D58-B769-8CB54CD7F168", 10, true, false, false, false, @"", @"", "BFE59CB9-3627-4AC0-BB3E-52993A846A64" ); // Hospital Admission:Discharge Info:Form Entry:Discharge Reason RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "64CB035C-7614-4B4C-8B8D-BC1EC35CF2EE", 10, true, false, true, false, @"<div class=""panel panel-default""> <div class=""panel-heading""> <div class=""panel-title""><i class=""fa fa-heart""></i> Visit Information</div> </div> <div class=""panel-body""> <div class=""row""> <div class=""col-sm-6"">", @"</div>", "614572D3-7A48-40A7-B1D8-CF3F42EB51FB" ); // Hospital Admission:Visitation Info:Form Entry:Visitor RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "A411555B-D3F9-4341-A27A-69C767C8EE83", 11, true, false, true, false, @"<div class=""col-sm-6"">", @"</div> </div>", "7F03D23F-2AD4-422F-A536-E91B52B08686" ); // Hospital Admission:Visitation Info:Form Entry:Visit Date RockMigrationHelper.UpdateWorkflowActionFormAttribute( "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "194C2C88-0776-4129-AA9D-AE4D00D9E78B", 12, true, false, true, false, @"", @"</div> </div>", "3630807E-2EAB-4645-9F25-6B677EF94364" ); // Hospital Admission:Visitation Info:Form Entry:Visit Note RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Set Assignee", 4, "FB2981B7-7922-42E1-8ACF-7F63BB7989E6", true, false, "", "", 1, "", "5E79B8F7-97B8-4D2E-8571-36BC14B051A6" ); // Hospital Admission:Patient Setup Info:Set Assignee RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Persist Workflow", 6, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "22242377-710B-4011-8031-07489D4A8089" ); // Hospital Admission:Patient Setup Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Set Person To Visit", 0, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 1, "", "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2" ); // Hospital Admission:Patient Setup Info:Set Person To Visit RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Set Current Date", 1, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "", 1, "", "B3F7D29C-E8AD-40C6-AA6D-FEEFC8C8EC1E" ); // Hospital Admission:Patient Setup Info:Set Current Date RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Set Workflow Name", 5, "36005473-BD5D-470B-B28D-98E6D7ED808D", true, false, "", "", 1, "", "D9B8626B-7F41-4A32-BA0D-3058A8505DA3" ); // Hospital Admission:Patient Setup Info:Set Workflow Name RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Form Entry", 3, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "422BF8C7-6D0A-4709-A7E6-3D90D9D90271", "", 1, "", "52B0B3BE-E79A-496F-BE9D-96C91C0EF42A" ); // Hospital Admission:Patient Setup Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "00E9E98E-2027-4B7D-AAAD-87D11B0EC06B", "Set Initiator", 2, "4EEAC6FA-B838-410B-A8DD-21A364029F5D", true, false, "", "", 1, "", "921D373E-2D01-471D-A3E5-F22F3AD28980" ); // Hospital Admission:Patient Setup Info:Set Initiator RockMigrationHelper.UpdateWorkflowActionType( "8E7746D0-5920-434B-BC61-78333100740A", "Form Entry", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49", "", 1, "", "3E794D14-B246-4D29-9D3F-FE70FFD8F56F" ); // Hospital Admission:Visitation Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "8E7746D0-5920-434B-BC61-78333100740A", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "99AEF47F-E652-4EDD-BC7A-039557548A75" ); // Hospital Admission:Visitation Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "03FCE7A7-82BE-49E2-9A67-05D31AE0E1CA", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "EBE01E28-8EF4-42EA-A627-52DD9629FC05" ); // Hospital Admission:Discharge Info:Persist Workflow RockMigrationHelper.UpdateWorkflowActionType( "03FCE7A7-82BE-49E2-9A67-05D31AE0E1CA", "Form Entry", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "F6D68DF0-3395-44E6-8DCF-020DEBEF8F26", "", 1, "", "77910696-A44A-48ED-8259-53702778D089" ); // Hospital Admission:Discharge Info:Form Entry RockMigrationHelper.UpdateWorkflowActionType( "A24F45F9-CDCC-42C9-8457-7F4438F9C0F9", "Entry Form", 0, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "7E6636A3-52C3-4727-8B9E-0DB50406BCF8", "", 1, "", "9C5D80BC-13AA-44D4-BED6-D7E3689F872C" ); // Hospital Admission:Patient Summary Info:Entry Form RockMigrationHelper.UpdateWorkflowActionType( "A24F45F9-CDCC-42C9-8457-7F4438F9C0F9", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "E839F159-EE64-4464-97AD-2513022AF31E" ); // Hospital Admission:Patient Summary Info:Persist Workflow RockMigrationHelper.AddActionTypeAttributeValue( "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False" ); // Hospital Admission:Patient Setup Info:Set Person To Visit:Active RockMigrationHelper.AddActionTypeAttributeValue( "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"" ); // Hospital Admission:Patient Setup Info:Set Person To Visit:Order RockMigrationHelper.AddActionTypeAttributeValue( "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"413c7503-9597-4887-a489-d22b7c065089" ); // Hospital Admission:Patient Setup Info:Set Person To Visit:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2", "DAE99CA3-E7B6-42A0-9E65-7A4C5029EEFC", @"False" ); // Hospital Admission:Patient Setup Info:Set Person To Visit:Entity Is Required RockMigrationHelper.AddActionTypeAttributeValue( "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"False" ); // Hospital Admission:Patient Setup Info:Set Person To Visit:Use Id instead of Guid RockMigrationHelper.AddActionTypeAttributeValue( "FAB78236-F7D1-4A79-934C-A9E41A0CC2D2", "5112B3B3-52F7-4527-B7BE-3CE7FBD8F92B", @"" ); // Hospital Admission:Patient Setup Info:Set Person To Visit:Lava Template RockMigrationHelper.AddActionTypeAttributeValue( "B3F7D29C-E8AD-40C6-AA6D-FEEFC8C8EC1E", "57093B41-50ED-48E5-B72B-8829E62704C8", @"" ); // Hospital Admission:Patient Setup Info:Set Current Date:Order RockMigrationHelper.AddActionTypeAttributeValue( "B3F7D29C-E8AD-40C6-AA6D-FEEFC8C8EC1E", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False" ); // Hospital Admission:Patient Setup Info:Set Current Date:Active RockMigrationHelper.AddActionTypeAttributeValue( "B3F7D29C-E8AD-40C6-AA6D-FEEFC8C8EC1E", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"7f0fd482-ba3a-4c28-86ed-73587bb73982" ); // Hospital Admission:Patient Setup Info:Set Current Date:Attribute RockMigrationHelper.AddActionTypeAttributeValue( "B3F7D29C-E8AD-40C6-AA6D-FEEFC8C8EC1E", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"{{ 'Now' | Date:'MM/dd/yyyy' }}" ); // Hospital Admission:Patient Setup Info:Set Current Date:Text Value|Attribute Value RockMigrationHelper.AddActionTypeAttributeValue( "921D373E-2D01-471D-A3E5-F22F3AD28980", "8E176D08-1ABB-4563-8BDA-0F0A5BA6E92B", @"False" ); // Hospital Admission:Patient Setup Info:Set Initiator:Active RockMigrationHelper.AddActionTypeAttributeValue( "921D373E-2D01-471D-A3E5-F22F3AD28980", "6AF13055-0AF4-4EB9-9722-0CC02DE502FB", @"adcb9c6b-8f5b-4563-8db7-bfcf7346426d" ); // Hospital Admission:Patient Setup Info:Set Initiator:Person Attribute RockMigrationHelper.AddActionTypeAttributeValue( "921D373E-2D01-471D-A3E5-F22F3AD28980", "6066D937-E36B-4DB1-B752-673B0EACC6F0", @"" ); // Hospital Admission:Patient Setup Info:Set Initiator:Order RockMigrationHelper.AddActionTypeAttributeValue( "52B0B3BE-E79A-496F-BE9D-96C91C0EF42A", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Hospital Admission:Patient Setup Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "52B0B3BE-E79A-496F-BE9D-96C91C0EF42A", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Hospital Admission:Patient Setup Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "5E79B8F7-97B8-4D2E-8571-36BC14B051A6", "0B768E17-C64A-4212-BAD5-8A16B9F05A5C", @"False" ); // Hospital Admission:Patient Setup Info:Set Assignee:Active RockMigrationHelper.AddActionTypeAttributeValue( "5E79B8F7-97B8-4D2E-8571-36BC14B051A6", "5C5F7DB4-51DE-4293-BD73-CABDEB6564AC", @"" ); // Hospital Admission:Patient Setup Info:Set Assignee:Order RockMigrationHelper.AddActionTypePersonAttributeValue( "5E79B8F7-97B8-4D2E-8571-36BC14B051A6", "7ED2571D-B1BF-4DB6-9D04-9B5D064F51D8", @"6de0071f-538e-45bb-b80f-b06f81fed1c5" ); // Hospital Admission:Patient Setup Info:Set Assignee:Person RockMigrationHelper.AddActionTypeAttributeValue( "D9B8626B-7F41-4A32-BA0D-3058A8505DA3", "0A800013-51F7-4902-885A-5BE215D67D3D", @"False" ); // Hospital Admission:Patient Setup Info:Set Workflow Name:Active RockMigrationHelper.AddActionTypeAttributeValue( "D9B8626B-7F41-4A32-BA0D-3058A8505DA3", "5D95C15A-CCAE-40AD-A9DD-F929DA587115", @"" ); // Hospital Admission:Patient Setup Info:Set Workflow Name:Order RockMigrationHelper.AddActionTypeAttributeValue( "D9B8626B-7F41-4A32-BA0D-3058A8505DA3", "93852244-A667-4749-961A-D47F88675BE4", @"{{ Workflow.PersonToVisit }} - {{ Workflow.Hospital }}" ); // Hospital Admission:Patient Setup Info:Set Workflow Name:Text Value|Attribute Value RockMigrationHelper.AddActionTypeAttributeValue( "22242377-710B-4011-8031-07489D4A8089", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Hospital Admission:Patient Setup Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "22242377-710B-4011-8031-07489D4A8089", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Hospital Admission:Patient Setup Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "22242377-710B-4011-8031-07489D4A8089", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Hospital Admission:Patient Setup Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "9C5D80BC-13AA-44D4-BED6-D7E3689F872C", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Hospital Admission:Patient Summary Info:Entry Form:Active RockMigrationHelper.AddActionTypeAttributeValue( "9C5D80BC-13AA-44D4-BED6-D7E3689F872C", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Hospital Admission:Patient Summary Info:Entry Form:Order RockMigrationHelper.AddActionTypeAttributeValue( "E839F159-EE64-4464-97AD-2513022AF31E", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Hospital Admission:Patient Summary Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "E839F159-EE64-4464-97AD-2513022AF31E", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Hospital Admission:Patient Summary Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "E839F159-EE64-4464-97AD-2513022AF31E", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Hospital Admission:Patient Summary Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "3E794D14-B246-4D29-9D3F-FE70FFD8F56F", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Hospital Admission:Visitation Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "3E794D14-B246-4D29-9D3F-FE70FFD8F56F", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Hospital Admission:Visitation Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "99AEF47F-E652-4EDD-BC7A-039557548A75", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Hospital Admission:Visitation Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "99AEF47F-E652-4EDD-BC7A-039557548A75", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Hospital Admission:Visitation Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "99AEF47F-E652-4EDD-BC7A-039557548A75", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"False" ); // Hospital Admission:Visitation Info:Persist Workflow:Persist Immediately RockMigrationHelper.AddActionTypeAttributeValue( "77910696-A44A-48ED-8259-53702778D089", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False" ); // Hospital Admission:Discharge Info:Form Entry:Active RockMigrationHelper.AddActionTypeAttributeValue( "77910696-A44A-48ED-8259-53702778D089", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"" ); // Hospital Admission:Discharge Info:Form Entry:Order RockMigrationHelper.AddActionTypeAttributeValue( "EBE01E28-8EF4-42EA-A627-52DD9629FC05", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False" ); // Hospital Admission:Discharge Info:Persist Workflow:Active RockMigrationHelper.AddActionTypeAttributeValue( "EBE01E28-8EF4-42EA-A627-52DD9629FC05", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"" ); // Hospital Admission:Discharge Info:Persist Workflow:Order RockMigrationHelper.AddActionTypeAttributeValue( "EBE01E28-8EF4-42EA-A627-52DD9629FC05", "290CAD05-F1B7-4D43-AF1B-45CF55147DCA", @"True" ); // Hospital Admission:Discharge Info:Persist Workflow:Persist Immediately } public override void Down() { RockMigrationHelper.DeleteWorkflowType( "3621645F-FBD0-4741-90EC-E032354AA375" ); RockMigrationHelper.DeleteWorkflowType( "7818DFD9-E347-43B2-95E3-8FBF83AB962D" ); RockMigrationHelper.DeleteWorkflowType( "314CC992-C90C-4D7D-AEC6-09C0FB4C7A38" ); RockMigrationHelper.DeleteCategory( "549AA5EB-6506-47EA-BD9A-00AAC00F1C73" ); RockMigrationHelper.DeleteDefinedType( "0913F7A9-A2BF-479C-96EC-6CDB56310A83" ); } } }
270.404973
1,987
0.741017
[ "ECL-2.0" ]
Northside-CC/RockPlugins
Plugins/org.secc.PastoralCare/Migrations/002_Pastoral_WorkflowData.cs
152,238
C#
namespace EXRC_ClassBoxData.Models { using System; using System.Collections.Generic; using System.Text; using EXRC_ClassBoxData.Exceptions; public class Box { private double length; private double width; private double height; public Box(double length, double width, double height) { this.Length = length; this.Width = width; this.Height = height; } public double Length { get { return this.length; } private set { if (value <= 0) { throw new ArgumentException(ExceptionMessages.LengthZeroOrNegativeException); } this.length = value; } } public double Width { get { return this.width; } private set { if (value <= 0) { throw new ArgumentException(ExceptionMessages.WidthZeroOrNegativeException); } this.width = value; } } public double Height { get { return this.height; } private set { if (value <= 0) { throw new ArgumentException(ExceptionMessages.HeightZeroOrNegativeException); } this.height = value; } } public double SurfaceArea() { double surfaceArea = (2 * this.Length * this.Width) + this.LateralSurfaceArea(); return surfaceArea; } public double LateralSurfaceArea() { double lateralSurfaceArea = (2 * this.Length * this.Height) + (2 * this.Width * this.Height); return lateralSurfaceArea; } public double Volume() { double volume = this.Length * this.Height * this.Width; return volume; } public override string ToString() { StringBuilder result = new StringBuilder(); result.AppendLine($"Surface Area - {this.SurfaceArea():f2}"); result.AppendLine($"Lateral Surface Area - {this.LateralSurfaceArea():f2}"); result.AppendLine($"Volume - {this.Volume():f2}"); return result.ToString().TrimEnd(); } } }
24.834951
105
0.474199
[ "MIT" ]
bodyquest/SoftwareUniversity-Bulgaria
C# OOP 2019/03. Encapsulation/EXRC-BoxData/Models/Box.cs
2,560
C#
using BepuUtilities; using DemoRenderer; using BepuPhysics; using BepuPhysics.Collidables; using System.Numerics; using System; using BepuPhysics.Constraints; using DemoContentLoader; using DemoUtilities; using DemoRenderer.UI; using OpenTK.Input; namespace Demos.Demos.Characters { /// <summary> /// Shows one way of using the dynamic character controller in the context of a giant newt and levitating pads. /// </summary> public class CharacterDemo : Demo { CharacterControllers characters; public unsafe override void Initialize(ContentArchive content, Camera camera) { camera.Position = new Vector3(20, 10, 20); camera.Yaw = MathF.PI; camera.Pitch = 0; characters = new CharacterControllers(BufferPool); //The PositionFirstTimestepper is the simplest timestepping mode, but since it integrates velocity into position at the start of the frame, directly modified velocities outside of the timestep //will be integrated before collision detection or the solver has a chance to intervene. That's fine in this demo. Other built-in options include the PositionLastTimestepper and the SubsteppingTimestepper. //Note that the timestepper also has callbacks that you can use for executing logic between processing stages, like BeforeCollisionDetection. Simulation = Simulation.Create(BufferPool, new CharacterNarrowphaseCallbacks(characters), new DemoPoseIntegratorCallbacks(new Vector3(0, -10, 0)), new PositionFirstTimestepper()); CreateCharacter(new Vector3(0, 2, -4)); //Create a bunch of legos to hurt your feet on. var random = new Random(5); var origin = new Vector3(-3f, 0.5f, 0); var spacing = new Vector3(0.5f, 0, -0.5f); for (int i = 0; i < 12; ++i) { for (int j = 0; j < 12; ++j) { var position = origin + new Vector3(i, 0, j) * spacing; var orientation = QuaternionEx.CreateFromAxisAngle(Vector3.Normalize(new Vector3(0.0001f) + new Vector3((float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble())), 10 * (float)random.NextDouble()); var shape = new Box(0.1f + 0.3f * (float)random.NextDouble(), 0.1f + 0.3f * (float)random.NextDouble(), 0.1f + 0.3f * (float)random.NextDouble()); var collidable = new CollidableDescription(Simulation.Shapes.Add(shape), 0.1f); shape.ComputeInertia(1, out var inertia); var choice = (i + j) % 3; switch (choice) { case 0: Simulation.Bodies.Add(BodyDescription.CreateDynamic(new RigidPose(position, orientation), inertia, collidable, new BodyActivityDescription(0.01f))); break; case 1: Simulation.Bodies.Add(BodyDescription.CreateKinematic(new RigidPose(position, orientation), collidable, new BodyActivityDescription(0.01f))); break; case 2: Simulation.Statics.Add(new StaticDescription(position, orientation, collidable)); break; } } } //Add some spinning fans to get slapped by. var bladeDescription = BodyDescription.CreateConvexDynamic(new Vector3(), 3, Simulation.Shapes, new Box(10, 0.2f, 2)); var bladeBaseDescription = BodyDescription.CreateConvexKinematic(new Vector3(), Simulation.Shapes, new Box(0.2f, 1, 0.2f)); for (int i = 0; i < 3; ++i) { bladeBaseDescription.Pose.Position = new Vector3(-22, 1, i * 11); bladeDescription.Pose.Position = new Vector3(-22, 1.7f, i * 11); var baseHandle = Simulation.Bodies.Add(bladeBaseDescription); var bladeHandle = Simulation.Bodies.Add(bladeDescription); Simulation.Solver.Add(baseHandle, bladeHandle, new Hinge { LocalHingeAxisA = Vector3.UnitY, LocalHingeAxisB = Vector3.UnitY, LocalOffsetA = new Vector3(0, 0.7f, 0), LocalOffsetB = new Vector3(0, 0, 0), SpringSettings = new SpringSettings(30, 1) }); Simulation.Solver.Add(baseHandle, bladeHandle, new AngularAxisMotor { LocalAxisA = Vector3.UnitY, TargetVelocity = (i + 1) * (i + 1) * (i + 1) * (i + 1) * 0.2f, Settings = new MotorSettings(5 * (i + 1), 0.0001f) }); } //Include a giant newt to test character-newt behavior and to ensure thematic consistency. DemoMeshHelper.LoadModel(content, BufferPool, @"Content\newt.obj", new Vector3(15, 15, 15), out var newtMesh); Simulation.Statics.Add(new StaticDescription(new Vector3(0, 0.5f, 0), new CollidableDescription(Simulation.Shapes.Add(newtMesh), 0.1f))); //Give the newt a tongue, I guess. var tongueBase = Simulation.Bodies.Add(BodyDescription.CreateKinematic(new Vector3(0, 8.4f, 24), default, default)); var tongue = Simulation.Bodies.Add(BodyDescription.CreateConvexDynamic(new Vector3(0, 8.4f, 27.5f), 1, Simulation.Shapes, new Box(1, 0.1f, 6f))); Simulation.Solver.Add(tongueBase, tongue, new Hinge { LocalHingeAxisA = Vector3.UnitX, LocalHingeAxisB = Vector3.UnitX, LocalOffsetB = new Vector3(0, 0, -3f), SpringSettings = new SpringSettings(30, 1) }); Simulation.Solver.Add(tongueBase, tongue, new AngularServo { TargetRelativeRotationLocalA = Quaternion.Identity, ServoSettings = ServoSettings.Default, SpringSettings = new SpringSettings(2, 0) }); //And a seesaw thing? var seesawBase = Simulation.Bodies.Add(BodyDescription.CreateKinematic(new Vector3(0, 1f, 34f), new CollidableDescription(Simulation.Shapes.Add(new Box(0.2f, 1, 0.2f)), 0.1f), new BodyActivityDescription(0.01f))); var seesaw = Simulation.Bodies.Add(BodyDescription.CreateConvexDynamic(new Vector3(0, 1.7f, 34f), 1, Simulation.Shapes, new Box(1, 0.1f, 6f))); Simulation.Solver.Add(seesawBase, seesaw, new Hinge { LocalHingeAxisA = Vector3.UnitX, LocalHingeAxisB = Vector3.UnitX, LocalOffsetA = new Vector3(0, 0.7f, 0), LocalOffsetB = new Vector3(0, 0, 0), SpringSettings = new SpringSettings(30, 1) }); Simulation.Bodies.Add(BodyDescription.CreateConvexDynamic(new Vector3(0, 2.25f, 35.5f), 0.5f, Simulation.Shapes, new Box(1f, 1f, 1f))); //Create some moving platforms to jump on. movingPlatforms = new MovingPlatform[16]; Func<double, RigidPose> poseCreator = time => { RigidPose pose; var horizontalScale = (float)(45 + 10 * Math.Sin(time * 0.015)); //Float in a noisy ellipse around the newt. pose.Position = new Vector3(0.7f * horizontalScale * (float)Math.Sin(time * 0.1), 10 + 4 * (float)Math.Sin((time + Math.PI * 0.5f) * 0.25), horizontalScale * (float)Math.Cos(time * 0.1)); //As the platform goes behind the newt, dip toward the ground. Use smoothstep for a less jerky ride. var x = MathF.Max(0f, MathF.Min(1f, 1f - (pose.Position.Z + 20f) / -20f)); var smoothStepped = 3 * x * x - 2 * x * x * x; pose.Position.Y = smoothStepped * (pose.Position.Y - 0.025f) + 0.025f; pose.Orientation = Quaternion.Identity; return pose; }; var platformCollidable = new CollidableDescription(Simulation.Shapes.Add(new Box(5, 1, 5)), 0.1f); for (int i = 0; i < movingPlatforms.Length; ++i) { movingPlatforms[i] = new MovingPlatform(platformCollidable, i * 3559, 1f / 60f, Simulation, poseCreator); } var box = new Box(4, 1, 4); var boxCollidable = new CollidableDescription(Simulation.Shapes.Add(box), 0.1f); const int width = 8; for (int i = 0; i < width; ++i) { for (int j = 0; j < width; ++j) { Simulation.Statics.Add(new StaticDescription(new Vector3(box.Width, 0, box.Length) * new Vector3(i, 0, j) + new Vector3(32f, 1, 0), boxCollidable)); } } //Prevent the character from falling into the void. Simulation.Statics.Add(new StaticDescription(new Vector3(0, 0, 0), new CollidableDescription(Simulation.Shapes.Add(new Box(200, 1, 200)), 0.1f))); } struct MovingPlatform { public BodyHandle BodyHandle; public float InverseGoalSatisfactionTime; public double TimeOffset; public Func<double, RigidPose> PoseCreator; public MovingPlatform(CollidableDescription collidable, double timeOffset, float goalSatisfactionTime, Simulation simulation, Func<double, RigidPose> poseCreator) { PoseCreator = poseCreator; BodyHandle = simulation.Bodies.Add(BodyDescription.CreateKinematic(poseCreator(timeOffset), collidable, new BodyActivityDescription(-1))); InverseGoalSatisfactionTime = 1f / goalSatisfactionTime; TimeOffset = timeOffset; } public void Update(Simulation simulation, double time) { var body = simulation.Bodies.GetBodyReference(BodyHandle); ref var pose = ref body.Pose; ref var velocity = ref body.Velocity; var targetPose = PoseCreator(time + TimeOffset); velocity.Linear = (targetPose.Position - pose.Position) * InverseGoalSatisfactionTime; QuaternionEx.GetRelativeRotationWithoutOverlap(pose.Orientation, targetPose.Orientation, out var rotation); QuaternionEx.GetAxisAngleFromQuaternion(rotation, out var axis, out var angle); velocity.Angular = axis * (angle * InverseGoalSatisfactionTime); } } MovingPlatform[] movingPlatforms; bool characterActive; CharacterInput character; double time; void CreateCharacter(Vector3 position) { characterActive = true; character = new CharacterInput(characters, position, new Capsule(0.5f, 1), 0.1f, 1, 20, 100, 6, 4, MathF.PI * 0.4f); } public override void Update(Window window, Camera camera, Input input, float dt) { const float simulationDt = 1 / 60f; if (input.WasPushed(Key.C)) { if (characterActive) { character.Dispose(); characterActive = false; } else { CreateCharacter(camera.Position); } } if (characterActive) { //Console.WriteLine($"Supported: {characters.GetCharacterByBodyHandle(character.BodyHandle).Supported}"); character.UpdateCharacterGoals(input, camera, simulationDt); } //Using a fixed time per update to match the demos simulation update rate. time += 1 / 60f; for (int i = 0; i < movingPlatforms.Length; ++i) { movingPlatforms[i].Update(Simulation, time); } base.Update(window, camera, input, dt); } public override void Render(Renderer renderer, Camera camera, Input input, TextBuilder text, Font font) { float textHeight = 16; var position = new Vector2(32, renderer.Surface.Resolution.Y - textHeight * 9); renderer.TextBatcher.Write(text.Clear().Append("Toggle character: C"), position, textHeight, new Vector3(1), font); position.Y += textHeight * 1.2f; character.RenderControls(position, textHeight, renderer.TextBatcher, text, font); if (characterActive) { character.UpdateCameraPosition(camera); } base.Render(renderer, camera, input, text, font); } } }
51.907258
243
0.581061
[ "Apache-2.0" ]
Frooxius/bepuphysics2
Demos/Demos/Characters/CharacterDemo.cs
12,875
C#