9 Commits

Author SHA1 Message Date
stubbfel
2f4034a4f2 Merge branch 'release/add#29' into develmaster 2013-06-13 12:14:41 +02:00
stubbfel
ec3fd17234 Merge branch 'feature/#29' into develop 2013-06-13 12:13:17 +02:00
stubbfel
bff8eb07c8 add documention to the models 2013-06-13 12:11:56 +02:00
stubbfel
512d367a7e add docmumentation to the pages 2013-06-13 10:50:37 +02:00
stubbfel
eb533e8008 update lecture 2013-06-12 15:21:16 +02:00
stubbfel
6071f96b3b lecture sendrequest and shows result 2013-06-12 13:07:24 +02:00
stubbfel
72495a5bc5 Merge branch 'hotfix/#30' into develop 2013-06-12 10:57:20 +02:00
stubbfel
84266dfb59 Merge branch 'hotfix/#30' into develmaster 2013-06-12 10:54:55 +02:00
stubbfel
9c973b2b8f resoved issue #30 2013-06-12 10:54:20 +02:00
30 changed files with 1110 additions and 600 deletions

View File

@@ -1,325 +1,326 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion> <ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{120B88CC-F3F0-4C5A-A3FD-C26E835338CC}</ProjectGuid> <ProjectGuid>{120B88CC-F3F0-4C5A-A3FD-C26E835338CC}</ProjectGuid>
<ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CampusAppWP8</RootNamespace> <RootNamespace>CampusAppWP8</RootNamespace>
<AssemblyName>CampusAppWP8</AssemblyName> <AssemblyName>CampusAppWP8</AssemblyName>
<TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier> <TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion> <TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion> <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<SilverlightApplication>true</SilverlightApplication> <SilverlightApplication>true</SilverlightApplication>
<SupportedCultures> <SupportedCultures>
</SupportedCultures> </SupportedCultures>
<XapOutputs>true</XapOutputs> <XapOutputs>true</XapOutputs>
<GenerateSilverlightManifest>true</GenerateSilverlightManifest> <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
<XapFilename>CampusAppWP8_$(Configuration)_$(Platform).xap</XapFilename> <XapFilename>CampusAppWP8_$(Configuration)_$(Platform).xap</XapFilename>
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate> <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
<SilverlightAppEntry>CampusAppWP8.App</SilverlightAppEntry> <SilverlightAppEntry>CampusAppWP8.App</SilverlightAppEntry>
<ValidateXaml>true</ValidateXaml> <ValidateXaml>true</ValidateXaml>
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion> <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation> <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<ExpressionBlendVersion>5.0.40218.0</ExpressionBlendVersion> <ExpressionBlendVersion>5.0.40218.0</ExpressionBlendVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>Bin\Debug</OutputPath> <OutputPath>Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants> <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig> <NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<DocumentationFile> <DocumentationFile>
</DocumentationFile> </DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath> <OutputPath>Bin\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants> <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig> <NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>Bin\x86\Debug</OutputPath> <OutputPath>Bin\x86\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants> <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig> <NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>Bin\x86\Release</OutputPath> <OutputPath>Bin\x86\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants> <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig> <NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|ARM' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|ARM' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>Bin\ARM\Debug</OutputPath> <OutputPath>Bin\ARM\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants> <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig> <NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|ARM' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|ARM' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>Bin\ARM\Release</OutputPath> <OutputPath>Bin\ARM\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants> <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig> <NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="App.xaml.cs"> <Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon> <DependentUpon>App.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="LocalizedStrings.cs" /> <Compile Include="LocalizedStrings.cs" />
<Compile Include="Model\Departments\ChairModel.cs" /> <Compile Include="Model\Departments\ChairModel.cs" />
<Compile Include="Model\Departments\DepartmentModel.cs" /> <Compile Include="Model\Departments\DepartmentModel.cs" />
<Compile Include="Model\Departments\DepartmentViewModel.cs" /> <Compile Include="Model\Departments\DepartmentViewModel.cs" />
<Compile Include="Model\Departments\FacultyModel.cs" /> <Compile Include="Model\Departments\FacultyModel.cs" />
<Compile Include="Model\Events\RSSChannelModel.cs" /> <Compile Include="Model\Events\RSSChannelModel.cs" />
<Compile Include="Model\Events\RSSViewModel.cs" /> <Compile Include="Model\Events\RSSViewModel.cs" />
<Compile Include="Model\Lecture\LectureActivity.cs" /> <Compile Include="Model\Lecture\LectureActivity.cs" />
<Compile Include="Model\Lecture\LectureCourse.cs" /> <Compile Include="Model\Lecture\LectureCourse.cs" />
<Compile Include="Model\Lecture\LectureDate.cs" /> <Compile Include="Model\Lecture\LectureDate.cs" />
<Compile Include="Model\Lecture\LectureLecturer.cs" /> <Compile Include="Model\Lecture\LectureLecturer.cs" />
<Compile Include="Model\Lecture\LectureList.cs" /> <Compile Include="Model\Lecture\LectureList.cs" />
<Compile Include="Model\Lecture\LectureModul.cs" /> <Compile Include="Model\Lecture\LectureModule.cs" />
<Compile Include="Model\Mensa\MenuModel.cs" /> <Compile Include="Model\Mensa\MenuModel.cs" />
<Compile Include="Model\Mensa\MenuWeekModel.cs" /> <Compile Include="Model\Mensa\MenuWeekModel.cs" />
<Compile Include="Pages\Campusmap\CampusMapPage.xaml.cs"> <Compile Include="Pages\Campusmap\CampusMapPage.xaml.cs">
<DependentUpon>CampusMapPage.xaml</DependentUpon> <DependentUpon>CampusMapPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Pages\Lecture\LectureFeed.cs" /> <Compile Include="Feed\Lecture\LectureFeed.cs" />
<Compile Include="Feed\Departments\DepartmentFeed.cs" /> <Compile Include="Feed\Departments\DepartmentFeed.cs" />
<Compile Include="Pages\Departments\DepartmentPage.xaml.cs"> <Compile Include="Pages\Departments\DepartmentPage.xaml.cs">
<DependentUpon>DepartmentPage.xaml</DependentUpon> <DependentUpon>DepartmentPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Feed\Events\EventFeed.cs" /> <Compile Include="Feed\Events\EventFeed.cs" />
<Compile Include="Pages\Events\EventIndexPage.xaml.cs"> <Compile Include="Pages\Events\EventIndexPage.xaml.cs">
<DependentUpon>EventIndexPage.xaml</DependentUpon> <DependentUpon>EventIndexPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Pages\Events\EventPage.xaml.cs"> <Compile Include="Pages\Events\EventPage.xaml.cs">
<DependentUpon>EventPage.xaml</DependentUpon> <DependentUpon>EventPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="pages\lecture\LecturePage.xaml.cs"> <Compile Include="pages\lecture\LecturePage.xaml.cs">
<DependentUpon>LecturePage.xaml</DependentUpon> <DependentUpon>LecturePage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Model\BaseModel.cs" /> <Compile Include="Model\BaseModel.cs" />
<Compile Include="Model\BaseViewModel.cs" /> <Compile Include="Model\BaseViewModel.cs" />
<Compile Include="Feed\Mensa\MensaFeed.cs" /> <Compile Include="Feed\Mensa\MensaFeed.cs" />
<Compile Include="Pages\Lecture\ModulWebPage.xaml.cs"> <Compile Include="Pages\Lecture\ModulWebPage.xaml.cs">
<DependentUpon>ModulWebPage.xaml</DependentUpon> <DependentUpon>ModulWebPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Pages\Lecture\ResultDetailPage.xaml.cs"> <Compile Include="Model\Utility\ListPickerItemModel.cs" />
<DependentUpon>ResultDetailPage.xaml</DependentUpon> <Compile Include="Pages\Lecture\ResultDetailPage.xaml.cs">
</Compile> <DependentUpon>ResultDetailPage.xaml</DependentUpon>
<Compile Include="Pages\Lecture\ResultPage.xaml.cs"> </Compile>
<DependentUpon>ResultPage.xaml</DependentUpon> <Compile Include="Pages\Lecture\ResultPage.xaml.cs">
</Compile> <DependentUpon>ResultPage.xaml</DependentUpon>
<Compile Include="Pages\Mensa\MensaPage.xaml.cs"> </Compile>
<DependentUpon>MensaPage.xaml</DependentUpon> <Compile Include="Pages\Mensa\MensaPage.xaml.cs">
</Compile> <DependentUpon>MensaPage.xaml</DependentUpon>
<Compile Include="Feed\News\NewsFeed.cs" /> </Compile>
<Compile Include="Pages\News\NewsIndexPage.xaml.cs"> <Compile Include="Feed\News\NewsFeed.cs" />
<DependentUpon>NewsIndexPage.xaml</DependentUpon> <Compile Include="Pages\News\NewsIndexPage.xaml.cs">
</Compile> <DependentUpon>NewsIndexPage.xaml</DependentUpon>
<Compile Include="Pages\News\NewsPage.xaml.cs"> </Compile>
<DependentUpon>NewsPage.xaml</DependentUpon> <Compile Include="Pages\News\NewsPage.xaml.cs">
</Compile> <DependentUpon>NewsPage.xaml</DependentUpon>
<Compile Include="Model\Events\RSSModel.cs" /> </Compile>
<Compile Include="pages\StartPage.xaml.cs"> <Compile Include="Model\Events\RSSModel.cs" />
<DependentUpon>StartPage.xaml</DependentUpon> <Compile Include="pages\StartPage.xaml.cs">
</Compile> <DependentUpon>StartPage.xaml</DependentUpon>
<Compile Include="Pages\Webmail\WebmailPage.xaml.cs"> </Compile>
<DependentUpon>WebmailPage.xaml</DependentUpon> <Compile Include="Pages\Webmail\WebmailPage.xaml.cs">
</Compile> <DependentUpon>WebmailPage.xaml</DependentUpon>
<Compile Include="Properties\AssemblyInfo.cs" /> </Compile>
<Compile Include="Resources\AppResources.Designer.cs"> <Compile Include="Properties\AssemblyInfo.cs" />
<AutoGen>True</AutoGen> <Compile Include="Resources\AppResources.Designer.cs">
<DesignTime>True</DesignTime> <AutoGen>True</AutoGen>
<DependentUpon>AppResources.resx</DependentUpon> <DesignTime>True</DesignTime>
</Compile> <DependentUpon>AppResources.resx</DependentUpon>
<Compile Include="Resources\Constants.Designer.cs"> </Compile>
<AutoGen>True</AutoGen> <Compile Include="Resources\Constants.Designer.cs">
<DesignTime>True</DesignTime> <AutoGen>True</AutoGen>
<DependentUpon>Constants.resx</DependentUpon> <DesignTime>True</DesignTime>
</Compile> <DependentUpon>Constants.resx</DependentUpon>
<Compile Include="Utility\Feed.cs" /> </Compile>
<Compile Include="Utility\FeedEventHandler.cs" /> <Compile Include="Utility\Feed.cs" />
<Compile Include="Utility\FileList.cs" /> <Compile Include="Utility\FeedEventHandler.cs" />
<Compile Include="Utility\FileManager.cs" /> <Compile Include="Utility\FileList.cs" />
<Compile Include="Utility\Logger.cs" /> <Compile Include="Utility\FileManager.cs" />
<Compile Include="Utility\RestApi.cs" /> <Compile Include="Utility\Logger.cs" />
<Compile Include="Utility\StringManager.cs" /> <Compile Include="Utility\RestApi.cs" />
<Compile Include="Utility\URLList.cs" /> <Compile Include="Utility\StringManager.cs" />
<Compile Include="Utility\XmlFeed.cs" /> <Compile Include="Utility\URLList.cs" />
</ItemGroup> <Compile Include="Utility\XmlFeed.cs" />
<ItemGroup> </ItemGroup>
<ApplicationDefinition Include="App.xaml"> <ItemGroup>
<SubType>Designer</SubType> <ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</ApplicationDefinition> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Campusmap\CampusMapPage.xaml"> </ApplicationDefinition>
<SubType>Designer</SubType> <Page Include="Pages\Campusmap\CampusMapPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Departments\DepartmentPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\Departments\DepartmentPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Lecture\LecturePage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\Lecture\LecturePage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Lecture\ModulWebPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\Lecture\ModulWebPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Lecture\ResultDetailPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\Lecture\ResultDetailPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Lecture\ResultPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\Lecture\ResultPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Events\EventIndexPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\Events\EventIndexPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Events\EventPage.xaml"> </Page>
<Generator>MSBuild:Compile</Generator> <Page Include="Pages\Events\EventPage.xaml">
<SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator>
</Page> <SubType>Designer</SubType>
<Page Include="Pages\Mensa\MensaPage.xaml"> </Page>
<Generator>MSBuild:Compile</Generator> <Page Include="Pages\Mensa\MensaPage.xaml">
<SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator>
</Page> <SubType>Designer</SubType>
<Page Include="Pages\News\NewsIndexPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\News\NewsIndexPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\News\NewsPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="Pages\News\NewsPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="pages\StartPage.xaml"> </Page>
<SubType>Designer</SubType> <Page Include="pages\StartPage.xaml">
<Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType>
</Page> <Generator>MSBuild:Compile</Generator>
<Page Include="Pages\Webmail\WebmailPage.xaml"> </Page>
<Generator>MSBuild:Compile</Generator> <Page Include="Pages\Webmail\WebmailPage.xaml">
<SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator>
</Page> <SubType>Designer</SubType>
</ItemGroup> </Page>
<ItemGroup> </ItemGroup>
<None Include="Assets\psd\holo_optionsbuttons.psd" /> <ItemGroup>
<None Include="Assets\psd\iconbutton_effects2.psd" /> <None Include="Assets\psd\holo_optionsbuttons.psd" />
<None Include="packages.config" /> <None Include="Assets\psd\iconbutton_effects2.psd" />
<None Include="Properties\AppManifest.xml" /> <None Include="packages.config" />
<None Include="Properties\WMAppManifest.xml"> <None Include="Properties\AppManifest.xml" />
<SubType>Designer</SubType> <None Include="Properties\WMAppManifest.xml">
</None> <SubType>Designer</SubType>
</ItemGroup> </None>
<ItemGroup> </ItemGroup>
<Content Include="Assets\AlignmentGrid.png" /> <ItemGroup>
<Content Include="Assets\ApplicationIcon.png"> <Content Include="Assets\AlignmentGrid.png" />
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Content Include="Assets\ApplicationIcon.png">
</Content> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Content Include="Assets\icons\campus_159_dark.png" /> </Content>
<Content Include="Assets\icons\campus_159_light.png" /> <Content Include="Assets\icons\campus_159_dark.png" />
<Content Include="Assets\icons\departments_159_dark.png" /> <Content Include="Assets\icons\campus_159_light.png" />
<Content Include="Assets\icons\departments_159_light.png" /> <Content Include="Assets\icons\departments_159_dark.png" />
<Content Include="Assets\icons\homework_159_dark.png" /> <Content Include="Assets\icons\departments_159_light.png" />
<Content Include="Assets\icons\homework_159_light.png" /> <Content Include="Assets\icons\homework_159_dark.png" />
<Content Include="Assets\icons\link_159_dark.png" /> <Content Include="Assets\icons\homework_159_light.png" />
<Content Include="Assets\icons\link_159_light.png" /> <Content Include="Assets\icons\link_159_dark.png" />
<Content Include="Assets\icons\lectures_159_dark.png" /> <Content Include="Assets\icons\link_159_light.png" />
<Content Include="Assets\icons\lectures_159_light.png" /> <Content Include="Assets\icons\lectures_159_dark.png" />
<Content Include="Assets\icons\mensa_159_dark.png" /> <Content Include="Assets\icons\lectures_159_light.png" />
<Content Include="Assets\icons\mensa_159_light.png" /> <Content Include="Assets\icons\mensa_159_dark.png" />
<Content Include="Assets\icons\news_159_dark.png" /> <Content Include="Assets\icons\mensa_159_light.png" />
<Content Include="Assets\icons\news_159_light.png" /> <Content Include="Assets\icons\news_159_dark.png" />
<Content Include="Assets\icons\openhours_159_dark.png" /> <Content Include="Assets\icons\news_159_light.png" />
<Content Include="Assets\icons\openhours_159_light.png" /> <Content Include="Assets\icons\openhours_159_dark.png" />
<Content Include="Assets\icons\schedule_159_dark.png" /> <Content Include="Assets\icons\openhours_159_light.png" />
<Content Include="Assets\icons\schedule_159_light.png" /> <Content Include="Assets\icons\schedule_159_dark.png" />
<Content Include="Assets\icons\student_council_159_dark.png" /> <Content Include="Assets\icons\schedule_159_light.png" />
<Content Include="Assets\icons\student_council_159_light.png" /> <Content Include="Assets\icons\student_council_159_dark.png" />
<Content Include="Assets\icons\webmail_159_dark.png" /> <Content Include="Assets\icons\student_council_159_light.png" />
<Content Include="Assets\icons\webmail_159_light.png" /> <Content Include="Assets\icons\webmail_159_dark.png" />
<Content Include="Assets\Tiles\FlipCycleTileLarge.png"> <Content Include="Assets\icons\webmail_159_light.png" />
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Content Include="Assets\Tiles\FlipCycleTileLarge.png">
</Content> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Content Include="Assets\Tiles\FlipCycleTileMedium.png"> </Content>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Content Include="Assets\Tiles\FlipCycleTileMedium.png">
</Content> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Content Include="Assets\Tiles\FlipCycleTileSmall.png"> </Content>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Content Include="Assets\Tiles\FlipCycleTileSmall.png">
</Content> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Content Include="Assets\Tiles\IconicTileMediumLarge.png"> </Content>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Content Include="Assets\Tiles\IconicTileMediumLarge.png">
</Content> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Content Include="Assets\Tiles\IconicTileSmall.png"> </Content>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Content Include="Assets\Tiles\IconicTileSmall.png">
</Content> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Content Include="README_FIRST.txt" /> </Content>
<Content Include="Toolkit.Content\ApplicationBar.Cancel.png" /> <Content Include="README_FIRST.txt" />
<Content Include="Toolkit.Content\ApplicationBar.Check.png" /> <Content Include="Toolkit.Content\ApplicationBar.Cancel.png" />
<Content Include="Toolkit.Content\ApplicationBar.Delete.png" /> <Content Include="Toolkit.Content\ApplicationBar.Check.png" />
<Content Include="Toolkit.Content\ApplicationBar.Select.png" /> <Content Include="Toolkit.Content\ApplicationBar.Delete.png" />
</ItemGroup> <Content Include="Toolkit.Content\ApplicationBar.Select.png" />
<ItemGroup> </ItemGroup>
<EmbeddedResource Include="Resources\AppResources.resx"> <ItemGroup>
<Generator>PublicResXFileCodeGenerator</Generator> <EmbeddedResource Include="Resources\AppResources.resx">
<LastGenOutput>AppResources.Designer.cs</LastGenOutput> <Generator>PublicResXFileCodeGenerator</Generator>
<SubType>Designer</SubType> <LastGenOutput>AppResources.Designer.cs</LastGenOutput>
</EmbeddedResource> <SubType>Designer</SubType>
<EmbeddedResource Include="Resources\Constants.resx"> </EmbeddedResource>
<Generator>ResXFileCodeGenerator</Generator> <EmbeddedResource Include="Resources\Constants.resx">
<LastGenOutput>Constants.Designer.cs</LastGenOutput> <Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource> <LastGenOutput>Constants.Designer.cs</LastGenOutput>
</ItemGroup> </EmbeddedResource>
<ItemGroup> </ItemGroup>
<Reference Include="Microsoft.Phone.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e, processorArchitecture=MSIL" /> <ItemGroup>
<Reference Include="Microsoft.Phone.Controls.Toolkit"> <Reference Include="Microsoft.Phone.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e, processorArchitecture=MSIL" />
<HintPath>..\packages\WPtoolkit.4.2012.10.30\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll</HintPath> <Reference Include="Microsoft.Phone.Controls.Toolkit">
</Reference> <HintPath>..\packages\WPtoolkit.4.2012.10.30\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll</HintPath>
</ItemGroup> </Reference>
<ItemGroup /> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" /> <ItemGroup />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
Other similar extension points exist, see Microsoft.Common.targets. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<Target Name="BeforeBuild"> Other similar extension points exist, see Microsoft.Common.targets.
</Target> <Target Name="BeforeBuild">
<Target Name="AfterBuild"> </Target>
</Target> <Target Name="AfterBuild">
--> </Target>
<ProjectExtensions /> -->
<ProjectExtensions />
</Project> </Project>

