End Google Ads 201810 - BS.net 01 -->
Hi Guys,
Quick question : I have 2 forms : FORM1 and FORM2. In FORM1 i am trying to implemen a PRINT PREVIW button to work like the PRINT PREVIW button in FORM2.
Here is the delegate, event Starter() and Subscriber() lines.
public delegate void DelegatPrintPreview(object sender, EventArgs e);
public static event DelegatPrintPreview EvenimentDelegatPrintPreview;
public static void StarterPrintPreview(object o, EventArgs ev)
{
if (EvenimentDelegatPrintPreview != null)
{
EvenimentDelegatPrintPreview(o, ev);
}
}
public static void SubscribeToPrintPreview(DelegatPrintPreview pf)
{
EvenimentDelegatPrintPreview += new DelegatPrintPreview(pf);
}
the question is : Where do i put the delegate(in the form with the same button or the other one )? and the same question with the Starter() and Subscriber() methods ?
Regards,
Alex
“Be the change you want to see in the world.”
مواقع النشر (المفضلة)