本文整理匯總了C#中System.Files.GetObject方法的典型用法代碼示例。如果您正苦於以下問題:C# Files.GetObject方法的具體用法?C# Files.GetObject怎麽用?C# Files.GetObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Files
的用法示例。
在下文中一共展示了Files.GetObject方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ResolveResources
public override void ResolveResources(Files.ResourceManager M59ResourceManager, bool RaiseChangedEvent)
{
// no base
// base.ResolveResources(M59ResourceManager, RaiseChangedEvent);
if (OverlayFile != String.Empty)
{
if (RaiseChangedEvent)
Resource = M59ResourceManager.GetObject(OverlayFile);
else
resource = M59ResourceManager.GetObject(OverlayFile);
if (resource != null)
{
animation.GroupMax = resource.FrameSets.Count;
motionAnimation.GroupMax = resource.FrameSets.Count;
}
}
foreach (SubOverlay obj in subOverlays)
obj.ResolveResources(M59ResourceManager, false);
foreach (SubOverlay obj in motionSubOverlays)
obj.ResolveResources(M59ResourceManager, false);
// appearance update
ProcessAppearance(true);
}