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
/// <summary> | |
/// App Settings Connection. | |
/// </summary> | |
private static ISettings _appSettings => CrossSettings.Current; |
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
/// <summary> | |
/// Gets or Sets the Server Redirect URL | |
/// </summary> | |
public string RedirectUrl { get; set; } |
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
/// <summary> | |
/// Gets or Sets the Server Redirect URL | |
/// </summary> | |
public string RedirectUrl | |
{ | |
get | |
{ | |
return _appSettings.GetValueOrDefault("redirecturl", "www.alexduffell.wordpress.com/api"); | |
} | |
set |
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 SettingsConstants | |
{ | |
public const string RedirectUrlKey = "redirecturl"; | |
public const string RedirectUrlDefault = "www.alexduffell.wordpress.com/api"; | |
} |
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
#region Redirect URL | |
private static readonly string RedirectUrlKey = SettingsConstants.RedirectUrlKey; | |
private static readonly string RedirectUrlDefault = SettingsConstants.RedirectUrlDefault; | |
/// <summary> | |
/// Gets or Sets the Server Redirect URL | |
/// </summary> | |
public string RedirectUrl | |
{ |
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
class AppSettings : IAppSettings | |
{ | |
... | |
} |
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
interface IAppSettings | |
{ | |
/// <summary> | |
/// Gets or Sets the Server Redirect URL | |
/// </summary> | |
string RedirectUrl { get; set; } | |
} |
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
<StackLayout VerticalOptions="Center" Padding="20,0"> | |
<Label Text="Redirect Url Here" HorizontalOptions="Center"/> | |
<Button Text="Get Redirect Url"/> | |
<BoxView HeightRequest="20" Color="Transparent"/> | |
<Entry Placeholder="Update Redirect Url"/> | |
<Button Text="Update"/> | |
</StackLayout> |
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
using System; | |
using System.ComponentModel; | |
using System.Windows.Input; | |
using Xamarin.Forms; | |
using DataPersistence.Properties.Settings; |
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 MainPageViewModel : INotifyPropertyChanged | |
{ | |
... | |
} |
OlderNewer