Exemple #1
0
        private void openEditorButton_Click(object sender, EventArgs e)
        {
            if (dataGridView1.CurrentCellAddress.IsEmpty)
            {
                requestID     = (int)dataGridView1[0, dataGridView1.CurrentRow.Index].Value;
                formationForm = new RequestFormationForm();
                formationForm.Show();
                formationForm.Text = "Редактирование заявки";

                formationForm.carBrandTextBox.Text    = dataGridView1[2, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.carModelTextBox.Text    = dataGridView1[3, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.VINTextBox.Text         = dataGridView1[4, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.surnameTextBox.Text     = dataGridView1[5, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.nameTextBox.Text        = dataGridView1[6, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.patronymicTextBox.Text  = dataGridView1[7, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.phoneNumberTextBox.Text = dataGridView1[8, dataGridView1.CurrentRow.Index].Value.ToString();
                formationForm.whichForm = "wait";
            }
            else
            {
                MessageBox.Show("Заявка не выбрана!");
                return;
            }
        }
Exemple #2
0
 private void createRequestButton_Click(object sender, EventArgs e)
 {
     requestForm = new RequestFormationForm();
     requestForm.Show();
 }