3 Star 11 Fork 9

冷月 / MySqlDataBuild

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SelectForm.cs 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
冷月 提交于 2023-11-27 14:42 . 支持分析器代码生成
using MySqlDataBuild.Properties;
using SqlBuildLib;
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
namespace MySqlDataBuild
{
public partial class SelectForm : Form
{
public SelectForm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (comboBox1.SelectedIndex == -1)
{
MessageBox.Show("请选择MySql版本!");
return;
}
if (comboBox1.SelectedIndex == 2)
{
var form = new Form2();
Hide();
form.ShowDialog();
}
else
{
App.version = comboBox1.SelectedIndex;
var form = new Form1();
Hide();
form.ShowDialog();
}
Process.GetCurrentProcess().Kill();
}
private void SelectForm_Load(object sender, EventArgs e)
{
int.TryParse(Persist.I.version, out var version);
comboBox1.SelectedIndex = version;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
Persist.I.version = comboBox1.SelectedIndex.ToString();
Persist.SaveData();
}
}
}
C#
1
https://gitee.com/leng_yue/my-sql-data-build.git
git@gitee.com:leng_yue/my-sql-data-build.git
leng_yue
my-sql-data-build
MySqlDataBuild
master

搜索帮助