private void butHead_Click(object sender, EventArgs e) { IsHeadOnly = true; textVersions.Text = "Head Only (" + VersionReleases.GetPossibleHeadRelease() + ")"; textVersions.Focus(); textVersions.SelectionStart = 11; textVersions.SelectionLength = 4; }
private void FormJobManagerOverview_Load(object sender, EventArgs e) { WindowState = FormWindowState.Maximized; MinimumSize = Size; MaximumSize = Size; foreach (Def def in Defs.GetDefsForCategory(DefCat.JobPriorities, true).OrderBy(x => x.ItemOrder).ToList()) { listPriorities.Items.Add(new ODBoxItem <Def>(def.ItemName, def)); } listPriorities.SelectedIndex = 0; foreach (JobPhase phase in Enum.GetValues(typeof(JobPhase))) { listPhases.Items.Add(new ODBoxItem <JobPhase>(phase.ToString(), phase)); } listPhases.SelectedIndex = 0; foreach (JobCategory category in Enum.GetValues(typeof(JobCategory))) { listCategories.Items.Add(new ODBoxItem <JobCategory>(category.ToString(), category)); } comboProposedVersion.Items.Add("All"); comboProposedVersion.SelectedIndex = 0; comboProposedVersion.Items.AddEnums <JobProposedVersion>(); listCategories.SelectedIndex = 0; comboEngineers.Items.Add("All", new Userod() { UserNum = -1 }); comboEngineers.Items.Add("Unassigned", new Userod() { UserNum = 0 }); foreach (Userod eng in JobHelper.ListEngineerUsers) { comboEngineers.Items.Add(eng.UserName, eng); } comboEngineers.SelectedIndex = 0; dateRangeJobCompleted.SetDateTimeFrom(VersionReleases.GetBetaDevelopmentStartDate()); dateRangeJobCompleted.SetDateTimeTo(VersionReleases.GetBetaReleaseDate()); SetFilters(); FillGridJobs(GetFilteredJobList()); FillGridSprints(); }
private void FillVersionsFilter() { listVersionsFilter.Items.Clear(); listVersionsFilter.Items.Add("All"); //Always list the last three major and minor versions. The user will have to use "All" in order to see older bug submissions. List <VersionRelease> listVersions = VersionReleases.GetLastThreeReleases(); if (listVersions.IsNullOrEmpty()) { listVersionsFilter.SetSelected(0, true); //Select 'All' and return. return; } //Otherwise; add as many of the last three versions found and select them by default so that we don't load up too many bug submissions. foreach (VersionRelease version in listVersions) { listVersionsFilter.Items.Add($"{version.MajorNum}.{version.MinorNum}"); listVersionsFilter.SetSelected(listVersionsFilter.Items.Count - 1, true); } listVersionsFilter.Items.Add("Mobile"); //butRefreshMobile_Click(...) assumes this is at the bottom. }
private void butLast3_Click(object sender, EventArgs e) { IsHeadOnly = false; textVersions.Text = VersionReleases.GetLastReleases(3); }
private void butLast3_Click(object sender, EventArgs e) { textVersionsFixed.Text = VersionReleases.GetLastReleases(3); }
private void butLast2found_Click(object sender, EventArgs e) { textVersionsFound.Text = VersionReleases.GetLastReleases(2); }