public MainWindow() { InitializeComponent(); _program = new Program(this); _buttonPresser = new ButtonPresser(); _Randomizer = new Randomizer(this, _buttonPresser); _buttonPresser.ButtonPressed += _program.OnButtonPressed; //oThread = new Thread(new ThreadStart(_Randomizer.Randoming)); }
public Randomizer(MainWindow mainWindow, ButtonPresser buttonPresser) { _mainWindow = mainWindow; _buttonPresser = buttonPresser; var program = new Program(_mainWindow); }