"景先生毕设|www.jxszl.com

C# DataCollection类代码示例

2023-12-29 17:49编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中DataCollection类的典型用法代码示例。如果您正苦于以下问题:C#DataCollection类的具体用法?C#DataCollection怎么用?C#DataCollection使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:MainWindow //Instanceofobjectwhichcontainsconfigurationforsendingdata. //ULoader_JSONconfig; //Instacjeofobjectwhichsendsdata. //USenderuSender; publicMainWindow() { InitializeComponent(); attentionValuesCollection=newDataCollection(); varattentionDataSource=newEnumerableDataSource(attentionValuesCollection); attentionDataSource.SetXMapping(x=>dateAttention.ConvertToDouble(x.Date)); attentionDataSource.SetYMapping(y=>y.Value); plotterAttention.AddLineGraph(attentionDataSource,Colors.Red,2,"Attetion"); connector=newConnector(); connector.DeviceConnected+=newEventHandler(OnDeviceConnected); connector.DeviceConnectFail+=newEventHandler(OnDeviceFail); connector.DeviceValidating+=newEventHandler(OnDeviceValidating); connector.ConnectScan("COM3"); //StworzenieobiektutypuRandomdowyborulosowegosłowazesłownika. randomWordNumber=newRandom(); wordNumber=0; attentionComingCounter=0; attentionValueSum=0; puzzlesSolved=0; wordStatList=newList(); currentWord=""; //config=newULoader_JSON(@"....config.json"); //uSender=config.GetSender("output1"); }
原文链接:http://www.jxszl.com/biancheng/C/556854.html