public PlayTimeStatisticDialog(string db_path) { InitializeComponent(); conn = new SQLiteConnection("Data Source=" + db_path); if (File.Exists(db_path)) { PlayTimeLast30Days.Setup(conn); PlayTimeWeek.Setup(conn); PlayTimeMonth.Setup(conn); PlayTimeAll.Setup(conn); } }
public PlayTimeStatisticDialog(string db_path) { InitializeComponent(); if (Properties.Settings.Default.disableGlowBrush) { this.GlowBrush = null; } conn = new SQLiteConnection("Data Source=" + db_path); if (File.Exists(db_path)) { PlayTimeLast30Days.Setup(conn); PlayTimeWeek.Setup(conn); PlayTimeMonth.Setup(conn); PlayTimeAll.Setup(conn); } }