diff --git a/AsmrManage/AsmrManage/Form1.Designer.cs b/AsmrManage/AsmrManage/Form1.Designer.cs index ff1af30..3b6ce94 100644 --- a/AsmrManage/AsmrManage/Form1.Designer.cs +++ b/AsmrManage/AsmrManage/Form1.Designer.cs @@ -351,6 +351,7 @@ button5.TabIndex = 5; button5.Text = "娴忚"; button5.UseVisualStyleBackColor = true; + button5.Click += button5_Click; // // textBox5 // @@ -376,6 +377,7 @@ button4.TabIndex = 2; button4.Text = "娴忚"; button4.UseVisualStyleBackColor = true; + button4.Click += button4_Click; // // textBox4 // diff --git a/AsmrManage/AsmrManage/Form1.cs b/AsmrManage/AsmrManage/Form1.cs index 83407df..62e60de 100644 --- a/AsmrManage/AsmrManage/Form1.cs +++ b/AsmrManage/AsmrManage/Form1.cs @@ -246,5 +246,29 @@ namespace AsmrManage ConfigManager.SaveConfig(new AppConfig()); RefreshSettingPageInfo(); } + + private void button4_Click(object sender, EventArgs e) //P4 文件选框1 + { + OpenFileDialog openFileDialog1 = new OpenFileDialog(); + openFileDialog1.Title = "请选择正确的db数据库文件"; + openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); + openFileDialog1.Filter = "sqlite db文件|asmr.db"; + if (openFileDialog1.ShowDialog() == DialogResult.OK) + { + textBox4.Text = openFileDialog1.FileName; + } + } + + private void button5_Click(object sender, EventArgs e) + { + OpenFileDialog openFileDialog1 = new OpenFileDialog(); + openFileDialog1.Title = "请选择DB Browser for SQLite主程序"; + openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); + openFileDialog1.Filter = "DB Browser for SQLite主程序|DB Browser for SQLite.exe"; + if (openFileDialog1.ShowDialog() == DialogResult.OK) + { + textBox5.Text = openFileDialog1.FileName; + } + } } } \ No newline at end of file