コード例 #1
0
        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;
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 public DataSetConfig(AllSettings allSettings)
 {
     InitializeComponent();
     Settings = allSettings;
 }
コード例 #4
0
 public SaveMap(AllSettings allSettings)
 {
     InitializeComponent();
     settings = allSettings;
 }