Exemplo n.º 1
0
        public override void LoadProgramAsync()
        {
            Console.WriteLine("Load Menu");
            font = BDFFont.LoadFont5x7();

            ModuleLoader moduleLoader = new ModuleLoader();

            applications = moduleLoader.LoadModules();
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 public override void LoadProgramAsync()
 {
     Console.WriteLine("Load Clock");
     base.LoadProgramAsync();
     font = BDFFont.LoadFont8x13B();
 }