﻿using System;

namespace Meeting27April
{
    public class RadioStationWithPattern
    {
        private event EventHandler<string> eventRadioWaves;

        public event EventHandler<string> RadioWaves
        {
            add
            {
                this.eventRadioWaves += value;
            }
            remove
            {
                this.eventRadioWaves -= value;
            }
        }

        public void Emit(string message)
        {
            this.eventRadioWaves?.Invoke(this, message);
        }
    }
}
