public TestJiraConnection(JiraServerFacade facade, JiraServer server)
        {
            InitializeComponent();

            this.server = server;
            this.facade = facade;

            status.Text = "Testing connection to server " + server.Name + ", please wait...";
            buttonClose.Text = "Cancel";

            worker = new Thread(new ThreadStart(delegate
            {
                string result = "Success!!!";
                try
                {
                    facade.login(server);
                }
                catch (SoapSession.LoginException e)
                {
                    result = e.InnerException.Message;
                }
                Invoke(new MethodInvoker(delegate
                {
                    stopTest(result);
                }));
            }));

            worker.Start();
        }
        public ProjectConfiguration(JiraServerModel jiraServerModel, JiraServerFacade facade)
        {
            InitializeComponent();

            this.jiraServerModel = jiraServerModel;
            this.facade = facade;

            ICollection<JiraServer> jiraServers = jiraServerModel.getAllServers();

            serverTree.Nodes.Add(jiraRoot);
            //            serverTree.Nodes.Add(bambooRoot);
            //            serverTree.Nodes.Add(crucibleRoot);
            //            serverTree.Nodes.Add(fisheyeRoot);

            foreach (JiraServer server in jiraServers)
            {
                jiraRoot.Nodes.Add(new JiraServerTreeNode(server, 0));
            }

            StartPosition = FormStartPosition.CenterParent;

            serverTree.ExpandAll();
        }
 public JiraIssueListModelBuilder(JiraServerFacade facade)
 {
     this.facade = facade;
 }