/// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="father">       Father Window</param>
 private frmGameParameter(MainWindow father)
     : this()
 {
     Father = father;
     switch(Father.PlayingMode) {
     case MainWindow.PlayingModeE.DesignMode:
         throw new System.ApplicationException("Must not be called in design mode.");
     case MainWindow.PlayingModeE.PlayerAgainstComputer:
         radioButtonPlayerAgainstComputer.IsChecked = true;
         break;
     case MainWindow.PlayingModeE.PlayerAgainstPlayer:
         radioButtonPlayerAgainstPlayer.IsChecked = true;
         break;
     case MainWindow.PlayingModeE.ComputerAgainstComputer:
         radioButtonComputerAgainstComputer.IsChecked = true;
         break;
     }
     switch(Father.m_eComputerPlayingColor) {
     case ChessBoard.PlayerColorE.Black:
         radioButtonComputerPlayBlack.IsChecked = true;
         break;
     case ChessBoard.PlayerColorE.White:
         radioButtonComputerPlayWhite.IsChecked = true;
         break;
     }
     CheckState();
 }
        /// <summary>
        /// Ask for the game parameter
        /// </summary>
        /// <param name="father">   Father window</param>
        /// <returns>
        /// true if succeed
        /// </returns>
        public static bool AskGameParameter(MainWindow father)
        {
            bool                bRetVal;
            frmGameParameter    frm;

            frm         = new frmGameParameter(father);
            frm.Owner   = father;
            bRetVal     = (frm.ShowDialog() == true);
            return(bRetVal);
        }