/********************************************************************** *********************************************************************/ void CreateTopHalf(Grid grid) { skiaview = new SKCanvasView(); skiaview = AckGenerationDraw.ReturnCanvas(); skiaview.BackgroundColor = App._viewBackground; grid.Children.Add(skiaview, 0, 0); }
/********************************************************************** *********************************************************************/ void B_Next_Clicked(object sender, EventArgs e) { bool disableOrEnable = AckGenerationDraw.NextStep(); b_Next.IsEnabled = disableOrEnable; toggleRestart = true; b_Restart.Text = "Restart"; b_Back.IsEnabled = true; UpdateDrawing(); }
public AckGeneration() { ToolbarItem info = new ToolbarItem(); info.Text = App._sHelpInfoHint; this.ToolbarItems.Add(info); info.Clicked += B_Info_Clicked; Title = "Fast Retransmit"; draw = new AckGenerationDraw(); CreateContent(); toggleRestart = false; }
/********************************************************************** *********************************************************************/ void B_Back_Clicked(object sender, EventArgs e) { bool disableOrEnable = AckGenerationDraw.PreviousStep(); b_Back.IsEnabled = disableOrEnable; if (disableOrEnable) { toggleRestart = true; b_Restart.Text = "Restart"; } else { toggleRestart = false; b_Restart.Text = "Go to End"; } b_Next.IsEnabled = true; UpdateDrawing(); }
/********************************************************************** *********************************************************************/ void B_Restart_Clicked(object sender, EventArgs e) { if (toggleRestart) { AckGenerationDraw.Restart(); b_Restart.Text = "Go to End"; toggleRestart = false; b_Back.IsEnabled = false; b_Next.IsEnabled = true; } else { AckGenerationDraw.GoToEnd(); b_Restart.Text = "Restart"; toggleRestart = true; b_Back.IsEnabled = true; b_Next.IsEnabled = false; } UpdateDrawing(); }
/********************************************************************** *********************************************************************/ void UpdateDrawing() { AckGenerationDraw.Paint(); }