コード例 #1
0
 /**********************************************************************
  *********************************************************************/
 void CreateTopHalf(Grid grid)
 {
     skiaview = new SKCanvasView();
     skiaview = AckGenerationDraw.ReturnCanvas();
     skiaview.BackgroundColor = App._viewBackground;
     grid.Children.Add(skiaview, 0, 0);
 }
コード例 #2
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();
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        /**********************************************************************
         *********************************************************************/
        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();
        }
コード例 #5
0
        /**********************************************************************
         *********************************************************************/
        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();
        }
コード例 #6
0
 /**********************************************************************
  *********************************************************************/
 void UpdateDrawing()
 {
     AckGenerationDraw.Paint();
 }