initial commit
This commit is contained in:
40
Viewer/TrendViewer/UControl/TrendCtrlII/CChinfo.cs
Normal file
40
Viewer/TrendViewer/UControl/TrendCtrlII/CChinfo.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing;
|
||||
|
||||
namespace TrendCtrlII
|
||||
{
|
||||
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
|
||||
public partial class CChinfo
|
||||
{
|
||||
public Dictionary<UInt32,float> Value;
|
||||
|
||||
public String C1value { get; set; } = "";
|
||||
public String C2value { get; set; } = "";
|
||||
public UInt16 Idx { get; set; } //트렌드뷰에서표시되고있는 인덱스값
|
||||
public Boolean Show { get; set; }
|
||||
public Color Color { get; set; }
|
||||
public int CH { get; set; }
|
||||
public String TITLE { get; set; }
|
||||
public String GROUP { get; set; }
|
||||
|
||||
public CChinfo()
|
||||
{
|
||||
CH = 0;
|
||||
TITLE = "";
|
||||
GROUP = "";
|
||||
Value = new Dictionary<uint, float>();// List<Single>(0);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{(Show ? "[O]" : "[X]")} GRP:{GROUP},CH:{CH},{TITLE},{Value.Count}건";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
105
Viewer/TrendViewer/UControl/TrendCtrlII/CMouseinfo.cs
Normal file
105
Viewer/TrendViewer/UControl/TrendCtrlII/CMouseinfo.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing;
|
||||
|
||||
|
||||
namespace TrendCtrlII
|
||||
{
|
||||
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
|
||||
public partial class CMouseinfo
|
||||
{
|
||||
private Boolean hand;
|
||||
private Boolean cross;
|
||||
private Boolean move;
|
||||
private Boolean changepos;
|
||||
private Boolean drag;
|
||||
private EDRAGTYPE dragtype;
|
||||
//private PointF dragstart;
|
||||
private PointF position;
|
||||
private PointF position0;
|
||||
//private Single _time;
|
||||
private Single _volt;
|
||||
private Boolean _showinfo;
|
||||
private int _dragindex;
|
||||
|
||||
public CMouseinfo(PointF _pf)
|
||||
{
|
||||
position = _pf;
|
||||
position0 = _pf;
|
||||
_showinfo = false;
|
||||
_volt = 0;
|
||||
_dragindex = -1;
|
||||
}
|
||||
public int DragIndex
|
||||
{
|
||||
get { return this._dragindex; }
|
||||
set { this._dragindex = value; }
|
||||
|
||||
}
|
||||
public Boolean Showinfo
|
||||
{
|
||||
get { return this._showinfo; }
|
||||
set { this._showinfo = value; }
|
||||
}
|
||||
|
||||
public Int64 Time { get; set; }
|
||||
|
||||
public Single Volt
|
||||
{
|
||||
get { return this._volt; }
|
||||
set { this._volt = value; }
|
||||
}
|
||||
|
||||
public EDRAGTYPE DragType
|
||||
{
|
||||
get { return this.dragtype; }
|
||||
set { this.dragtype = value; }
|
||||
}
|
||||
|
||||
public PointF DragStart { get; set; }
|
||||
|
||||
public PointF Position
|
||||
{
|
||||
get { return this.position; }
|
||||
set {
|
||||
this.position0 = new PointF(this.position.X, this.position.Y);
|
||||
this.position = value;
|
||||
}
|
||||
}
|
||||
|
||||
public PointF Position0
|
||||
{
|
||||
get { return this.position0; }
|
||||
set { this.position0 = value; }
|
||||
}
|
||||
public Boolean Hand
|
||||
{
|
||||
get { return this.hand; }
|
||||
set { this.hand = value; }
|
||||
}
|
||||
public Boolean Cross
|
||||
{
|
||||
get { return this.cross; }
|
||||
set { this.cross = value; }
|
||||
}
|
||||
public Boolean ChangePos
|
||||
{
|
||||
get { return this.changepos; }
|
||||
set { this.changepos = value; }
|
||||
}
|
||||
public Boolean Move
|
||||
{
|
||||
get { return this.move; }
|
||||
set { this.move = value; }
|
||||
}
|
||||
public Boolean Drag
|
||||
{
|
||||
get { return this.drag; }
|
||||
set { this.drag = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
339
Viewer/TrendViewer/UControl/TrendCtrlII/CStyle.cs
Normal file
339
Viewer/TrendViewer/UControl/TrendCtrlII/CStyle.cs
Normal file
@@ -0,0 +1,339 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
|
||||
namespace TrendCtrlII
|
||||
{
|
||||
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
|
||||
public class ChartStyle
|
||||
{
|
||||
|
||||
//X<><58><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
||||
private Int64 _X1;
|
||||
private Int64 _X2;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>ȭ<EFBFBD>鿡 ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
private Int64 _XV1;
|
||||
private Int64 _XV2;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>ȭ<EFBFBD>鿡 ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
public Int64 XV1o;
|
||||
public Int64 XV2o;
|
||||
|
||||
//Y<><59><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
private Single _Y1;
|
||||
private Single _Y2;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>ȭ<EFBFBD>鿡 ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
private Single _YV1 = 1;
|
||||
private Single _YV2 = 3;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>ȭ<EFBFBD>鿡 ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
public Single YV1o = 1;
|
||||
public Single YV2o = 3;
|
||||
|
||||
//
|
||||
private Boolean _datapoint = false;
|
||||
|
||||
private Font _yfont = new Font("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", 12, FontStyle.Bold);
|
||||
public int _ZoneMarginX = 50;
|
||||
public int _ZoneMarginY = 50;
|
||||
|
||||
//public Color design_backcolor = Color.White;
|
||||
public Color design_mouseinfocolor = Color.Black;
|
||||
|
||||
// public int _xterm = 1800;
|
||||
private Font _xfont = new Font("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", 8, FontStyle.Bold);
|
||||
|
||||
public Font _mouseinfofont = new Font("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", 12, FontStyle.Bold);
|
||||
private Boolean showdebug = false;
|
||||
// private short defaultviewhour = 3;
|
||||
|
||||
public event OnUpdateinfoHandler OnUpdateinfo; //UPDATE USER CURSOR
|
||||
public delegate void OnUpdateinfoHandler();
|
||||
|
||||
public Boolean UseZoomX { get; set; }
|
||||
public Boolean UseZoomY { get; set; }
|
||||
|
||||
public UInt16 MaxZoomX { get; set; }
|
||||
public Single MaxZoomY { get; set; }
|
||||
|
||||
public String UnitY { get; set; }
|
||||
public String UnitX { get; set; }
|
||||
|
||||
public ChartStyle()
|
||||
{
|
||||
MaxZoomX = 10;
|
||||
MaxZoomY = 0.01f;
|
||||
UseZoomX = true;
|
||||
UseZoomY = true;
|
||||
UnitY = "Volt";
|
||||
UnitX = "Sec";
|
||||
Xǥ<EFBFBD>ù<EFBFBD><EFBFBD><EFBFBD> = 0; //<2F>⺻<EFBFBD><E2BABB>üǥ<C3BC>ø<EFBFBD><C3B8><EFBFBD><EFBFBD><EFBFBD> <20><>ȯ
|
||||
XGap = 0; //<2F>⺻ X<><58> ǥ<>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>
|
||||
YGap = 0; //<2F>⺻ Y<><59> ǥ<>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("X<><58>(<28>ð<EFBFBD>)"), Description("X<> ǥ<>õǴ<C3B5> <20>ð<EFBFBD><C3B0><EFBFBD> ǥ<>ð<EFBFBD><C3B0><EFBFBD> (0<><30> <20>ڵ<EFBFBD>)")]
|
||||
public int XGap { get; set; }
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>"), Description("Y<> ǥ<>õǴ<C3B5> ǥ<>ð<EFBFBD><C3B0><EFBFBD> (0<><30> <20>ڵ<EFBFBD>)")]
|
||||
public Single YGap { get; set; }
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> ǥ<>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Font FontY
|
||||
{
|
||||
get { return _yfont; }
|
||||
set
|
||||
{
|
||||
_yfont = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("X<><58>(<28>ð<EFBFBD>)"), Description("<22><><EFBFBD><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20>۲<EFBFBD><DBB2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Font FontX
|
||||
{
|
||||
get { return _xfont; }
|
||||
set
|
||||
{
|
||||
_xfont = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
private Int32 _xterm = 0;
|
||||
|
||||
/// <summary>
|
||||
/// X<><58><EFBFBD><EFBFBD> ǥ<>ù<EFBFBD><C3B9><EFBFBD><EFBFBD><EFBFBD>(<28><>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD>(<28><>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȭ<>鿡 ǥ<>õ˴ϴ<CBB4>. <20><> <20><><EFBFBD><EFBFBD> 0<><30> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE>ִٸ<D6B4> <20>ǽð<C7BD><C3B0><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20>۵<EFBFBD><DBB5>ϰ<EFBFBD> <20>˴ϴ<CBB4>.
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("<22><>ȸ"), Description("X<><58><EFBFBD><EFBFBD> ǥ<>ù<EFBFBD><C3B9><EFBFBD><EFBFBD><EFBFBD>(<28><>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD>(<28><>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȭ<>鿡 ǥ<>õ˴ϴ<CBB4>. <20><> <20><><EFBFBD><EFBFBD> 0<><30> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE>ִٸ<D6B4> <20>ǽð<C7BD><C3B0><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20>۵<EFBFBD><DBB5>ϰ<EFBFBD> <20>˴ϴ<CBB4>.")]
|
||||
public Int32 Xǥ<EFBFBD>ù<EFBFBD><EFBFBD><EFBFBD> {
|
||||
get { return _xterm; }
|
||||
set {
|
||||
_xterm = value;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϰ<EFBFBD> <20>Ѵ´ٸ<C2B4> <20>պκ<D5BA><CEBA><EFBFBD> <20>ڸ<EFBFBD><DAB8><EFBFBD>.
|
||||
|
||||
if(value != 0 )
|
||||
{
|
||||
TimeSpan ts = DateTime.FromFileTime(X2) - DateTime.FromFileTime(X1);
|
||||
if (ts.TotalSeconds > value) {
|
||||
DateTime NewEd = DateTime.FromFileTime(X2);
|
||||
DateTime NewSd = NewEd.AddSeconds(-1 * value);
|
||||
|
||||
if (NewSd > DateTime.Now)
|
||||
{
|
||||
NewSd = DateTime.Now;
|
||||
NewEd = NewSd.AddSeconds(value);
|
||||
}
|
||||
X1 = NewSd.ToFileTime();
|
||||
X2 = NewEd.ToFileTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Category("<22><>Ÿ"), Description("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5><EFBFBD>մϴ<D5B4>.")]
|
||||
public Boolean Show_DataPoint {
|
||||
get { return _datapoint; }
|
||||
set { _datapoint = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Category("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), Description("Debug Message")]
|
||||
public Boolean Show_DebugMsg
|
||||
{
|
||||
get { return this.showdebug; }
|
||||
set { this.showdebug = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Category("<22><><EFBFBD>콺<EFBFBD><ECBDBA><EFBFBD><EFBFBD>"), Description("<22><><EFBFBD>콺<EFBFBD><ECBDBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5><EFBFBD>ϴ<EFBFBD> â<><C3A2> <20><><EFBFBD>ڻ<EFBFBD>")]
|
||||
public Color <EFBFBD><EFBFBD><EFBFBD>콺<EFBFBD><EFBFBD><EFBFBD>ڻ<EFBFBD>
|
||||
{
|
||||
get { return design_mouseinfocolor; }
|
||||
set { design_mouseinfocolor = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Category("<22><><EFBFBD>콺<EFBFBD><ECBDBA><EFBFBD><EFBFBD>"), Description("<22><><EFBFBD>콺<EFBFBD><ECBDBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5><EFBFBD>ϴ<EFBFBD> â<><C3A2> <20>۲<EFBFBD>")]
|
||||
public Font <EFBFBD><EFBFBD><EFBFBD>콺<EFBFBD>۲<EFBFBD>
|
||||
{
|
||||
get { return _mouseinfofont; }
|
||||
set { _mouseinfofont = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Y<>ప<EFBFBD><E0B0AA> ǥ<>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
/// </summary>
|
||||
public void ResetYxis()
|
||||
{
|
||||
YV1 = Y1;
|
||||
YV2 = Y2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// X<>ప<EFBFBD><E0B0AA> ǥ<>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
/// </summary>
|
||||
public void ResetXxis()
|
||||
{
|
||||
XV1 = X1;
|
||||
XV2 = X2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ᰪ(<28><><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD> XV2<56><32> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>)
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ִ밪<D6B4><EBB0AA> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Int64 X2
|
||||
{
|
||||
get { return _X2; }
|
||||
set
|
||||
{
|
||||
_X2 = value;
|
||||
_XV2 = value;
|
||||
XV2o = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǽ<EFBFBD><C7BD>۰<EFBFBD>(<28><><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD> XV1<56><31> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>)
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ּҰ<D6BC><D2B0><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Int64 X1
|
||||
{
|
||||
get { return _X1; }
|
||||
set
|
||||
{
|
||||
_X1 = value;
|
||||
_XV1 = value;
|
||||
XV1o = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>۰<EFBFBD><DBB0>Դϴ<D4B4>.
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ּҰ<D6BC><D2B0><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Int64 XV1
|
||||
{
|
||||
get { return _XV1; }
|
||||
set
|
||||
{
|
||||
//<2F>䰪<EFBFBD><E4B0AA> <20>Ѱ<EFBFBD>ġ üũ
|
||||
if (value < X1) _XV1 = X1;
|
||||
else if (value >= XV2 && XV2 > 0) _XV1 = DateTime.FromFileTime(XV2).AddSeconds(-1).ToFileTime();
|
||||
else _XV1 = value;
|
||||
XV1o = _XV1;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ᰪ<EFBFBD>Դϴ<D4B4>.
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ּҰ<D6BC><D2B0><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Int64 XV2
|
||||
{
|
||||
get { return _XV2; }
|
||||
set
|
||||
{
|
||||
//<2F>䰪<EFBFBD><E4B0AA> <20>Ѱ<EFBFBD>ġ üũ
|
||||
if (value > X2) _XV2 = X2;
|
||||
else if (value <= XV1 && XV1 > 0) _XV2 = DateTime.FromFileTime(XV1).AddSeconds(1).ToFileTime();
|
||||
else _XV2 = value;
|
||||
XV2o = _XV2;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ᰪ(<28><><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD> YV2<56><32> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>)
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ִ밪<D6B4><EBB0AA> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Single Y2
|
||||
{
|
||||
get { return _Y2; }
|
||||
set {
|
||||
_Y2 = value;
|
||||
_YV2 = value;
|
||||
YV2o = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>ǥ<EFBFBD>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ᰪ<EFBFBD>Դϴ<D4B4>.
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ִ밪<D6B4><EBB0AA> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Single YV2
|
||||
{
|
||||
get { return _YV2; }
|
||||
set
|
||||
{
|
||||
_YV2 = value;
|
||||
YV2o = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>۰<EFBFBD>(<28><><EFBFBD><EFBFBD> ǥ<>õǴ<C3B5> <20><><EFBFBD><EFBFBD> YV1<56><31> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>)
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ּҰ<D6BC><D2B0><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Single Y1
|
||||
{
|
||||
get { return _Y1; }
|
||||
set {
|
||||
_Y1 = value;
|
||||
_YV1 = value;
|
||||
YV1o = value;
|
||||
if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>۰<EFBFBD>
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Browsable(false), Category("Y<><59>(VOLT)"), Description("Y<> ǥ<>õǴ<C3B5> VOLT<4C><54> <20>ּҰ<D6BC><D2B0><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.")]
|
||||
public Single YV1
|
||||
{
|
||||
get { return _YV1; }
|
||||
set
|
||||
{
|
||||
_YV1 = value;
|
||||
YV1o = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Category("<22><><EFBFBD><EFBFBD>"), Description("<22><>Ʈ<EFBFBD><C6AE>ǥ<EFBFBD>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>")]
|
||||
//public int <20><><EFBFBD>ʿ<EFBFBD><CABF><EFBFBD>
|
||||
//{
|
||||
// get { return _ZoneMarginX; }
|
||||
// set { _ZoneMarginX = value;
|
||||
// if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
// }
|
||||
//}
|
||||
|
||||
//[DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Category("<22><><EFBFBD><EFBFBD>"), Description("<22><>Ʈ<EFBFBD><C6AE>ǥ<EFBFBD>õǴ<C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD>")]
|
||||
//public int <20><><EFBFBD>ʿ<EFBFBD><CABF><EFBFBD>
|
||||
//{
|
||||
// get { return _ZoneMarginY; }
|
||||
// set { _ZoneMarginY = value;
|
||||
// if (OnUpdateinfo != null) OnUpdateinfo();
|
||||
// }
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
28
Viewer/TrendViewer/UControl/TrendCtrlII/CTimeinfo.cs
Normal file
28
Viewer/TrendViewer/UControl/TrendCtrlII/CTimeinfo.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TrendCtrlII
|
||||
{
|
||||
public partial class CTimeinfo
|
||||
{
|
||||
|
||||
public Int64 Value { get; set; }
|
||||
public UInt32 idx { get; set; }
|
||||
|
||||
public CTimeinfo(UInt32 _idx, Int64 _val)
|
||||
{
|
||||
Value = _val;
|
||||
idx = _idx;
|
||||
}
|
||||
|
||||
public DateTime DateTimeData
|
||||
{
|
||||
get
|
||||
{
|
||||
return DateTime.FromFileTime(Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
41
Viewer/TrendViewer/UControl/TrendCtrlII/CUserCursor.cs
Normal file
41
Viewer/TrendViewer/UControl/TrendCtrlII/CUserCursor.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TrendCtrlII
|
||||
{
|
||||
public partial class CUserCursor
|
||||
{
|
||||
private short _idx = 0;
|
||||
private Int64 _time = 0;
|
||||
private Single _value = 0;
|
||||
private Single _newx = 0;
|
||||
|
||||
public CUserCursor(short pidx, Int64 ptime, Single px)
|
||||
{
|
||||
_idx = pidx;
|
||||
_time = ptime;
|
||||
_newx = px;
|
||||
}
|
||||
public Int64 Time
|
||||
{
|
||||
get { return this._time; }
|
||||
set { this._time = value; }
|
||||
}
|
||||
public short Idx
|
||||
{
|
||||
get { return this._idx; }
|
||||
set { this._idx = value; }
|
||||
}
|
||||
public Single Value
|
||||
{
|
||||
get { return this._value; }
|
||||
set { this._value = value; }
|
||||
}
|
||||
public Single Newx
|
||||
{
|
||||
get { return this._newx; }
|
||||
set { this._newx = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Viewer/TrendViewer/UControl/TrendCtrlII/MethodExts.cs
Normal file
23
Viewer/TrendViewer/UControl/TrendCtrlII/MethodExts.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
using AR;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
|
||||
|
||||
namespace TrendCtrlII
|
||||
{
|
||||
public static class MethodExts
|
||||
{
|
||||
public static void DrawRectangle(this System.Drawing.Graphics graphics, Pen pen, System.Drawing.RectangleF rect)
|
||||
{
|
||||
graphics.DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
1946
Viewer/TrendViewer/UControl/TrendCtrlII/TrendCtrlII.cs
Normal file
1946
Viewer/TrendViewer/UControl/TrendCtrlII/TrendCtrlII.cs
Normal file
File diff suppressed because it is too large
Load Diff
120
Viewer/TrendViewer/UControl/TrendCtrlII/TrendCtrlII.resx
Normal file
120
Viewer/TrendViewer/UControl/TrendCtrlII/TrendCtrlII.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user