View File

@@ -17,7 +17,7 @@ namespace CampusAppWP8.Feed.Departments
public System.Collections.ObjectModel.ObservableCollection<FacultyModel> _faculties { get; set; } public System.Collections.ObjectModel.ObservableCollection<FacultyModel> _faculties { get; set; }
/// <summary> /// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if model is up-to-date, otherwise false</returns> /// <returns>true, if model is up-to-date, otherwise false</returns>
protected override bool CheckIsModelUpToDate() protected override bool CheckIsModelUpToDate()
@@ -26,7 +26,7 @@ namespace CampusAppWP8.Feed.Departments
} }
/// <summary> /// <summary>
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if file is up-to-date, otherwise false</returns> /// <returns>true, if file is up-to-date, otherwise false</returns>
protected override bool CheckIsFileUpToDate() protected override bool CheckIsFileUpToDate()

View File

@@ -21,7 +21,7 @@ namespace CampusAppWP8.Feed.Events
{ {
} }
/// <summary> /// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if model is up-to-date, otherwise false</returns> /// <returns>true, if model is up-to-date, otherwise false</returns>
protected override bool CheckIsModelUpToDate() protected override bool CheckIsModelUpToDate()
@@ -30,7 +30,7 @@ namespace CampusAppWP8.Feed.Events
} }
/// <summary> /// <summary>
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if file is up-to-date, otherwise false</returns> /// <returns>true, if file is up-to-date, otherwise false</returns>
protected override bool CheckIsFileUpToDate() protected override bool CheckIsFileUpToDate()

