public EditTimerWindow(IBackend gallifrey, Guid timerGuid) { this.gallifrey = gallifrey; timerToShow = gallifrey.JiraTimerCollection.GetTimer(timerGuid); InitializeComponent(); txtJiraRef.AutoCompleteCustomSource.AddRange(gallifrey.JiraConnection.GetJiraProjects().Select(x => x.ToString()).ToArray()); showingJiras = false; txtJiraRef.Text = timerToShow.JiraReference; calStartDate.Value = timerToShow.DateStarted.Date; txtJiraRef.Enabled = timerToShow.HasExportedTime(); calStartDate.Enabled = timerToShow.HasExportedTime(); TopMost = gallifrey.Settings.UiSettings.AlwaysOnTop; }
public RenameTimerWindow(IBackend gallifrey, Guid timerGuid) { this.gallifrey = gallifrey; timerToShow = gallifrey.JiraTimerCollection.GetTimer(timerGuid); InitializeComponent(); txtJiraRef.Text = timerToShow.JiraReference; calStartDate.Value = timerToShow.DateStarted.Date; txtJiraRef.Enabled = timerToShow.HasExportedTime(); }