public object Clone() { ExternalToolsSetting coppied = new ExternalToolsSetting(); coppied.tools = new List<ExternalToolItem>( tools ); return coppied; }
public ExternalToolsSetting(ExternalToolsSetting src) { if( src != null ) this.tools = new List<ExternalToolItem>( src.tools ); }
//========================================================================= /// <summary> /// ��ʂ����[�h���ꂽ���̏��� /// </summary> /// <remarks> /// </remarks> /// <history>2006/XX/XX �V�K�쐬</history> //========================================================================= private void OptionForm_Load(object sender, EventArgs e) { //------------------------- // "�^��V�X�e��"�^�u //------------------------- { schedulerComboBox.Items.Clear(); schedulerComboBox.Items.Add("(�Ȃ�)"); schedulerComboBox.SelectedIndex = 0; mSchedulerTable = new Hashtable(); foreach ( Scheduler scheduler in ReserveManager.SchedulerList) { schedulerComboBox.Items.Add(scheduler.Name); mSchedulerTable[scheduler.Name] = scheduler; if ( scheduler.GetType().Name.Equals( Settings.Default.schedulerType ) ) { schedulerComboBox.SelectedItem = scheduler.Name; } } reserveStartAddUpdown.Value = Settings.Default.reserveStart; reserveEndUpdown.Value = Settings.Default.reserveEnd; reserveDaysUpdown.Value = Settings.Default.reserveDays; reserveNDaysFromNowRadiobutton.Checked = (Settings.Default.reserveControl == ReserveControl.nDaysFromNow); reserveImmediatlyBeforeRadiobutton.Checked = (Settings.Default.reserveControl == ReserveControl.ImmediatlyBefore); reserveNoAutoRadiobutton.Checked = (Settings.Default.reserveControl == ReserveControl.noAutoReserve); reserveImmediatlyBeforeMinUpdown.Value = Settings.Default.reserveImmediatlyBeforeMinutes; } //------------------------- // "�\��ڍ�"�^�u //------------------------- tunerUpdown.Value = Settings.Default.overlapThreshould; overlapMarginUpdown.Value = Settings.Default.overlapMargin; enablePriorityCheckbox.Checked = Settings.Default.enablePriority; //------------------------- // "�^��t�@�C��"�^�u //------------------------- { captureMerginUpDown.Value = Settings.Default.captureMergin; // captureExtensionComboBox.Text = Settings.Default.strExtension.Substring(1); // captureSubDirOptionBox.Checked = Settings.Default.captureSubDir; // captureFolderTextBox.Text = Settings.Default.captureFolder; // RadioButton []specFileRadios = { specifiedByTimeRadioButton, specifiedByNameRadioButton, specifyByEndTimeRadioButton, }; for( int i = 0 ; i < specFileRadios.Length ; ++i ) specFileRadios[i].Tag = i; specFileRadios[(int)Settings.Default.specifiedFile].Checked = true; exclamationZenkakuCheckBox.Checked = 0 < (Settings.Default.fileTitleMode & 1); } //------------------------- // "�G���R�[�h"�^�u //------------------------- { mEncoderTable = new Hashtable(); foreach(Type encoderType in EncodeManager.EncoderList) { Encoder encoder; encoder = (Encoder)Activator.CreateInstance(encoderType); encoderListBox.Items.Add( encoder.Name ); mEncoderTable.Add( encoder.Name, encoder ); } if (EncodeManager.EncoderList.Count == 0) { encoderListBox.Enabled = false; EncoderOptionButton.Enabled = false; } else { encoderListBox.SelectedIndex = 0; } concurrentNumsUpdown.Value = Settings.Default.concurrentNums; encodedFolderTextBox.Text = Settings.Default.encodedFolder; autoUpdateCheckBox.Checked = Settings.Default.autoUpdate; prohibitUpdateWhileRecordingCheckBox.Checked = Settings.Default.prohibitUpdateWhileRecording; removeSourceWhenEncodedCheckBox.Checked = Settings.Default.removeSourceWhenEncoded; } scheduleEncodeEverydayCheckBox.Checked = Settings.Default.scheduleEncodeEveryday; scheduleEncodeHour.Text = Convert.ToString(Settings.Default.scheduleEncodeTime / 60); scheduleEncodeMinute.Text = Convert.ToString(Settings.Default.scheduleEncodeTime % 60); autoShutdownAtEncodedCheckbox.Checked = Settings.Default.autoShutdownAtEncoded; autoShutdownTypeComboBox.SelectedIndex = Settings.Default.autoShutdownType; autoEncodeInAfterRecordCheckBox.Checked = Settings.Default.autoEncodeInAfterRecord; autoEncodeNumeric.Value = Settings.Default.autoEncodeMergin; dontBeginLessThanCheckBox.Checked = Settings.Default.dontBeginEncodeLessThanMinutes; dontBeginLessThanMinutesUpdown.Value = Settings.Default.maxDelayTimeDontBeginEncode; autoEncodeInAfterRecordCheckBox_CheckedChanged(null,null); //---------------------- // "�ۑ��t�@�C��"�^�u //---------------------- saveFolderTextBox.Text = Settings.Default.saveFolder; classificateCheckBox.Checked = Settings.Default.classificatePrograms; saveNameFormatComboBox.Text = Settings.Default.saveNameFormat; saveNameFormatComboBox_TextUpdate(this, null); scheduleFirstHourComboBox.Text = Convert.ToString(Settings.Default.scheduleFirstHour); scheduleTimeZoneComboBox.Text = Convert.ToString(Settings.Default.scheduleTimeZone); //------------------------- // �u�d���Ǘ��v�^�u //------------------------- autoPowerManagementCheckBox.Checked = Settings.Default.autoPowerManagement; bootTimeUnificationUpdown.Value = Settings.Default.bootupTimeUnification; shutdownMethodComboBox.SelectedIndex = (int)Settings.Default.shutdownMethod; bootupHastenUpdown.Value = Settings.Default.bootupHasten; shutdownPutoffUpdown.Value = (Decimal)Settings.Default.shutdownPutoff; autoBootupCheckbox.Checked = Settings.Default.autoBootup; autoShutdownCheckbox.Checked = Settings.Default.autoShutdown; autoBootNDaysUpdown.Value = Settings.Default.autoBootNDays; schedulerComboBox_SelectedIndexChanged(null, null); autoBootWhenRecordingCheckBox_CheckedChanged(null, null); ignoreExistCheckBox.Checked = Settings.Default.ignoreExist; copyWithOthersCheckBox.Checked = Settings.Default.copyWithOthers; removeSubdirCheckBox.Checked = Settings.Default.removeSubdir; autoTransferAtBootCheckBox.Checked = Settings.Default.autoTransferAtBoot; autoTransferInAfterRecordCheckBox.Checked = Settings.Default.autoTransferAtAfterRecord; autoTransferTimeNumeric.Value = Settings.Default.autoTransferTime; autoMoveWithoutFirstCheckBox.Checked = Settings.Default.autoMoveWithoutFirstEpisode; //------------------------- // �I�����C���^�u //------------------------- syoboiTitleUrlTextBox.Text = Settings.Default.syoboiTitleList; syoboiTidUrlTextBox.Text = Settings.Default.syoboiTid; syoboiRssTextBox.Text = Settings.Default.syoboiRss; syoboiProgInfoTextBox.Text = Settings.Default.syoboiProg; //------------------------- // �O���b�h�r���[�^�u //------------------------- thumbnailSubtitleCheckBox.Checked = Settings.Default.thumbnailSubtitle; thumbnailSecondUpdown.Value = Settings.Default.thumbnailSecond; thumbnailSizeComboBox.SelectedIndex = Settings.Default.thumbnailSize; forbiddenThumbnailCheckBox.Checked = Settings.Default.forbiddenThumbnail; makeThumbnailAfterEncodeCheckBox.Checked = Settings.Default.makeThumbnailAfterEncode; //------------------------- // "�O���c�[��"�^�u //------------------------- if (Settings.Default.externalTools != null) mExtTools = (ExternalToolsSetting)Settings.Default.externalTools.Clone(); else mExtTools = new ExternalToolsSetting(); //------------------------- // "�f�[�^�X�V"�^�u //------------------------- bootRefreshCheckBox.Checked = Settings.Default.bootRefresh; autoRefreshCheckBox.Checked = Settings.Default.autoRefresh; updateIntervalUpdown.Value = Settings.Default.updateInterval; mUntilOnAirMinutes = Settings.Default.untilOnAirMinutes; updateOnAirSoonCheckBox.Checked = Settings.Default.updateOnAirSoon; SetUntilOnAirMinutesTextBox(); //------------------------- // "���̑�"�^�u //------------------------- inTaskTrayCheckBox.Checked = Settings.Default.inTaskTray; disableUnreadCheckBox.Checked = Settings.Default.disableUnread; notifyUnreadCheckBox.Checked = Settings.Default.notifyUnreadBalloon; popupSoonBalloonCheckBox.Checked= Settings.Default.showSoonBalloon; timeSoonBalloonUpdown.Value = Settings.Default.timeSoonBalloon; hoursPerDayUpDown.Value = Settings.Default.hoursPerDay; minimizeAtStartupCheckBox.Checked = Settings.Default.minimizeAtStartup; minimizeAtPlayerCheckBox.Checked = Settings.Default.minimizeAtPlayer; startupWaitUpdown.Value = Settings.Default.startupWait; RefreshContent(); }