Esempio n. 1
0
 public void BeginEdit()
 {
     if (inEdit)
     {
         return;
     }
     inEdit = true;
     bakMissingValue = missingValue.Clone() as MissingValue;
 }
Esempio n. 2
0
        public static string JoinContent(List <MissingValue> missingValues, string separator)
        {
            StringBuilder buf = new StringBuilder();

            for (int i = 0; i < missingValues.Count; i++)
            {
                MissingValue mv = missingValues[i];
                buf.Append(mv.Content);
                if (i != missingValues.Count - 1)
                {
                    buf.Append(separator);
                }
            }
            return(buf.ToString());
        }
Esempio n. 3
0
 public void EndEdit()
 {
     if (!inEdit)
     {
         return;
     }
     inEdit = false;
     bakMissingValue = null;
     Memorize();
 }
Esempio n. 4
0
 public MissingValueVM(MissingValue missingValue)
 {
     this.missingValue = missingValue;
 }
Esempio n. 5
0
 public string JoinMissingValuesContent()
 {
     return(MissingValue.JoinContent(MissingValues, " "));
 }
Esempio n. 6
0
 private static List<MissingValue> CreateMissingValues(XElement responseElem)
 {
     List<MissingValue> missingValues = new List<MissingValue>();
     string missingValueStr = (string)responseElem.Attribute(ATTR_MISSING_VALUE);
     if (string.IsNullOrEmpty(missingValueStr))
     {
         return missingValues;
     }
     string[] missingValueStrs = missingValueStr.Split(' ');
     foreach (string str in missingValueStrs)
     {
         MissingValue missingValue = new MissingValue() { Content = str };
         missingValues.Add(missingValue);
     }
     return missingValues;
 }