Merge branch 'master' of http://www.scserverddns.top:13000/sc/formula_manage
This commit is contained in:
commit
1f667114a2
5 files changed
+43
-33
No files matched your search
@@ -4,15 +4,22 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace formula_manage.ConvertMoels
|
||||
{
|
||||
internal class ColorSQLConvert
|
||||
/// <summary>
|
||||
/// RGB色彩数值转换器
|
||||
/// 将色彩数值转换为ARGB代码返回
|
||||
/// </summary>
|
||||
public class ColorSQLConvert : IValueConverter
|
||||
{
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
{
|
||||
string colorValue = string.Format("{0:X6}", value);//十进制RGB数值转十六进制六位RGB并补0位例“C0C0C0”
|
||||
/*string StuffColor = "#FF" + colorValue;//RGB数值拼接为ARGB数值(正向)*/
|
||||
string StuffColor_B = colorValue.Substring(0, 2);//获取蓝色参数
|
||||
@@ -26,8 +33,8 @@ namespace formula_manage.ConvertMoels
|
||||
return null;//返回空
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
return null;
|
||||
|
||||
@@ -4,10 +4,11 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace formula_manage.ConvertMoels
|
||||
{
|
||||
internal class ProductTypeSQLConvert
|
||||
internal class ProductTypeSQLConvert : IValueConverter
|
||||
{
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user