/// <summary> /// Cancel the RowPrompt. Signal the page that contains this control. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CancelButton_Click(object sender, EventArgs e) { if (RowPromptResultsEvent != null) { RowPromptResults results = new RowPromptResults(); results.Action = ActionCode.Cancel; results.PrimaryKeys = PrimaryKeys; RowPromptResultsEvent(this, results); } }
/// <summary> /// process the input to the prompted columns. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OkButton_Click(object sender, EventArgs e) { if (RowPromptResultsEvent != null) { RowPromptResults results = new RowPromptResults(); results.Action = ActionCode; results.ColumnValues = OutputColumnValues; results.PrimaryKeys = PrimaryKeys; RowPromptResultsEvent(this, results); } else { using (SqlConnection conn = new SqlConnection(ConnString)) { conn.Open(); Sql.SqlCore.UpdateRow(conn, PromptTable, RowSelect, OutputColumnValues); } } }