This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var usernameRegExp = new RegExp("<%= GetAttributeValue( "ValidUsernameRegularExpression" ) %>"); | |
var usernameValidDescription = "<%= GetAttributeValue( "ValidUsernameDescription" ) %>"; | |
availabilityMessageRow.hide(); | |
usernameTextbox.blur(function () { | |
if ($(this).val() && $.trim($(this).val()) != '') { | |
if (! usernameRegExp.test($(this).val())) { | |
usernameUnavailable.html('Username is not valid! ' + usernameValidDescription ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Gets the grade level of the person based on their High School graduation date. | |
/// </summary> | |
/// <value> | |
/// The grade level (-1 for prekindergarten, 0 for kindergarten, 1 for first grade, etc.) or null if they have no graduation date. | |
/// </value> | |
[NotMapped] | |
[DataMember] | |
[MergeField] | |
public virtual int? Grade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example Usage: | |
<Rock:BadgeField DataField="FlagCount" HeaderText="Flag Count" SortExpression="FlagCount" | |
ImportantRuleEnable="true" ImportantMin="4" | |
WarningRuleEnable="true" WarningMin="2" | |
InfoRuleEnable="true" InfoMin="1" InfoMax="2" /> | |
// Achieved via this in the BadgeField.cs... | |
// In the FormatDataMethod, if no SetBadgeType event hander is defined, then try | |
// setting the type based on "rules": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// From NuGetPackageExplorer's MainWindow OpenLocalPackageCore(string packagePath) | |
/// | |
private bool OpenLocalPackageCore(string packagePath) | |
{ | |
IPackage package = null; | |
try | |
{ | |
string extension = Path.GetExtension(packagePath); | |
if (extension.Equals(Constants.PackageExtension, StringComparison.OrdinalIgnoreCase)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// Example building a package (from the NuGet PackageBuilderTest.cs class) | |
/// | |
// Act | |
var builder = new PackageBuilder { Id = "test", Version = new SemanticVersion("1.0"), Description = "test" }; | |
builder.Authors.Add("test"); | |
foreach (var name in fileNames) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:tns="http://tempuri.org/RequestDataSchema.xsd" | |
targetNamespace="http://tempuri.org/RequestDataSchema.xsd" | |
elementFormDefault="qualified"> | |
<xs:element name="RequestData" type="tns:RequestDataType"/> | |
<!-- Root Data Bundle --> | |
<xs:complexType name="RequestDataType"> | |
<xs:sequence> |