コード例 #1
0
        public void Execute(object parameter)
        {
            var connManagerWindow = new ConnectionManagerWindow();

            connManagerWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            connManagerWindow.ShowDialog();
        }
コード例 #2
0
        Task ICommandHandler <NewConnectionCommandDefinition> .Run(Command command)
        {
            var connManagerWindow = new ConnectionManagerWindow();

            connManagerWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            connManagerWindow.ShowDialog();

            return(TaskUtility.Completed);
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: zanadu777/Schema
        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();
        }
コード例 #4
0
 public void Execute(object parameter)
 {
     var connManagerWindow = new ConnectionManagerWindow();
     connManagerWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
     connManagerWindow.ShowDialog();
 }