91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 66KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2021-06-05
  • 語言: C#
  • 標簽: 拖拽??MSChart??C#??

資源簡介

利用C#語言實現MSChart控件中圖形拖拽功能的winForm程序

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;

using?System.Drawing.Drawing2D;
using?System.Collections;//Arraylist類
using?System.Windows.Forms.DataVisualization.Charting;//ChartAreaSeries

namespace?CGraphs
{??
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????int[]?points1?=?new?int[]?{?{?1?1?}?{?2?5?}?{?3?2?}?{?4?9?}?{?5?3?}?};
????????????for?(int?i?=?0;?i?????????????{
????????????????chart1.Series[0].Points.AddXY(points1[i0]points1[i1]);
????????????????chart1.Series[0].Tag?=?11;??
????????????}
????????????chart1.Series[0].Name?=?“Series11“;
????????????
????????????int[]?points2?=?new?int[]?{?{?1?3?}?{?2?10?}?{?3?2?}?{?4?6?}?{?5?0?}?};
????????????for?(int?j?=?0;?j?????????????{
????????????????chart2.Series[0].Points.AddXY(points2[j?0]?points2[j?1]);
????????????????chart2.Series[0].Tag?=?21;
????????????}
????????????chart2.Series[0].Name?=?“Series21“;

????????????int[]?xp?=?new?int[]?{?1?2?3?4?5?};
????????????int[]?yp?=?new?int[]?{?3?9?2?5?1?};
????????????chart1.Series.Add(“Series12“);
????????????chart1.Series[“Series12“].Tag?=?12;
????????????chart1.Series[“Series12“].Points.DataBindXY(xp?yp);
????????????chart1.Series[“Series12“].ChartType?=?SeriesChartType.Line;//設置圖表類型:線、柱、餅

????????????this.UnDo.Enabled?=?false;?????
????????}

???????
????????private?void?chart1_DragLeave(object?sender?EventArgs?e)
????????{
????????????//ArrayList?points?=?new?ArrayList();
????????????//points.Add(chart1.Series.Count);
????????????//MessageBox.Show(chart1.Series.Count.ToString());
????????}

????????private?void?chart1_MouseDown(object?sender?MouseEventArgs?e)
????????{
????????????MyChart?mc?=?new?MyChart();
????????????foreach?(System.Windows.Forms.DataVisualization.Charting.Series?ser?in?chart1.Series)//通過遍歷取出chart中所有曲線
????????????{
????????????????MySerie??ms?=?new?MySerie();
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????MyPoint?mp?=?new?MyPoint();
????????????????????mp.XValue?=?chart1.Series[ser.Name].Points[i].XValue;
????????????????????mp.YValue?=?chart1.Series[ser.Name].Points[i].YValues[0];
????????????????????ms.myseriePoint.Add(mp);
????????????????}
????????????????ms.SeriesID?=?(int)chart1.Series[ser.Name].Tag;
????????????????mc.mySerie.Add(ms);?
????????????}
????????????this.chart1.DoDragDrop(mc?DragDropEffects.Copy);
????????}

????????private?void?chart2_DragEnter(object?sender?DragEventArgs?e)
????????{
????????????e.Effect?=?DragDropEffects.Copy;
????????}

????????private?void?chart2_DragDrop(object?sender?DragEventAr

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-03-31?16:22??CGraphs\
?????目錄???????????0??2014-04-02?20:07??CGraphs\CGraphs\
?????文件????????5699??2014-04-02?20:07??CGraphs\CGraphs\CGraphs.csproj
?????文件?????????452??2014-04-02?20:07??CGraphs\CGraphs\CGraphs.csproj.user
?????文件????????9363??2014-04-04?17:58??CGraphs\CGraphs\Form1.Designer.cs
?????文件????????7175??2014-04-04?18:15??CGraphs\CGraphs\Form1.cs
?????文件????????6015??2014-04-04?17:58??CGraphs\CGraphs\Form1.resx
?????文件????????2278??2014-04-04?17:51??CGraphs\CGraphs\FormTip.Designer.cs
?????文件?????????361??2014-04-04?17:51??CGraphs\CGraphs\FormTip.cs
?????文件????????5817??2014-04-04?17:51??CGraphs\CGraphs\FormTip.resx
?????文件?????????488??2014-03-31?16:22??CGraphs\CGraphs\Program.cs
?????目錄???????????0??2014-03-31?16:22??CGraphs\CGraphs\Properties\
?????文件????????1346??2014-03-31?16:22??CGraphs\CGraphs\Properties\AssemblyInfo.cs
?????文件????????2865??2014-03-31?16:22??CGraphs\CGraphs\Properties\Resources.Designer.cs
?????文件????????5612??2014-03-31?16:22??CGraphs\CGraphs\Properties\Resources.resx
?????文件????????1093??2014-03-31?16:22??CGraphs\CGraphs\Properties\Settings.Designer.cs
?????文件?????????249??2014-03-31?16:22??CGraphs\CGraphs\Properties\Settings.settings
?????目錄???????????0??2014-03-31?16:22??CGraphs\CGraphs\bin\
?????目錄???????????0??2014-03-31?16:29??CGraphs\CGraphs\bin\Debug\
?????文件???????16384??2014-04-04?18:15??CGraphs\CGraphs\bin\Debug\CGraphs.exe
?????文件???????38400??2014-04-04?18:15??CGraphs\CGraphs\bin\Debug\CGraphs.pdb
?????文件???????11600??2014-04-04?18:15??CGraphs\CGraphs\bin\Debug\CGraphs.vshost.exe
?????文件?????????490??2010-03-17?22:39??CGraphs\CGraphs\bin\Debug\CGraphs.vshost.exe.manifest
?????目錄???????????0??2014-03-31?16:22??CGraphs\CGraphs\obj\
?????目錄???????????0??2014-03-31?16:22??CGraphs\CGraphs\obj\x86\
?????目錄???????????0??2014-04-04?18:15??CGraphs\CGraphs\obj\x86\Debug\
?????文件?????????180??2014-04-04?17:58??CGraphs\CGraphs\obj\x86\Debug\CGraphs.Form1.resources
?????文件?????????180??2014-04-04?17:51??CGraphs\CGraphs\obj\x86\Debug\CGraphs.FormTip.resources
?????文件?????????180??2014-04-02?20:07??CGraphs\CGraphs\obj\x86\Debug\CGraphs.Properties.Resources.resources
?????文件?????????709??2014-04-04?18:15??CGraphs\CGraphs\obj\x86\Debug\CGraphs.csproj.FileListAbsolute.txt
?????文件???????16384??2014-04-04?18:15??CGraphs\CGraphs\obj\x86\Debug\CGraphs.exe
............此處省略9個文件信息

評論

共有 條評論