本文整理汇总了C#中VixenModules.App.Curves.Curve.UnlinkFromLibraryCurve方法的典型用法代码示例。如果您正苦于以下问题:C# Curve.UnlinkFromLibraryCurve方法的具体用法?C# Curve.UnlinkFromLibraryCurve怎么用?C# Curve.UnlinkFromLibraryCurve使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VixenModules.App.Curves.Curve
的用法示例。
在下文中一共展示了Curve.UnlinkFromLibraryCurve方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: timelineControl_CurveDropped
private void timelineControl_CurveDropped(object sender, ToolDropEventArgs e)
{
List<Element> elementList = new List<Element>();
if (e.Element.Selected)
elementList = TimelineControl.SelectedElements.ToList();
else
elementList.Add(e.Element);
Curve droppedCurve = _curveLibrary.GetCurve(e.Data.GetData(DataFormats.StringFormat).ToString());
foreach (Element elem in elementList)
{
Curve curve = new Curve(droppedCurve);
if (ToolsForm.LinkCurves)
{
curve.LibraryReferenceName = e.Data.GetData(DataFormats.StringFormat).ToString();
}
else
{
curve.LibraryReferenceName = string.Empty;
curve.UnlinkFromLibraryCurve();
}
curve.IsCurrentLibraryCurve = false;
object[] parms = elem.EffectNode.Effect.ParameterValues;
switch (elem.EffectNode.Effect.EffectName)
{
case "Alternating":
if (e.MouseButton == MouseButtons.Right || Control.ModifierKeys.HasFlag(Keys.Control))
{
parms[13] = curve;
}
else
{
parms[12] = curve;
}
break;
case "Pulse":
parms[0] = curve;
break;
case "Chase":
parms[5] = curve;
break;
case "Spin":
parms[11] = curve;
break;
case "Wipe":
parms[2] = curve;
break;
}
elem.EffectNode.Effect.ParameterValues = parms;
TimelineControl.grid.RenderElement(elem);
}
sequenceModified();
}