public async Task Start() { while (GuideLines.Count != 0) { bool closed = false; GuideStep step = GuideLines.Dequeue(); this.OnClosed += (s, e) => { closed = true; }; await ShowStep(step); while (!closed) { await Task.Delay(100); } } }
private void RemoveGuidlines(GuideLines gl) { switch (gl) { case GuideLines.X: { Children.Remove(_xGuideLines); foreach (var tb in _xDataMarkers) { Children.Remove(tb); } _xDataMarkers.Clear(); break; } case GuideLines.Y: { Children.Remove(_yGuideLines); foreach (var tb in _yDataMarkers) { Children.Remove(tb); } _yDataMarkers.Clear(); break; } default: { RemoveGuidlines(GuideLines.X); RemoveGuidlines(GuideLines.Y); break; } } }
private IGuider Make(GuideStep guideStep) { GuideLines.Enqueue(guideStep); return(this); }
public async Task ShowAll() { if (GuideLines.Count == 0) { return; } await _jSRuntime.InvokeAsync <object>("guiderJsFunctions.showMany", Setting, Id, GuideLines.ToArray(), DotNetObjectReference.Create(this)); }
void Awake() { instance = this; }
private void RemoveGuidlines(GuideLines gl) { switch (gl) { case GuideLines.X: { Children.Remove(_xGuideLines); foreach (var tb in _xDataMarkers) { Children.Remove(tb); } _xDataMarkers.Clear(); break; } case GuideLines.Y: { Children.Remove(_yGuideLines); foreach (var tb in _yDataMarkers) { Children.Remove(tb); } _yDataMarkers.Clear(); break; } default: { RemoveGuidlines(GuideLines.X); RemoveGuidlines(GuideLines.Y); break; } } }