示例#1
0
			private bool TryToRestoreValidTwficInfo(StTxtPara.TwficInfo twficInfo)
			{
				if (twficInfo != null)
				{
					int hvoIdenticalTwfic = twficInfo.FindIdenticalTwfic();
					if (hvoIdenticalTwfic != 0)
					{
						if (hvoIdenticalTwfic != twficInfo.Object.Hvo)
						{
							// regenerate the twficInfo according to the identical twfic;
							twficInfo.ReloadInfo(hvoIdenticalTwfic);
						}
						return true;
					}
				}
				return false;
			}