Skip to content

Commit c0d3a93

Browse files
committed
Implemented the "Is Ready" toggle
1 parent e20890c commit c0d3a93

18 files changed

+46
-7
lines changed
-20 KB
Binary file not shown.

SyncPlayWPF/SyncPlayWPF/Pages/SessionLandingPage.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,12 @@
103103

104104
<CheckBox
105105
Grid.Column="3"
106+
x:Name="ReadyToggle"
106107
Style="{StaticResource GenericCheckbox}"
107108
Content="I am ready to watch"
108109
HorizontalAlignment="Right"
109-
VerticalAlignment="Center"/>
110+
VerticalAlignment="Center"
111+
Click="CheckBox_Click"/>
110112
</Grid>
111113
</Border>
112114
</Grid>

SyncPlayWPF/SyncPlayWPF/Pages/SessionLandingPage.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@ public SessionLandingPage() {
2828
private void ShowChatWindow() {
2929
SessionPageWindow.ShowPage(Common.Shared.ChatPageSingleton);
3030
}
31+
32+
private void CheckBox_Click(object sender, RoutedEventArgs e) {
33+
Common.Shared.Wrapper.SyncPlayClient.SetReadyState((bool)ReadyToggle.IsChecked);
34+
}
3135
}
3236
}

SyncPlayWPF/SyncPlayWPF/Pages/SessionPages/ChatSession.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ private void OnPageLoad(object sender, RoutedEventArgs e) {
3232
}
3333

3434
private void NewChatEvent(SyncPlay.SyncPlayClient sender, SyncPlay.EventArgs.ChatInfoMessageArgs e) {
35-
Console.WriteLine("_________-----__" + e.Message);
3635
Dispatcher.Invoke(() => {
3736
if (!LastAdditionWasChatInfo) {
3837
var spacer = new Border();

SyncPlayWPF/SyncPlayWPF/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("2021.201.82.0")]
55-
[assembly: AssemblyFileVersion("2021.201.82.0")]
54+
[assembly: AssemblyVersion("2021.201.83.0")]
55+
[assembly: AssemblyFileVersion("2021.201.83.0")]
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
62 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)