コード例 #1
0
 public DBIN()
 {
     InitializeComponent();
     ZTListHelper.IniZTDropDownList(cmbZTList);
     TemplateListHelper.IniDropDownList(dgwtemplate, "", "");
     //cmbtmp.Enabled = false;
 }
コード例 #2
0
        private void cmbZTList_SelectedIndexChanged(object sender, EventArgs e)
        {
            ztinfo zt   = (ztinfo)cmbZTList.SelectedItem;
            string type = zt.DbType;

            TemplateListHelper.IniDropDownList(dgwtemplate, type, "");
        }
コード例 #3
0
        private void txtFileName_TextChanged(object sender, EventArgs e)
        {
            string file = txtFileName.Text.Trim();

            if (file == "")
            {
                return;
            }
            string filetype = Path.GetExtension(this.txtFileName.Text.Trim()).Trim('.');
            ztinfo zt       = (ztinfo)cmbZTList.SelectedItem;
            string type     = zt.DbType;

            TemplateListHelper.IniDropDownList(dgwtemplate, type, filetype);
        }
コード例 #4
0
        private void txtTemplate_Enter(object sender, EventArgs e)
        {
            string file = txtFileName.Text.Trim();

            if (file == "")
            {
                return;
            }
            string filetype = Path.GetExtension(this.txtFileName.Text.Trim()).Trim('.');
            ztinfo zt       = (ztinfo)cmbZTList.SelectedItem;
            string type     = zt.DbType;

            TemplateListHelper.IniDropDownList(dgwtemplate, type, filetype);
            this.panTemplate.Location = new Point(groupTmplate.Location.X + txtTemplate.Location.X, groupTmplate.Location.Y + this.txtTemplate.Location.Y + this.txtTemplate.Height);
            this.panTemplate.Width    = this.txtTemplate.Width;
            this.panTemplate.Visible  = true;
            this.panTemplate.Update();
            this.Update();
        }