public ReportCardWindowsGUIMerger(Options options) { InitializeComponent(); this.TemplateGood = false; this.DatasourceGood = false; this.templatepath = options.TemplateName; this.datasourcepath = options.DataSourceName; this.savetopath = options.SaveDir; this.SaveToGood = Directory.Exists(options.SaveDir); this.exportpdf = options.ExportPdf; this.exportpub = options.ExportPub; this.usewingdingticks = options.UseWingdingTicks; this.initialnames = options.Names; this.pdPrint = new System.Windows.Controls.PrintDialog(); this.worker = new ReportCardWorker(); this.worker.UseWingdingTicks = options.UseWingdingTicks; }
protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } if (this.worker != null) { this.worker.Dispose(); this.worker = null; } base.Dispose(disposing); }