private void SaveGatewaySelection_Click(object sender, RoutedEventArgs e) { hasSaved = true; var currentApp = (App)App.Current; currentApp.SaveGatewayInfo(this.CurrentGateway.Text, GatewayList.ToList()); }