Exemplo n.º 1
0
        public Form1(FileInfo fLesson)
        {
            InitializeComponent();
            Form1.currObject = this;
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            switcher.InitToOff();
            displayFonts.AddFontFile(@"fonts\pixelmix.ttf");

            radioStation  = new RadioStation(switcher);
            currentWidget = WidgetInit.InitDefaultWidgets(radioStation);

            WidgetTextToRichText(currentWidget);
            timer1.Interval         = 500;
            timerAnimation.Interval = 1000;
            fileLesson            = fLesson;
            richDispley.BackColor = displayColor;
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            MainWindow.currObject = this;

            this.btCall.Name    = buttonKeyString[ButtonKey.CALL];
            this.btClr.Name     = buttonKeyString[ButtonKey.CLR];
            this.btDown.Name    = buttonKeyString[ButtonKey.DOWN];
            this.btEnt.Name     = buttonKeyString[ButtonKey.ENT];
            this.btLeft.Name    = buttonKeyString[ButtonKey.LEFT];
            this.btLt.Name      = buttonKeyString[ButtonKey.LT];
            this.btMode.Name    = buttonKeyString[ButtonKey.MODE];
            this.btOpt.Name     = buttonKeyString[ButtonKey.OPT];
            this.btPgm.Name     = buttonKeyString[ButtonKey.PGM];
            this.btPreDown.Name = buttonKeyString[ButtonKey.PRE_MINUS];
            this.btPreUp.Name   = buttonKeyString[ButtonKey.PRE_PLUS];
            this.btRigth.Name   = buttonKeyString[ButtonKey.RIGTH];
            this.btSql.Name     = buttonKeyString[ButtonKey.SQL];
            this.btUp.Name      = buttonKeyString[ButtonKey.UP];
            this.btUpdate.Name  = buttonKeyString[ButtonKey.UPDATE];
            this.btVolDown.Name = buttonKeyString[ButtonKey.VOLUME_MINUS];
            this.btVolUp.Name   = buttonKeyString[ButtonKey.VOLUME_PLUS];
            this.btZero.Name    = buttonKeyString[ButtonKey.ZERO];


            //SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            switcher.InitToOff();
            displayFonts.AddFontFile(@"fonts\pixelmix.ttf");
            richDispley.FontFamily = new FontFamily(displayFonts.Families[0].Name);
            richDispley.FontWeight = FontWeight.FromOpenTypeWeight(500);
            richDispley.Background = new SolidColorBrush(displayColor);

            radioStation  = new RadioStation(switcher);
            currentWidget = WidgetInit.InitDefaultWidgets(radioStation);

            WidgetTextToRichText(currentWidget);
            timer1.Interval         = new TimeSpan(0, 0, 0, 0, 500);
            timer1.Tick            += timer1_Tick;
            timerAnimation.Interval = new TimeSpan(0, 0, 0, 1);
            //fileLesson = fLesson;
            //richDisplay.BackColor = displayColor;
        }