本文整理汇总了C#中System.Factory.ToHiddenImages方法的典型用法代码示例。如果您正苦于以下问题:C# Factory.ToHiddenImages方法的具体用法?C# Factory.ToHiddenImages怎么用?C# Factory.ToHiddenImages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Factory
的用法示例。
在下文中一共展示了Factory.ToHiddenImages方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PumpToRight
public PumpToRight()
{
{
var f = new Factory(KnownAssets.Path.Pipe.PumpToRight, this.Container);
this.Outline = f.ToImage("outline");
this.Brown = f.ToImage("brown");
this.Brown.Visibility = Visibility.Hidden;
this.Green = f.ToImage("green");
this.Green.Visibility = Visibility.Hidden;
this.Yellow = f.ToImage("yellow");
this.Water = f.ToWaterImages(
"0_8",
"8_16"
);
this.Glow = f.ToImage("glow");
}
{
var f = new Factory(KnownAssets.Path.Pipe.PumpHandle, this.Container);
var Handles = f.ToHiddenImages(
"1", "2", "3", "4", "5", "6"
);
Handles.AtModulus(0).Visibility = Visibility.Visible;
Action Hide = () => Handles.AtModulus(0).Visibility = Visibility.Hidden;
this.PumpHandleAnimation = (1000 / 23).AtIntervalWithCounter(
Counter =>
{
Hide();
Handles.AtModulus(Counter).Visibility = Visibility.Visible;
Hide = () => Handles.AtModulus(Counter).Visibility = Visibility.Hidden;
}
);
}
}