예제 #1
0
    public void ConnectSignals()
    {
        PlayBtn.Connect("pressed", this, nameof(PlayStream));
        StopBtn.Connect("pressed", this, nameof(StopStream));
        NextBtn.Connect("pressed", this, nameof(NextStation));
        Radio.Connect("index_pressed", this, nameof(RadioPressed));
        VolumeBar.Connect("value_changed", this, nameof(ChangeVolume));
        AddStation.Connect("pressed", this, nameof(PopupAddStation));
        NewStation.Connect("confirmed", this, nameof(AddNewStation));

        StationHandler.Connect(nameof(StationHandler.AddNewStation), this, nameof(AddRadioItem));
    }