private void MockDataGen_Load(object sender, EventArgs e) { // LoadEntities(); // Loads or creates the settings for the plugin if (!SettingsManager.Instance.TryLoad(GetType(), out mySettings)) { mySettings = new AllSettings(); LogWarning("Settings not found => a new settings file has been created!"); } else { LogInfo("Settings found and loaded"); txtMockKey.Text = mySettings.MockKey; AddSavedMaps(); } btnDepTables.Checked = mySettings.ExcludeConfig.DeprecatedTables; btnDepImpSeqNo.Checked = mySettings.ExcludeConfig.ImportSeqNo; btnDepCol.Checked = mySettings.ExcludeConfig.DeprecatedColumns; }
private void BtnCreateDataSet_Click(object sender, EventArgs e) { if (mySettings.Settings.Count == 0) { MessageBox.Show( "Please create Mockaroo Maps prior to creating a dataset", "Create Maps first", MessageBoxButtons.OK, MessageBoxIcon.Information); } DataSetConfig dsConfig = new DataSetConfig(mySettings); if (dsConfig.ShowDialog() != DialogResult.OK) { return; } mySettings = dsConfig.Settings; SettingsManager.Instance.Save(typeof(AllSettings), mySettings); AddSavedMaps(); }
public DataSetConfig(AllSettings allSettings) { InitializeComponent(); Settings = allSettings; }
public SaveMap(AllSettings allSettings) { InitializeComponent(); settings = allSettings; }