// Set up objects, start tests (running in the backgroud) and launch the dialog
        public void TestButtonHandler()
        {
            VmTestResultDialog vmConnectionTestResultDialog = new VmTestResultDialog();

            ConnectionTestHandler = new SqlEEConnectionTestHandler(vmConnectionTestResultDialog);
            ConnectionTestHandler.CallingViewModel = this;

            connectionTestResultDialog               = new ConnectionTestResultDialog(ConnectionTestHandler);
            connectionTestResultDialog.DataContext   = vmConnectionTestResultDialog;
            connectionTestResultDialog.ShowInTaskbar = false;

            //The test environment is Winforms, we then set the window to topmost.
            //In OCC we we can set the owner property
            if (Application.Current == null)
            {
                connectionTestResultDialog.Topmost = true;
            }
            else
            {
                connectionTestResultDialog.Owner = Application.Current.MainWindow;
            }

            ConnectionTestHandler.LaunchTests();
            connectionTestResultDialog.ShowDialog();
        }
Пример #2
0
        // Set up objects, start tests (running in the backgroud) and launch the dialog
        public void TestConnection()
        {
            settings.InitializeSPOClient(vm.SPOClient);

            VmTestResultDialog vmConnectionTestResultDialog = new VmTestResultDialog();

            ConnectionTestHandler = new SPOConnectionTestHandler(vmConnectionTestResultDialog)
            {
                CallingViewModel = this
            };
            connectionTestResultDialog = new ConnectionTestResultDialog(ConnectionTestHandler)
            {
                DataContext   = vmConnectionTestResultDialog,
                ShowInTaskbar = false,
            };
            //The test environment is Winforms, we then set the window to topmost.
            //In OCC we we can set the owner property
            if (Application.Current == null)
            {
                connectionTestResultDialog.Topmost = true;
            }
            else
            {
                connectionTestResultDialog.Owner = Application.Current.MainWindow;
            }

            ConnectionTestHandler.LaunchTests();
            connectionTestResultDialog.ShowDialog();
        }
Пример #3
0
        // Set up objects, start tests (running in the backgroud) and launch the dialog
        public void CheckConnectionHandler()
        {
            settings.InitializeCMISClient(vm.CMISClient);

            VmTestResultDialog vmConnectionTestResultDialog = new VmTestResultDialog();

            ConnectionTestHandler = new eDocsConnectionTestHandler(vmConnectionTestResultDialog);
            ConnectionTestHandler.CallingViewModel = this;

            connectionTestResultDialog             = new ConnectionTestResultDialog(ConnectionTestHandler);
            connectionTestResultDialog.DataContext = vmConnectionTestResultDialog;

            ConnectionTestHandler.LaunchTests();
            SIEEUtilsWPF.ShowDialog(connectionTestResultDialog);
        }