Skip to content

Instantly share code, notes, and snippets.

Avatar
💭

HuangShuhang yhnbgfd

💭
  • China
View GitHub Profile
View gist:83fc1a48cbcaa9d37b9fe4e13b62c4e0
using System;
namespace HQMS.Infrastructure.Helpers
{
public class TwitterSnowflake
{
/// <summary>
/// 基准时间
/// </summary>
private const long Twepoch = 1288834974657L;
@yhnbgfd
yhnbgfd / Convert.cs
Created Dec 26, 2017
数字金额转换成中文金额
View Convert.cs
using System;
using System.Text.RegularExpressions;
namespace System.Extended
{
public static class Convert
{
public static string ToChinese(this decimal money)//扩展方法
{
if (money < 0)
View gist:8a52b90e5ad85fb50dde
<!-- Flat ComboBox -->
<SolidColorBrush x:Key="ComboBoxNormalBorderBrush" Color="#e3e9ef" />
<SolidColorBrush x:Key="ComboBoxNormalBackgroundBrush" Color="#fff" />
<SolidColorBrush x:Key="ComboBoxDisabledForegroundBrush" Color="#888" />
<SolidColorBrush x:Key="ComboBoxDisabledBackgroundBrush" Color="#eee" />
<SolidColorBrush x:Key="ComboBoxDisabledBorderBrush" Color="#888" />
<ControlTemplate TargetType="ToggleButton" x:Key="ComboBoxToggleButtonTemplate">
<Grid>
<Grid.ColumnDefinitions>