Ejemplo n.º 1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            CustomColor.SetMainColor(Color.FromArgb(sliderRed.Value, sliderGreen.Value, sliderBlue.Value));
            MainPageOfPlayer.UpdateButtonImage();
            (Application.OpenForms["MainPageOfPlayer"].Controls["menu"].Controls["ButtonAdd"] as ns1.BunifuImageButton).Image              = CustomColor.FillShape(Properties.Resources.add);
            (Application.OpenForms["MainPageOfPlayer"].Controls["menu"].Controls["buttonDelete"] as ns1.BunifuImageButton).Image           = CustomColor.FillShape(Properties.Resources.delete);
            (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["ButtonPlay"] as ns1.BunifuImageButton).Image      = CustomColor.FillShape(Properties.Resources.Circled_Play_100px);
            (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["ButtonStop"] as ns1.BunifuImageButton).Image      = CustomColor.FillShape(Properties.Resources.stop1);
            (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["ButtonPause"] as ns1.BunifuImageButton).Image     = CustomColor.FillShape(Properties.Resources.pause1);
            (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["ButtonSkipLeft"] as ns1.BunifuImageButton).Image  = CustomColor.FillShape(Properties.Resources.SkipLeft);
            (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["ButtonSkipRight"] as ns1.BunifuImageButton).Image = CustomColor.FillShape(Properties.Resources.SkipRight);
            (Application.OpenForms["MainPageOfPlayer"].Controls["menu"].Controls["ButtonSettings"] as ns1.BunifuImageButton).Image         = CustomColor.FillShape(Properties.Resources.settings);
            (Application.OpenForms["MainPageOfPlayer"].Controls["menu"].Controls["buttonMainList"] as ns1.BunifuFlatButton).Iconimage      = CustomColor.FillShape(Properties.Resources.list);
            (Application.OpenForms["MainPageOfPlayer"].Controls["menu"].Controls["buttonMainList"] as ns1.BunifuFlatButton).Text           = "   Основной плейлист";
            (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["buttonDownload"] as ns1.BunifuImageButton).Image  = CustomColor.FillShape(Properties.Resources.Download);

            if ((Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["buttonMute"] as ns1.BunifuImageButton).Image == Properties.Resources.No_audio)
            {
                (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["buttonMute"] as ns1.BunifuImageButton).Image = CustomColor.FillShape(Properties.Resources.No_audio);
            }
            else
            {
                (Application.OpenForms["MainPageOfPlayer"].Controls["bottomPanel"].Controls["buttonMute"] as ns1.BunifuImageButton).Image = CustomColor.FillShape(Properties.Resources.yes_audio);
            }
        }