Ejemplo n.º 1
0
 /**********************************************************************
  *********************************************************************/
 void CreateTopHalf(Grid grid)
 {
     skiaview = new SKCanvasView();
     skiaview = RenoFastRecoveryDraw.ReturnCanvas();
     skiaview.BackgroundColor = App._viewBackground;
     grid.Children.Add(skiaview, 0, 0);
 }
Ejemplo n.º 2
0
        /**********************************************************************
         *********************************************************************/
        void B_Next_Clicked(object sender, EventArgs e)
        {
            bool disableOrEnable = RenoFastRecoveryDraw.NextStep();

            b_Next.IsEnabled = disableOrEnable;
            toggleRestart    = true;
            b_Restart.Text   = "Restart";
            b_Back.IsEnabled = true;
            UpdateDrawing();
        }
Ejemplo n.º 3
0
        //CONSTRUCTOR
        public RenoFastRecovery()
        {
            ToolbarItem info = new ToolbarItem();

            info.Text = App._sHelpInfoHint;
            this.ToolbarItems.Add(info);
            info.Clicked += B_Info_Clicked;

            Title = "Reno Fast Recovery";
            draw  = new RenoFastRecoveryDraw();

            toggleRestart = false;
            CreateContent();
        }
Ejemplo n.º 4
0
        /**********************************************************************
         *********************************************************************/
        void B_Back_Clicked(object sender, EventArgs e)
        {
            bool disableOrEnable = RenoFastRecoveryDraw.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();
        }
Ejemplo n.º 5
0
        /**********************************************************************
         *********************************************************************/
        void B_Restart_Clicked(object sender, EventArgs e)
        {
            if (toggleRestart)
            {
                RenoFastRecoveryDraw.Restart();
                b_Restart.Text   = "Go to End";
                toggleRestart    = false;
                b_Back.IsEnabled = false;
                b_Next.IsEnabled = true;
            }
            else
            {
                RenoFastRecoveryDraw.GoToEnd();
                b_Restart.Text   = "Restart";
                toggleRestart    = true;
                b_Back.IsEnabled = true;
                b_Next.IsEnabled = false;
            }

            UpdateDrawing();
        }
Ejemplo n.º 6
0
 /**********************************************************************
  *********************************************************************/
 void UpdateDrawing()
 {
     RenoFastRecoveryDraw.Paint();
 }