This file contains 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 Mumsee.Mobile.Core.ViewModels | |
{ | |
public class AppBootstrapper : ReactiveObject //, IScreen | |
{ | |
// The Router holds the ViewModels for the back stack. Because it's | |
// in this object, it will be serialized automatically. | |
//public RoutingState Router { get; protected set; } | |
public AppBootstrapper () | |
{ |
This file contains 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
SELECT accounts.* , | |
accounts_cstm.tax_jurisdiction_code_c, | |
accounts_cstm.sap_business_partner_c, | |
accounts_cstm.price_group_c, | |
accounts_cstm.payment_terms_c, | |
accounts_cstm.customer_group_c, | |
accounts_cstm.tax_exempt_c, | |
accounts_cstm.price_list_c , | |
LTRIM(RTRIM(CONCAT(IFNULL(jt0.first_name,''),' ',IFNULL(jt0.last_name,'')))) modified_by_name , | |
jt0.created_by modified_by_name_owner , |
This file contains 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
protected override void ApplicationStartup(IWindsorContainer container, IPipelines pipelines) | |
{ | |
pipelines.BeforeRequest += (ctx) => | |
{ | |
if (ctx.Request.Session["TempMessage"] != null && !string.IsNullOrEmpty(ctx.Request.Session["TempMessage"] as string)) | |
{ | |
ctx.ViewBag.TempMessage = ctx.Request.Session["TempMessage"]; | |
ctx.ViewBag.TempType = ctx.Request.Session["TempType"]; | |
ctx.Request.Session.DeleteAll(); | |
} |
This file contains 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
public class SegmentedControlRenderer : NativeRenderer | |
{ | |
protected override void OnModelSet(VisualElement model) | |
{ | |
base.OnModelSet (model); | |
SegmentedControlView segmentedControlView = (SegmentedControlView)this.Model; | |
var native = new UISegmentedControl (); | |
native.Frame = new RectangleF (20, 20, 280, 40); |
This file contains 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
public static Page GetMainPage() | |
{ | |
var masterDetailPage = new MasterDetailPage (); | |
masterDetailPage.Master = new MenuPage (masterDetailPage); | |
if(User.IsNotAuthenticated){ | |
//HERE IS WHERE I WOULD LIKE TO DISABLE THE MASTER | |
masterDetailPage.Detail = new NavigationPage (new LoginPage ()) { }; | |
//This does not do anything. |
This file contains 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
container.Register(Classes.FromAssemblyInThisApplication() | |
.BasedOn<UserControl>() | |
.Configure(x => x.LifestyleTransient())); |
This file contains 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
protected override void ApplicationStartup(IWindsorContainer container, IPipelines pipelines) | |
{ | |
pipelines.BeforeRequest += (ctx) => | |
{ | |
ctx.ViewBag.Styles = Bundle.Css().RenderNamed("bundled"); | |
ctx.ViewBag.Scripts = Bundle.JavaScript().RenderNamed("vendor-scripts"); | |
return null; | |
}; | |
This file contains 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
Tugberk Ugurlu has an implementation for RavenDB: AspNet.Identity.RavenDB | |
https://github.com/tugberkugurlu/AspNet.Identity.RavenDB | |
Daniel Wertheim has an implementation for CouchDB / Cloudant | |
https://github.com/danielwertheim/mycouch.aspnet.identity | |
InspectorIT has an implementation for MongoDB: MongoDB.AspNet.Identity | |
https://github.com/InspectorIT/MongoDB.AspNet.Identity |
This file contains 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
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | |
public class CvvAttribute : DataTypeAttribute | |
{ | |
public CvvAttribute() | |
: base("cvv") | |
{ | |
} | |
public override string FormatErrorMessage(string name) | |
{ |
This file contains 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
C:\Projects> mkdir nodeboocamp | |
Directory: C:\Projects | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
d---- 5/2/2012 11:10 PM nodeboocamp |