原創(chuàng)|使用教程|編輯:何家巧|2022-12-27 13:32:35.230|閱讀 240 次
概述:在 LightningChart .NET系列教程中,上一章我們介紹了許可證管理的前三部分內(nèi)容,包括“添加許可證”、“刪除許可證”、“更新許可證”,本次將詳細(xì)介紹許可證管理的另一部分內(nèi)容,包括“提取部署密鑰”、在應(yīng)用程序中應(yīng)用部署密鑰”兩部分內(nèi)容。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
LightningChart.NET SDK 是一款高性能數(shù)據(jù)可視化插件工具,由數(shù)據(jù)可視化軟件組件和工具類組成,可支持基于 Windows 的用戶界面框架(Windows Presentation Foundation)、Windows 通用應(yīng)用平臺(Universal Windows Platform)和 Windows Forms.NET 平臺。
在 LightningChart .NET系列教程中,上一章我們介紹了許可證管理的前三部分內(nèi)容,包括“添加許可證”、“刪除許可證”、“更新許可證”,本次將詳細(xì)介紹許可證管理的另一部分內(nèi)容,包括“提取部署密鑰”、在應(yīng)用程序中應(yīng)用部署密鑰”兩部分內(nèi)容。
四、提取部署密鑰
要在配置了該軟件的計(jì)算機(jī)中運(yùn)行 LightningChart 應(yīng)用程序,必須以代碼形式應(yīng)用部署密鑰。部署密鑰可以通過點(diǎn)擊“Copy deployment key to Clipboard”按鈕從許可證密鑰中提取。
圖 4-5. 將部署密鑰復(fù)制到 License Manager 的剪貼板
五、在應(yīng)用程序中應(yīng)用部署密鑰更多有關(guān)發(fā)布的詳細(xì)介紹,請參閱第 299 章。
WinForms
以下示例展示了如何在 Program 類的靜態(tài)構(gòu)造函數(shù)方法(默認(rèn)為每個 WinForms 應(yīng)用程序創(chuàng)建的)上應(yīng)用密鑰。using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace WindowsFormsApplication1 { static class Program { static Program() { //為Arction組件設(shè)置部署密鑰 string deploymentKey = "VMalgCAAO6kO1RgiNIBJABVcG.R..Kikfd..."; Arction.WinForms.Charting.LightningChart.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); } // 其余的類 } }WPF
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> ///用于App.xaml的交互邏輯 /// </summary> public partial class App : Application { static App() { // 為 Arction 組件設(shè)置部署密鑰 string deploymentKey = "- DEPLOYMENT KEY FROM LICENSE MANAGER GOES HERE-"; // 為全綁定圖表設(shè)置部署密鑰 Arction.Wpf.ChartingMVVM.LightningChart .SetDeploymentKey(deploymentKey); // 為無綁定圖表設(shè)置部署密鑰 Arction.Wpf.Charting.LightningChart .SetDeploymentKey(deploymentKey); // 為其他 Arction 組件設(shè)置部署密鑰 SignalGenerator.SetDeploymentKey(deploymentKey); AudioInput.SetDeploymentKey(deploymentKey); AudioOutput.SetDeploymentKey(deploymentKey); SpectrumCalculator.SetDeploymentKey(deploymentKey); SignalReader.SetDeploymentKey(deploymentKey); } } }在 UWP 應(yīng)用中,可以使用開發(fā)者密鑰或部署密鑰,但不能同時使用。在開發(fā)和調(diào)試 app 時使用開發(fā)者密鑰,在部署 app 時使用部署密鑰。
值得注意的是,如果未能在應(yīng)用程序中設(shè)置部署密鑰,目標(biāo)計(jì)算機(jī)中的 LightningChart 應(yīng)用程序?qū)D(zhuǎn)成為期 30 天的試用模式(適用于尚未安裝開發(fā)許可密鑰的計(jì)算機(jī))。
今天關(guān)于LightningChart中許可證管理的介紹到這里了,點(diǎn)擊查看LightningChart系列教程。
想要了解或購買LightningChart 正版授權(quán)的朋友,歡迎咨詢。
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn