private void ViewConfig()
        {
            SettingsEditor editor = new SettingsEditor(settings);
            editor.ShowDialog();

            if (editor.IsDirty)
                settings = editor.Settings;

            editor.Dispose();
        }
 internal DataAccess(Settings settings)
 {
     Settings = settings;
 }
 public CommissionControl()
 {
     InitializeComponent();
     settings = new Settings();
     dataAccess = new DataAccess(Settings);
 }
 public SettingsEditor(Settings settings)
 {
     Settings = settings;
     InitializeComponent();
 }