Example #1
0
        private void WriteToTable_Value_Editor_FinishEditing(object sender, AT.STO.UI.Win.DropDownValueChangedEventArgs e)
        {
            if (ConditionList.ActiveSheet.ActiveRow.Tag == null)
            {
                ConditionList.ActiveSheet.ActiveRow.Tag = new ExpressionInfo();
            }

            ExpressionInfo expressionInfo = ConditionList.ActiveSheet.ActiveRow.Tag as ExpressionInfo;
            DropDownNode   dropDownNode   = e.Value as DropDownNode;

            if (dropDownNode.Tag is FieldInfo && dropDownNode.Parent != null)
            {
                ReadFromTableName = dropDownNode.Parent.Name;
            }
            expressionInfo.DataValue = dropDownNode.Tag as FieldInfo;
            ConditionList.ActiveSheet.Cells[ConditionList.ActiveSheet.ActiveRowIndex, 2].Value = dropDownNode.Tag as FieldInfo;

            WriteToTable_Value_Editor.SendToBack();
        }
Example #2
0
 private void WriteToTable_Value_Editor_DropDownClosed(object sender, System.EventArgs e)
 {
     WriteToTable_Value_Editor.SendToBack();
 }