Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
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
潘栩锋
hemei
Commits
2302ee64
Commit
2302ee64
authored
Jan 26, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
和美安装包_v6.21.7
parent
174df306
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
0 deletions
+96
-0
Dictionary_MyConv.xaml
...t2/FLY.Weight2.UI.Client/Converter/Dictionary_MyConv.xaml
+2
-0
NumberFloorConverter.cs
...2/FLY.Weight2.UI.Client/Converter/NumberFloorConverter.cs
+54
-0
PercentConverter.cs
...ight2/FLY.Weight2.UI.Client/Converter/PercentConverter.cs
+35
-0
FLY.Weight2.UI.Client.csproj
...eight2/FLY.Weight2.UI.Client/FLY.Weight2.UI.Client.csproj
+2
-0
版本描述.txt
脚本/版本描述.txt
+3
-0
No files found.
Project.FLY.Weight2/FLY.Weight2.UI.Client/Converter/Dictionary_MyConv.xaml
View file @
2302ee64
...
...
@@ -2,4 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:FLY.Weight2.UI.Client.Converter">
<local:RatioConverter x:Key="rconv" />
<local:NumberFloorConverter x:Key="floorConv"/>
<local:PercentConverter x:Key="percentConv"/>
</ResourceDictionary>
\ No newline at end of file
Project.FLY.Weight2/FLY.Weight2.UI.Client/Converter/NumberFloorConverter.cs
0 → 100644
View file @
2302ee64
using
System
;
using
System.Collections.Generic
;
using
System.Globalization
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Data
;
using
System.Windows.Forms
;
using
System.Windows.Navigation
;
namespace
FLY.Weight2.UI.Client.Converter
{
public
class
NumberFloorConverter
:
IValueConverter
{
public
object
Convert
(
object
value
,
Type
targetType
,
object
parameter
,
CultureInfo
culture
)
{
int
digit
=
0
;
if
(
parameter
is
string
)
{
if
(
int
.
TryParse
((
string
)
parameter
,
out
digit
))
{
}
}
else
if
(
parameter
is
int
)
{
digit
=
(
int
)
parameter
;
}
double
d
=
0
;
if
(
value
is
double
)
{
d
=
(
double
)
value
;
d
=
Floor
(
d
,
digit
);
}
else
if
(
value
is
float
)
{
d
=
(
float
)
value
;
d
=
Floor
(
d
,
digit
);
}
return
d
.
ToString
(
$"F
{
digit
}
"
);
}
double
Floor
(
double
d
,
int
digit
)
{
double
pow
=
Math
.
Pow
(
10
,
digit
);
return
Math
.
Floor
(
d
*
pow
)
/
pow
;
}
public
object
ConvertBack
(
object
value
,
Type
targetType
,
object
parameter
,
CultureInfo
culture
)
{
throw
new
NotImplementedException
();
}
}
}
Project.FLY.Weight2/FLY.Weight2.UI.Client/Converter/PercentConverter.cs
0 → 100644
View file @
2302ee64
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Data
;
namespace
FLY.Weight2.UI.Client.Converter
{
public
class
PercentConverter
:
IValueConverter
{
#
region
IValueConverter
成员
public
object
Convert
(
object
value
,
Type
targetType
,
object
parameter
,
System
.
Globalization
.
CultureInfo
culture
)
{
double
percent
=
(
double
)
value
;
return
(
percent
*
100
).
ToString
(
"F1"
);
}
public
object
ConvertBack
(
object
value
,
Type
targetType
,
object
parameter
,
System
.
Globalization
.
CultureInfo
culture
)
{
double
percent
=
0
;
if
(
double
.
TryParse
(
value
as
string
,
out
percent
))
{
return
percent
/
100.0
;
}
else
{
return
0
;
}
}
#
endregion
}
}
Project.FLY.Weight2/FLY.Weight2.UI.Client/FLY.Weight2.UI.Client.csproj
View file @
2302ee64
...
...
@@ -72,7 +72,9 @@
<Compile
Include=
"App.xaml.cs"
>
<DependentUpon>
App.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"Converter\NumberFloorConverter.cs"
/>
<Compile
Include=
"Converter\OpacityConverter.cs"
/>
<Compile
Include=
"Converter\PercentConverter.cs"
/>
<Compile
Include=
"Converter\RatioConverter.cs"
/>
<Compile
Include=
"Converter\ReverseConverter.cs"
/>
<Compile
Include=
"UiModule\DynAreaWeight.xaml.cs"
>
...
...
脚本/版本描述.txt
View file @
2302ee64
和美安装包_v6.21.7 -20210126
1. 修复 单组份出错
和美安装包_v6.21.6 -20210120
1. 修复 ad盒1min多次重连
1. 修复 TCPCONN, FLYAD7 的超时使用stopwatch
...
...
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