Subversion Repositories DevTools

Rev

Rev 2094 | Rev 2102 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2094 Rev 2098
Line 698... Line 698...
698
            }
698
            }
699
         }
699
         }
700
      }
700
      }
701
 
701
 
702
 
702
 
-
 
703
 
-
 
704
      public string ReadTag(EA.Element theElement, string tagName)
-
 
705
      {
-
 
706
         string result;
-
 
707
 
-
 
708
         EA.TaggedValue tag = (EA.TaggedValue)theElement.TaggedValues.GetByName(tagName);
-
 
709
         if (null != tag)
-
 
710
         {
-
 
711
            result = tag.Value;
-
 
712
         }
-
 
713
         else
-
 
714
         {
-
 
715
            result = "";
-
 
716
         }
-
 
717
         return result;
-
 
718
      }
-
 
719
 
-
 
720
 
-
 
721
      public bool WriteTag(EA.Element theElement, string tagName, string value)
-
 
722
      {
-
 
723
         bool result;
-
 
724
         EA.TaggedValue tag;
-
 
725
            
-
 
726
         tag = (EA.TaggedValue)theElement.TaggedValues.GetByName(tagName);
-
 
727
         if (null != tag)
-
 
728
         {
-
 
729
            tag.Value = value;
-
 
730
         }
-
 
731
         else
-
 
732
         {
-
 
733
            tag = (EA.TaggedValue)theElement.TaggedValues.AddNew(tagName, value);
-
 
734
         }
-
 
735
 
-
 
736
         if (tag != null)
-
 
737
         {
-
 
738
            result = tag.Update();
-
 
739
         }
-
 
740
         else
-
 
741
         {
-
 
742
            result = false;
-
 
743
         }
-
 
744
         return result;
-
 
745
      }
-
 
746
 
-
 
747
 
703
      #region Temporary or experimental code
748
      #region Temporary or experimental code
704
 
749
 
705
 
750
 
706
 
751
 
707
      /// <summary>
752
      /// <summary>