public void Update(ResxTranslatorTableRow row, ResXDataNode entry, bool isSource = true)
		{
			try
			{
				if (null == row) return;

				if (isSource)
				{
					// ソース
					row.SourceValue = entry.GetValue((ITypeResolutionService)null).ToString();
				}
				else
				{
					// ターゲット
					row.TargetValue = entry.GetValue((ITypeResolutionService)null).ToString();
				}

				// コメント
				if (string.IsNullOrWhiteSpace(row.Comment))
				{
					row.Comment = entry.Comment;
				}
			}
			catch (Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.Message);
			}
		}
Пример #2
0
        public static System.Resources.ResXDataNode EncodeRow(ResxTranslatorTableRow row)
        {
            var node = new ResXDataNode(row.Name, row.TargetValue);

            node.Comment = row.Comment;
            return(node);
        }
Пример #3
0
        public void Update(ResxTranslatorTableRow row, ResXDataNode entry, bool isSource = true)
        {
            try
            {
                if (null == row)
                {
                    return;
                }

                if (isSource)
                {
                    // ソース
                    row.SourceValue = entry.GetValue((ITypeResolutionService)null).ToString();
                }
                else
                {
                    // ターゲット
                    row.TargetValue = entry.GetValue((ITypeResolutionService)null).ToString();
                }

                // コメント
                if (string.IsNullOrWhiteSpace(row.Comment))
                {
                    row.Comment = entry.Comment;
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
            }
        }
		public static System.Resources.ResXDataNode EncodeRow(ResxTranslatorTableRow row)
		{
			var node = new ResXDataNode(row.Name, row.TargetValue);
			node.Comment = row.Comment;
			return node;
		}
 public ResxTranslatorTableRowChangeEvent(ResxTranslatorTableRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }