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
/// <reference path="./jquery-1.10.2-vsdoc.js" /> | |
/// <reference path="./jquery-ui-1.10.3.js" /> | |
/// <reference path="./jquery.jqGrid.src.js" /> | |
window.jqGridSettings = {}; | |
function bindConfiguration(key, options) { | |
var p = window.jqGridSettings[options.idPrefix]; |
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
/* Default class modification */ | |
$.extend($.fn.dataTableExt.oStdClasses, { | |
"sWrapper": "dataTables_wrapper form-inline" | |
}); | |
/* API method to get paging information */ | |
$.fn.dataTableExt.oApi.fnPagingInfo = function (oSettings) { | |
return { | |
"iStart": oSettings._iDisplayStart, |
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
/// <reference path="../../Scripts/jquery-2.0.3.intellisense.js" /> | |
/// <reference path="../../Scripts/jquery-2.0.3.js" /> | |
/// | |
define(["jquery", "knockout"], | |
function ($, ko) { | |
return function () { | |
var get = function (params) { | |
var resource = this.resource; |
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
<div class="messageBox wideMessageBox"> | |
<div class="modal-header"> | |
<h3 data-bind="text: title"></h3> | |
</div> | |
<div class="modal-body"> | |
<!-- Whatever you want here to display in your modal --> | |
</div> | |
<div class="modal-footer"> | |
<!-- only because i have save/cancel bindings on my module above. --> | |
<button class="btn btn-default" data-bind="click: cancel">Cancel</button> |
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
namespace Your.Namespace.Here { | |
using FluentNHibernate.Conventions; | |
using FluentNHibernate.Conventions.AcceptanceCriteria; | |
using FluentNHibernate.Conventions.Inspections; | |
using FluentNHibernate.Conventions.Instances; | |
using System; | |
class DateTimeOffsetConvention : IPropertyConvention, IPropertyConventionAcceptance { | |
public void Accept(IAcceptanceCriteria<IPropertyInspector> criteria) { | |
criteria.Expect(x => x.Type == typeof(DateTimeOffset)); |
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 connectionTypes = _LifetimeScope | |
.ComponentRegistry | |
.Registrations | |
.Where(reg => | |
reg.Activator | |
.LimitType | |
.GetInterfaces() | |
.Any(iface => | |
iface.IsGenericType && iface.GetGenericTypeDefinition() == typeof(IConnectionEditorViewModel<>) | |
) |
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
namespace {Your.Namespace.Here}.Behaviors { | |
using System.Windows.Controls; | |
using System.Windows.Interactivity; | |
// Pulled from: http://codermonkey65.blogspot.com/2012/12/making-wpf-datagrid-keyboard-friendly.html | |
public class DataGridAutomaticEditingBehavior : Behavior<DataGrid> { | |
protected override void OnAttached() { | |
AssociatedObject.GotFocus += AssociatedObject_GotFocus; | |
base.OnAttached(); | |
} |
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
namespace {YourNamespace}.ServiceBus.Tasks { | |
using System; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
public abstract class BaseSyncTask : ISyncTask { | |
protected NLog.Logger Log = NLog.LogManager.GetCurrentClassLogger(); | |
public abstract int Priority { get; } |
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
namespace Adapt.SSRV.Web.Models { | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Web.Http.Controllers; | |
using System.Web.Http.ModelBinding; | |
public class ParameterModelsModelBinder : IModelBinder { | |
public bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext) { | |
if (bindingContext.ModelType != typeof(ParameterModels)) { | |
return false; |
OlderNewer