private void ModificationValue_Editor_FinishEditing(object sender, AT.STO.UI.Win.DropDownValueChangedEventArgs e) { if (ModificationList.ActiveSheet.ActiveRow.Tag == null) { ModificationList.ActiveSheet.ActiveRow.Tag = new ExpressionInfo(); } ExpressionInfo expressionInfo = ModificationList.ActiveSheet.ActiveRow.Tag as ExpressionInfo; DropDownNode dropDownNode = e.Value as DropDownNode; expressionInfo.DataValue = dropDownNode.Tag as FieldInfo; ModificationList.ActiveSheet.Cells[ModificationList.ActiveSheet.ActiveRowIndex, 2].Value = dropDownNode.Tag as FieldInfo; ModificationValue_Editor.SendToBack(); }
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(); }