private void TemplatePrinterTestForm_Load(object sender, EventArgs e) { ArrayList lists = FontHelper.GetInstallFont(); this.cbFonts.DataSource = lists; this.cbFonts.Text = "宋体"; this.cbFonts.DropDownStyle = ComboBoxStyle.DropDownList; config = FT.Commons.Cache.StaticCacheManager.GetConfig<TemplateTextConfig>(); this.dataGridView1.AutoGenerateColumns = false; // MessageBoxHelper.Show("模板条数:"+config.Lists.Count.ToString()); this.RefreshData(); this.txtPageWidth.Text = config.PageWidth.ToString(); this.txtPageHeight.Text = config.PageHeight.ToString(); }
public TemplatePrintObject(TemplateTextConfig config) { this.config = config; }