Skip to content

Commit

Permalink
Alteração da forma como as linhas do ficheiro eram adicionadas.
Browse files Browse the repository at this point in the history
  • Loading branch information
masterzdran committed May 26, 2013
1 parent 005e468 commit 8648a45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/SilverlightApp/Views/Participantes.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
Grid.Row="0"
Grid.RowSpan="2"
Margin="20,5"
FontSize="20"
SizeChanged="ParticipantsList_SizeChanged">
FontSize="12"
SizeChanged="ParticipantsList_SizeChanged"
>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
Expand Down
5 changes: 4 additions & 1 deletion src/SilverlightApp/Views/Participantes.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ private void PreencherParticipantes(FileInfo file)
while ((participant = reader.ReadLine()) != null)
{
// validate that the participant is filled in
if (!string.IsNullOrWhiteSpace(participant))
if (!string.IsNullOrWhiteSpace(participant)){
var x = participant.Split(':');
participant = x[1];
ParticipantsList.Items.Add(participant.Trim());
}
}
}
}
Expand Down

0 comments on commit 8648a45

Please sign in to comment.