[TRYING]
This commit is contained in:
@@ -73,7 +73,12 @@ namespace Client.ViewModels
|
||||
data.Client.RandomWord = HandleRandomWord;
|
||||
data.Client.IncomingMsg = HandleIncomingMsg;
|
||||
data.Client.IncomingPlayer = HandleIncomingPlayer;
|
||||
data.Client.UpdateUserScores = UpdateUserScores;
|
||||
data.Client.UpdateUserScores = UpdateUserScores;
|
||||
|
||||
|
||||
queueTimer = new Timer(50);
|
||||
queueTimer.Start();
|
||||
queueTimer.Elapsed += sendArrayFromQueue;
|
||||
}
|
||||
|
||||
public ICommand OnKeyDown { get; set; }
|
||||
@@ -82,10 +87,7 @@ namespace Client.ViewModels
|
||||
|
||||
public void BeginGame()
|
||||
{
|
||||
|
||||
queueTimer = new Timer(50);
|
||||
queueTimer.Start();
|
||||
queueTimer.Elapsed += sendArrayFromQueue;
|
||||
|
||||
data.Client.SendMessage(JSONConvert.ConstructGameStartData(data.Lobby.ID));
|
||||
}
|
||||
|
||||
@@ -186,7 +188,7 @@ namespace Client.ViewModels
|
||||
|
||||
private void CanvasResetData()
|
||||
{
|
||||
this.window.CanvasForPaint.Children.Clear();
|
||||
this.window.CanvasForPaint.Children.Clear();
|
||||
}
|
||||
|
||||
private void ChatBox_KeyDown()
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<Button Name="CanvasReset" Click="CanvasReset_Click" Grid.Row="0" Grid.Column="3" Content="RESET"/>
|
||||
</Grid>
|
||||
|
||||
<Button Name="StartGame" Grid.Row="0" Grid.Column="2" Content="Start Game" FontSize="20" Command="{Binding ButtonStartGame}" IsEnabled="{Binding IsHost}"/>
|
||||
|
||||
|
||||
|
||||
<Border Grid.Row="1" Grid.Column="1" Margin ="10,10,10,10" BorderBrush="Black" BorderThickness ="2.5">
|
||||
|
||||
Reference in New Issue
Block a user