void SetInfo() { txtDataType.Text = _LnqProductionParams.DataType; txtRangeOfValues.Text = _LnqProductionParams.RangeOfValues; txtRemark.Text = _LnqProductionParams.Remark; txtValue1.Text = _LnqProductionParams.Value1; txtValue2.Text = _LnqProductionParams.Value2; txtValue3.Text = _LnqProductionParams.Value3; txtValue4.Text = _LnqProductionParams.Value4; txtValue5.Text = _LnqProductionParams.Value5; txtValue6.Text = _LnqProductionParams.Value6; if (_LnqProductionParams.RangeOfValues.Substring(0, 4) == "选择模式") { TextBoxShow.FindType findType = GlobalObject.GeneralFunction.StringConvertToEnum <TextBoxShow.FindType>( _LnqProductionParams.RangeOfValues.Substring(_LnqProductionParams.RangeOfValues.IndexOf("【") + 1, _LnqProductionParams.RangeOfValues.IndexOf("】") - _LnqProductionParams.RangeOfValues.IndexOf("【") - 1)); foreach (Control cl in this.Controls) { if (cl is TextBoxShow && cl.Name.Contains("txtValue")) { ((TextBoxShow)cl).ShowResultForm = true; ((TextBoxShow)cl).FindItem = findType; } } } }
/// <summary> /// Utility function that sets a new value for the DecimalPlaces property of the cell. This function is used by /// the cell and column DecimalPlaces property. The column uses this method instead of the DecimalPlaces /// property for performance reasons. This way the column can invalidate the entire column at once instead of /// invalidating each cell of the column individually. A row index needs to be provided as a parameter because /// this cell may be shared among multiple rows. /// </summary> internal void SetFindItem(int rowIndex, TextBoxShow.FindType value) { this.m_findType = value; if (OwnsEditingNumericUpDown(rowIndex)) { this.EditingTextBoxShow.FindItem = value; } }