コード例 #1
0
        public EnterNameDialog(NamesScreen ns)
        {
            this.ns = ns;
            InitializeComponent();

            this.BackColor   = Design.COLORLIGHTER;
            this.Font        = Design.FONTNORMAL;
            btnAdd.BackColor = Design.COLORLIGHTEST;
            btnAdd.FlatStyle = FlatStyle.Flat;
        }
コード例 #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            name = txtTournamentName.Text;
            date = dtpDate.Value;

            if (name == "")
            {
                MessageBox.Show("Voer de toernooinaam in.");
                return;
            }
            try
            {
                amountOfFields = ConvertStringToInt(txtAmountOfRounds.Text);
                NamesScreen ns = new NamesScreen(this);
                this.Hide();
                ns.Show();
            }
            catch (Exception ex) {
                MessageBox.Show("Vul 'Aantal velden' in met een geldige waarde.");
            }
        }