View File

@@ -0,0 +1,67 @@
//-----------------------------------------------------------------------
// <copyright file="LectureFeed.cs" company="BTU/IIT">
// Company copyright tag.
// </copyright>
// <author>stubbfel</author>
// <sience>13.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Feed.Lecture
{
using System;
using CampusAppWP8.Model.Lecture;
using CampusAppWP8.Utility;
/// <summary>
/// Class for the feed of the Lecture
/// </summary>
/// <remarks>
/// need the XmlAPI
/// </remarks>
public class LectureFeed : XmlFeed<LectureList>
{
/// <summary>
/// Initializes a new instance of the <see cref="LectureFeed" /> class.
/// </summary>
/// <param name="url">the RequestUrl</param>
public LectureFeed(Uri url)
: base(url, "Lecture.xml")
{
this.validRootName = "lsf_auszug";
}
/// <summary>
/// Method create the RequestUrl
/// </summary>
/// <remarks>
/// have to refactors
/// </remarks>
/// <param name="semester">value of the semester</param>
/// <param name="degree">value of the degree</param>
/// <param name="course">value of the course</param>
/// <param name="from">value of the from</param>
/// <param name="to">value of the to</param>
/// <returns>return the requestUrl</returns>
public static Uri CreateFeedUrl(string semester, string degree, string course, string from, string to)
{
return new Uri("http://www.zv.tu-cottbus.de/LSFveranst/LSF4?Semester=" + semester + "&Abschluss=" + degree + "&Studiengang=" + course + "&Von=" + from + "&Bis=" + to);
}
/// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary>
/// <returns>true, if model is up-to-date, otherwise false</returns>
protected override bool CheckIsModelUpToDate()
{
return false;
}
/// <summary>
/// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
/// </summary>
/// <returns>true, if file is up-to-date, otherwise false</returns>
protected override bool CheckIsFileUpToDate()
{
return false;
}
}
}

View File

@@ -5,7 +5,7 @@
// <author>stubbfel</author> // <author>stubbfel</author>
// <sience>03.05.2013</sience> // <sience>03.05.2013</sience>
//---------------------------------------------------------------------- //----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Mensa namespace CampusAppWP8.Feed.Mensa
{ {
using System; using System;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@@ -34,7 +34,7 @@ namespace CampusAppWP8.Pages.Mensa
#region Protected #region Protected
/// <summary> /// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if model is up-to-date, otherwise false</returns> /// <returns>true, if model is up-to-date, otherwise false</returns>
protected override bool CheckIsModelUpToDate() protected override bool CheckIsModelUpToDate()
@@ -44,7 +44,7 @@ namespace CampusAppWP8.Pages.Mensa
} }
/// <summary> /// <summary>
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if file is up-to-date, otherwise false</returns> /// <returns>true, if file is up-to-date, otherwise false</returns>
protected override bool CheckIsFileUpToDate() protected override bool CheckIsFileUpToDate()

View File

