Example #1
0
        public void ProcessProgressionEvent(ProgressionEvent Event)
        {
            if (Event == null)
            {
                return;
            }

            // if we need to, invoke the delegate
            if (InvokeRequired)
            {
                Invoke(new DelegateProcessProgressionEvent(ProcessProgressionEvent), new object[] { Event });
                return;
            }

            if (Event.State == EProgressionState.InstigatorConnected)
            {
                ProgressionData = new Progressions();
                OverallProgressBar.Invalidate();
            }

            if (ProgressionData != null)
            {
                if (ProgressionData.ProcessEvent(Event))
                {
                    VisualiserGridViewResized = true;
                    VisualiserGridView.Invalidate();
                    OverallProgressBar.Invalidate();
                }
            }
        }
Example #2
0
 /// <summary>
 /// Called when it starts processing TTC files.
 /// </summary>
 public void StartProcessingTtc()
 {
     TtcProgressBar             = OverallProgressBar.Spawn(NumTtc, null, ChildProgressBarOptions);
     OverallProgressBar.Message = $"[{OverallProgressBar.CurrentTick} / {OverallProgressBar.MaxTicks}] Processing TTC files...";
 }
Example #3
0
 /// <summary>
 /// Called after the TTF file with the specified filename is done processing.
 /// </summary>
 /// <param name="filename">The filename of the font.</param>
 public void DoneProcessingTtf(string filename)
 {
     TtfProgressBar.Tick($"[{TtfProgressBar.CurrentTick + 1} / {TtfProgressBar.MaxTicks}] \"{filename}\": Done processing.");
     OverallProgressBar.Tick($"[{OverallProgressBar.CurrentTick + 1} / {OverallProgressBar.MaxTicks}] Processing TTF files...");
 }
Example #4
0
 public void Dispose()
 {
     OverallProgressBar?.Dispose();
     TtfProgressBar?.Dispose();
     TtcProgressBar?.Dispose();
 }