コード例 #1
0
        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));
        }
コード例 #2
0
 public Randomizer(MainWindow mainWindow, ButtonPresser buttonPresser)
 {
     _mainWindow    = mainWindow;
     _buttonPresser = buttonPresser;
     var program = new Program(_mainWindow);
 }