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
57a29c0d
Commit
57a29c0d
authored
Jun 03, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev6.0' into dev6.0_360
parents
4b688551
21ae28ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
22 deletions
+11
-22
WindowNotifyIconHelper.cs
...ect.FLY.AppHelper/FLY.AppHelper/WindowNotifyIconHelper.cs
+5
-5
FlyData_WarningHistory.cs
...Components/OBJComponents/Common/FlyData_WarningHistory.cs
+2
-3
ErrorConf.cs
Project.FLY.OBJComponents/OBJComponents/Server/ErrorConf.cs
+3
-3
PgErrorTable2.xaml
...Y.Thick.Base/FLY.Thick.Base.UI/PgError/PgErrorTable2.xaml
+1
-11
No files found.
Project.FLY.AppHelper/FLY.AppHelper/WindowNotifyIconHelper.cs
View file @
57a29c0d
...
@@ -22,7 +22,7 @@ namespace FLY.AppHelper
...
@@ -22,7 +22,7 @@ namespace FLY.AppHelper
/// </summary>
/// </summary>
/// <param name="window">窗体</param>
/// <param name="window">窗体</param>
/// <param name="text">当鼠标指针停留在通知区域图标上时显示的工具提示文本</param>
/// <param name="text">当鼠标指针停留在通知区域图标上时显示的工具提示文本</param>
public
WindowNotifyIconHelper
(
System
.
Windows
.
Window
window
,
string
text
)
public
WindowNotifyIconHelper
(
System
.
Windows
.
Window
window
,
string
text
)
{
{
notifyIcon
=
new
System
.
Windows
.
Forms
.
NotifyIcon
();
notifyIcon
=
new
System
.
Windows
.
Forms
.
NotifyIcon
();
//this.notifyIcon.BalloonTipText = "Hello, NotifyIcon!";
//this.notifyIcon.BalloonTipText = "Hello, NotifyIcon!";
...
@@ -38,7 +38,7 @@ namespace FLY.AppHelper
...
@@ -38,7 +38,7 @@ namespace FLY.AppHelper
//关联托盘控件
//关联托盘控件
MenuItem
[]
childen
=
new
MenuItem
[]
{
exit
};
MenuItem
[]
childen
=
new
MenuItem
[]
{
exit
};
notifyIcon
.
ContextMenu
=
new
ContextMenu
(
childen
);
notifyIcon
.
ContextMenu
=
new
ContextMenu
(
childen
);
//this.notifyIcon.ShowBalloonTip(1000);
//this.notifyIcon.ShowBalloonTip(1000);
...
@@ -48,7 +48,7 @@ namespace FLY.AppHelper
...
@@ -48,7 +48,7 @@ namespace FLY.AppHelper
this
.
window
.
StateChanged
+=
new
EventHandler
(
window_StateChanged
);
this
.
window
.
StateChanged
+=
new
EventHandler
(
window_StateChanged
);
this
.
window
.
Closing
+=
new
System
.
ComponentModel
.
CancelEventHandler
(
window_Closing
);
this
.
window
.
Closing
+=
new
System
.
ComponentModel
.
CancelEventHandler
(
window_Closing
);
Application
.
ApplicationExit
+=
Application_ApplicationExit
;
Application
.
ApplicationExit
+=
Application_ApplicationExit
;
}
}
private
void
Application_ApplicationExit
(
object
sender
,
EventArgs
e
)
private
void
Application_ApplicationExit
(
object
sender
,
EventArgs
e
)
...
@@ -74,7 +74,7 @@ namespace FLY.AppHelper
...
@@ -74,7 +74,7 @@ namespace FLY.AppHelper
//Application.Exit();
//Application.Exit();
System
.
Environment
.
Exit
(
0
);
//这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
System
.
Environment
.
Exit
(
0
);
//这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
}
}
}
}
void
window_Closing
(
object
sender
,
System
.
ComponentModel
.
CancelEventArgs
e
)
void
window_Closing
(
object
sender
,
System
.
ComponentModel
.
CancelEventArgs
e
)
{
{
//this.notifyIcon.Visible = false;
//this.notifyIcon.Visible = false;
...
@@ -83,7 +83,7 @@ namespace FLY.AppHelper
...
@@ -83,7 +83,7 @@ namespace FLY.AppHelper
//System.Windows.MessageBoxResult r = System.Windows.MessageBox.Show("是否真的要退出程序??", "警告", System.Windows.MessageBoxButton.YesNo, System.Windows.MessageBoxImage.Warning, System.Windows.MessageBoxResult.No);
//System.Windows.MessageBoxResult r = System.Windows.MessageBox.Show("是否真的要退出程序??", "警告", System.Windows.MessageBoxButton.YesNo, System.Windows.MessageBoxImage.Warning, System.Windows.MessageBoxResult.No);
//if (r == System.Windows.MessageBoxResult.Yes)
//if (r == System.Windows.MessageBoxResult.Yes)
//{
//{
//}
//}
//else
//else
//{
//{
...
...
Project.FLY.OBJComponents/OBJComponents/Common/FlyData_WarningHistory.cs
View file @
57a29c0d
...
@@ -108,9 +108,8 @@ namespace FLY.OBJComponents.Common
...
@@ -108,9 +108,8 @@ namespace FLY.OBJComponents.Common
/// </summary>
/// </summary>
public
struct
ERRNO
public
struct
ERRNO
{
{
public
byte
Code
;
public
UInt16
Code
;
public
string
Descrption
;
public
string
Descrption
;
public
bool
OffIsError
;
}
}
public
static
class
PlcErrNos
public
static
class
PlcErrNos
...
@@ -118,6 +117,6 @@ namespace FLY.OBJComponents.Common
...
@@ -118,6 +117,6 @@ namespace FLY.OBJComponents.Common
/// <summary>
/// <summary>
/// PLC连接断开
/// PLC连接断开
/// </summary>
/// </summary>
public
static
ERRNO
ERRNO_PLC_DISCONNECTED
=
new
ERRNO
()
{
Code
=
25
5
,
Descrption
=
"PLC连接断开"
};
public
static
ERRNO
ERRNO_PLC_DISCONNECTED
=
new
ERRNO
()
{
Code
=
6553
5
,
Descrption
=
"PLC连接断开"
};
}
}
}
}
Project.FLY.OBJComponents/OBJComponents/Server/ErrorConf.cs
View file @
57a29c0d
...
@@ -108,10 +108,10 @@ namespace FLY.OBJComponents.Server
...
@@ -108,10 +108,10 @@ namespace FLY.OBJComponents.Server
ERR_STATE
state
=
b
?
ERR_STATE
.
ON
:
ERR_STATE
.
OFF
;
ERR_STATE
state
=
b
?
ERR_STATE
.
ON
:
ERR_STATE
.
OFF
;
ERRNO
errno
=
PlcErrNos
.
ERRNO_PLC_DISCONNECTED
;
ERRNO
errno
=
PlcErrNos
.
ERRNO_PLC_DISCONNECTED
;
byte
errcode
=
(
byte
)(
errno
.
Code
-
i
);
UInt16
errcode
=
(
UInt16
)(
errno
.
Code
-
i
);
string
description
;
string
description
;
if
(
PLCos
.
PLCs
.
Count
()
>
1
)
if
(
PLCos
.
PLCs
.
Count
()
>
1
)
description
=
$"
{
plcName
}
No.
{
i
}
"
+
errno
.
Descrption
;
description
=
$"
{
plcName
}
No.
{
i
+
1
}
"
+
errno
.
Descrption
;
else
else
description
=
$"
{
plcName
}
"
+
errno
.
Descrption
;
description
=
$"
{
plcName
}
"
+
errno
.
Descrption
;
...
@@ -154,7 +154,7 @@ namespace FLY.OBJComponents.Server
...
@@ -154,7 +154,7 @@ namespace FLY.OBJComponents.Server
public
void
ResetError
(
INotifyPropertyChanged
sender
)
public
void
ResetError
(
INotifyPropertyChanged
sender
)
{
{
var
type
=
sender
.
GetType
();
var
type
=
sender
.
GetType
();
foreach
(
var
ei
in
obj_error
[
sender
as
INotifyPropertyChanged
].
error_property
)
foreach
(
var
ei
in
obj_error
[
sender
].
error_property
)
{
{
var
property
=
type
.
GetProperty
(
ei
.
property
);
var
property
=
type
.
GetProperty
(
ei
.
property
);
property
.
SetValue
(
sender
,
false
);
property
.
SetValue
(
sender
,
false
);
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgError/PgErrorTable2.xaml
View file @
57a29c0d
...
@@ -75,17 +75,7 @@
...
@@ -75,17 +75,7 @@
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" >
<Button Style="{StaticResource buttonStyle}" Click="button_silence_click" Foreground="#FFEE3232">
<StackPanel >
<Grid Style="{StaticResource GridStyle_ButtonShadow}">
<Ellipse Style="{StaticResource backPackStyle}" Fill="White"/>
<iconPacks:PackIconMaterial Kind="VolumeMute" Style="{StaticResource iconPackStyle}" />
</Grid>
<TextBlock Text="消音" Style="{StaticResource titlePackStyle}"/>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Grid>
...
...
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