Beispiel #1
0
        void PopulateForm()
        {
            ModIssue = IssueRepository.GetIssueById(IssueToModifyID);
            int offsetForIndex = 1;

            IdBox.Text                   = ModIssue.Id.ToString();
            TitleBox.Text                = ModIssue.Title;
            DateTimePicker.Value         = ModIssue.DiscoveryDate;
            DiscovererComboBox.Text      = ModIssue.Discoverer;
            ComponentBox.Text            = ModIssue.Component;
            StatusComboBox.SelectedIndex = ModIssue.IssueStatusId - offsetForIndex;
            InitialDescription.Text      = ModIssue.InitialDescription;
        }