Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            Model = new SqlServerRunnerViewModel(this);
            DataContext = Model;
        }
Exemplo n.º 2
0
		public MainWindow()
		{
			InitializeComponent();

			Model = new SqlServerRunnerViewModel(this);
			DataContext = Model;

			((AwaitableDelegateCommand) Model.RunSelectedScriptsCommand).Executing += (sender, args) =>
			{
				ExecutionProgressBar.Visibility = Visibility.Visible;
			};

			((AwaitableDelegateCommand) Model.RunSelectedScriptsCommand).Executed += (sender) =>
			{
				ExecutionProgressBar.Visibility = Visibility.Collapsed;
			};
		}