finish personsearch
This commit is contained in:
@@ -8,13 +8,9 @@
|
||||
namespace CampusAppWP8.Api.GeoApi
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CampusAppWP8.Model;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Model.Utility;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using System.Device.Location;
|
||||
using CampusAppWP8.Utility;
|
||||
|
||||
/// <summary>
|
||||
/// Class for SPSAPI
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// <copyright file="PersonListModel.cs" company="BTU/IIT">
|
||||
// <copyright file="PersonSearchApi.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>05.09.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
namespace CampusAppWP8.Api.Person
|
||||
{
|
||||
using CampusAppWP8.Model;
|
||||
|
||||
@@ -35,7 +35,6 @@ namespace CampusAppWP8.Model.Person
|
||||
/// <summary>The building.</summary>
|
||||
private string building;
|
||||
|
||||
|
||||
/// <summary>Gets or sets the tel 1.</summary>
|
||||
/// <value>The tel 1.</value>
|
||||
[XmlAttribute("telefon")]
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace CampusAppWP8.Model.Person
|
||||
return tmpPerson;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -60,18 +61,18 @@ namespace CampusAppWP8.Model.Person
|
||||
/// <remarks>Stubbfel, 05.09.2013.</remarks>
|
||||
public void RemoveNonFunctionPerson()
|
||||
{
|
||||
List<PersonModel> rmList = new List<PersonModel>();
|
||||
List<PersonModel> removeList = new List<PersonModel>();
|
||||
foreach (PersonModel tmpPerson in this.Persons)
|
||||
{
|
||||
if (tmpPerson.Functions.Count < 1)
|
||||
{
|
||||
rmList.Add(tmpPerson);
|
||||
removeList.Add(tmpPerson);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (PersonModel rmPerson in rmList)
|
||||
foreach (PersonModel removePerson in removeList)
|
||||
{
|
||||
this.Persons.Remove(rmPerson);
|
||||
this.Persons.Remove(removePerson);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.id)
|
||||
@@ -115,6 +116,7 @@ namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
return this.functions;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.functions)
|
||||
@@ -125,7 +127,7 @@ namespace CampusAppWP8.Model.Person
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the name of a Person (<FisrtName> <SurName>).</summary>
|
||||
/// <summary>Gets the name of a Person (FirstName SurName).</summary>
|
||||
/// <value>The name of a Person.</value>
|
||||
public string FullName
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CampusAppWP8.Pages.Departments
|
||||
DepartmentIndexPage.feed.OnFailedWeb += new DepartmentFeed.OnFailed(this.FeedIsFailedWeb);
|
||||
DepartmentIndexPage.feed.OnFailedFile += new DepartmentFeed.OnFailed(this.FeedIsFailedFile);
|
||||
|
||||
DepartmentIndexPage.feed.LoadData(Utilities.getLoadModus<Model.Departments.DepartmentModel>());
|
||||
DepartmentIndexPage.feed.LoadData(Utilities.GetLoadModus<Model.Departments.DepartmentModel>());
|
||||
|
||||
if (DepartmentIndexPage.favorite == null)
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CampusAppWP8.Pages.Events
|
||||
EventIndexPage.eventFeed.OnLoaded += new EventFeed.OnIO(this.SetupEventPageList);
|
||||
EventIndexPage.eventFeed.OnFailedWeb += new EventFeed.OnFailed(this.FeedIsFailedWeb);
|
||||
EventIndexPage.eventFeed.OnFailedFile += new EventFeed.OnFailed(this.FeedIsFailedFile);
|
||||
EventIndexPage.eventFeed.LoadData(Utilities.getLoadModus<Model.RSS.RSSViewModel>());
|
||||
EventIndexPage.eventFeed.LoadData(Utilities.GetLoadModus<Model.RSS.RSSViewModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CampusAppWP8.Pages.Exams
|
||||
}
|
||||
|
||||
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
|
||||
this.feed.LoadData(Utilities.getLoadModus<Model.Exams.ExamListModel>());
|
||||
this.feed.LoadData(Utilities.GetLoadModus<Model.Exams.ExamListModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -67,8 +67,8 @@ namespace CampusAppWP8.Pages.Links
|
||||
this.InitializeFeeds();
|
||||
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
|
||||
this.loadingFeeds = 2;
|
||||
this.commonLinkFeed.LoadData(Utilities.getLoadModus<Model.Link.LinkListModel>());
|
||||
this.clubLinkFeed.LoadData(Utilities.getLoadModus<Model.Link.LinkListModel>());
|
||||
this.commonLinkFeed.LoadData(Utilities.GetLoadModus<Model.Link.LinkListModel>());
|
||||
this.clubLinkFeed.LoadData(Utilities.GetLoadModus<Model.Link.LinkListModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
}
|
||||
else
|
||||
{
|
||||
this.feed.LoadData(Utilities.getLoadModus<Model.Mensa.MenuWeekModel>());
|
||||
this.feed.LoadData(Utilities.GetLoadModus<Model.Mensa.MenuWeekModel>());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CampusAppWP8.Pages.News
|
||||
NewsIndexPage.newsFeed.OnLoaded += new NewsFeed.OnIO(this.SetupNewsPageList);
|
||||
NewsIndexPage.newsFeed.OnFailedWeb += new NewsFeed.OnFailed(this.FeedIsFailWeb);
|
||||
NewsIndexPage.newsFeed.OnFailedFile += new NewsFeed.OnFailed(this.FeedIsFailFile);
|
||||
NewsIndexPage.newsFeed.LoadData(Utilities.getLoadModus<Model.RSS.RSSViewModel>());
|
||||
NewsIndexPage.newsFeed.LoadData(Utilities.GetLoadModus<Model.RSS.RSSViewModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CampusAppWP8.Pages.Openinghours
|
||||
this.feed.OnLoaded += new OpeninghoursFeed.OnIO(this.FeedIsReady);
|
||||
this.feed.OnFailedWeb += new OpeninghoursFeed.OnFailed(this.FeedIsFailedWeb);
|
||||
this.feed.OnFailedFile += new OpeninghoursFeed.OnFailed(this.FeedIsFailedFile);
|
||||
this.feed.LoadData(Utilities.getLoadModus<Model.Openinghours.OpeninghoursModel>());
|
||||
this.feed.LoadData(Utilities.GetLoadModus<Model.Openinghours.OpeninghoursModel>());
|
||||
}
|
||||
|
||||
this.isNewInstance = true;
|
||||
|
||||
@@ -36,7 +36,11 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="Nachname: " Grid.Row="0"/>
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="0">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.PersonApp_SearchTextLabel, Source={StaticResource LocalizedStrings}}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
@@ -58,7 +62,7 @@
|
||||
<DataTemplate>
|
||||
<StackPanel>
|
||||
<lui:ToggleButton ToggleContentTag="{Binding Path=Constants.ToggleContent, Source={StaticResource Const}}" Style="{StaticResource ListButtonStyle}">
|
||||
<TextBlock Text="{Binding FullName}" TextWrapping="Wrap"/>
|
||||
<TextBlock Text="{Binding FullName}" TextWrapping="Wrap"/>
|
||||
</lui:ToggleButton>
|
||||
<StackPanel Tag="{Binding Path=Constants.ToggleContent, Source={StaticResource Const}}" Visibility="Collapsed">
|
||||
<ListBox ItemsSource="{Binding Functions}">
|
||||
@@ -67,7 +71,7 @@
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,0,0,1" >
|
||||
@@ -82,20 +86,29 @@
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Rolle: " Grid.Row="0" Grid.Column="0"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.PersonApp_FunctionName, Source={StaticResource LocalizedStrings}}" />
|
||||
<TextBlock Text=" : "/>
|
||||
</StackPanel>
|
||||
<TextBlock Text="{Binding Function}" Grid.Row="0" Grid.Column="1" TextWrapping="Wrap"/>
|
||||
|
||||
<TextBlock Text="Einrichtung: " Grid.Row="1" Grid.Column="0"/>
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0">
|
||||
<TextBlock Text="{Binding Path=LocalizedResources.PersonApp_Appointment, Source={StaticResource LocalizedStrings}}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
</StackPanel>
|
||||
<TextBlock Text="{Binding Appointment}" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap"/>
|
||||
|
||||
<TextBlock Text ="Sitz: " Grid.Row="2" Grid.Column="0" />
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="0">
|
||||
<TextBlock Text ="{Binding Path=LocalizedResources.PersonApp_Building, Source={StaticResource LocalizedStrings}}" />
|
||||
<TextBlock Text=" : "/>
|
||||
</StackPanel>
|
||||
<TextBlock Text="{Binding Building}" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap"/>
|
||||
|
||||
<StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal">
|
||||
<lui:EmailButton EmailAddress="{Binding Mail}" Height="100" />
|
||||
<lui:PhoneButton Number="{Binding Tel1}" Height="100" />
|
||||
<lui:AddPersonButton Height="100" Click="Button_Click" PersonId="{Binding PersonID}" FunctionIndex="{Binding FunctionIndex}">
|
||||
|
||||
</lui:AddPersonButton>
|
||||
<lui:AddPersonButton Height="100" Click="Button_Click" PersonId="{Binding PersonID}" FunctionIndex="{Binding FunctionIndex}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
@@ -1,31 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Navigation;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
using CampusAppWP8.Api.Person;
|
||||
using CampusAppWP8.Model.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using CampusAppWP8.Resources;
|
||||
using Microsoft.Phone.Tasks;
|
||||
using CampusAppWP8.Utility.Lui.Button;
|
||||
using CampusAppWP8.Model.Person;
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="PersonPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>09.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
namespace CampusAppWP8.Pages.Person
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using CampusAppWP8.Api.Person;
|
||||
using CampusAppWP8.Model.Person;
|
||||
using CampusAppWP8.Model.Utility;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility.Lui.Button;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Tasks;
|
||||
|
||||
/// <summary>Person page.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
public partial class PersonPage : PhoneApplicationPage
|
||||
{
|
||||
/// <summary>The API.</summary>
|
||||
private PersonSearchApi api;
|
||||
|
||||
/// <summary>Initializes a new instance of the PersonPage class.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
public PersonPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>Sends a request.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
private void SendRequest(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string query = this.SearchName.Text.Trim();
|
||||
@@ -43,51 +54,76 @@ namespace CampusAppWP8.Pages.Person
|
||||
this.api.LoadData();
|
||||
}
|
||||
|
||||
/// <summary>Creates URL parameter.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <returns>The new URL parameter.</returns>
|
||||
private List<UrlParamModel> CreateUrlParameter(string name)
|
||||
{
|
||||
List<UrlParamModel> parameterList = new List<UrlParamModel>();
|
||||
parameterList.Add(new CleanUrlParamModel("Uebersicht", name));
|
||||
parameterList.Add(new CleanUrlParamModel(Constants.ParamPersonList, name));
|
||||
return parameterList;
|
||||
}
|
||||
|
||||
/// <summary>API is fail.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
private void ApiIsFail()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
|
||||
this.ProgressBar.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>API is ready.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
private void ApiIsReady()
|
||||
{
|
||||
this.SetupResultBox();
|
||||
this.ProgressBar.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>Sets up the result box.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
private void SetupResultBox()
|
||||
{
|
||||
this.api.Model.RemoveNonFunctionAndSetIdsPerson();
|
||||
this.ResultBox.ItemsSource = this.api.Model.Persons;
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Button for click events.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AddPersonButton btn = sender as AddPersonButton;
|
||||
if (btn == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string personID = btn.PersonId as string;
|
||||
int fIndex = (int)btn.FunctionIndex;
|
||||
int functionIndex = (int)btn.FunctionIndex;
|
||||
|
||||
PersonModel person = this.api.Model.GetPerson(personID);
|
||||
// int functionIndex = btn.Parent.
|
||||
SaveContactTask saveContactTask = new SaveContactTask();
|
||||
if (person == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SaveContactTask saveContactTask = new SaveContactTask();
|
||||
|
||||
saveContactTask.FirstName = person.FirstName;
|
||||
saveContactTask.LastName = person.SurName;
|
||||
saveContactTask.Title = person.Akadgrad;
|
||||
saveContactTask.JobTitle = person.Functions[fIndex].Function;
|
||||
saveContactTask.Company = "BTU - " + person.Functions[fIndex].Appointment;
|
||||
saveContactTask.WorkAddressCountry = "De";
|
||||
saveContactTask.WorkAddressCity = "Cottbus";
|
||||
saveContactTask.WorkAddressState = "Brandenburg";
|
||||
saveContactTask.WorkAddressZipCode = "03046";
|
||||
saveContactTask.WorkAddressStreet = person.Functions[fIndex].Building;
|
||||
saveContactTask.WorkPhone = person.Functions[fIndex].Tel1;
|
||||
saveContactTask.WorkEmail = person.Functions[fIndex].Mail;
|
||||
saveContactTask.JobTitle = person.Functions[functionIndex].Function;
|
||||
saveContactTask.Company = Constants.Addr_CBMainCompanyName + " - " + person.Functions[functionIndex].Appointment;
|
||||
saveContactTask.WorkAddressCountry = Constants.Addr_CBMainCountry;
|
||||
saveContactTask.WorkAddressCity = Constants.Addr_CBMainCity;
|
||||
saveContactTask.WorkAddressState = Constants.Addr_CBMainState;
|
||||
saveContactTask.WorkAddressZipCode = Constants.Addr_CBMainZipCode;
|
||||
saveContactTask.WorkAddressStreet = person.Functions[functionIndex].Building;
|
||||
saveContactTask.WorkPhone = person.Functions[functionIndex].Tel1;
|
||||
saveContactTask.WorkEmail = person.Functions[functionIndex].Mail;
|
||||
|
||||
saveContactTask.Show();
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CampusAppWP8.Pages.StudentCouncil
|
||||
}
|
||||
|
||||
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
|
||||
this.feed.LoadData(Utilities.getLoadModus<Model.StudentCouncil.StudentCouncilListModel>());
|
||||
this.feed.LoadData(Utilities.GetLoadModus<Model.StudentCouncil.StudentCouncilListModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -699,6 +699,33 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Einrichtung ähnelt.
|
||||
/// </summary>
|
||||
public static string PersonApp_Appointment {
|
||||
get {
|
||||
return ResourceManager.GetString("PersonApp_Appointment", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Sitz ähnelt.
|
||||
/// </summary>
|
||||
public static string PersonApp_Building {
|
||||
get {
|
||||
return ResourceManager.GetString("PersonApp_Building", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Tätigkeit ähnelt.
|
||||
/// </summary>
|
||||
public static string PersonApp_FunctionName {
|
||||
get {
|
||||
return ResourceManager.GetString("PersonApp_FunctionName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Personensuche ähnelt.
|
||||
/// </summary>
|
||||
@@ -708,6 +735,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Nachname ähnelt.
|
||||
/// </summary>
|
||||
public static string PersonApp_SearchTextLabel {
|
||||
get {
|
||||
return ResourceManager.GetString("PersonApp_SearchTextLabel", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Personen ähnelt.
|
||||
/// </summary>
|
||||
|
||||
@@ -431,4 +431,16 @@
|
||||
<data name="PersonApp_Title" xml:space="preserve">
|
||||
<value>Personen</value>
|
||||
</data>
|
||||
<data name="PersonApp_Appointment" xml:space="preserve">
|
||||
<value>Einrichtung</value>
|
||||
</data>
|
||||
<data name="PersonApp_Building" xml:space="preserve">
|
||||
<value>Sitz</value>
|
||||
</data>
|
||||
<data name="PersonApp_FunctionName" xml:space="preserve">
|
||||
<value>Tätigkeit</value>
|
||||
</data>
|
||||
<data name="PersonApp_SearchTextLabel" xml:space="preserve">
|
||||
<value>Nachname</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -60,6 +60,51 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Cottbus ähnelt.
|
||||
/// </summary>
|
||||
public static string Addr_CBMainCity {
|
||||
get {
|
||||
return ResourceManager.GetString("Addr_CBMainCity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die BTU ähnelt.
|
||||
/// </summary>
|
||||
public static string Addr_CBMainCompanyName {
|
||||
get {
|
||||
return ResourceManager.GetString("Addr_CBMainCompanyName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die De ähnelt.
|
||||
/// </summary>
|
||||
public static string Addr_CBMainCountry {
|
||||
get {
|
||||
return ResourceManager.GetString("Addr_CBMainCountry", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Brandenburg ähnelt.
|
||||
/// </summary>
|
||||
public static string Addr_CBMainState {
|
||||
get {
|
||||
return ResourceManager.GetString("Addr_CBMainState", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die 03046 ähnelt.
|
||||
/// </summary>
|
||||
public static string Addr_CBMainZipCode {
|
||||
get {
|
||||
return ResourceManager.GetString("Addr_CBMainZipCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die DevMode ähnelt.
|
||||
/// </summary>
|
||||
@@ -564,6 +609,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Uebersicht ähnelt.
|
||||
/// </summary>
|
||||
public static string ParamPersonList {
|
||||
get {
|
||||
return ResourceManager.GetString("ParamPersonList", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die pivotindex ähnelt.
|
||||
/// </summary>
|
||||
|
||||
@@ -465,4 +465,22 @@
|
||||
<data name="UrlPerson_PersonSearchByName" xml:space="preserve">
|
||||
<value>https://www.zv.tu-cottbus.de/CMS-Webservice/Person</value>
|
||||
</data>
|
||||
<data name="Addr_CBMainCity" xml:space="preserve">
|
||||
<value>Cottbus</value>
|
||||
</data>
|
||||
<data name="Addr_CBMainCompanyName" xml:space="preserve">
|
||||
<value>BTU</value>
|
||||
</data>
|
||||
<data name="Addr_CBMainCountry" xml:space="preserve">
|
||||
<value>De</value>
|
||||
</data>
|
||||
<data name="Addr_CBMainState" xml:space="preserve">
|
||||
<value>Brandenburg</value>
|
||||
</data>
|
||||
<data name="Addr_CBMainZipCode" xml:space="preserve">
|
||||
<value>03046</value>
|
||||
</data>
|
||||
<data name="ParamPersonList" xml:space="preserve">
|
||||
<value>Uebersicht</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -302,12 +302,13 @@ namespace CampusAppWP8.Utility
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>Queries if a wifik is available.</summary>
|
||||
/// <summary>Queries if a wifi is available.</summary>
|
||||
/// <remarks>Stubbfel, 26.08.2013.</remarks>
|
||||
/// <returns>true if a wifik is available, false if not.</returns>
|
||||
/// <returns>true if a wifi is available, false if not.</returns>
|
||||
public static bool IsWifiAvailable()
|
||||
{
|
||||
NetworkInterfaceList networkInterfaceList = new NetworkInterfaceList();
|
||||
@@ -320,6 +321,7 @@ namespace CampusAppWP8.Utility
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -327,7 +329,7 @@ namespace CampusAppWP8.Utility
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <typeparam name="T">Generic type parameter.</typeparam>
|
||||
/// <returns>The load modus< t></returns>
|
||||
public static MainModel<T>.ForceType getLoadModus<T>()
|
||||
public static MainModel<T>.ForceType GetLoadModus<T>()
|
||||
{
|
||||
if (Settings.AppSetting.OnlyWifi && !Settings.AppSetting.WifiEnable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user