using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace JavaCode.db
|
{
|
public partial class FrmDbCfg : Form
|
{
|
Form showForm = null;
|
|
public FrmDbCfg()
|
{
|
InitializeComponent();
|
}
|
|
private void FrmDbCfg_Load(object sender, EventArgs e)
|
{
|
this.cboDB.SelectedIndex = 0;
|
}
|
|
private void label2_Click(object sender, EventArgs e)
|
{
|
this.Close();
|
}
|
|
// 添加数据源
|
private void label3_Click(object sender, EventArgs e)
|
{
|
string type = this.cboDB.SelectedText;
|
switch (type)
|
{
|
case "本地文件":
|
|
break;
|
case "数据库":
|
showForm = new FrmDB();
|
showForm.FormClosing += showForm_FormClosing;
|
showForm.Show();
|
this.Hide();
|
break;
|
case "HTTP接口":
|
|
break;
|
}
|
}
|
|
void showForm_FormClosing(object sender, FormClosingEventArgs e)
|
{
|
this.Show();
|
}
|
|
// 采集日志
|
private void label4_Click(object sender, EventArgs e)
|
{
|
}
|
}
|
}
|