protected override void PreQueryResultValue(QueryResultValueEventArgs queryResultValueEventArgs_0) { base.PreQueryResultValue(queryResultValueEventArgs_0); if (this.SynchronizeEditValueWithCheckedItems) { queryResultValueEventArgs_0.Value = this.treeNode_0.Text; } }
private void ceSearch_QueryResultValue(object sender, QueryResultValueEventArgs e) { _needChange = false; if (CancelKeepText && !_searchDoneClosePopup) { OldText = this.Text; } this.Text = OldText; _needChange = true; this.Refresh(); this.Select(this.Text.Length, 0); }
private void pppCtnrEdtLinhasImpares_QueryResultValue(object sender, QueryResultValueEventArgs e) { if (sender == this.pppCtnrEdtLinhasImpares) { e.Value = DelegatePupulaTipoDeLinha((PopupContainerEdit)sender, this.prtyGrdCtrlLinhasImpares, this.chckEdLinhasImpares); } else { e.Value = DelegatePupulaTipoDeLinha((PopupContainerEdit)sender, this.prtyGrdCtrlLinhasPares, this.chckEdLinhasPares); } DefinePropriedadeDefaultGridView(); }
protected override void PreQueryResultValue(QueryResultValueEventArgs e) { if (CanRaiseConvertCheckStateToEditValue) { ConvertCheckStateToEditValueEventArgs ea = new ConvertCheckStateToEditValueEventArgs(Items.Count); for (int i = 0; i < Items.Count; i++) { if (Items[i].CheckState == System.Windows.Forms.CheckState.Checked) { ea.CheckedState[i] = Items[i].Enabled; } } RaiseConvertCheckStateToEditValue(ea); e.Value = ea.EditValue; } }
private void ppStk_QueryResultValue(object sender, QueryResultValueEventArgs e) { if (e.Value == null) { return; } if (e.Value is int) { return; } else if (e.Value is DataRow) { e.Value = ((DataRow)e.Value).Field <int>("StockLink"); } else { } }
static void edit_QueryResultValue(object sender, QueryResultValueEventArgs e) { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } var selectedList = editValue.GetSelection(); if (selectedList.Count > 0) { e.Value = selectedList[0]; } }
void popupContainerEdit1_QueryResultValue(object sender, QueryResultValueEventArgs e) { int[] selectedRows = gridView1.GetSelectedRows(); object value = ""; StringBuilder sb = new StringBuilder(); cUS_MAP_SEC_EVENT_TBTableAdapter.DataDelete(Convert.ToDecimal(mapSecEventGw.GetRowCellValue(mapSecEventGw.FocusedRowHandle, colPR_ID))); foreach (int selectionRow in selectedRows) { if (sb.ToString().Length > 0) { sb.Append(", "); } value = gridView1.GetRowCellValue(selectionRow, colSEC_EVENT_ID); sb.Append(gridView1.GetRowCellValue(selectionRow, colTYPE_NAME)); cUS_MAP_SEC_EVENT_TBTableAdapter.DataInsert(mapSecEventGw.GetRowCellValue(mapSecEventGw.FocusedRowHandle, colPROVYS_NAME).ToString(), Convert.ToDecimal(value), Convert.ToDecimal(mapSecEventGw.GetRowCellValue(mapSecEventGw.FocusedRowHandle, colPR_ID))); } e.Value = sb.ToString(); cUS_MAP_SEC_EVENT_TBTableAdapter.P_CUS_MAP_SEC_EVENT_TB_UPD(mapSecEventGw.GetRowCellValue(mapSecEventGw.FocusedRowHandle, colPROVYS_NAME).ToString(), sb.ToString()); }
void riPopup_QueryResultValue(object sender, QueryResultValueEventArgs e) { e.Value = richEditControl.Document.RtfText; }
void RepositoryItem_QueryResultValue(object sender, QueryResultValueEventArgs e) { e.Value = GetCheckedValues().ToArray(); }
private void repositoryItemPopupContainerEdit2_QueryResultValue(object sender, QueryResultValueEventArgs e) { e.Value = gridView3.GetFocusedRowCellDisplayText("Name"); }
private void RepositoryItemPopupContainerEdit1_QueryResultValue(object sender, QueryResultValueEventArgs e) { }
void RepositoryItem_QueryResultValue(object sender, QueryResultValueEventArgs e) { if (this.autoBind) { e.Value = GetSelectedValue(); } }
private void repositoryItemPopupContainerEdit1_QueryResultValue(object sender, QueryResultValueEventArgs e) { this.value = e.Value.ToString(); List <DataRow> list = new List <DataRow>((IEnumerable <DataRow>) this.ds1.destanationroute.Select("iddestanation = " + this.value)); foreach (DestanationForm.RouteItem routeItem in (ListBox.ObjectCollection) this.checkedListBox1.Items) { DataRow[] dataRowArray = this.ds1.destanationroute.Select(string.Concat(new object[4] { (object)"iddestanation = ", (object)this.value, (object)" and idroute = ", (object)routeItem.ID })); DataRow dataRow1 = (DataRow)null; foreach (DataRow dataRow2 in dataRowArray) { if (dataRow2.RowState != DataRowState.Deleted) { dataRow1 = dataRow2; break; } } if (this.checkedListBox1.CheckedItems.Contains((object)routeItem)) { if (dataRow1 == null) { ds.destanationrouteRow destanationrouteRow = this.ds1.destanationroute.NewdestanationrouteRow(); destanationrouteRow.iddestanation = (int)this.SelectedRow["iddestanation"]; destanationrouteRow.idroute = routeItem.ID; destanationrouteRow.iddestanationroute = dbconn.GetGenId("gen_destanationroute"); this.ds1.destanationroute.Rows.Add((DataRow)destanationrouteRow); } } else if (dataRow1 != null) { dataRow1.Delete(); } } }
private void dlvAdrRepositoryItemPopupContainerEdit_QueryResultValue(object sender, QueryResultValueEventArgs e) { e.Value = dlvAdrGridView.GetFocusedRowCellValue(colADRESdlv); }
private void repositoryItemPopupContainerEdit1_QueryResultValue(object sender, QueryResultValueEventArgs e) { e.Value = gridView2.GetFocusedRowCellValue("RES_NO"); }