示例#1
0
 /// <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;
 }
示例#2
0
        /// <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);
        }