Beispiel #1
0
        /// <summary>
        /// Handles the Click event of the addCivilizationButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
        private void addCivilizationButton_Click(object sender, RoutedEventArgs e)
        {
            var msgBox = new CivilizationMessageBox();

            msgBox.ShowDialog();

            var civ = new Civilization.ClockWork.Civilization(msgBox.CivilizationName, new PrototypeCivilizationFactory());

            civilizations.Add(civ);
        }
        /// <summary>
        /// Handles the Click event of the addCivilizationButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
        private void addCivilizationButton_Click(object sender, RoutedEventArgs e)
        {
            var msgBox = new CivilizationMessageBox();

            msgBox.ShowDialog();

            var civ = new Civilization.ClockWork.Civilization(msgBox.CivilizationName, new PrototypeCivilizationFactory());

            civilizations.Add(civ);
        }