private void CatoTemplateApplySelect_Load(object sender, EventArgs e) { CartoTemplateTableStruct struct2 = new CartoTemplateTableStruct(); ITable table = AppConfigInfo.OpenTable(struct2.TableName); if (table != null) { ICursor o = table.Search(null, false); IRow row = o.NextRow(); string[] items = new string[2]; while (row != null) { CartoTemplateData data = new CartoTemplateData(row); items[0] = data.Name; items[1] = data.Description; ListViewItem item = new ListViewItem(items) { Tag = data }; this.listView1.Items.Add(item); row = o.NextRow(); } ComReleaser.ReleaseCOMObject(o); o = null; } }
private void btnNext_Click(object sender, EventArgs e) { switch (this.int_0) { case 0: this.cartoTemplateData_0 = this.catoTemplateApplySelect_0.CartoTemplateData; if (this.cartoTemplateData_0 != null) { this.catoTemplateApplySelect_0.Visible = false; this.templateParamSetPage_0.TemplateOID = this.cartoTemplateData_0.OID; this.btnNext.Text = "完成"; this.templateParamSetPage_0.Visible = true; break; } MessageBox.Show("请选择模板!"); return; case 1: this.templateParamSetPage_0.Apply(); base.DialogResult = DialogResult.OK; return; } this.int_0++; }