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