private void button_Write_Click(object aSender, EventArgs aEventArgs) { object lValue = ValueForm.getValue(mItemInternal.mValue, this); if (lValue != null) { mItemInternal.setValue(lValue); updateForm(); } }
private void buttonEdit_Value_ButtonClick(object aSender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs aEventArgs) { try { object lValue = ValueForm.getValue(mValue, this); if (lValue != null) { mValue = lValue; buttonEdit_Value.Text = StringUtils.ObjectToString(lValue); } } catch (Exception lExc) { MessageForm.showMessage(lExc.Message, this); } }
private void buttonEdit_Value_ButtonClick(object aSender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs aEventArgs) { try { object lValue = ValueForm.getValue(mValue, this); if (lValue != null) { mValue = lValue; buttonEdit_Value.Text = StringUtils.ObjectToString(mValue); } } catch (Exception lExc) { Log.Error("Error while user was editing new value for record. " + lExc.Message, lExc.ToString()); MessageForm.showMessage(lExc.Message, this); } }