MainForm.cs

(开头部分) 22KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace dbToCode
{
    public partial class MainForm : Form
    {
        private connect conn = new connect();
        public MainForm()
        {

            InitializeComponent();
        }

        private void SetOption_Click(object sender, EventArgs e)
        {
            fm_Option option = new fm_Option();
            option.ShowDialog();
        }

        private void LinkSqlServer_Click(object sender, EventArgs e)
        {
            DialogResult connResult = conn.ShowDialog();
            if (connResult == DialogResult.OK)
            {
                conn.Hide();

                bindData(connect.mylist);
            }
        }

        void bindData(object obj)
        {
            lb_tableOld.DataSource = null;
            lb_tableOld.Items.Clear();
            lb_tableOld.DataSource = obj;

        }

        private void lb_tableOld_DoubleClick(object sender, EventArgs e)
        {
            if (!lb_tableNew.Items.Contains(lb_tableOld.Text))
                lb_tableNew.Items.Add(lb_tableOld.Text);
            else
                MessageBox.Show("已添加");
        }

        private void lb_tableNew_DoubleClick(object sender, EventArgs e)
        {
            lb_tableNew.Items.Remove(lb_tableNew.Text);
        }

        private void lb_tableNew_MouseDown(object sender, MouseEventArgs e)
        {
后面还有 451 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。