public MainWindow()
        {
            InitializeComponent();

            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                DataContext = Model = new MainWindowModel();
                Model.OptionsChanged += MainWindowModel_OnOptionsChanged;
            }
        }
 public Connection(MainWindowModel model, ConnectionStringSettings connectionString)
 {
     Name             = connectionString.Name;
     ConnectionString = connectionString.ConnectionString;
     Model            = model;
 }