⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wizardfrm.cs

📁 可以实现任意数据库之间的数据互导,可以实现任意数据库之间的数据互导
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace LC_DataIO
{
    public partial class WizardFrm : Form
    {
        public static Boolean starttrans;
        public HeadPage hp = new HeadPage();
        public DbSourceDbDesConfig dsdes = new DbSourceDbDesConfig();
        public TableConfig tc = new TableConfig();
        public FieldsConfig fc = new FieldsConfig();
        public FieldEditerConfig fec = new FieldEditerConfig();
        public static WizardFrm wizard = null;
        public Hashtable curpages = new Hashtable();
        public WizardFrm()
        {
            InitializeComponent();
            CenterToParent();
            wizard = this;
            starttrans = false;

            init();
            
        }
        public void clearMe()
        {
            hp.initdata();
        }
        public void init()
        {
            curpages.Clear();

            ctsTools.Controls.TabPage hptp = new ctsTools.Controls.TabPage();
            hptp.Title = "转化方式编辑";
            hptp.Control = hp;
            curpages.Add("转化方式编辑", hptp);

            hptp = new ctsTools.Controls.TabPage();
            hptp.Title = "数据库连接编辑";
            hptp.Control = dsdes;
            curpages.Add("数据库连接编辑", hptp);

            hptp = new ctsTools.Controls.TabPage();
            hptp.Title = "表编辑";
            hptp.Control = tc;
            curpages.Add("表编辑", hptp);

            hptp = new ctsTools.Controls.TabPage();
            hptp.Title = "字段选择编辑";
            hptp.Control = fc;
            curpages.Add("字段选择编辑", hptp);


            hptp = new ctsTools.Controls.TabPage();
            hptp.Title = "字段属性编辑";
            hptp.Control = fec;
            curpages.Add("字段属性编辑", hptp);
        }

        private void WizardFrm_Load(object sender, EventArgs e)
        {
            choseWizard("转化方式编辑");
        }

        public void choseWizard(string name)
        {
            tabBody.TabPages.Clear();
            int pos = indexof(name);
            tabBody.TabPages.Add((ctsTools.Controls.TabPage)curpages[name]);
            tabBody.SelectedIndex = pos;

        }

        private int  indexof(string keys)
        {
            IDictionaryEnumerator ide = curpages.GetEnumerator();
            int temp=0;
            while (ide.MoveNext())
            {
                
                if (keys == ((ctsTools.Controls.TabPage)ide.Entry.Value).Title)
                {
                    return temp;
                }
                temp++;
            }
            return -1;
        }


        

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -