private void buttonEdit1_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            IQDataItemThresholdVarConfig.MinimizeIqEditor(this);
            int obdId = CallClarion.GetObsDefDataItem(0);

            IQDataItemThresholdVarConfig.RestoreIqEditor(this);
            if (obdId == 0)
            {
                return;
            }

            ObsDef obd = ObsDef.GetEntityById(obdId);

            PopulateChildControls(obd);
        }
Beispiel #2
0
        /// <summary>
        /// Opens the data item browse
        /// </summary>
        /// <returns></returns>
        protected override IQOpResult <Guid> OpenEditor(Guid defaultValue, IQVarElementTarget target)
        {
            OnBeforeClarionEditorInvoke(this);
            int obdId = CallClarion.GetObsDefDataItem(0);

            OnAfterClarionEditorInvoke(this);

            //If the user hit "close", don't update the primaryKeyValue
            return((obdId != 0)
                       ? new IQOpResult <Guid> {
                Result = OpResultEnum.Completed, Value = ObsDef.GetEntityById(obdId).OBD_GUID
            }
                       : new IQOpResult <Guid> {
                Result = OpResultEnum.Cancelled
            });
        }