예제 #1
0
        private void AddFieldToList(LinkField field, string oldValue)
        {
            var ca = LinkCellAction.Text.ToCellAction();

            if (ca == CellActionType.Save)
            {
                if (field == LinkField.Value)
                {
                    CellField.Items.Add(field.ToRussian());
                    CellField.Text = LinkField.Value.ToRussian();
                }
            }
            else
            {
                if ((ca == CellActionType.Link && field.IsLinkField()) || (ca == CellActionType.Value && !field.IsValueField()))
                {
                    CellField.Items.Add(field.ToRussian());
                }
                if (field.ToRussian() == oldValue)
                {
                    CellField.Text = oldValue;
                }
            }
        }