public AddOrEditJiraServer(JiraServerModel jiraServerModel, JiraServer server)
        {
            InitializeComponent();

            editing = server != null;

            this.server = new JiraServer(server);
            this.jiraServerModel = jiraServerModel;

            Text = editing ? "Edit JIRA Server" : "Add JIRA Server";
            buttonAddOrEdit.Text = editing ? "Apply Changes" : "Add Server";

            if (editing)
            {
                name.Text = server.Name;
                url.Text = server.Url;
                user.Text = server.UserName;
                password.Text = server.Password;
            }
            else
            {
                ++invocations;
                name.Text = "JIRA Server #" + invocations;
                buttonAddOrEdit.Enabled = false;
            }
        }
        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();
        }