Пример #1
0
        private void addRaceMode_toolStripButton_Click(object sender, EventArgs e)
        {
            AddRaceMode  addRace = new AddRaceMode(admin, false);
            DialogResult dr      = addRace.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                fillRaceModes();
            }
        }
Пример #2
0
        private void editRaceMode_toolStripButton3_Click(object sender, EventArgs e)
        {
            if (raceModes_dataGridView1.SelectedRows.Count == 0)
            {
                return;
            }

            Int16 idRaceMode = Convert.ToInt16(
                raceModes_dataGridView1.SelectedRows[0].Cells[0].Value);


            AddRaceMode  addRace = new AddRaceMode(admin, true, idRaceMode);
            DialogResult dr      = addRace.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                fillRaceModes();
            }
        }