Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
a38c84c8
Commit
a38c84c8
authored
Jan 28, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
48f37511
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
145 additions
and
570 deletions
+145
-570
Range.cs
Project.FLY.Misc/MISC/Range.cs
+1
-1
ScanGraph.xaml.cs
...Y.Thick.Base/FLY.Thick.Base.UI/UIModule/ScanGraph.xaml.cs
+18
-160
ScanGraphConfig.xaml
...hick.Base/FLY.Thick.Base.UI/UIModule/ScanGraphConfig.xaml
+1
-1
DynArea.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Common/DynArea.cs
+125
-408
No files found.
Project.FLY.Misc/MISC/Range.cs
View file @
a38c84c8
...
...
@@ -65,7 +65,7 @@ namespace Misc
{
get
{
if
(
Misc
.
MyBase
.
ISVALIDATA
(
Begin
))
if
(
Misc
.
MyBase
.
ISVALIDATA
(
Begin
)
&&
Misc
.
MyBase
.
ISVALIDATA
(
End
)
)
return
true
;
else
return
false
;
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/ScanGraph.xaml.cs
View file @
a38c84c8
...
...
@@ -161,143 +161,49 @@ namespace ThickTcpUiInWindow.UIModule
gage
.
mBulkDataClient
.
Add
(
bulkdata_client
);
}
}
/// <summary>
/// 扫描图的参数
/// </summary>
public
class
ScanGraphItemParam
:
UIModuleParam
{
private
string
_charttype
=
"Column"
;
/// <summary>
/// 曲线类型
/// </summary>
public
string
ChartType
{
get
{
return
_charttype
;
}
set
{
_charttype
=
value
;
NotifyPropertyChanged
(
"ChartType"
);
}
}
private
int
bm
=
0
;
public
string
ChartType
{
get
;
set
;
}
=
"Column"
;
/// <summary>
/// 记录点
/// </summary>
public
int
BM
{
get
{
return
bm
;
}
set
{
if
(
bm
!=
value
)
{
bm
=
value
;
NotifyPropertyChanged
(
"BM"
);
}
}
}
public
int
BM
{
get
;
set
;
}
=
0
;
private
double
_yrangepercent
=
3
;
/// <summary>
/// Y轴比例
/// </summary>
public
double
YRangePercent
{
get
{
return
_yrangepercent
;
}
set
{
_yrangepercent
=
value
;
NotifyPropertyChanged
(
"YRangePercent"
);
}
}
public
double
YRangePercent
{
get
;
set
;
}
=
3
;
private
string
title
=
"扫描图"
;
/// <summary>
/// 标题
/// </summary>
public
string
Title
{
get
{
return
title
;
}
set
{
if
(
title
!=
value
)
{
title
=
value
;
NotifyPropertyChanged
(
"Title"
);
}
}
}
public
string
Title
{
get
;
set
;
}
=
"扫描图"
;
private
int
mix
=
1
;
/// <summary>
/// 混合图
/// </summary>
public
int
Mix
{
get
{
return
mix
;
}
set
{
if
(
mix
!=
value
)
{
mix
=
value
;
NotifyPropertyChanged
(
"Mix"
);
}
}
}
public
int
Mix
{
get
;
set
;
}
=
1
;
private
bool
isautotarget
=
false
;
/// <summary>
/// 自动目标值
/// </summary>
public
bool
IsAutoTarget
{
get
{
return
isautotarget
;
}
set
{
if
(
isautotarget
!=
value
)
{
isautotarget
=
value
;
NotifyPropertyChanged
(
"IsAutoTarget"
);
}
}
}
public
bool
IsAutoTarget
{
get
;
set
;
}
=
false
;
private
bool
ispercent
=
false
;
/// <summary>
/// % 显示
/// </summary>
public
bool
IsPercent
{
get
{
return
ispercent
;
}
set
{
if
(
ispercent
!=
value
)
{
ispercent
=
value
;
NotifyPropertyChanged
(
"IsPercent"
);
}
}
}
public
bool
IsPercent
{
get
;
set
;
}
=
false
;
/// <summary>
...
...
@@ -319,82 +225,35 @@ namespace ThickTcpUiInWindow.UIModule
return
names
.
ToArray
();
}
}
/// <summary>
/// 全部扫描图的参数
/// </summary>
public
class
ScanGraphParams
:
UIModuleParams
<
ScanGraphItemParam
>
{
bool
isreverserd
=
false
;
/// <summary>
/// 主界面反向
/// </summary>
public
bool
IsReversed
{
get
{
return
isreverserd
;
}
set
{
if
(
isreverserd
!=
value
)
{
isreverserd
=
value
;
NotifyPropertyChanged
(
"IsReversed"
);
}
}
}
public
bool
IsReversed
{
get
;
set
;
}
bool
lrisvisable
=
false
;
/// <summary>
/// 显示 左右标示
/// </summary>
public
bool
LRIsVisable
{
get
{
return
lrisvisable
;
}
set
{
public
bool
LRIsVisable
{
get
;
set
;
}
=
false
;
if
(
lrisvisable
!=
value
)
{
lrisvisable
=
value
;
NotifyPropertyChanged
(
"LRIsVisable"
);
}
}
}
bool
lrisreverserd
=
false
;
/// <summary>
/// 左右标示 反向
/// </summary>
public
bool
LRIsReversed
{
get
{
return
lrisreverserd
;
}
set
{
public
bool
LRIsReversed
{
get
;
set
;
}
=
false
;
if
(
lrisreverserd
!=
value
)
{
lrisreverserd
=
value
;
NotifyPropertyChanged
(
"LRIsReversed"
);
}
}
}
private
int
xInterval
=
10
;
/// <summary>
/// 扫描图轴间隔 ,单位分区
/// </summary>
public
int
XInterval
{
get
{
return
xInterval
;
}
set
{
public
int
XInterval
{
get
;
set
;
}
=
10
;
if
(
xInterval
!=
value
)
{
xInterval
=
value
;
NotifyPropertyChanged
(
"XInterval"
);
}
}
}
static
ScanGraphParams
()
{
Misc
.
SaveToXmlHepler
.
Regist
(
typeof
(
ScanGraphParams
));
...
...
@@ -432,8 +291,7 @@ namespace ThickTcpUiInWindow.UIModule
return
names
.
ToArray
();
}
}
/// <summary>
/// 扫描图控件模块
/// </summary>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/ScanGraphConfig.xaml
View file @
a38c84c8
<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.UIModule.ScanGraphConfig"
xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Common/DynArea.cs
View file @
a38c84c8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment