Exemple #1
0
 public listViewPrinter(GlacialList lv, Point location, bool border, bool hasGroups, string title)
 {
     this.lv = lv;
     this.location = location;
     this.border = border;
     this.hasGroups = hasGroups;
     this.title = title;
     titleHeight = !string.IsNullOrEmpty(title) ? lv.FindForm().CreateGraphics().MeasureString(title, new Font(lv.Font.Name, 12)).ToSize().Height : 0;
     pd.BeginPrint += pd_BeginPrint;
     pd.PrintPage += pd_PrintPage;
 }