public SynthesizerSetting CreateSynthesizerSetting() { SynthesizerSetting synthesizerSetting = new SynthesizerSetting() { AppServiceUrl = "http://test.com", SynthesizerApiUrl = "http://100.100.100.100" }; return(GetOrCreate(() => synthesizerSetting)); }
public SynthesizerSettingsViewModel(SynthesizerSetting synthesizerSettings) { Title = AppResources.SynthesizerSettings_Title; Model = synthesizerSettings; SaveCommand = new Command(async() => await Save()); DeleteCommand = new Command(async() => await Delete()); MessagingCenter.Subscribe <LogsViewModel>(this, "SynthesizerSettingsSynced", (sender) => { Model = sender.SynthesizerSettings; }); }
private async Task ShowSettings() { if (SynthesizerSettings == null) { SynthesizerSettings = new SynthesizerSetting() { AppServiceUrl = Identifiers.Environment.AppServiceUrl, //SynthesizerApiUrl = Identifiers.Environment.SynthesizerApiUrl, DelayAfterStrikeOn = 150 }; } await Application.Current.MainPage.Navigation.PushAsync( new SynthesizerSettingsPage(SynthesizerSettings)); }
public SynthesizerSettingsPage(SynthesizerSetting synthesizerSettings) { InitializeComponent(); BindingContext = new SynthesizerSettingsViewModel(synthesizerSettings); }