private void TestSaveStandart() { MySettings settings = new MySettings(); string settingsPath = settingsManager.GetSettingsFilePath("Standart", "settings.json"); settings.Save(settingsPath); }
private void buttonSave_Click(object sender, EventArgs e) { // TestSaveStandart();return; string settingsPath = settingsManager.GetSettingsFilePath(comboBoxProfile.Text, "settings.json"); selSettings.defaultlimitorders = checkBoxDefLimitTrade.Checked; ActivatePoloniexKey(); ActivateBittrexKey(); selSettings.Save(settingsPath); Global.settingsMain = selSettings; Global.settingsInit.currentprofile = comboBoxProfile.Text; Global.settingsInit.Save(Path.Combine(ApplicationPath.directoryAppBin, "init.json")); Close(); }