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
| 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 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
| container.Register(Classes.FromAssemblyInThisApplication() | |
| .BasedOn<UserControl>() | |
| .Configure(x => x.LifestyleTransient())); |
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
| 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 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
| 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 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
| 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 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
| 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 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 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 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
| //------ Creating Contact Action 1 Start --------// | |
| var moreAction = new MenuItem { Text = "More" }; | |
| moreAction.SetBinding (MenuItem.CommandParameterProperty, new Binding (".")); | |
| moreAction.Clicked += async (sender, e) => { | |
| await Task.Run (() => { | |
| var mi = ((MenuItem)sender); | |
| Debug.WriteLine ("More Context Action clicked: " + mi.CommandParameter); | |
| }); | |
| }; | |
| ContextActions.Add (moreAction); |
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
| <ViewCell> | |
| <ViewCell.ContextActions> | |
| <MenuItem Command="{Binding MoreCommand}" Text="More" /> | |
| <MenuItem Command="{Binding DeleteCommand}" Text="Delete" IsDestructive="True" /> | |
| </ViewCell.ContextActions> | |
| </ViewCell> |
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> | |
| /// ReactiveObject can't be stored in Akavache? | |
| /// </summary> | |
| public class ReactiveItem //: ReactiveObject | |
| { | |
| public string Name { get; set; } | |
| public override string ToString () | |
| { | |
| return string.Format ("[ReactiveItem: Name={0}]", Name); |