private void menuExportType_Click(object sender, EventArgs e) { TemplateExport export = new TemplateExport(); export.TemplateTypeID = GetSelectedID(); export.ShowDialog(); }
protected override void BeginProcessing() { // create export document _export = new TemplateExport(); _export.Groups.Add(_templateGroup); // create default template var hostname = String.IsNullOrEmpty(_computerName) || _computerName == "." ? System.Environment.MachineName : _computerName; _template = new Template { Name = String.IsNullOrEmpty(_templateName) ? String.Format("Template Performance Counters on {0}", hostname) : _templateName, Description = "Generated with Export-CounterSetToZabbixTemplate", }; _template.Groups.Add(_templateGroup); _export.Templates.Add(_template); }
//导出模板 private void menuExport_Click(object sender, EventArgs e) { TemplateExport export = new TemplateExport(); export.ShowDialog(); }