public MainWindow() { InitializeComponent(); d = new DelegateExample(tb_delegate); DelegateExample delegateExample2 = new DelegateExample(tb_delegate, new List <int>()); MyPrinter printer = new MyPrinter(); UserTechnian technian = new UserTechnian(printer); UserManager manager = new UserManager(printer); }
public UserManager(MyPrinter printer) { myPrinter = printer; printer.PageOver += myPageOver; }
public UserTechnian(MyPrinter printer) { myPrinter = printer; printer.PageOver += myPageOver; //printer.PageOver(); }