private void _view_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { // Someone field in view has been changed if (e.PropertyName == "params") { _view.buttonStartEnabled = _params.Validate(); } }
void DisplayParams() { _view.allcoins = _params_clone.Allcoins; _view.allpools = _params_clone.Allpools; _view.erate = _params_clone.Erate; _view.esm = _params_clone.Esm; _view.estale = _params_clone.Estale; _view.etha = _params_clone.Etha; _view.ethi = _params_clone.Ethi; _view.epool = _params_clone.EthPool; _view.epsw = _params_clone.EthPsw; _view.etht = _params_clone.Etht; _view.eworker = _params_clone.EthWorker; _view.solo = _params_clone.Solo; // ------------------------- _view.mode = _params_clone.Mode; _view.dpool = _params_clone.Dpool; _view.dwal = _params_clone.Dwal; _view.dpsw = _params_clone.Dpsw; _view.dcri = _params_clone.Dcri; _view.dcrt = _params_clone.Dcrt; _view.dcoin = _params_clone.Dcoin; // --------------------------------- _view.textCustomCommand = _params_clone.CustomParams; // ------------- _view.GPU_FORCE_64BIT_PTR0 = _params_clone.GPU_FORCE_64BIT_PTR0; _view.GPU_MAX_ALLOC_PERCENT = _params_clone.GPU_MAX_ALLOC_PERCENT; _view.GPU_MAX_HEAP_SIZE100 = _params_clone.GPU_MAX_HEAP_SIZE100; _view.GPU_SINGLE_ALLOC_PERCENT = _params_clone.GPU_SINGLE_ALLOC_PERCENT; _view.GPU_USE_SYNC_OBJECTS = _params_clone.GPU_USE_SYNC_OBJECTS; // --------------- _view.showwindow = _params_clone.ShowWindow; _view.restart = _params_clone.Restart; _view.buttonOkEnabled = _params_clone.Validate(); }