@@ -22,7 +22,7 @@ namespace CampusAppWP8.Feed.News
} }
/// <summary> /// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if model is up-to-date, otherwise false</returns> /// <returns>true, if model is up-to-date, otherwise false</returns>
protected override bool CheckIsModelUpToDate() protected override bool CheckIsModelUpToDate()
@@ -31,7 +31,7 @@ namespace CampusAppWP8.Feed.News
} }
/// <summary> /// <summary>
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/> /// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
/// </summary> /// </summary>
/// <returns>true, if file is up-to-date, otherwise false</returns> /// <returns>true, if file is up-to-date, otherwise false</returns>
protected override bool CheckIsFileUpToDate() protected override bool CheckIsFileUpToDate()

View File

@@ -1,26 +1,48 @@
using CampusAppWP8.Utility; //-----------------------------------------------------------------------
using System; // <copyright file="LectureActivity.cs" company="BTU/IIT">
using System.Collections.Generic; // Company copyright tag.
using System.Collections.ObjectModel; // </copyright>
using System.Linq; // <author>stubbfel</author>
using System.Text; // <sience>13.06.2013</sience>
using System.Threading.Tasks; //----------------------------------------------------------------------
using System.Xml.Serialization;
namespace CampusAppWP8.Model.Lecture namespace CampusAppWP8.Model.Lecture
{ {
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using CampusAppWP8.Utility;
/// <summary>
/// Model for a Activity
/// </summary>
public class LectureActivity public class LectureActivity
{ {
#region #region Members
/// <summary>
/// List of lecturer
/// </summary>
private ObservableCollection<LectureLecturer> lecturer; private ObservableCollection<LectureLecturer> lecturer;
/// <summary>
/// a formatted string for the names of the lecturers
/// </summary>
private string lecturerString; private string lecturerString;
/// <summary>
/// a formatted string for the names of the courses
/// </summary>
private string courseString; private string courseString;
/// <summary>
/// a formatted string for the topic of the lecture
/// </summary>
private string topic; private string topic;
#endregion #endregion
#region Constructor #region Constructor
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="LectureList" /> class. /// Initializes a new instance of the <see cref="LectureActivity" /> class.
/// </summary> /// </summary>
public LectureActivity() public LectureActivity()
{ {
@@ -30,41 +52,66 @@ namespace CampusAppWP8.Model.Lecture
#region Proberty #region Proberty
/// <summary>
/// Gets or sets the type of the activity
/// </summary>
[XmlElement("art")] [XmlElement("art")]
public string Type { get; set; } public string Type { get; set; }
/// <summary>
/// Gets or sets the id of the activity
/// </summary>
[XmlAttribute("id")] [XmlAttribute("id")]
public int Id { get; set; } public int Id { get; set; }
/// <summary>
/// Gets or sets semester of the activity
/// </summary>
[XmlElement("semester")] [XmlElement("semester")]
public int Semester { get; set; } public int Semester { get; set; }
/// <summary>
/// Gets or sets the contact hour
/// </summary>
[XmlElement("sws")] [XmlElement("sws")]
public string SWS { get; set; } public string SWS { get; set; }
/// <summary>
/// Gets or sets LectureModule
/// </summary>
[XmlElement("modul")] [XmlElement("modul")]
public LectureModul Modul { get; set; } public LectureModule Modul { get; set; }
/// <summary>
/// Gets or sets the lecturers
/// </summary>
[XmlElement("lehrperson")] [XmlElement("lehrperson")]
public ObservableCollection<LectureLecturer> Lecturer { public ObservableCollection<LectureLecturer> Lecturer
{
get get
{ {
return lecturer; return this.lecturer;
} }
set set
{ {
if (value != lecturer) if (value != this.lecturer)
{ {
lecturer = value; this.lecturer = value;
} }
} }
} }
public string LecturerString { /// <summary>
/// Gets or sets the formatted string of the lecturers
/// </summary>
public string LecturerString
{
get get
{ {
return this.lecturerString; return this.lecturerString;
} }
set set
{ {
if (value != this.lecturerString) if (value != this.lecturerString)
@@ -74,12 +121,16 @@ namespace CampusAppWP8.Model.Lecture
} }
} }
/// <summary>
/// Gets or sets formatted string of the courses
/// </summary>
public string CourseString public string CourseString
{ {
get get
{ {
return this.courseString; return this.courseString;
} }
set set
{ {
if (value != this.courseString) if (value != this.courseString)
@@ -88,53 +139,77 @@ namespace CampusAppWP8.Model.Lecture
} }
} }
} }
/// <summary>
/// Gets or sets the courses
/// </summary>
[XmlElement("studiengang")] [XmlElement("studiengang")]
public ObservableCollection<LectureCourse> Course { get; set; } public ObservableCollection<LectureCourse> Course { get; set; }
/// <summary>
/// Gets or sets the dates of the activity
/// </summary>
[XmlElement("termin")] [XmlElement("termin")]
public ObservableCollection<LectureDate> Dates { get; set; } public ObservableCollection<LectureDate> Dates { get; set; }
/// <summary>
/// Gets or sets the Department
/// </summary>
[XmlElement("zugeordnete_einrichtung")] [XmlElement("zugeordnete_einrichtung")]
public string Department { get; set; } public string Department { get; set; }
/// <summary>
/// Gets or sets the topic of the Lecture
/// </summary>
[XmlElement("lehrinhalt")] [XmlElement("lehrinhalt")]
public string Topic public string Topic
{ {
get get
{ {
return topic; return this.topic;
} }
set set
{ {
if (value != topic) if (value != this.topic)
{ {
topic = StringManager.StripHTML(value); this.topic = StringManager.StripHTML(value);
} }
} }
} }
#endregion #endregion
public void createLectureString() #region Methods
/// <summary>
/// Method create a formatted string of the LecturerList
/// </summary>
public void CreateLectureString()
{ {
string result = string.Empty; string result = string.Empty;
foreach (LectureLecturer tmpLecturer in Lecturer) foreach (LectureLecturer tmpLecturer in this.Lecturer)
{ {
result += tmpLecturer.ToString() + "\n"; result += tmpLecturer.ToString() + "\n";
} }
this.LecturerString = result.TrimEnd('\n'); this.LecturerString = result.TrimEnd('\n');
} }
public void createCourseString() /// <summary>
/// Method create a formatted string of the CourseList
/// </summary>
public void CreateCourseString()
{ {
string result = string.Empty; string result = string.Empty;
foreach (LectureCourse course in Course) foreach (LectureCourse course in this.Course)
{ {
result += course.Title + "\n"; result += course.Title + "\n";
} }
this.CourseString = result.TrimEnd('\n'); this.CourseString = result.TrimEnd('\n');
} }
#endregion
} }
} }

View File

@@ -1,17 +1,29 @@
using System; // <copyright file="LectureCourse.cs" company="BTU/IIT">
using System.Collections.Generic; // Company copyright tag.
using System.Linq; // </copyright>
using System.Text; // <author>stubbfel</author>
using System.Xml.Serialization; // <sience>10.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Lecture namespace CampusAppWP8.Model.Lecture
{ {
public class LectureCourse using System.Xml.Serialization;
/// <summary>
/// Model for a course
/// </summary>
public class LectureCourse
{ {
public LectureCourse() /// <summary>
{ /// Initializes a new instance of the <see cref="LectureCourse" /> class.
} /// </summary>
[XmlElement("bezeichnung")] public LectureCourse()
public string Title {get;set;} {
}
/// <summary>
/// Gets or sets the title of the course
/// </summary>
[XmlElement("bezeichnung")]
public string Title { get; set; }
} }
} }

View File

