Esempio n. 1
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            AddFuel form = new AddFuel(admin, labelSmooth15.Text, KartID);

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ShowStatistic();
            }

            form.Dispose();
        }
Esempio n. 2
0
        private void toolStripButton10_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count > 0)
            {
                int     r    = dataGridView1.SelectedCells[0].RowIndex;
                AddFuel form = new AddFuel(parent.admin, dataGridView1.SelectedRows[0].Cells[2].Value.ToString(), dataGridView1.SelectedRows[0].Cells[0].Value.ToString());

                if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    parent.admin.ShowKarts(dataGridView1);
                    dataGridView1.Rows[r].Selected = true;
                }

                form.Dispose();
            }
        }