public DialogResult ShowDialog(AnimeEpisode r) { this.mEpisode = r; TitleTextBox.Text = r.Parent.title; SubtitleTextBox.Text = r.mSubTitle; FileTextBox.Text = r.FilePath; StoryNumberUpdown.Value = r.StoryNumber; hasPlanCheckBox.Checked = r.HasPlan; if( r.HasPlan ) { dateTimePicker.Value = r.StartDateTime; lengthUpdown.Value = r.Length; } isReservedCheckBox.Checked = r.IsReserved; if( r.IsReserved ) reserveDateTimePicker.Value = r.ReserveDateTime; isReserveErrorCheckBox.Checked = r.IsReserveError; hasFileCheckBox.Checked = r.HasFile; FileTextBox.Text = r.FilePath; isEncodedCheckBox.Checked = r.IsEncoded; isStoredCheckBox.Checked = r.IsStored; // <ADD> 2010/01/04 -> repeatNumberTextBox.Text = (0 <= r.RepeatNumber) ? "��" + (r.RepeatNumber + 1).ToString() + "��ڂ̕����ł��B" : "��?��ڂ̕����ł��B"; isRecordedCheckBox.Checked = r.IsRecorded; isStartedOnairCheckBox.Checked = r.IsStartedOnair; // <ADD> 2010/01/04 <- // <ADD> 2010/01/06 -> isStorableCheckBox.Checked = r.IsStorable; // <ADD> 2010/01/06 <- // <ADD> 2010/01/11 -> timeChangedCheckBox.Checked = r.JudgeTimeChanged; try { recordStartDateTime.Value = r.StartRecordDateTime; recordEndDateTime.Value = r.EndRecordDateTime; } catch(ArgumentOutOfRangeException ex) { recordStartDateTime.Value = recordStartDateTime.MinDate; recordEndDateTime.Value = recordEndDateTime.MinDate; } // <ADD> 2010/01/11 <- // <ADD> 2010/02/07 -> thumbnailMakedCheckBox.Checked = r.ThumbnailMaked; // <ADD> 2010/02/07 <- // <ADD> 2010/04/17 -> planErrorCheckbox.Checked = r.PlanError; // <ADD> 2010/04/17 <- RefreshControl(); return ShowDialog(); }
public EncodeJob(AnimeEpisode enocdeTarget) { this.encodeTarget = enocdeTarget; }