@@ -1,29 +1,65 @@
using System; //-----------------------------------------------------------------------
using System.Collections.Generic; // <copyright file="LectureDate.cs" company="BTU/IIT">
using System.Linq; // Company copyright tag.
using System.Text; // </copyright>
using System.Xml.Serialization; // <author>stubbfel</author>
// <sience>10.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Lecture namespace CampusAppWP8.Model.Lecture
{ {
using System.Xml.Serialization;
/// <summary>
/// Model for the date of an activity
/// </summary>
public class LectureDate public class LectureDate
{ {
/// <summary>
/// Initializes a new instance of the <see cref="LectureDate" /> class.
/// </summary>
public LectureDate() public LectureDate()
{ {
} }
/// <summary>
/// Gets or sets WeekDay
/// </summary>
[XmlElement("wochentag")] [XmlElement("wochentag")]
public string WeekDay { get; set; } public string WeekDay { get; set; }
/// <summary>
/// Gets or sets From
/// </summary>
[XmlElement("von")] [XmlElement("von")]
public string From { get; set; } public string From { get; set; }
/// <summary>
/// Gets or sets To
/// </summary>
[XmlElement("bis")] [XmlElement("bis")]
public string To { get; set; } public string To { get; set; }
/// <summary>
/// Gets or sets Interval
/// </summary>
[XmlElement("rhythmus")] [XmlElement("rhythmus")]
public string Interval { get; set; } public string Interval { get; set; }
/// <summary>
/// Gets or sets Room
/// </summary>
[XmlElement("raum")] [XmlElement("raum")]
public string Room { get; set; } public string Room { get; set; }
/// <summary>
/// Gets or sets StartDate
/// </summary>
[XmlElement("anfangsdatum")] [XmlElement("anfangsdatum")]
public string StarDate { get; set; } public string StartDate { get; set; }
/// <summary>
/// Gets or sets EndDate
/// </summary>
[XmlElement("enddatum")] [XmlElement("enddatum")]
public string EndDate { get; set; } public string EndDate { get; set; }

View File

@@ -1,45 +1,71 @@
using System; //-----------------------------------------------------------------------
using System.Collections.Generic; // <copyright file="LectureLecturer.cs" company="BTU/IIT">
using System.Linq; // Company copyright tag.
using System.Text; // </copyright>
using System.Xml.Serialization; // <author>stubbfel</author>
// <sience>10.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Lecture namespace CampusAppWP8.Model.Lecture
{ {
using System.Xml.Serialization;
/// <summary>
/// Model for a lecturer
/// </summary>
public class LectureLecturer public class LectureLecturer
{ {
/// <summary>
/// Initializes a new instance of the <see cref="LectureLecturer" /> class.
/// </summary>
public LectureLecturer() public LectureLecturer()
{ {
} }
/// <summary>
/// Gets or sets the FirstName of a lecturer
/// </summary>
[XmlElement("vorname")] [XmlElement("vorname")]
public string FirstName { get; set; } public string FirstName { get; set; }
/// <summary>
/// Gets or sets the LastName of a lecturer
/// </summary>
[XmlElement("name")] [XmlElement("name")]
public string LastName { get; set; } public string LastName { get; set; }
/// <summary>
/// Gets or sets the title of a lecturer
/// </summary>
[XmlElement("titel")] [XmlElement("titel")]
public string Title { get; set; } public string Title { get; set; }
/// <summary>
/// Gets or sets the Responsibility of a lecturer
/// </summary>
[XmlAttribute("zustaendigkeit")] [XmlAttribute("zustaendigkeit")]
public string Responsibility { get; set; } public string Responsibility { get; set; }
/// <summary>
/// Method overrides the base ToString() and create an formatted string of the lecturer
/// </summary>
/// <returns>returns a string like: [Title] FirstName LastName [(Responsibility)]</returns>
public override string ToString() public override string ToString()
{ {
string result = string.Empty; string result = string.Empty;
if (!Title.Equals(string.Empty)) if (!this.Title.Equals(string.Empty))
{ {
result += Title + " "; result += this.Title + " ";
} }
result += FirstName + " "; result += this.FirstName + " ";
result += LastName + " "; result += this.LastName + " ";
if (!Responsibility.Equals(string.Empty)) if (!this.Responsibility.Equals(string.Empty))
{ {
result += "(" + Responsibility + ") "; result += "(" + this.Responsibility + ") ";
} }
return result; return result;
} }
} }

View File

@@ -7,15 +7,16 @@
//---------------------------------------------------------------------- //----------------------------------------------------------------------
namespace CampusAppWP8.Model.Lecture namespace CampusAppWP8.Model.Lecture
{ {
using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Xml.Serialization;
using System.Linq; using System.Linq;
using System.Xml.Serialization;
/// <summary>
/// Model for a List of LectureActivity
/// </summary>
[XmlRoot("lsf_auszug")] [XmlRoot("lsf_auszug")]
public class LectureList public class LectureList
{ {
#region Constructor #region Constructor
/// <summary> /// <summary>
@@ -29,6 +30,9 @@ namespace CampusAppWP8.Model.Lecture
#region Proberty #region Proberty
/// <summary>
/// Gets or sets List of the activities
/// </summary>
[XmlArray("veranstaltungsliste")] [XmlArray("veranstaltungsliste")]
[XmlArrayItem("veranstaltung")] [XmlArrayItem("veranstaltung")]
public ObservableCollection<LectureActivity> Activities { get; set; } public ObservableCollection<LectureActivity> Activities { get; set; }
@@ -37,12 +41,17 @@ namespace CampusAppWP8.Model.Lecture
#region Methods #region Methods
/// <summary>
/// Method return a certain activity
/// </summary>
/// <param name="id"> id of the activity</param>
/// <returns> the activity (FirstOrDefault)</returns>
public LectureActivity GetActivity(int id) public LectureActivity GetActivity(int id)
{ {
LectureActivity activity = Activities.Where(p => p.Id == id).First(); LectureActivity activity = this.Activities.Where(p => p.Id == id).FirstOrDefault();
return activity; return activity;
} }
#endregion
#endregion
} }
} }

View File

@@ -1,70 +0,0 @@
//-----------------------------------------------------------------------
// <copyright file="LectureModul.cs" company="BTU/IIT">
// Company copyright tag.
// </copyright>
// <author>stubbfel</author>
// <sience>10.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Lecture
{
using CampusAppWP8.Resources;
using System;
using System.Xml.Serialization;
public class LectureModul
{
#region Members
private int number;
private Uri url;
#endregion
#region Constructor
public LectureModul()
{
}
#endregion
#region Property
[XmlElement("titel")]
public string Title {get; set;}
[XmlElement("nummer")]
public int Number{
get
{
return this.number;
}
set
{
if (value != this.number)
{
this.number = value;
this.createUrl();
}
}
}
public Uri Url{
get
{
return url;
}
}
#endregion
#region Methods
private void createUrl()
{
this.url = new Uri(Constants.UrlLectureModulBaseAddr + number.ToString());
}
#endregion
}
}

View File

@@ -0,0 +1,98 @@
//-----------------------------------------------------------------------
// <copyright file="LectureModule.cs" company="BTU/IIT">
// Company copyright tag.
// </copyright>
// <author>stubbfel</author>
// <sience>10.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Lecture
{
using System;
using System.Xml.Serialization;
using CampusAppWP8.Resources;
/// <summary>
/// Model for the module of an lecture
/// </summary>
public class LectureModule
{
#region Members
/// <summary>
/// Number of the module (like an id)
/// </summary>
private int number;
/// <summary>
/// Url to the website of the module
/// </summary>
private Uri url;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="LectureModule" /> class.
/// </summary>
public LectureModule()
{
}
#endregion
#region Property
/// <summary>
/// Gets or sets the title of the module
/// </summary>
[XmlElement("titel")]
public string Title { get; set; }
/// <summary>
/// Gets or sets the number of the module and create the URL
/// </summary>
[XmlElement("nummer")]
public int Number
{
get
{
return this.number;
}
set
{
if (value != this.number)
{
this.number = value;
this.CreateUrl();
}
}
}
/// <summary>
/// Gets the URL of the module
/// </summary>
public Uri Url
{
get
{
return this.url;
}
}
#endregion
#region Methods
/// <summary>
/// Method create the url of the module
/// </summary>
private void CreateUrl()
{
this.url = new Uri(Constants.UrlLectureModulBaseAddr + this.number.ToString());
}
#endregion
}
}

View File

@@ -0,0 +1,25 @@
//-----------------------------------------------------------------------
// <copyright file="ListPickerItemModel.cs" company="BTU/IIT">
// Company copyright tag.
// </copyright>
// <author>stubbfel</author>
// <sience>13.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Model.Utility
{
/// <summary>
/// Model for the ListPickerItems
/// </summary>
public class ListPickerItemModel
{
/// <summary>
/// Gets or sets the Value of an Item
/// </summary>
public string Value { get; set; }
/// <summary>
/// Gets or sets the Text (caption) of an Item
/// </summary>
public string Text { get; set; }
}
}

View File

@@ -1,5 +1,4 @@
using CampusAppWP8.Feed.Departments; using CampusAppWP8.Feed.Departments;
using CampusAppWP8.Pages.Departments;
using CampusAppWP8.Utility; using CampusAppWP8.Utility;
using Microsoft.Phone.Controls; using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks; using Microsoft.Phone.Tasks;

View File

@@ -1,4 +1,4 @@
using CampusAppWP8.Feed.Events; using CampusAppWP8.Pages.Events;
using CampusAppWP8.Model.events_news; using CampusAppWP8.Model.events_news;
using CampusAppWP8.Utility; using CampusAppWP8.Utility;
using Microsoft.Phone.Controls; using Microsoft.Phone.Controls;
@@ -9,6 +9,7 @@ using System.Linq;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Navigation; using System.Windows.Navigation;
using CampusAppWP8.Feed.Events;
namespace CampusAppWP8.Pages.Events namespace CampusAppWP8.Pages.Events
{ {

View File

@@ -1,37 +0,0 @@
using CampusAppWP8.Model.Lecture;
using CampusAppWP8.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CampusAppWP8.Pages.Lecture
{
public class LectureFeed : XmlFeed<LectureList>
{
public LectureFeed()
: base(new Uri("http://www.zv.tu-cottbus.de/LSFveranst/LSF4?Semester=20112&Abschluss=82&Studiengang=079&Von=1&Bis=2"), "Lecture.xml")
{
this.validRootName = "lsf_auszug";
}
/// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/>
/// </summary>
/// <returns>true, if model is up-to-date, otherwise false</returns>
protected override bool CheckIsModelUpToDate()
{
return false;
}
/// <summary>
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/>
/// </summary>
/// <returns>true, if file is up-to-date, otherwise false</returns>
protected override bool CheckIsFileUpToDate()
{
return true;
}
}
}

View File

@@ -1,5 +1,5 @@
<phone:PhoneApplicationPage <phone:PhoneApplicationPage
x:Class="CampusAppWP8.Pages.lecture.Lecture" x:Class="CampusAppWP8.Pages.Lecture.LecturePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
@@ -10,11 +10,10 @@
FontFamily="{StaticResource PhoneFontFamilyNormal}" FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}" FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
OrientationChanged="PhoneApplicationPage_OrientationChanged"
mc:Ignorable="d" mc:Ignorable="d"
shell:SystemTray.IsVisible="True"> shell:SystemTray.IsVisible="True">
<!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden--> <!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden-->
<Grid x:Name="LayoutRoot" Background="Transparent"> <Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions> <Grid.RowDefinitions>
@@ -28,6 +27,7 @@
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,0,0,2" > <Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,0,0,2" >
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Title, Source={StaticResource LocalizedStrings}}"/> <TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Title, Source={StaticResource LocalizedStrings}}"/>
</Border> </Border>
<ProgressBar Name="ProgressBar" Visibility="Collapsed" IsIndeterminate="True"/>
</StackPanel> </StackPanel>
@@ -48,64 +48,122 @@
<StackPanel Grid.Row="0" > <StackPanel Grid.Row="0" >
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_LectureName, Source={StaticResource LocalizedStrings}}"/> <TextBlock Text="{Binding Path=LocalizedResources.LectureApp_LectureName, Source={StaticResource LocalizedStrings}}"/>
<TextBox /> <TextBox Name="ActivtyName"/>
</StackPanel> </StackPanel>
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="1"> <Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="1">
<StackPanel > <StackPanel >
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Course, Source={StaticResource LocalizedStrings}}"/> <TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Course, Source={StaticResource LocalizedStrings}}"/>
<toolkit:ListPicker> <!-- Listpicket of courses -->
<toolkit:ListPickerItem Content="aaa" /> <toolkit:ListPicker Name="Course" ExpansionMode="FullScreenOnly" FullModeHeader="{Binding Path=LocalizedResources.LectureApp_ListPickerHeaderCourse, Source={StaticResource LocalizedStrings}}" >
<toolkit:ListPickerItem Content="bbb" /> <toolkit:ListPicker.ItemTemplate>
<toolkit:ListPickerItem Content="ccc" /> <DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.ItemTemplate>
<toolkit:ListPicker.FullModeItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.FullModeItemTemplate>
</toolkit:ListPicker> </toolkit:ListPicker>
</StackPanel> </StackPanel>
</Border> </Border>
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="2"> <Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="2">
<StackPanel > <StackPanel >
<!-- Listpicket of degree-->
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Degree, Source={StaticResource LocalizedStrings}}"/> <TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Degree, Source={StaticResource LocalizedStrings}}"/>
<toolkit:ListPicker> <toolkit:ListPicker Name="Degree">
<toolkit:ListPickerItem Content="Bachelor" /> <toolkit:ListPicker.ItemTemplate>
<toolkit:ListPickerItem Content="Master" /> <DataTemplate>
<toolkit:ListPickerItem Content="Diplom" /> <StackPanel>
</toolkit:ListPicker> <TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.ItemTemplate>
<toolkit:ListPicker.FullModeItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.FullModeItemTemplate>
</toolkit:ListPicker>
</StackPanel> </StackPanel>
</Border> </Border>
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="3"> <Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="3">
<StackPanel > <StackPanel >
<!-- Listpicket of semesters(from to) -->
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Term, Source={StaticResource LocalizedStrings}}"/> <TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Term, Source={StaticResource LocalizedStrings}}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<toolkit:ListPicker Width="60"> <toolkit:ListPicker Width="60" Name="From" >
<toolkit:ListPickerItem Content="1" /> <toolkit:ListPicker.ItemTemplate>
<toolkit:ListPickerItem Content="2" /> <DataTemplate>
<toolkit:ListPickerItem Content="3" /> <StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.ItemTemplate>
<toolkit:ListPicker.FullModeItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.FullModeItemTemplate>
</toolkit:ListPicker> </toolkit:ListPicker>
<TextBlock Text="bis" HorizontalAlignment="Center" VerticalAlignment="Center"/> <TextBlock Text="bis" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<toolkit:ListPicker Width="60"> <toolkit:ListPicker Width="60" Name="To">
<toolkit:ListPickerItem Content="1" /> <toolkit:ListPicker.ItemTemplate>
<toolkit:ListPickerItem Content="2" /> <DataTemplate>
<toolkit:ListPickerItem Content="3" /> <StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.ItemTemplate>
<toolkit:ListPicker.FullModeItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.FullModeItemTemplate>
</toolkit:ListPicker> </toolkit:ListPicker>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Border> </Border>
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="4"> <Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="4">
<StackPanel> <StackPanel>
<!-- Listpicket of semster -->
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Semester, Source={StaticResource LocalizedStrings}}"/> <TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Semester, Source={StaticResource LocalizedStrings}}"/>
<toolkit:ListPicker> <toolkit:ListPicker Name="Semester">
<toolkit:ListPickerItem Content="SoSe 13" /> <toolkit:ListPicker.ItemTemplate>
<toolkit:ListPickerItem Content="WiSe 13/14" /> <DataTemplate>
<toolkit:ListPickerItem Content="SoSe 14" /> <StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.ItemTemplate>
<toolkit:ListPicker.FullModeItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Text}"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.FullModeItemTemplate>
</toolkit:ListPicker> </toolkit:ListPicker>
</StackPanel> </StackPanel>
</Border> </Border>
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="5"> <Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="5">
<Button Name="SearchButton"> <Button Name="SearchButton" Click="SendRequest">
<Image Source="/Toolkit.Content/ApplicationBar.Select.png" Width="100"> <Image Source="/Toolkit.Content/ApplicationBar.Select.png" Width="100">
</Image> </Image>
</Button> </Button>
</Border> </Border>
</Grid> </Grid>
</ScrollViewer> </ScrollViewer>
</Grid> </Grid>

