Beispiel #1
0
        private void dataGridViewWorkers_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)   /*переход на выбранного сотрудника*/
        {
            int    num = Convert.ToInt32(dataGridViewWorkers.CurrentRow.Cells[0].Value);
            Anketa f   = new Anketa(num, id_user);

            f.Show();
        }
Beispiel #2
0
        private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int  index     = dataGridViewWorkers.SelectedRows[0].Index;
            int  id        = 0;
            bool converted = Int32.TryParse(dataGridViewWorkers[0, index].Value.ToString(), out id);

            if (converted == false)
            {
                return;
            }
            Anketa f = new Anketa(id, id_user);

            f.ShowDialog();
        }
Beispiel #3
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            Anketa f = new Anketa(id_user);

            f.ShowDialog();
        }