private async Task LoadOnlineSource(string path) { Settings.Default.FeatureEnabler.DbMerging = false; Settings.Default.FeatureEnabler.LocalEdit = false; Settings.Default.FeatureEnabler.PhoneticEditation = false; Settings.Default.FeatureEnabler.QuickExport = false; Settings.Default.FeatureEnabler.QuickNavigation = false; Settings.Default.FeatureEnabler.VideoFrame = false; Settings.Default.FeatureEnabler.LocalSpeakers = false; _api = new SpeakersApi(path, this); if (await _api.TryLogin() == true) { if (_api.Info.API2) { _api = new SpeakersApi2(path, this); await _api.TryLogin(); } LoadOnlineSetting(); } else Close(); }
private void LoadOnlineSource(string path) { Settings.Default.FeatureEnabler.DbMerging = false; Settings.Default.FeatureEnabler.LocalEdit = false; Settings.Default.FeatureEnabler.PhoneticEditation = false; Settings.Default.FeatureEnabler.QuickExport = false; Settings.Default.FeatureEnabler.QuickNavigation = false; Settings.Default.FeatureEnabler.VideoFrame = false; Settings.Default.FeatureEnabler.LocalSpeakers = false; _api = new SpeakersApi(path, this); if (_api.TryLogin(this) == true) { LoadOnlineSetting(); } else Close(); }