コード例 #1
0
        public YouTrackSettingsForm(YouTrackSettings youTrackSettings)
        {
            InitializeComponent();

            this.youTrackSettings = youTrackSettings;
            this.youTrackSettingsControl = new YouTrackSettingsControl(youTrackSettings);

            Controls.Add(this.youTrackSettingsControl);
        }
コード例 #2
0
        private void ValidateYouTrackSettings(YouTrackSettings youTrackSettings)
        {
            try
            {
                youTrackSettings.ValidateSettings();
            }
            catch (YouTrackException)
            {
                var youtrackSettingsForm = new YouTrackSettingsForm(youTrackSettings);

                if (youtrackSettingsForm.ShowDialog() == DialogResult.OK)
                {
                    youTrackSettings.Save();
                }
            }
        }
コード例 #3
0
 public YouTrackServer(YouTrackSettings youTrackSettings)
 {
     this.youTrackSettings = youTrackSettings;
     this.Project = this.youTrackSettings.Project;
 }