在使用组件之前,调用 SetDeploymentKey 方法。 例如: 在主要(Main)方法的开头,或在表单(Form)或用户 控件(UserControl)的构造函数之中。 以下是一个在Main方法的开头如何应用的示例。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
static class Program
{
??///<summary>
??///The main entry point for the application.
??///</summary>
??[STAThread]
??static void Main()
??{
??//Set Deployment Key for Arction components
??string deploymentKey ="VMalgCAAO6kO1RgiNIBJABVcG.R..Kikfd...";
??Arction.WinForms.Charting.LightningChartUltimate.SetDeploymentKey(deploymentKey);
??Arction.WinForms.SignalProcessing.SignalGenerator.SetDeploymentKey(deploymentKey);
??Arction.WinForms.SignalProcessing.AudioInput.SetDeploymentKey(deploymentKey);
??Arction.WinForms.SignalProcessing.AudioOutput.SetDeploymentKey(deploymentKey);
??Arction.WinForms.SignalProcessing.SpectrumCalculator.SetDeploymentKey(deploymentKey);
??Arction.WinForms.SignalProcessing.SignalReader.SetDeploymentKey(deploymentKey);
??Application.EnableVisualStyles();
??Application.SetCompatibleTextRenderingDefault(false);
??Application.Run(new Form1());
??}
??}
}
??
??
WPF
??

??在使用组件之前,调用SetDeploymentKey 方法。 例如: 在Appclass constructor的开头, 或在Window 或UserControl中。 以下是一个如何在 App.xaml.cs 的开头应用示例:
??
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Arction.Wpf.SignalProcessing;
namespace WpfApplication1
{
??///<summary>
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-86606-3.html
我狂晕倒
其实我作为大陆人十分理解台胞和香港人的关切
果断把今天刚买的芝麻糊扔掉