private void BricksDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { String SelectedCCCCONNECTIONBRICK = this.BricksDataGridView.Rows[BricksDataGridView.CurrentCell.RowIndex].Cells["CCCCONNECTIONBRICK"].Value.ToString(); SyncExecuter.ExecuteBrick( SelectedCCCCONNECTIONBRICK, items_serialized, ResultsTextBox ); /* * DataRow[] foundRows; * * foundRows = connectionBricks.Select("CCCCONNECTIONBRICK = " + SelectedCCCCONNECTIONBRICK); * * for (int i = 0; i < foundRows.Length; i++) * { * * SyncExecuter.ExecuteBrick( * foundRows[i]["SQLCOMMAND"].ToString().Replace("##id##", items_serialized), * foundRows[i]["WEBURL"].ToString(), * foundRows[i]["ROWSONURL"].ToString(), * foundRows[i]["WEBPARAMFORMAT"].ToString(), * ResultsTextBox * ); * * } */ }
private void BricksDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { String SelectedCCCCONNECTIONBRICK = this.BricksDataGridView.Rows[BricksDataGridView.CurrentCell.RowIndex].Cells["CCCCONNECTIONBRICK"].Value.ToString(); SyncExecuter.ExecuteBrick( SelectedCCCCONNECTIONBRICK, "", ResultsTextBox ); }
private void BricksDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { String SelectedCCCCONNECTIONBRICK = this.BricksDataGridView.Rows[BricksDataGridView.CurrentCell.RowIndex].Cells["CCCCONNECTIONBRICK"].Value.ToString(); SyncExecuter.ExecuteBrick( SelectedCCCCONNECTIONBRICK, MTRL.Current["MTRL"].ToString(), this.ResultsTextBox ); /* * DataRow[] foundRows; * * foundRows = connectionBricks.Select("CCCCONNECTIONBRICK = " + SelectedCCCCONNECTIONBRICK); * * for (int i = 0; i < foundRows.Length; i++) * { * * Boolean execute = true; * * if (foundRows[i]["EXECQUESTION"].ToString() != "") * { * DialogResult dialogResult = MessageBox.Show(foundRows[i]["EXECQUESTION"].ToString(), "Συνέχεια", MessageBoxButtons.YesNo); * * if (dialogResult == DialogResult.No) * { * execute = false; * } * * } * * if (execute) * { * SyncExecuter.ExecuteBrick( * * foundRows[i]["SQLCOMMAND"].ToString().Replace("##id##", MTRL.Current["MTRL"].ToString()), * foundRows[i]["WEBURL"].ToString(), * foundRows[i]["ROWSONURL"].ToString(), * foundRows[i]["WEBPARAMFORMAT"].ToString(), * this.ResultsTextBox, * SelectedCCCCONNECTIONBRICK * ); * } * * } */ }