View File

@@ -1,28 +1,168 @@
using System; //-----------------------------------------------------------------------
using System.Collections.Generic; // <copyright file="LecturePage.xaml.cs" company="BTU/IIT">
using System.Linq; // Company copyright tag.
using System.Net; // </copyright>
using System.Windows; // <author>stubbfel</author>
using System.Windows.Controls; // <sience>13.06.2013</sience>
using System.Windows.Navigation; //----------------------------------------------------------------------
using Microsoft.Phone.Controls; namespace CampusAppWP8.Pages.Lecture
using Microsoft.Phone.Shell;
using CampusAppWP8.Pages.Lecture;
using CampusAppWP8.Utility;
namespace CampusAppWP8.Pages.lecture
{ {
public partial class Lecture : PhoneApplicationPage using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.Feed.Lecture;
using CampusAppWP8.Model.Lecture;
using CampusAppWP8.Model.Utility;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
using Microsoft.Phone.Controls;
/// <summary>
/// Class for the LecturePage
/// </summary>
public partial class LecturePage : PhoneApplicationPage
{ {
public Lecture() /// <summary>
/// actual LectureFeed
/// </summary>
private LectureFeed feed;
/// <summary>
/// List for the courses of the BTU
/// </summary>
/// <remarks>
/// need to be extend to full list
/// </remarks>
private List<ListPickerItemModel> courseList = new List<ListPickerItemModel>()
{ {
InitializeComponent(); new ListPickerItemModel()
LectureFeed test = new LectureFeed(); {
test.LoadFeed(); Text = "Architektur", Value = "013"
},
new ListPickerItemModel()
{
Text = "Bauingenieurwesen", Value = "017"
},
new ListPickerItemModel()
{
Text = "Betriebswirtschaftslehre", Value = "021"
}
};
/// <summary>
/// List of the degrees
/// </summary>
private List<ListPickerItemModel> degreeList = new List<ListPickerItemModel>()
{
new ListPickerItemModel()
{
Text = AppResources.Degree_Bachelor, Value = "82"
},
new ListPickerItemModel()
{
Text = AppResources.Degree_Master, Value = "88"
},
new ListPickerItemModel()
{
Text = AppResources.Degree_Diploma, Value = "11"
}
};
/// <summary>
/// List of the semester
/// </summary>
private List<ListPickerItemModel> semesterList = new List<ListPickerItemModel>()
{
new ListPickerItemModel()
{
Text = "SoSe 13", Value = "20131"
},
new ListPickerItemModel()
{
Text = "WiSe 13/14", Value = "20132"
},
new ListPickerItemModel()
{
Text = "SoSe 14", Value = "20141"
}
};
/// <summary>
/// List for the number of semester
/// </summary>
private List<ListPickerItemModel> numberList = new List<ListPickerItemModel>()
{
new ListPickerItemModel()
{
Text = "1", Value = "1"
},
new ListPickerItemModel()
{
Text = "2", Value = "2"
},
new ListPickerItemModel()
{
Text = "3", Value = "3"
},
new ListPickerItemModel()
{
Text = "4", Value = "4"
}
};
/// <summary>
/// Initializes a new instance of the <see cref="LecturePage" /> class.
/// </summary>
public LecturePage()
{
this.InitializeComponent();
this.SetupListPickers();
} }
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e) /// <summary>
/// Method sets the ItemSource of the ListPickers
/// </summary>
private void SetupListPickers()
{ {
this.Course.ItemsSource = this.courseList;
this.Degree.ItemsSource = this.degreeList;
this.From.ItemsSource = this.numberList;
this.To.ItemsSource = this.numberList;
this.Semester.ItemsSource = this.semesterList;
}
/// <summary>
/// Method send a request to the Feed
/// </summary>
/// <remarks>
/// have to refactors
/// </remarks>
/// <param name="sender">sender of this event</param>
/// <param name="e"> events arguments</param>
private void SendRequest(object sender, RoutedEventArgs e)
{
ListPickerItemModel semester = (ListPickerItemModel)this.Semester.SelectedItem;
ListPickerItemModel degree = (ListPickerItemModel)this.Degree.SelectedItem;
ListPickerItemModel course = (ListPickerItemModel)this.Course.SelectedItem;
ListPickerItemModel from = (ListPickerItemModel)this.From.SelectedItem;
ListPickerItemModel to = (ListPickerItemModel)this.To.SelectedItem;
Uri request = LectureFeed.CreateFeedUrl(semester.Value, degree.Value, course.Value, from.Value, to.Value);
this.feed = new LectureFeed(request);
this.feed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(this.FeedIsReady);
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
this.feed.LoadFeed();
}
/// <summary>
/// Method will be execute if the feed is ready
/// </summary>
private void FeedIsReady()
{
App.SaveToIsolatedStorage<LectureList>(Constants.IsolatedStorageLectureModel, this.feed.Model);
this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
Uri url = new Uri(Constants.PathResultPage, UriKind.Relative);
NavigationService.Navigate(url);
} }
} }
} }

