public AppCenterContentPage() { InitializeComponent(); LogFunctions = new Dictionary <LogLevel, Action <string, string> >(); LogFunctions.Add(LogLevel.Verbose, AppCenterLog.Verbose); LogFunctions.Add(LogLevel.Debug, AppCenterLog.Debug); LogFunctions.Add(LogLevel.Info, AppCenterLog.Info); LogFunctions.Add(LogLevel.Warn, AppCenterLog.Warn); LogFunctions.Add(LogLevel.Error, AppCenterLog.Error); LogLevelNames = new Dictionary <LogLevel, string>(); LogLevelNames.Add(LogLevel.Verbose, Constants.Verbose); LogLevelNames.Add(LogLevel.Debug, Constants.Debug); LogLevelNames.Add(LogLevel.Info, Constants.Info); LogLevelNames.Add(LogLevel.Warn, Constants.Warning); LogLevelNames.Add(LogLevel.Error, Constants.Error); LogWriteLevel = LogLevel.Verbose; UpdateLogWriteLevelLabel(); if (Xamarin.Forms.Device.RuntimePlatform == Xamarin.Forms.Device.iOS) { Icon = "bolt.png"; } // Setup start type dropdown choices foreach (var startType in StartTypeUtils.GetStartTypeChoiceStrings()) { this.StartTypePicker.Items.Add(startType); } this.StartTypePicker.SelectedIndex = (int)(StartTypeUtils.GetPersistedStartType()); }
public AppCenterContentPage() { InitializeComponent(); if (Xamarin.Forms.Device.RuntimePlatform == Xamarin.Forms.Device.iOS) { Icon = "bolt.png"; } // Setup start type dropdown choices. foreach (var startType in StartTypeUtils.GetStartTypeChoiceStrings()) { this.StartTypePicker.Items.Add(startType); } this.StartTypePicker.SelectedIndex = (int)(StartTypeUtils.GetPersistedStartType()); }