/// <summary> /// Raises the <see cref="MazeChanged"/> event. /// </summary> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> /// <remarks></remarks> private void OnMazeChanged(MazeEventArgs e) { EventHandler<MazeEventArgs> handler = MazeChanged; if (handler != null) handler(this, e); }
/// <summary> /// Handles the MazeChanged event of the Maze control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Labyrinth.MazeEventArgs"/> instance containing the event data.</param> /// <remarks></remarks> void MazeMazeChanged(object sender, MazeEventArgs e) { EventHandler<MazeEventArgs> handler = MazeChanged; if (handler != null) handler(this, new MazeEventArgs(Maze)); }