public delegate void DelegatPrintPreview(object sender, EventArgs e);<br /> public static event DelegatPrintPreview EvenimentDelegatPrintPreview;<br /><br /> public static void StarterPrintPreview(object o, EventArgs ev)<br /> {<br /> if (EvenimentDelegatPrintPreview != null)<br /> {<br /> EvenimentDelegatPrintPreview(o, ev);<br /> }<br /> }<br /> public static void SubscribeToPrintPreview(DelegatPrintPreview pf)<br /> {<br /> EvenimentDelegatPrintPreview += new DelegatPrintPreview(pf);<br /> }
var