public void WhenISwitchInUserSettings(string status, string element) { UserSettingsPage userSettingsPage = new UserSettingsPage(); var result = userSettingsPage.CheckboxStatusCheck(element); switch (status) { case "on": if (!result) { userSettingsPage.AutoLoadServicesCheckboxClick(element); Console.WriteLine("Тест завалился"); } break; case "off": if (result) { userSettingsPage.AutoLoadServicesCheckboxClick(element); Console.WriteLine("Тест завалился"); } break; default: // НАХРЕНА?? break; // НАХРЕНА?? } //ScenarioContext.Current.Pending(); }
private void xUserSettingsMenuItem_Click(object sender, RoutedEventArgs e) { if (mUserSettingsPage == null) { mUserSettingsPage = new UserSettingsPage(); } mUserSettingsPage.ShowAsWindow(); }
public void NavigateTo(string uri) { this.MenuButtons.ForEach(x => x.IsSelected = false); var resBtn = this.MenuButtons.FirstOrDefault(x => x.Uri == uri); if (resBtn != null) { resBtn.IsSelected = true; } switch (uri) { case "store": Source = new ApplicationListPage(new ApplicationsListViewModel(App.InjectContainer.Resolve <ISeacRuntimeClient>(), "Store", System.Windows.Visibility.Collapsed)); break; case "library": Source = new ApplicationListPage(new ApplicationsListViewModel(App.InjectContainer.Resolve <ISeacRuntimeClient>(), "Library", System.Windows.Visibility.Visible)); break; case "settings": Source = new SettingsPage(); break; case "usersettings": Source = new UserSettingsPage(new UserSettingsViewModel(navigateWindow, App.InjectContainer.Resolve <IBaseTokenService>())); break; case "report": Source = new ReportPage(); break; case "develop": Source = new DevelopmentPage(); break; } OnPropertyChanged("Source"); }
public void OnAccountSettings() { UserSettingsPage Page = new UserSettingsPage(user); Application.Current.MainPage = Page; }
public void ThenIClickSettingsSaveButton() { UserSettingsPage userSettingsPage = new UserSettingsPage(); userSettingsPage.SaveBtnClick(); }