Esempio n. 1
0
        private void btnEditarSolucao_Click(object sender, EventArgs e)
        {
            DataGridObject obj = new DataGridObject();

            foreach (DataGridViewRow row in dtgSolucao.SelectedRows)
            {
                obj.EquipId = Convert.ToInt32(row.Cells["EquipId"].Value);

                obj.Defeito_Id = Convert.ToInt32(row.Cells["Defeito_Id"].Value);
                obj.Causa      = row.Cells["Causa"].Value.ToString();
                obj.Peca       = row.Cells["Peca"].Value.ToString();
                obj.Sintoma    = row.Cells["Sintoma"].Value.ToString();
                obj.Solucao    = row.Cells["Solucao"].Value.ToString();

                obj.Observacao = row.Cells["Observacao"].Value.ToString();
            }

            if (editarSolucaoForm == null || editarSolucaoForm.IsDisposed == true)
            {
                editarSolucaoForm = new AdicionarSolucao(obj);



                editarSolucaoForm.Activate();
                editarSolucaoForm.Enabled = true;
                editarSolucaoForm.Show();
            }
        }
Esempio n. 2
0
        private void btnAddSolucao_Click(object sender, EventArgs e)
        {
            if (addSolucaoForm == null || addSolucaoForm.IsDisposed == true)
            {
                addSolucaoForm = new AdicionarSolucao(EquipamentoIDPesquisado);

                addSolucaoForm.Activate();
                addSolucaoForm.Enabled = true;
                addSolucaoForm.Show();
            }
        }