in between
This commit is contained in:
@@ -243,6 +243,12 @@
|
||||
<Compile Include="Utility\Lui\Header\DefaultHeader.xaml.cs">
|
||||
<DependentUpon>DefaultHeader.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utility\Lui\Templates\WeekView.xaml.cs">
|
||||
<DependentUpon>WeekView.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utility\Lui\Templates\WeekViewDay.xaml.cs">
|
||||
<DependentUpon>WeekViewDay.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utility\Lui\Tiles\TileCreator.cs" />
|
||||
<Compile Include="Utility\NDEF\NDEFMessage.cs" />
|
||||
<Compile Include="Utility\NDEF\NDEFRecord.cs" />
|
||||
@@ -515,6 +521,14 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Utility\Lui\Templates\WeekView.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Utility\Lui\Templates\WeekViewDay.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Assets\psd\holo_optionsbuttons.psd" />
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
||||
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
|
||||
xmlns:templ="clr-namespace:CampusAppWP8.Utility.Lui.Templates"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
||||
@@ -15,12 +16,18 @@
|
||||
|
||||
<!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden-->
|
||||
<Grid x:Name="LayoutRoot" Background="Transparent">
|
||||
<phone:Pivot x:Name="ThePivot">
|
||||
<phone:Pivot x:Name="ThePivot" SelectionChanged="OnPivotSelectionChanged">
|
||||
<phone:Pivot.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible">
|
||||
<templ:WeekView />
|
||||
</ScrollViewer>
|
||||
</DataTemplate>
|
||||
</phone:Pivot.ItemTemplate>
|
||||
</phone:Pivot>
|
||||
</Grid>
|
||||
|
||||
<phone:PhoneApplicationPage.ApplicationBar>
|
||||
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="False" Mode="Default" Opacity="1.0" >
|
||||
</shell:ApplicationBar>
|
||||
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="False" Mode="Default" Opacity="1.0" />
|
||||
</phone:PhoneApplicationPage.ApplicationBar>
|
||||
</phone:PhoneApplicationPage>
|
||||
@@ -35,7 +35,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private struct PageItem
|
||||
{
|
||||
public Canvas Content { get; set; }
|
||||
public Canvas[] Content { get; set; }
|
||||
public DateTime DateFrom { get; set; }
|
||||
public DateTime DateTo { get; set; }
|
||||
public char WeekChar { get; set; }
|
||||
@@ -46,18 +46,21 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private static readonly int PIVOT_PAGES = 3;
|
||||
private static readonly int PIVOT_PAGES_HALF_DOWN = 1;
|
||||
|
||||
private static readonly int PIVOT_PAGES_COLUMNS = 5; // days in week
|
||||
|
||||
private PageItem[] itemPages = new PageItem[PIVOT_PAGES];
|
||||
private int lastSelectedIndex = 0;
|
||||
//private double APP_BAR_SPACE = 0;
|
||||
private string[] testPiIt = new string[3] { "bla_1", "bla_2", "bla_3" };
|
||||
|
||||
public TimeTableWeek()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
DateTime firstDay = this.GetFirstDayOfWeek(DateTime.Now).AddDays(-7 * PIVOT_PAGES_HALF_DOWN);
|
||||
|
||||
|
||||
this.ThePivot.ItemsSource = this.testPiIt;
|
||||
/*
|
||||
for (int i = 0; i < PIVOT_PAGES; i++)
|
||||
{
|
||||
/*
|
||||
@@ -70,13 +73,12 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
new List<List<AppointmentModel>>()
|
||||
};
|
||||
*/
|
||||
/*
|
||||
this.itemPages[i].Stacks = new List<List<AppointmentModel>>();
|
||||
this.CreatePage(i, firstDay);
|
||||
firstDay = firstDay.AddDays(7);
|
||||
}
|
||||
|
||||
this.ThePivot.SelectionChanged += new SelectionChangedEventHandler(this.OnPivotSelectionChanged);
|
||||
|
||||
*/
|
||||
ApplicationBarIconButton dayViewBtn = new ApplicationBarIconButton();
|
||||
dayViewBtn.Text = AppResources.DayView;
|
||||
dayViewBtn.IconUri = new Uri(Icons.Info, UriKind.Relative);
|
||||
@@ -151,7 +153,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private void OnClickDayView(object sender, EventArgs e)
|
||||
{
|
||||
Uri url = new Uri("/Pages/TimeTable/TimeTableDay.xaml", UriKind.Relative);
|
||||
Uri url = new Uri(Constants.PathTimeTable_Day, UriKind.Relative);
|
||||
Page page = App.RootFrame.Content as Page;
|
||||
page.NavigationService.Navigate(url);
|
||||
}
|
||||
@@ -179,7 +181,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private void OnClickProperties(object sender, EventArgs e)
|
||||
{
|
||||
Uri url = new Uri("/Pages/TimeTable/TimeTableProperties.xaml", UriKind.Relative);
|
||||
Uri url = new Uri(Constants.PathTimeTable_Properties, UriKind.Relative);
|
||||
Page page = App.RootFrame.Content as Page;
|
||||
page.NavigationService.Navigate(url);
|
||||
}
|
||||
@@ -188,7 +190,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
{
|
||||
TimeTable.AppointmentsModel.Appointments.CollectionChanged += new NotifyCollectionChangedEventHandler(this.OnListChanged);
|
||||
|
||||
Uri url = new Uri("/Pages/TimeTable/AppointmentEdit.xaml", UriKind.Relative);
|
||||
Uri url = new Uri(Constants.PathTimeTable_AppointmentEdit, UriKind.Relative);
|
||||
Page page = App.RootFrame.Content as Page;
|
||||
page.NavigationService.Navigate(url);
|
||||
}
|
||||
@@ -240,7 +242,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
{
|
||||
TimeTable.AppointmentsModel.Appointments.CollectionChanged += new NotifyCollectionChangedEventHandler(this.OnListChanged);
|
||||
|
||||
string urlString = "/Pages/TimeTable/Appointment.xaml?" + Constants.Param_Appointment_Index + "=" + index;
|
||||
string urlString = Constants.PathTimeTable_Appointment + "?" + Constants.Param_Appointment_Index + "=" + index;
|
||||
|
||||
Uri url = new Uri(urlString, UriKind.Relative);
|
||||
Page page = App.RootFrame.Content as Page;
|
||||
@@ -290,23 +292,13 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
this.RemoveContentUIElement(index, sender as Canvas);
|
||||
|
||||
/*
|
||||
Canvas[] tempCan = this.GetModelCanvasFromContent(index, this.itemPages[index].Stacks[dayIndex][listIndex][0]);
|
||||
|
||||
// FIXME: tempCan[0] -> to correct tempCan
|
||||
this.DrawMultiBubble(
|
||||
index,
|
||||
dayIndex,
|
||||
listIndex,
|
||||
this.itemPages[index].Stacks[dayIndex][listIndex].Count(),
|
||||
tempCan[0].Width + tempCan[0].Margin.Left,
|
||||
tempCan[0].Margin.Top);
|
||||
*/
|
||||
bool bubbleDrawn = false;
|
||||
|
||||
for (int day = 0; day < 5; day++)
|
||||
{
|
||||
if (this.itemPages[index].Stacks[listIndex][0].IsDate(this.itemPages[index].DateFrom.Date.AddDays(day)) > -1)
|
||||
if (this.itemPages[index].Stacks[listIndex][0].IsDate(this.itemPages[index].DateFrom.Date.AddDays(day)) > -1 && bubbleDrawn == false)
|
||||
{
|
||||
bubbleDrawn = true;
|
||||
Canvas[] tempCan = this.GetModelCanvasFromContent(index, this.itemPages[index].Stacks[listIndex][0]);
|
||||
this.DrawMultiBubble(
|
||||
index,
|
||||
@@ -389,7 +381,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
/**/
|
||||
this.itemPages[index].Stacks.Clear();
|
||||
|
||||
this.itemPages[index].Content.Children.Clear();
|
||||
// this.itemPages[index].Content.Children.Clear();
|
||||
/*
|
||||
for(int i = 0; i < 5; i++)
|
||||
{
|
||||
@@ -636,8 +628,8 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private void CreatePage(int itemIndex, DateTime weekStart)
|
||||
{
|
||||
this.itemPages[itemIndex].Content = new Canvas();
|
||||
this.itemPages[itemIndex].Content.Height = WEEK_TABLE_CELL_HEIGHT * 24;
|
||||
// this.itemPages[itemIndex].Content = new Canvas();
|
||||
// this.itemPages[itemIndex].Content.Height = WEEK_TABLE_CELL_HEIGHT * 24;
|
||||
this.itemPages[itemIndex].DateFrom = weekStart;
|
||||
this.itemPages[itemIndex].DateTo = weekStart.AddDays(6);
|
||||
this.itemPages[itemIndex].WeekNumber = System.Globalization.DateTimeFormatInfo.CurrentInfo.Calendar.GetWeekOfYear(
|
||||
@@ -656,10 +648,28 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
//this.DrawBackground(canBG);
|
||||
|
||||
container.Children.Add(canBG);
|
||||
container.Children.Add(this.itemPages[itemIndex].Content);
|
||||
//container.Children.Add(canBG);
|
||||
//container.Children.Add(this.itemPages[itemIndex].Content);
|
||||
container.SizeChanged += new SizeChangedEventHandler(this.OnCanvasSizeChanged);
|
||||
sv.Content = container;
|
||||
|
||||
Grid mainItGrid = new Grid();
|
||||
mainItGrid.Height = WEEK_TABLE_CELL_HEIGHT * 24;
|
||||
RowDefinition row_0 = new RowDefinition();
|
||||
row_0.Height = new GridLength(WEEK_TABLE_CELL_HEIGHT * 24, GridUnitType.Pixel);
|
||||
ColumnDefinition col_0 = new ColumnDefinition();
|
||||
col_0.Width = new GridLength(WEEK_TABLE_HEAD_WIDTH, GridUnitType.Pixel);
|
||||
ColumnDefinition col_day = new ColumnDefinition();
|
||||
col_day.Width = new GridLength(1, GridUnitType.Star);
|
||||
mainItGrid.RowDefinitions.Add(row_0);
|
||||
mainItGrid.ColumnDefinitions.Add(col_0); // left
|
||||
|
||||
// day columns
|
||||
for (int i = 0; i < PIVOT_PAGES_COLUMNS; i++)
|
||||
{
|
||||
mainItGrid.ColumnDefinitions.Add(col_day);
|
||||
}
|
||||
|
||||
sv.Content = mainItGrid;
|
||||
pvItem.Content = sv;
|
||||
|
||||
Grid headGrid = new Grid();
|
||||
@@ -672,7 +682,10 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private void RemoveContentUIElement(int index, UIElement elem)
|
||||
{
|
||||
this.itemPages[index].Content.Children.Remove(elem);
|
||||
// if (this.itemPages[index].Content.Children.Remove(elem) == false)
|
||||
{
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
private void RemoveContentUIElement(int index, AppointmentModel model)
|
||||
@@ -683,7 +696,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
{
|
||||
foreach (Canvas can in list)
|
||||
{
|
||||
this.itemPages[index].Content.Children.Remove(can);
|
||||
// this.itemPages[index].Content.Children.Remove(can);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -692,13 +705,13 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
{
|
||||
List<Canvas> retValue = new List<Canvas>();
|
||||
|
||||
foreach (FrameworkElement elem in this.itemPages[index].Content.Children)
|
||||
// foreach (FrameworkElement elem in this.itemPages[index].Content.Children)
|
||||
{
|
||||
if (elem.Tag.GetType().Equals(typeof(AppointmentModel)))
|
||||
// if (elem.Tag.GetType().Equals(typeof(AppointmentModel)))
|
||||
{
|
||||
if ((elem.Tag as AppointmentModel).Equals(model))
|
||||
// if ((elem.Tag as AppointmentModel).Equals(model))
|
||||
{
|
||||
retValue.Add(elem as Canvas);
|
||||
// retValue.Add(elem as Canvas);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -709,6 +722,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
|
||||
private void DrawAppointment(AppointmentModel model, int index, int xIndex, double opacity = 1.0, int zIndex = 0, int modelCount = 0)
|
||||
{
|
||||
/*
|
||||
Canvas modelCan = model.GetCanvas(
|
||||
((this.itemPages[index].Content.Width - WEEK_TABLE_HEAD_WIDTH) / 5) - 2 - 2 - (modelCount * WEEK_TABLE_ZINDEX_SHIFT),
|
||||
WEEK_TABLE_CELL_HEIGHT,
|
||||
@@ -724,6 +738,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
0);
|
||||
|
||||
this.itemPages[index].Content.Children.Add(modelCan);
|
||||
*/
|
||||
}
|
||||
|
||||
private void DrawMultiBubble(int index, int dayIndex, int listIndex, int number, double xOffset, double yOffset)
|
||||
@@ -766,7 +781,7 @@ namespace CampusAppWP8.Pages.TimeTable
|
||||
can.SetValue(Canvas.TopProperty, yOffset - (WEEK_TABLE_CELL_HEIGHT / 2));
|
||||
can.SetValue(Canvas.ZIndexProperty, WEEK_TABLE_ZINDEX_MAX + 1);
|
||||
|
||||
this.itemPages[index].Content.Children.Add(can);
|
||||
// this.itemPages[index].Content.Children.Add(can);
|
||||
}
|
||||
|
||||
private void DrawHeader(int index)
|
||||
|
||||
@@ -69,6 +69,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Ganztägig ähnelt.
|
||||
/// </summary>
|
||||
public static string AllDay {
|
||||
get {
|
||||
return ResourceManager.GetString("AllDay", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die BTU-Tag via NFC ähnelt.
|
||||
/// </summary>
|
||||
@@ -114,6 +123,33 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Termin ähnelt.
|
||||
/// </summary>
|
||||
public static string Appointment {
|
||||
get {
|
||||
return ResourceManager.GetString("Appointment", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Teilnehmer ähnelt.
|
||||
/// </summary>
|
||||
public static string Attendees {
|
||||
get {
|
||||
return ResourceManager.GetString("Attendees", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Automatisch scrollen zur Stunde ähnelt.
|
||||
/// </summary>
|
||||
public static string AutoScrollToHour {
|
||||
get {
|
||||
return ResourceManager.GetString("AutoScrollToHour", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Sie haben einen BTU-Tag eingescannt ähnelt.
|
||||
/// </summary>
|
||||
@@ -195,6 +231,24 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Abbrechen ähnelt.
|
||||
/// </summary>
|
||||
public static string Cancel {
|
||||
get {
|
||||
return ResourceManager.GetString("Cancel", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Kategorie ähnelt.
|
||||
/// </summary>
|
||||
public static string Categories {
|
||||
get {
|
||||
return ResourceManager.GetString("Categories", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Essenbeschreibung kopieren ähnelt.
|
||||
/// </summary>
|
||||
@@ -213,6 +267,24 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Erstellen ähnelt.
|
||||
/// </summary>
|
||||
public static string Creating {
|
||||
get {
|
||||
return ResourceManager.GetString("Creating", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Tagesansicht ähnelt.
|
||||
/// </summary>
|
||||
public static string DayView {
|
||||
get {
|
||||
return ResourceManager.GetString("DayView", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Löschen ähnelt.
|
||||
/// </summary>
|
||||
@@ -267,6 +339,33 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Beschreibung ähnelt.
|
||||
/// </summary>
|
||||
public static string Description {
|
||||
get {
|
||||
return ResourceManager.GetString("Description", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Dauer ähnelt.
|
||||
/// </summary>
|
||||
public static string Duration {
|
||||
get {
|
||||
return ResourceManager.GetString("Duration", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Bearbeiten ähnelt.
|
||||
/// </summary>
|
||||
public static string Edit {
|
||||
get {
|
||||
return ResourceManager.GetString("Edit", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Events ähnelt.
|
||||
/// </summary>
|
||||
@@ -294,6 +393,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Erweiterte Einstellungen ähnelt.
|
||||
/// </summary>
|
||||
public static string ExtendedProperties {
|
||||
get {
|
||||
return ResourceManager.GetString("ExtendedProperties", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Favoriten ähnelt.
|
||||
/// </summary>
|
||||
@@ -339,6 +447,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die groß ähnelt.
|
||||
/// </summary>
|
||||
public static string Large {
|
||||
get {
|
||||
return ResourceManager.GetString("Large", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Ebene ähnelt.
|
||||
/// </summary>
|
||||
@@ -492,6 +609,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Autoscrollauswahl ähnelt.
|
||||
/// </summary>
|
||||
public static string ListPickerHeaderAutoScroll {
|
||||
get {
|
||||
return ResourceManager.GetString("ListPickerHeaderAutoScroll", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Campusauswahl ähnelt.
|
||||
/// </summary>
|
||||
@@ -546,6 +672,24 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Anzeigegrößenauswahl ähnelt.
|
||||
/// </summary>
|
||||
public static string ListPickerHeaderVisualScale {
|
||||
get {
|
||||
return ResourceManager.GetString("ListPickerHeaderVisualScale", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Ort ähnelt.
|
||||
/// </summary>
|
||||
public static string Location {
|
||||
get {
|
||||
return ResourceManager.GetString("Location", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Webmail ähnelt.
|
||||
/// </summary>
|
||||
@@ -555,6 +699,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die mittel ähnelt.
|
||||
/// </summary>
|
||||
public static string Medium {
|
||||
get {
|
||||
return ResourceManager.GetString("Medium", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Die Mensa ist heute geschlossen ähnelt.
|
||||
/// </summary>
|
||||
@@ -861,6 +1014,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Priorität ähnelt.
|
||||
/// </summary>
|
||||
public static string Priority {
|
||||
get {
|
||||
return ResourceManager.GetString("Priority", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt.
|
||||
/// </summary>
|
||||
@@ -870,6 +1032,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Einstellungen ähnelt.
|
||||
/// </summary>
|
||||
public static string Properties {
|
||||
get {
|
||||
return ResourceManager.GetString("Properties", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die ... suche ähnelt.
|
||||
/// </summary>
|
||||
@@ -879,6 +1050,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wiederholung ähnelt.
|
||||
/// </summary>
|
||||
public static string Repeat {
|
||||
get {
|
||||
return ResourceManager.GetString("Repeat", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die LeftToRight ähnelt.
|
||||
/// </summary>
|
||||
@@ -915,6 +1095,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Speichern ähnelt.
|
||||
/// </summary>
|
||||
public static string Save {
|
||||
get {
|
||||
return ResourceManager.GetString("Save", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Kein gültigen NFC-Tag gefunden ähnelt.
|
||||
/// </summary>
|
||||
@@ -1059,6 +1248,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die klein ähnelt.
|
||||
/// </summary>
|
||||
public static string Small {
|
||||
get {
|
||||
return ResourceManager.GetString("Small", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die vorlesen ähnelt.
|
||||
/// </summary>
|
||||
@@ -1140,6 +1338,33 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Titel ähnelt.
|
||||
/// </summary>
|
||||
public static string Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die bis ähnelt.
|
||||
/// </summary>
|
||||
public static string To {
|
||||
get {
|
||||
return ResourceManager.GetString("To", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Heute ähnelt.
|
||||
/// </summary>
|
||||
public static string ToDay {
|
||||
get {
|
||||
return ResourceManager.GetString("ToDay", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Aktualisieren ähnelt.
|
||||
/// </summary>
|
||||
@@ -1149,6 +1374,33 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Sichtbarkeit ähnelt.
|
||||
/// </summary>
|
||||
public static string Visibility {
|
||||
get {
|
||||
return ResourceManager.GetString("Visibility", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Anzeige Größe ähnelt.
|
||||
/// </summary>
|
||||
public static string VisualScale {
|
||||
get {
|
||||
return ResourceManager.GetString("VisualScale", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wochenansicht ähnelt.
|
||||
/// </summary>
|
||||
public static string WeekView {
|
||||
get {
|
||||
return ResourceManager.GetString("WeekView", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Willkommen zur BTU-CampusApp WP8 ähnelt.
|
||||
/// </summary>
|
||||
@@ -1157,5 +1409,14 @@ namespace CampusAppWP8.Resources {
|
||||
return ResourceManager.GetString("WelcomeString", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wann ähnelt.
|
||||
/// </summary>
|
||||
public static string When {
|
||||
get {
|
||||
return ResourceManager.GetString("When", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -523,6 +523,7 @@
|
||||
</data>
|
||||
<data name="WeekView" xml:space="preserve">
|
||||
<value>Wochenansicht</value>
|
||||
</data>
|
||||
<data name="MensaApp_CloseMensa" xml:space="preserve">
|
||||
<value>Die Mensa ist heute geschlossen</value>
|
||||
</data>
|
||||
|
||||
@@ -588,4 +588,19 @@
|
||||
<data name="ParamRemoveBack" xml:space="preserve">
|
||||
<value>removeBack</value>
|
||||
</data>
|
||||
<data name="PathTimeTable_Appointment" xml:space="preserve">
|
||||
<value>/Pages/TimeTable/Appointment.xaml</value>
|
||||
</data>
|
||||
<data name="PathTimeTable_AppointmentEdit" xml:space="preserve">
|
||||
<value>/Pages/TimeTable/AppointmentEdit.xaml</value>
|
||||
</data>
|
||||
<data name="PathTimeTable_Day" xml:space="preserve">
|
||||
<value>/Pages/TimeTable/TimeTableDay.xaml</value>
|
||||
</data>
|
||||
<data name="PathTimeTable_Week" xml:space="preserve">
|
||||
<value>/Pages/TimeTable/TimeTableWeek.xaml</value>
|
||||
</data>
|
||||
<data name="PathTimeTable_Properties" xml:space="preserve">
|
||||
<value>/Pages/TimeTable/TimeTableProperties.xaml</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -600,15 +600,6 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die AppointmentIndex ähnelt.
|
||||
/// </summary>
|
||||
public static string Param_Appointment_Index {
|
||||
get {
|
||||
return ResourceManager.GetString("Param_Appointment_Index", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die NDEF ähnelt.
|
||||
/// </summary>
|
||||
@@ -618,6 +609,15 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die AppointmentIndex ähnelt.
|
||||
/// </summary>
|
||||
public static string Param_Appointment_Index {
|
||||
get {
|
||||
return ResourceManager.GetString("Param_Appointment_Index", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die BuildingId ähnelt.
|
||||
/// </summary>
|
||||
@@ -1023,6 +1023,51 @@ namespace CampusAppWP8.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/TimeTable/Appointment.xaml ähnelt.
|
||||
/// </summary>
|
||||
public static string PathTimeTable_Appointment {
|
||||
get {
|
||||
return ResourceManager.GetString("PathTimeTable_Appointment", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/TimeTable/AppointmentEdit.xaml ähnelt.
|
||||
/// </summary>
|
||||
public static string PathTimeTable_AppointmentEdit {
|
||||
get {
|
||||
return ResourceManager.GetString("PathTimeTable_AppointmentEdit", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/TimeTable/TimeTableDay.xaml ähnelt.
|
||||
/// </summary>
|
||||
public static string PathTimeTable_Day {
|
||||
get {
|
||||
return ResourceManager.GetString("PathTimeTable_Day", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/TimeTable/TimeTableProperties.xaml ähnelt.
|
||||
/// </summary>
|
||||
public static string PathTimeTable_Properties {
|
||||
get {
|
||||
return ResourceManager.GetString("PathTimeTable_Properties", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/TimeTable/TimeTableWeek.xaml ähnelt.
|
||||
/// </summary>
|
||||
public static string PathTimeTable_Week {
|
||||
get {
|
||||
return ResourceManager.GetString("PathTimeTable_Week", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Uebersicht ähnelt.
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
<UserControl x:Class="CampusAppWP8.Utility.Lui.Templates.WeekView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:weekView="clr-namespace:CampusAppWP8.Utility.Lui.Templates"
|
||||
mc:Ignorable="d"
|
||||
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
||||
FontSize="{StaticResource PhoneFontSizeNormal}"
|
||||
Foreground="{StaticResource PhoneForegroundBrush}"
|
||||
>
|
||||
|
||||
<Grid x:Name="LayoutRoot" Background="Transparent" Height="960">
|
||||
<Grid.Resources>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="BorderBrush" Value="White"/>
|
||||
<Setter Property="BorderThickness" Value="2"/>
|
||||
</Style>
|
||||
</Grid.Resources>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<!--left time line-->
|
||||
<ColumnDefinition Width="40"/>
|
||||
<!--monday-->
|
||||
<ColumnDefinition Width="*"/>
|
||||
<!--tuesday-->
|
||||
<ColumnDefinition Width="*"/>
|
||||
<!--wednesday-->
|
||||
<ColumnDefinition Width="*"/>
|
||||
<!--thursday-->
|
||||
<ColumnDefinition Width="*"/>
|
||||
<!--friday-->
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--time line-->
|
||||
<Border Grid.Row="0" Grid.Column="0">
|
||||
<ListBox x:Name="TimeList" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" SelectionMode="Single" SelectionChanged="ListBoxSelectionChanged">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Canvas Height="40" Width="40">
|
||||
<TextBlock Text="{Binding}" Canvas.Left="0" Canvas.Top="0" FontSize="12"/>
|
||||
<Line X1="29" Y1="19" X2="39" Y2="19" StrokeThickness="2" Stroke="White"/>
|
||||
<Line X1="0" Y1="0" X2="39" Y2="0" StrokeThickness="1" Stroke="Gray"/>
|
||||
</Canvas>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Border>
|
||||
<!--monday-->
|
||||
<Border Grid.Row="0" Grid.Column="1">
|
||||
<weekView:WeekViewDay x:Name="MonList" BgListElements="24" BgListElementHeight="40" Background="BlueViolet" />
|
||||
</Border>
|
||||
<!--tuesday-->
|
||||
<Border Grid.Row="0" Grid.Column="2">
|
||||
<weekView:WeekViewDay x:Name="TueList" BgListElements="24" BgListElementHeight="40" />
|
||||
</Border>
|
||||
<!--wednesday-->
|
||||
<Border Grid.Row="0" Grid.Column="3">
|
||||
<weekView:WeekViewDay x:Name="WedList" BgListElements="24" BgListElementHeight="40" />
|
||||
</Border>
|
||||
<!--thursday-->
|
||||
<Border Grid.Row="0" Grid.Column="4">
|
||||
<weekView:WeekViewDay x:Name="ThuList" BgListElements="24" BgListElementHeight="40" />
|
||||
</Border>
|
||||
<!--friday-->
|
||||
<Border Grid.Row="0" Grid.Column="5">
|
||||
<weekView:WeekViewDay x:Name="FriList" BgListElements="24" BgListElementHeight="40" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,59 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// <copyright file="WeekView.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// </copyright>
|
||||
// <author>fiedlchr</author>
|
||||
// <sience>14.10.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Utility.Lui.Templates
|
||||
{
|
||||
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;
|
||||
|
||||
public partial class WeekView : UserControl
|
||||
{
|
||||
private string[] timeStrings = new string[24];
|
||||
private string[] monStrings = new string[24];
|
||||
|
||||
public WeekView()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
this.InitLayout();
|
||||
}
|
||||
|
||||
private void InitLayout()
|
||||
{
|
||||
for (int i = 0; i < 24; i++)
|
||||
{
|
||||
this.timeStrings[i] = string.Format("{0:00}:00", i);
|
||||
this.monStrings[i] = i.ToString();
|
||||
}
|
||||
|
||||
this.TimeList.ItemsSource = this.timeStrings;
|
||||
|
||||
//this.MonList.ItemsSource = this.monStrings;
|
||||
//this.TueList.ItemsSource = this.monStrings;
|
||||
//this.WedList.ItemsSource = this.monStrings;
|
||||
//this.ThuList.ItemsSource = this.monStrings;
|
||||
//this.FriList.ItemsSource = this.monStrings;
|
||||
}
|
||||
|
||||
private void ListBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
ListBox obj = sender as ListBox;
|
||||
|
||||
if (obj.SelectedIndex >= 0)
|
||||
{
|
||||
obj.SelectedIndex = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<UserControl x:Class="CampusAppWP8.Utility.Lui.Templates.WeekViewDay"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
||||
FontSize="{StaticResource PhoneFontSizeNormal}"
|
||||
Foreground="{StaticResource PhoneForegroundBrush}"
|
||||
>
|
||||
|
||||
<Grid x:Name="TheGrid">
|
||||
<Canvas x:Name="MainCanvas">
|
||||
<Canvas x:Name="BGCanvas" Canvas.ZIndex="1"/>
|
||||
<Canvas x:Name="UserCanvas" Canvas.ZIndex="2"/>
|
||||
</Canvas>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,90 @@
|
||||
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 System.Windows.Shapes;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace CampusAppWP8.Utility.Lui.Templates
|
||||
{
|
||||
public partial class WeekViewDay : UserControl
|
||||
{
|
||||
public static readonly DependencyProperty BgListElementsProperty = DependencyProperty.Register("BgListElements", typeof(int), typeof(WeekViewDay), new PropertyMetadata(null));
|
||||
public static readonly DependencyProperty BgListElementHeightProperty = DependencyProperty.Register("BgListElementHeight", typeof(double), typeof(WeekViewDay), new PropertyMetadata(null));
|
||||
|
||||
public WeekViewDay()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
public int BgListElements
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(BgListElementsProperty);
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value > 0)
|
||||
{
|
||||
this.SetValue(BgListElementsProperty, value);
|
||||
|
||||
this.DrawLines();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public double BgListElementHeight
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double)this.GetValue(BgListElementHeightProperty);
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value > 0)
|
||||
{
|
||||
this.SetValue(BgListElementHeightProperty, value);
|
||||
|
||||
this.DrawLines();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawLines()
|
||||
{
|
||||
if (this.BgListElementHeight > 0
|
||||
&& this.BgListElements > 1)
|
||||
{
|
||||
this.BGCanvas.Children.Clear();
|
||||
|
||||
for (int i = 1; i < this.BgListElements; i++)
|
||||
{
|
||||
Line hLineInn = new Line();
|
||||
hLineInn.X1 = 0;
|
||||
hLineInn.Y1 = 0;
|
||||
hLineInn.X2 = 1;
|
||||
hLineInn.Y2 = 0;
|
||||
hLineInn.Stroke = new SolidColorBrush(Colors.DarkGray);
|
||||
hLineInn.Stretch = Stretch.Fill;
|
||||
hLineInn.HorizontalAlignment = HorizontalAlignment.Left;
|
||||
hLineInn.SetValue(Canvas.TopProperty, (this.BgListElementHeight * i));
|
||||
hLineInn.StrokeDashArray = new DoubleCollection();
|
||||
hLineInn.StrokeDashArray.Add(2);
|
||||
hLineInn.StrokeDashArray.Add(4);
|
||||
hLineInn.StrokeThickness = 1;
|
||||
hLineInn.SetValue(Canvas.ZIndexProperty, 0);
|
||||
|
||||
this.BGCanvas.Children.Add(hLineInn);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user