private void repInsulatingLiquidType_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Ellipsis) { string FieldName = "InsulatingLiquidTypeID"; InsulatingLiquidTypeForm f = new InsulatingLiquidTypeForm(); f.m_bCanSelect = true; DialogResult res = f.ShowDialog(this); this.qInsulatingLiquidTypesTableAdapter.Fill(this.dataSetQuery.QInsulatingLiquidTypes); if (this.dataSetQuery.QInsulatingLiquidTypes.Count > 7) { repInsulatingLiquidType.DropDownRows = 7; } else { repInsulatingLiquidType.DropDownRows = this.dataSetQuery.QInsulatingLiquidTypes.Count; } if (res == System.Windows.Forms.DialogResult.OK) { GridView.BeginUpdate(); DataRowView drv = (DataRowView)(this.qCondenserTypesBindingSource.Current); drv.Row[FieldName] = f.m_SelectID; GridView.EndUpdate(); } } }
private void InsulatingLiquidType_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { InsulatingLiquidTypeForm f = new InsulatingLiquidTypeForm(); f.ShowDialog(this); m_strFilterString = tFind.Text; FindEquipments(-1); } catch (Exception ex) { MyLocalizer.XtraMessageBoxShow("В программе произошла ошибка. Описание: " + ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }