graph chart引入&骑行结果弹窗
This commit is contained in:
1 parent
40d118cea3
commit
96f3644b5b
2374 files changed
+485161
-2410
No files matched your search
@@ -0,0 +1,47 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ChartAndGraph.DataSource
|
||||
{
|
||||
/// <summary>
|
||||
/// base class for data items (rows and columns) in a data source
|
||||
/// </summary>
|
||||
internal abstract class ChartDataItemBase : IDataItem
|
||||
{
|
||||
private string mName;
|
||||
private string mPrevName;
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
set
|
||||
{
|
||||
mPrevName = mName;
|
||||
mName = value;
|
||||
if (NameChanged != null)
|
||||
NameChanged(mPrevName, this);
|
||||
}
|
||||
}
|
||||
public object UserData { get; set; }
|
||||
/// <summary>
|
||||
/// The material for this data source item
|
||||
/// </summary>
|
||||
public ChartDynamicMaterial Material { get; set; }
|
||||
|
||||
public ChartDataItemBase(String name)
|
||||
{
|
||||
mName = name;
|
||||
}
|
||||
public event Action<string, IDataItem> NameChanged;
|
||||
|
||||
public void CancelNameChange()
|
||||
{
|
||||
mName = mPrevName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user