コード例 #1
0
        public ClaymorMinerPresenter(IClaymorMinerView _view, ClaymorMinerModel _model)
        {
            this._view  = _view;
            this._model = _model;


            _params = new ClaymorParams();

            // Here wi should load saved settings
            _params.RestoreDefaults();
            LoadSavedParams();


            _view.clParams = _params;

            PopulatePools();

            // this._model.OnStartProcess += _model_OnStartProcess;
            // this._model.OnKillProcess += _model_OnKillProcess;
            this._model.OnOutputUpdate += _model_OnOutputUpdate;
            //this._model.OnTimeUpdate += _model_OnTimeUpdate;

            this._view.Run             += _view_Run;
            this._view.Stop            += _view_Stop;
            this._view.Config          += _view_Config;
            this._view.CreateWallet    += _view_CreateWallet;
            this._view.PropertyChanged += _view_PropertyChanged;

            _view_PropertyChanged(null, new System.ComponentModel.PropertyChangedEventArgs("params"));
        }
コード例 #2
0
 private void _view_Default()
 {
     _params_clone.RestoreDefaults();
     bLoad = true;
     DisplayParams();
     bLoad = false;
 }