Skip to content

Commit

Permalink
[MobileCRM] fix obsoletes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustam Zaitov committed Mar 23, 2015
1 parent db79ee9 commit fb0573b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion MobileCRM/MobileCRM.Shared/Pages/LoginPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public LoginPage()
var label = new Label
{
Text = "Connect with Your Data",
Font = Font.BoldSystemFontOfSize(NamedSize.Large),
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)),
TextColor = Color.White,
VerticalOptions = LayoutOptions.CenterAndExpand,
XAlign = TextAlignment.Center, // Center the text in the blue box.
Expand Down
9 changes: 5 additions & 4 deletions MobileCRM/MobileCRM.Shared/Pages/MenuPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ public MenuPage ()
}
};

Device.OnPlatform (
iOS: () => ((Xamarin.Forms.Label)label.Content).Font = Font.SystemFontOfSize (NamedSize.Micro),
Android: () => ((Xamarin.Forms.Label)label.Content).Font = Font.SystemFontOfSize (NamedSize.Medium)
);
Label lbl = (Xamarin.Forms.Label)label.Content;
Device.OnPlatform (
iOS: () => lbl.FontSize = Device.GetNamedSize (NamedSize.Micro, lbl),
Android: () => lbl.FontSize = Device.GetNamedSize (NamedSize.Medium, lbl)
);

layout.Children.Add(label);

Expand Down
12 changes: 6 additions & 6 deletions MobileCRM/MobileCRM.Shared/Pages/RootPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ void NavigateTo(OptionItem option)
#if WINDOWS_PHONE
Detail = new ContentPage();//work around to clear current page.
#endif
Detail = new NavigationPage(displayPage)
{
Tint = Helpers.Color.Blue.ToFormsColor(),
};

var color = Helpers.Color.Blue.ToFormsColor ();
Detail = new NavigationPage (displayPage) {
BarBackgroundColor = color,
BarTextColor = color
};

IsPresented = false;
}
Expand All @@ -76,7 +76,7 @@ Page PageForOption (OptionItem option)
cell.SetBinding(TextCell.DetailProperty, new Binding("EstimatedAmount", stringFormat: "{0:C}"));
return page;
}
throw new NotImplementedException("Unknown menu option: " + option.Title);
throw new NotImplementedException (string.Format ("Unknown menu option: {0}", option.Title));
}
}
}
Expand Down

0 comments on commit fb0573b

Please sign in to comment.