Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 897701a

Browse files
committed
Increased size of main window on program open && fixed #133
1 parent 7fa4d54 commit 897701a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Gateway/ProfileDataAccess.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static Profile LoadProfile(int id)
8080
MoralsData moralsData = LoadMoralsData(id);
8181
studentData.MoralsData = moralsData;
8282
studentData.UserMedia = new System.Collections.ObjectModel.ObservableCollection<Uri>(MediaDataAccess.GetUserMediaUris(id));
83-
studentData.FirstUserMedia = studentData.UserMedia?.FirstOrDefault();
83+
studentData.FirstUserMedia = studentData.UserMedia?.DefaultIfEmpty(new Uri("http://www.stugether.wafoe.nl/media/blank_profile_stugether.png")).First();
8484
studentData.MatchRelationType = LoadRelationshipTypeMatch(studentData.UserID);
8585
return studentData;
8686
}

View/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
mc:Ignorable="d"
1313
WindowStartupLocation="CenterScreen"
1414
Style="{StaticResource {x:Type Window}}"
15-
Title="Stugether" Height="450" Width="800">
15+
Title="Stugether" Height="563" Width="1000">
1616
<Window.DataContext>
1717
<vm:MainPageViewModel/>
1818
</Window.DataContext>

0 commit comments

Comments
 (0)