Skip to content

Instantly share code, notes, and snippets.

View wenhelinlu's full-sized avatar
🎯
Focusing

linlu wenhelinlu

🎯
Focusing
  • Nanjing, Jiangsu, China
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Media.Imaging;
namespace HMT.Controls
{
@wenhelinlu
wenhelinlu / CommonMethod.cs
Created May 27, 2019 07:47
创建Sqlite数据库文件的代码
/// <summary>
/// 创建sqlite数据库文件
/// </summary>
public static void InitDatabaseFile()
{
try
{
if (!File.Exists(RunningBase.LocalAIS.DbPath))
{
//注意:使用File.Create创建的sqlite数据库文件无法正常打开,所以使用SQLiteConnection来创建
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>