예제 #1
0
        private void buttonProjectChooser_Click(object sender, EventArgs e)
        {
            try
            {
                var teamCityBuildChooser = new TeamCityBuildChooser(TeamCityServerUrl.Text, TeamCityProjectName.Text, TeamCityBuildIdFilter.Text);
                var result = teamCityBuildChooser.ShowDialog(this);

                if (result == DialogResult.OK)
                {
                    TeamCityProjectName.Text   = teamCityBuildChooser.TeamCityProjectName;
                    TeamCityBuildIdFilter.Text = teamCityBuildChooser.TeamCityBuildIdFilter;
                }
            }
            catch
            {
                MessageBox.Show(this, _failToLoadProjectMessage.Text, _failToLoadProjectCaption.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void buttonProjectChooser_Click(object sender, EventArgs e)
        {
            try
            {
                var teamCityBuildChooser = new TeamCityBuildChooser(TeamCityServerUrl.Text, TeamCityProjectName.Text, TeamCityBuildIdFilter.Text);
                var result = teamCityBuildChooser.ShowDialog(this);

                if (result == DialogResult.OK)
                {
                    TeamCityProjectName.Text = teamCityBuildChooser.TeamCityProjectName;
                    TeamCityBuildIdFilter.Text = teamCityBuildChooser.TeamCityBuildIdFilter;
                }
            }
            catch (Exception)
            {
                MessageBox.Show(this, _failToLoadProjectMessage.Text, _failToLoadProjectCaption.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #3
0
        private void buttonProjectChooser_Click(object sender, EventArgs e)
        {
            try
            {
                var teamCityBuildChooser = new TeamCityBuildChooser(TeamCityServerUrl.Text, TeamCityProjectName.Text, TeamCityBuildIdFilter.Text);
                var result = teamCityBuildChooser.ShowDialog(this);

                if (result == DialogResult.OK)
                {
                    TeamCityProjectName.Text   = teamCityBuildChooser.TeamCityProjectName;
                    TeamCityBuildIdFilter.Text = teamCityBuildChooser.TeamCityBuildIdFilter;
                }
            }
            catch (Exception)
            {
                MessageBox.Show(this,
                                "Fail to load the projects and build list." + Environment.NewLine + "Please verify the server url.",
                                "Error when loading the projects and build list", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void buttonProjectChooser_Click(object sender, EventArgs e)
        {
            try
            {
                var teamCityBuildChooser = new TeamCityBuildChooser(TeamCityServerUrl.Text);
                var result = teamCityBuildChooser.ShowDialog(this);

                if (result == DialogResult.OK)
                {
                    TeamCityProjectName.Text = teamCityBuildChooser.TeamCityProjectName;
                    TeamCityBuildIdFilter.Text = teamCityBuildChooser.TeamCityBuildIdFilter;
                }
            }
            catch (Exception)
            {
                MessageBox.Show(this,
                    "Fail to load the projects and build list." + Environment.NewLine + "Please verify the server url.",
                    "Error when loading the projects and build list", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }