コード例 #1
0
        // 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
 public SqlEEConnectionTestHandler(VmTestResultDialog vmTestResultDialog) : base(vmTestResultDialog)
 {
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to log in", Function = TestFunction_Login
     });
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to read tables", Function = TestFunction_Read
     });
 }
コード例 #4
0
 public SPOConnectionTestHandler(VmTestResultDialog vmTestResultDialog) : base(vmTestResultDialog)
 {
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to reach Process Suite (ping)", Function = TestFunction_Ping, ContinueOnError = true
     });
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to log in", Function = TestFunction_Login
     });
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to read some information", Function = TestFunction_Read
     });
 }
コード例 #5
0
 // Define the tests
 public eDocsConnectionTestHandler(VmTestResultDialog vmTestResultDialog) : base(vmTestResultDialog)
 {
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to reach CMIS server (ping)", Function = TestFunction_Ping, ContinueOnError = true
     });
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to get repositories", Function = TestFunction_Login
     });
     TestList.Add(new TestFunctionDefinition()
     {
         Name = "Try to read root folders", Function = TestFunction_Read
     });
 }
コード例 #6
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);
        }