Exemplo n.º 1
0
        public ConnectionManagerWin()
        {
            InitializeComponent();
            vm = new ConnectionManagerVM(DialogCoordinator.Instance);

            DataContext = vm;
        }
Exemplo n.º 2
0
        public ConnectionManagerWin(Domains.TreeViewModel treeViewModel)
        {
            InitializeComponent();
            vm = new ConnectionManagerVM(DialogCoordinator.Instance, treeViewModel.ConnectionBuilder);

            DataContext = vm;
        }
Exemplo n.º 3
0
        private void ShowConnectionManager()
        {
            Dictionary <string, IConnectivityTester> connector = new Dictionary <string, IConnectivityTester>();

            connector.Add("Sql Server", new ConnectivityTester());
            connector.Add("MySQL", new Models.MySql.ConnectivityTester());

            var viewModel = new ConnectionManagerVM(new ConnectionManagerModel(), connector);

            viewModel.OnShowSchemaBrowserWindow += OnShowSchemaBrowserWindow;
            viewModel.OnShowQueryWindow         += OnShowQueryWindow;
            var window = new ConnectionManagerWindow(viewModel);

            window.Show();
        }
Exemplo n.º 4
0
 public ConnectionManager()
 {
     InitializeComponent();
     DataContext = new ConnectionManagerVM();
 }