public override void LoadProgramAsync() { Console.WriteLine("Load Menu"); font = BDFFont.LoadFont5x7(); ModuleLoader moduleLoader = new ModuleLoader(); applications = moduleLoader.LoadModules(); }
public Label(string text, BDFFont font, CanvasColor color) : base() { if (font == null) { throw new ArgumentException("Font is not providet"); } Font = font; Text = text; Color = color; }
public void LoadProgram(RunWorkerCompletedEventHandler onComplete) { ImageSequence imageSequence = new ImageSequence(Path.Join(Environment.CurrentDirectory, "Animations", "Loading")); View = imageSequence; worker = new BackgroundWorker(); worker.DoWork += (s, a) => { menuFont = BDFFont.LoadFont5x7(); LoadProgramAsync(); }; worker.RunWorkerCompleted += onComplete; worker.RunWorkerAsync(); }
public AnimatedChar(char c, BDFFont font) { this.c = c; this.font = font; animationStopwatch = new Stopwatch(); Width = font.getCharacterWidth(0); Height = font.Height; animation = new ValueAnimator <int>() { InitialValue = 0, DeltaValue = Height, Animation = ValueAnimations.Linear <int>(), Duration = 1.0f, }; animation.CompletedEvent += (sender, args) => { this.c = new_c; animationStopwatch.Stop(); animationStopwatch.Reset(); animationTimer.Dispose(); animation.Reset(); }; InitialDraw(); }
public override void LoadProgramAsync() { Console.WriteLine("Load Clock"); base.LoadProgramAsync(); font = BDFFont.LoadFont8x13B(); }