﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ChessGame.Forms
{
    public partial class frmNewGame : Form
    {
        public frmNewGame()
        {
            InitializeComponent();
            if (GameControl.humanColor == 1)
            {
                rb_White.Checked = true;
            }
            else
            {
                rb_black.Checked = true;
            }
            if (GameControl.p1 == Player.Type.Computer || GameControl.p2 == Player.Type.Computer)
            {
                rb_machine.Checked = true;
            }
            else rb_Human.Checked = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }
    }
}
