private void InitMinerTypeExtraParams()
        {
            try
            {
                // Attempt to read the miner type extra params from the config file
                MinerTypeExtraParamsFile minerTypeExtraParamsFile = new MinerTypeExtraParamsFile();
                AccountMinerTypeExtraParamsList = minerTypeExtraParamsFile.ReadJsonFromFile();

                // Save list for later
                Application.Current.Properties["AccountMinerTypeExtraParamsList"] = AccountMinerTypeExtraParamsList;
            }
            catch (Exception e)
            {
                throw new ApplicationException(string.Format("Error getting miner type extra settings", e));
            }
        }
        public void PersistMinerTypeExtraParams(object param)
        {
            try
            {
                AccountMinerTypeExtraParamsList = ValidateMinerTypeExtraParams(AccountMinerTypeExtraParamsList);

                // Write GUID to account identity config file
                MinerTypeExtraParamsFile minerTypeExtraParamsFile = new MinerTypeExtraParamsFile();
                minerTypeExtraParamsFile.WriteJsonToFile(AccountMinerTypeExtraParamsList);

                // Notify UI of change
                OnPropertyChanged("AccountMinerTypeExtraParamsList");

                Application.Current.Properties["AccountMinerTypeExtraParamsList"] = AccountMinerTypeExtraParamsList;

                // Notify success
                ShowSuccess(string.Format("Miner type extra params saved"));
            }
            catch (Exception e)
            {
                throw new ApplicationException(string.Format("Error saving miner type extra params"), e);
            }
        }