コード例 #1
0
        public override void Initialize()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            settings = new RegistrySettings();
            settings.load();

            winampController = new WinampControllerImpl(Winamp);
            manager          = new NowPlayingToFileManager(settings, winampController);
        }
コード例 #2
0
        public SettingsDialog(ISettings settings, WinampControllerImpl winampController)
        {
            this.settings         = settings;
            this.winampController = winampController;
            InitializeComponent();

            // Make buttons have animated state transitions, like every other program in the OS
            // https://stackoverflow.com/q/53456865/979493
            foreach (Control control in Controls)
            {
                if (control is ButtonBase flatStylableControl)
                {
                    flatStylableControl.FlatStyle = FlatStyle.System;
                }
            }
        }