View File

@@ -50,8 +50,8 @@ namespace CampusAppWP8.Pages.Lecture
if (list != null) if (list != null)
{ {
LectureActivity activity = list.GetActivity(activityId); LectureActivity activity = list.GetActivity(activityId);
activity.createLectureString(); activity.CreateLectureString();
activity.createCourseString(); activity.CreateCourseString();
this.ContentPanel.DataContext = activity; this.ContentPanel.DataContext = activity;
} }
} }

View File

@@ -13,7 +13,6 @@ namespace CampusAppWP8.Pages.Lecture
using System.Windows.Navigation; using System.Windows.Navigation;
using CampusAppWP8.Model.Lecture; using CampusAppWP8.Model.Lecture;
using CampusAppWP8.Resources; using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
using Microsoft.Phone.Controls; using Microsoft.Phone.Controls;
/// <summary> /// <summary>
@@ -21,11 +20,6 @@ namespace CampusAppWP8.Pages.Lecture
/// </summary> /// </summary>
public partial class ResultPage : PhoneApplicationPage public partial class ResultPage : PhoneApplicationPage
{ {
/// <summary>
/// actual LectureFeed
/// </summary>
private LectureFeed feed;
/// <summary> /// <summary>
/// Reference of the button which was lastClicked /// Reference of the button which was lastClicked
/// </summary> /// </summary>
@@ -37,18 +31,17 @@ namespace CampusAppWP8.Pages.Lecture
public ResultPage() public ResultPage()
{ {
this.InitializeComponent(); this.InitializeComponent();
this.feed = new LectureFeed();
this.feed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(this.FeedIsReady);
this.feed.LoadFeed();
} }
/// <summary> /// <summary>
/// Method will be execute if the feed is ready /// Override the OnNavigatedTo method
/// </summary> /// </summary>
private void FeedIsReady() /// <param name="e">Arguments of navigation</param>
protected override void OnNavigatedTo(NavigationEventArgs e)
{ {
this.ResultList.ItemsSource = this.feed.Model.Activities; LectureList list = App.LoadFromIsolatedStorage<LectureList>(Constants.IsolatedStorageLectureModel);
App.SaveToIsolatedStorage<LectureList>(Constants.IsolatedStorageLectureModel, this.feed.Model); this.ResultList.ItemsSource = list.Activities;
base.OnNavigatedTo(e);
} }
/// <summary> /// <summary>
@@ -91,8 +84,8 @@ namespace CampusAppWP8.Pages.Lecture
/// <param name="parent">Reference of the StackPanel which include the buttons </param> /// <param name="parent">Reference of the StackPanel which include the buttons </param>
private void HideOptions(StackPanel parent) private void HideOptions(StackPanel parent)
{ {
Button link = (Button)parent.FindName("Link"); UIElement link = (UIElement)parent.FindName("Link");
Button details = (Button)parent.FindName("Details"); UIElement details = (UIElement)parent.FindName("Details");
this.HideVisibility(link); this.HideVisibility(link);
this.HideVisibility(details); this.HideVisibility(details);
} }
@@ -139,7 +132,7 @@ namespace CampusAppWP8.Pages.Lecture
private void ShowModulWebPage(object sender, RoutedEventArgs e) private void ShowModulWebPage(object sender, RoutedEventArgs e)
{ {
Button btn = (Button)sender; Button btn = (Button)sender;
Uri url = new Uri(Constants.PathLectureModulWebPage + Constants.Paramseparator + Constants.ParamLectureModulNumber + "=" + btn.Tag, UriKind.Relative); Uri url = new Uri(Constants.PathLectureModulWebPage + "?" + Constants.ParamLectureModulNumber + "=" + btn.Tag, UriKind.Relative);
NavigationService.Navigate(url); NavigationService.Navigate(url);
} }
@@ -151,7 +144,7 @@ namespace CampusAppWP8.Pages.Lecture
private void ShowDetailPage(object sender, RoutedEventArgs e) private void ShowDetailPage(object sender, RoutedEventArgs e)
{ {
Button btn = (Button)sender; Button btn = (Button)sender;
Uri url = new Uri(Constants.PathResultDetailWebPage + Constants.Paramseparator + Constants.ParamLectureActivityId + "=" + btn.Tag, UriKind.Relative); Uri url = new Uri(Constants.PathResultDetailPage + "?" + Constants.ParamLectureActivityId + "=" + btn.Tag, UriKind.Relative);
NavigationService.Navigate(url); NavigationService.Navigate(url);
} }
} }

View File

