当前位置: 首页>>代码示例>>C#>>正文


C# ICopyManager.GetCopy方法代码示例

本文整理汇总了C#中ICopyManager.GetCopy方法的典型用法代码示例。如果您正苦于以下问题:C# ICopyManager.GetCopy方法的具体用法?C# ICopyManager.GetCopy怎么用?C# ICopyManager.GetCopy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICopyManager的用法示例。


在下文中一共展示了ICopyManager.GetCopy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeepCopy

 public void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   ListViewItemGenerator icg = (ListViewItemGenerator) source;
   _itemTemplate = copyManager.GetCopy(icg._itemTemplate);
   _itemContainerStyle = copyManager.GetCopy(icg._itemContainerStyle);
   _parent = copyManager.GetCopy(icg._parent);
   if (icg._items == null)
     _items = null;
   else
   {
     _items = new List<object>(icg._items.Count);
     foreach (object item in icg._items)
       _items.Add(copyManager.GetCopy(item));
   }
   _populatedStartIndex = icg._populatedStartIndex;
   _populatedEndIndex = icg._populatedEndIndex;
   if (icg._materializedItems == null)
     _materializedItems = null;
   else
   {
     _materializedItems = new List<FrameworkElement>(icg._materializedItems.Count);
     foreach (FrameworkElement item in icg._materializedItems)
       _materializedItems.Add(copyManager.GetCopy(item));
   }
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:25,代码来源:ListViewItemGenerator.cs

示例2: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   CheckBox cb = (CheckBox) source;
   IsChecked = cb.IsChecked;
   Checked = copyManager.GetCopy(cb.Checked);
   Unchecked = copyManager.GetCopy(cb.Unchecked);
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:8,代码来源:CheckBox.cs

示例3: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   PointAnimation a = (PointAnimation) source;
   From = copyManager.GetCopy(a.From);
   To = copyManager.GetCopy(a.To);
   By = copyManager.GetCopy(a.By);
 }
开发者ID:VicDemented,项目名称:MediaPortal-2,代码行数:8,代码来源:PointAnimation.cs

示例4: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   InvokeCommand ic = (InvokeCommand) source;
   CommandStencil = copyManager.GetCopy(ic.CommandStencil);
   foreach (object o in ic._commandParameters)
     _commandParameters.Add(copyManager.GetCopy(o));
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:8,代码来源:InvokeCommand.cs

示例5: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   Grid g = (Grid) source;
   foreach (RowDefinition row in g.RowDefinitions)
     RowDefinitions.Add(copyManager.GetCopy(row));
   foreach (ColumnDefinition col in g.ColumnDefinitions)
     ColumnDefinitions.Add(copyManager.GetCopy(col));
 }
开发者ID:BigGranu,项目名称:MediaPortal-2,代码行数:9,代码来源:Grid.cs

示例6: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   TriggerBase tb = (TriggerBase) source;
   foreach (TriggerAction ac in tb.EnterActions)
     EnterActions.Add(copyManager.GetCopy(ac));
   foreach (TriggerAction ac in tb.ExitActions)
     ExitActions.Add(copyManager.GetCopy(ac));
   foreach (Setter s in tb.Setters)
     Setters.Add(copyManager.GetCopy(s));
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:11,代码来源:TriggerBase.cs

示例7: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   Detach();
   base.DeepCopy(source, copyManager);
   StarRatingPanel p = (StarRatingPanel)source;
   StarTemplate = copyManager.GetCopy(p.StarTemplate);
   StarReadOnlyTemplate = copyManager.GetCopy(p.StarReadOnlyTemplate);
   Maximum = p.Maximum;
   Value = p.Value;
   IsReadOnly = p.IsReadOnly;
   Attach();
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:12,代码来源:StarRatingPanel.cs

示例8: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   CommandBaseMarkupExtension cbme = (CommandBaseMarkupExtension) source;
   _source.Source = copyManager.GetCopy(cbme._source.Source);
   _source.ElementName = cbme._source.ElementName;
   _source.RelativeSource = cbme._source.RelativeSource;
   _path = cbme._path;
   _compiledPath = cbme._compiledPath;
   _source.Converter = copyManager.GetCopy(cbme._source.Converter);
   _source.ConverterParameter = copyManager.GetCopy(cbme._source.ConverterParameter);
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:12,代码来源:CommandBaseMarkupExtension.cs

示例9: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   CommandMarkupExtension cme = (CommandMarkupExtension) source;
   foreach (object o in cme._parameters)
     _parameters.Add(copyManager.GetCopy(o));
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:7,代码来源:CommandMarkupExtension.cs

示例10: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   SoundPlayerAction s = (SoundPlayerAction)source;
   Source = copyManager.GetCopy(s.Source);
   DisableOnAudioOutput = s.DisableOnAudioOutput;
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:7,代码来源:SoundPlayerAction.cs

示例11: DeepCopy

    protected IItemProvider _newItemProvider = null; // Store new item provider until next render cylce

    #endregion

    #region Ctor

    public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
    {
      base.DeepCopy(source, copyManager);
      VirtualizingStackPanel p = (VirtualizingStackPanel) source;
      _itemProvider = copyManager.GetCopy(p._itemProvider);
      _arrangedItems.Clear();
      _averageItemSize = 0;
    }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:14,代码来源:VirtualizingStackPanel.cs

示例12: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   Detach();
   base.DeepCopy(source, copyManager);
   Setter s = (Setter) source;
   Value = copyManager.GetCopy(s.Value);
   Attach();
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:8,代码来源:Setter.cs

示例13: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   TemplateWithTriggers twt = (TemplateWithTriggers) source;
   IList<TriggerBase> triggers = Triggers;
   foreach (TriggerBase t in twt.Triggers)
     triggers.Add(copyManager.GetCopy(t));
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:8,代码来源:TemplateWithTriggers.cs

示例14: DeepCopy

    public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
    {
      base.DeepCopy(source, copyManager);
      Button b = (Button) source;

      IsDefault = b.IsDefault;
      Command = copyManager.GetCopy(b.Command);
    }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:8,代码来源:Button.cs

示例15: DeepCopy

 public virtual void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   NameScope ns = (NameScope) source;
   foreach (KeyValuePair<string, object> kvp in ns._names)
     if (_names.ContainsKey(kvp.Key))
       continue;
     else
       _names.Add(kvp.Key, copyManager.GetCopy(kvp.Value));
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:9,代码来源:NameScope.cs


注:本文中的ICopyManager.GetCopy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。