/// <summary> /// Changes the displayed name every time the wheel is updated /// </summary> /// <param name="sender"></param> /// <param name="e">A client profile from the list</param> private void _wheelOfFortune_WheelUpdated(object sender, WheelOfFortuneUpdatedEventArgs e) { Winner = e.ClientProfile; }
/// <summary> /// Should be called when the displayed name should be changed /// </summary> /// <param name="e">client profile of the name that should be displayed</param> protected virtual void WheelUpdatedEvent(WheelOfFortuneUpdatedEventArgs e) { EventHandler <WheelOfFortuneUpdatedEventArgs> handler = WheelUpdated; handler?.Invoke(this, e); }