public DBIN() { InitializeComponent(); ZTListHelper.IniZTDropDownList(cmbZTList); TemplateListHelper.IniDropDownList(dgwtemplate, "", ""); //cmbtmp.Enabled = false; }
private void cmbZTList_SelectedIndexChanged(object sender, EventArgs e) { ztinfo zt = (ztinfo)cmbZTList.SelectedItem; string type = zt.DbType; TemplateListHelper.IniDropDownList(dgwtemplate, type, ""); }
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); }
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(); }