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 * ); * } * * } */ }
private static void OnTimerElapsed(object source, EventArgs e) { // GlobalFunctions.updateQTYS(); try { // GlobalFunctions.updateQTYsByMtrlsOnTransactions(); // GlobalFunctions.updateCharQTYSByMtrlsOnTransactions(""); SyncExecuter.ExecuteBricks(); } catch { } if (FirstTime) { FirstTime = false; Settings settings = Settings.getInstance(); myTimer.Interval = settings.timerInterval * 60000; } }
private void button1_Click(object sender, EventArgs e) { SyncExecuter.accessOption = SyncShareAllowanceNonExistnant.ShareToBoth; SyncExecuter.SynchronizeConflict(CurrentSession, dd1, dd2); }