Exemplo n.º 1
0
 private void BTNLinea_Click(object sender, EventArgs e)
 {
     if (linea == Max - 1)
     {
         TBLinea.Text = InText.Lines[linea];
         Interpreta(InText.Lines[linea]);
         BTNLinea.Enabled = false;
         button1.Enabled  = true;
         Invalidate();
         PanelVisual.Invalidate();
         //MessageBox.Show("Ya no hay más lineas");
     }
     else
     {
         TBLinea.Text = InText.Lines[linea];
         Interpreta(InText.Lines[linea]);
         linea++;
         Invalidate();
         PanelVisual.Invalidate();
     }
 }
        private void SetupTracker()
        {
            _tracker = InteractionTracker.CreateWithOwner(compositor, this);
            InitTrackerPositions();

            _source = VisualInteractionSource.Create(ReaderViewVisual);
            _source.ManipulationRedirectionMode = VisualInteractionSourceRedirectionMode.CapableTouchpadOnly;

            _source.IsPositionXRailsEnabled = false;
            _source.PositionXChainingMode   = InteractionChainingMode.Never;
            _source.PositionXSourceMode     = InteractionSourceMode.EnabledWithoutInertia;

            _source.IsPositionYRailsEnabled = false;
            _source.PositionYChainingMode   = InteractionChainingMode.Never;
            _source.PositionYSourceMode     = InteractionSourceMode.Disabled;

            _tracker.InteractionSources.Add(_source);

            OffsetBind = compositor.CreateExpressionAnimation("-tracker.Position");
            OffsetBind.SetReferenceParameter("tracker", _tracker);

            PanelVisual.StartAnimation("Offset", OffsetBind);
        }
Exemplo n.º 3
0
 public Form1()
 {
     LineaCodigo = new List <string>();
     InitializeComponent();
     g = PanelVisual.CreateGraphics();
 }
Exemplo n.º 4
0
 private void button2_Click(object sender, EventArgs e)
 {
     Invalidate();
     PanelVisual.Invalidate();
 }