示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Poezdki poezdki = new Poezdki();

            poezdki.number = dataGridView1.CurrentRow.Index + 1;
            poezdki.s      = 0;
            poezdki.Show();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Poezdki poezdki = new Poezdki();
            int     s       = dataGridView1.RowCount;

            poezdki.number = int.Parse(dataGridView1[0, s - 1].Value.ToString()) + 1;
            poezdki.ShowDialog();
        }