コード例 #1
0
ファイル: Maze4.cs プロジェクト: sunsided/maze-evolution
 /// <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);
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: sunsided/maze-evolution
 /// <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));
 }