@@ -12,6 +12,7 @@ using CampusAppWP8.Model.events_news;
using CampusAppWP8.Utility; using CampusAppWP8.Utility;
using CampusAppWP8.Resources; using CampusAppWP8.Resources;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using CampusAppWP8.Pages.News;
using CampusAppWP8.Feed.News; using CampusAppWP8.Feed.News;
namespace CampusAppWP8.Pages.News namespace CampusAppWP8.Pages.News

View File

@@ -1,5 +1,5 @@
<phone:PhoneApplicationPage <phone:PhoneApplicationPage
x:Class="CampusAppWP8.Pages.Webmail.Webmail" x:Class="CampusAppWP8.Pages.Webmail.WebmailPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"

View File

@@ -1,20 +1,36 @@
using Microsoft.Phone.Controls; //-----------------------------------------------------------------------
using System; // <copyright file="WebmailPage.xaml.cs" company="BTU/IIT">
// Company copyright tag.
// </copyright>
// <author>stubbfel</author>
// <sience>12.06.2013</sience>
//----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Webmail namespace CampusAppWP8.Pages.Webmail
{ {
public partial class Webmail : PhoneApplicationPage using System;
using CampusAppWP8.Resources;
using Microsoft.Phone.Controls;
/// <summary>
/// Class for the WebmailPage
/// </summary>
public partial class WebmailPage : PhoneApplicationPage
{ {
public Webmail() /// <summary>
/// Initializes a new instance of the <see cref="WebmailPage" /> class.
/// </summary>
public WebmailPage()
{ {
InitializeComponent(); this.InitializeComponent();
loadWebmailPage(); this.LoadWebmailPage();
} }
private void loadWebmailPage() /// <summary>
/// Method load WebmailPage
/// </summary>
private void LoadWebmailPage()
{ {
this.WebmailBrowser.Navigate(new Uri("https://webmail.tu-cottbus.de", UriKind.Absolute)); this.WebmailBrowser.Navigate(new Uri(Constants.UrlWebMailAddr, UriKind.Absolute));
} }
} }
} }

View File

@@ -13,7 +13,7 @@
<Capability Name="ID_CAP_ISV_CAMERA" /> <Capability Name="ID_CAP_ISV_CAMERA" />
</Capabilities> </Capabilities>
<Tasks> <Tasks>
<DefaultTask Name="_default" NavigationPage="pages/StartPage.xaml" /> <DefaultTask Name="_default" NavigationPage="pages/Lecture/LecturePage.xaml" />
</Tasks> </Tasks>
<Tokens> <Tokens>
<PrimaryToken TokenID="CampusAppWP8Token" TaskName="_default"> <PrimaryToken TokenID="CampusAppWP8Token" TaskName="_default">

View File

@@ -96,6 +96,33 @@ namespace CampusAppWP8.Resources {
} }
} }
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Bachelor ähnelt.
/// </summary>
public static string Degree_Bachelor {
get {
return ResourceManager.GetString("Degree_Bachelor", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Diplom ähnelt.
/// </summary>
public static string Degree_Diploma {
get {
return ResourceManager.GetString("Degree_Diploma", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Master ähnelt.
/// </summary>
public static string Degree_Master {
get {
return ResourceManager.GetString("Degree_Master", resourceCulture);
}
}
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt.
/// </summary> /// </summary>
@@ -195,6 +222,15 @@ namespace CampusAppWP8.Resources {
} }
} }
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Studiengangauswahl ähnelt.
/// </summary>
public static string LectureApp_ListPickerHeaderCourse {
get {
return ResourceManager.GetString("LectureApp_ListPickerHeaderCourse", resourceCulture);
}
}
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Verantwortlicher ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Verantwortlicher ähnelt.
/// </summary> /// </summary>

View File

@@ -230,7 +230,6 @@
<data name="NewsHomeBtn" xml:space="preserve"> <data name="NewsHomeBtn" xml:space="preserve">
<value>zur Übersicht</value> <value>zur Übersicht</value>
</data> </data>
<data name="MensaApp_DinnerLabelW" xml:space="preserve"> <data name="MensaApp_DinnerLabelW" xml:space="preserve">
<value>84</value> <value>84</value>
</data> </data>
@@ -251,7 +250,7 @@
</data> </data>
<data name="LectureApp_Type" xml:space="preserve"> <data name="LectureApp_Type" xml:space="preserve">
<value>Veranstaltungsart</value> <value>Veranstaltungsart</value>
</data> </data>
<data name="Faculty" xml:space="preserve"> <data name="Faculty" xml:space="preserve">
<value>Fakultät</value> <value>Fakultät</value>
</data> </data>
@@ -261,4 +260,16 @@
<data name="NewsLinkBtn" xml:space="preserve"> <data name="NewsLinkBtn" xml:space="preserve">
<value>Link</value> <value>Link</value>
</data> </data>
<data name="Degree_Bachelor" xml:space="preserve">
<value>Bachelor</value>
</data>
<data name="Degree_Diploma" xml:space="preserve">
<value>Diplom</value>
</data>
<data name="Degree_Master" xml:space="preserve">
<value>Master</value>
</data>
<data name="LectureApp_ListPickerHeaderCourse" xml:space="preserve">
<value>Studiengangauswahl</value>
</data>
</root> </root>

View File

@@ -87,15 +87,6 @@ namespace CampusAppWP8.Resources {
} }
} }
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die ? ähnelt.
/// </summary>
internal static string Paramseparator {
get {
return ResourceManager.GetString("Paramseparator", resourceCulture);
}
}
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Url ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Url ähnelt.
/// </summary> /// </summary>
@@ -117,9 +108,18 @@ namespace CampusAppWP8.Resources {
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/ResultDetailPage.xaml ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/ResultDetailPage.xaml ähnelt.
/// </summary> /// </summary>
internal static string PathResultDetailWebPage { internal static string PathResultDetailPage {
get { get {
return ResourceManager.GetString("PathResultDetailWebPage", resourceCulture); return ResourceManager.GetString("PathResultDetailPage", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/ResultPage.xaml ähnelt.
/// </summary>
internal static string PathResultPage {
get {
return ResourceManager.GetString("PathResultPage", resourceCulture);
} }
} }
@@ -132,6 +132,15 @@ namespace CampusAppWP8.Resources {
} }
} }
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die https://webmail.tu-cottbus.de ähnelt.
/// </summary>
internal static string UrlWebMailAddr {
get {
return ResourceManager.GetString("UrlWebMailAddr", resourceCulture);
}
}
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die root ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die root ähnelt.
/// </summary> /// </summary>

View File

@@ -126,16 +126,13 @@
<data name="ParamLectureModulNumber" xml:space="preserve"> <data name="ParamLectureModulNumber" xml:space="preserve">
<value>ModulNumber</value> <value>ModulNumber</value>
</data> </data>
<data name="Paramseparator" xml:space="preserve">
<value>?</value>
</data>
<data name="ParamUrl" xml:space="preserve"> <data name="ParamUrl" xml:space="preserve">
<value>Url</value> <value>Url</value>
</data> </data>
<data name="PathLectureModulWebPage" xml:space="preserve"> <data name="PathLectureModulWebPage" xml:space="preserve">
<value>/Pages/Lecture/ModulWebPage.xaml</value> <value>/Pages/Lecture/ModulWebPage.xaml</value>
</data> </data>
<data name="PathResultDetailWebPage" xml:space="preserve"> <data name="PathResultDetailPage" xml:space="preserve">
<value>/Pages/Lecture/ResultDetailPage.xaml</value> <value>/Pages/Lecture/ResultDetailPage.xaml</value>
</data> </data>
<data name="UrlLectureModulBaseAddr" xml:space="preserve"> <data name="UrlLectureModulBaseAddr" xml:space="preserve">
@@ -144,4 +141,10 @@
<data name="XMLRootElementName" xml:space="preserve"> <data name="XMLRootElementName" xml:space="preserve">
<value>root</value> <value>root</value>
</data> </data>
<data name="UrlWebMailAddr" xml:space="preserve">
<value>https://webmail.tu-cottbus.de</value>
</data>
<data name="PathResultPage" xml:space="preserve">
<value>/Pages/Lecture/ResultPage.xaml</value>
</data>
</root> </root>

View File

@@ -9,8 +9,9 @@ namespace CampusAppWP8.Pages.Mensa
{ {
using System; using System;
using System.Windows.Navigation; using System.Windows.Navigation;
using CampusAppWP8.Feed.Mensa;
using CampusAppWP8.Utility; using CampusAppWP8.Utility;
using Microsoft.Phone.Controls; using Microsoft.Phone.Controls;
/// <summary> /// <summary>
/// Class for the MensaPage /// Class for the MensaPage