コード例 #1
0
        public DialogResult ShowDialog( ref AnimeProgram animeProgram )
        {
            bool decFlag = false;

            DateTime dateTime = DateTime.Now.AddDays( 7.0 );

            yearComboBox.Text	= string.Format("{0:0}", dateTime.Year);
            monthComboBox.Text	= string.Format("{0:0}", dateTime.Month);

            if (0 <= dateTime.Hour && dateTime.Hour <= 3)
                decFlag = true;	// ‘O“úˆµ‚¢

            if (decFlag)
            {
                dayOfWeekComboBox.SelectedIndex	= (int)dateTime.AddDays(-1.0).DayOfWeek;
                dayComboBox.Text	= string.Format("{0:0}", dateTime.AddDays(-1.0).Day);
                hourComboBox.Text	= string.Format("{0:0}", dateTime.Hour + 24);
            }else{
                dayOfWeekComboBox.SelectedIndex = (int)dateTime.DayOfWeek;
                dayComboBox.Text	= string.Format("{0:0}", dateTime.Day);
                hourComboBox.Text	= string.Format("{0:0}", dateTime.Hour);
            }

            minuteComboBox.Text = string.Format("{0:D2}", dateTime.Minute);

            autoRadioBox.Enabled	= animeProgram.linkOnlineDatabase;
            if (!autoRadioBox.Enabled)	undecidedRadioBox.Checked = true;

            this.animeProgram = animeProgram;

            OnCheckedRadioBox();

            return ShowDialog();
        }
コード例 #2
0
ファイル: AnimeEpisode.cs プロジェクト: ozeppi/mAgicAnime
        private bool mThumbnailMaked = false; // �T���l�C���쐬�σt���O

        #endregion Fields

        #region Constructors

        //=========================================================================
        ///	<summary>
        ///		�R���X�g���N�^
        ///	</summary>
        /// <remarks>
        /// </remarks>
        /// <history>2006/XX/XX �V�K�쐬</history>
        //========================================================================
        public AnimeEpisode(
			AnimeProgram	animeProgram	,
			State			initialState	,
			string			inFilePath		,
			DateTime		inDateTime		,
			int				inStoryNumber	,
			string			inSubTitle		)
        {
            this.mStoryNumber	= inStoryNumber;
            this.mSubTitle		= inSubTitle;
            this.mIsUnread		= true;

            this.mParent		= animeProgram;

            this.Dirty			= true;
        }
コード例 #3
0
ファイル: AnimeEpisode.cs プロジェクト: ozeppi/mAgicAnime
        //=========================================================================
        ///	<summary>
        ///		�R���X�g���N�^
        ///	</summary>
        /// <remarks>
        /// </remarks>
        /// <history>2006/XX/XX �V�K�쐬</history>
        //=========================================================================
        public AnimeEpisode( AnimeProgram animeProgram, int storyNumber )
        {
            this.mFilePath	= null;
            this.mSubTitle	= "";

            this.mParent	= animeProgram;

            this.mStoryNumber = storyNumber;

            this.Dirty = true;
        }
コード例 #4
0
ファイル: mAgicScheduler.cs プロジェクト: ir9/iEPG_digital
 ////////////////////////////////////////////////////////////////
 // MODULE	:	Scheduler::ReserveAll
 // FUNCTION	:	指定した番組の各
 //
 ////////////////////////////////////////////////////////////////
 public bool ReserveAll(AnimeProgram animeProgram)
 {
     return(false);
 }
コード例 #5
0
ファイル: AnimeDialog.cs プロジェクト: ozeppi/mAgicAnime
        //=========================================================================
        ///	<summary>
        ///		�_�C�A���O��J�����̏���
        ///	</summary>
        /// <remarks>
        /// </remarks>
        /// <history>2006/XX/XX �V�K�쐬</history>
        //=========================================================================
        public DialogResult ShowDialog(ref AnimeProgram prog )
        {
            mSyoboCal = AnimeServer.GetInstance().mSyoboiCalender;

            mProgram = prog;

            //-------------------
            // ���ʍ���
            //-------------------
            mLinkOnline = prog.linkOnlineDatabase;
            linkOnlineDatabaseCheckBox.Checked = mLinkOnline;

            //-------------------
            // "����ڂ���"�^�u
            //-------------------
            specifyLatestRadio.Checked	= (prog.syobocalPolicy == AnimeProgram.SyobocalPolicy.SpecifyLatest);
            specifyNumberRadio.Checked	= (prog.syobocalPolicy == AnimeProgram.SyobocalPolicy.SpecifyNumber);
            specifyNumberUpdown.Value	= prog.syobocalSpecifyNumber;
            specifyEarlyRadioButton.Checked = (prog.syobocalPolicy == AnimeProgram.SyobocalPolicy.SpecifyEarly);

            //-------------------
            // "����"�^�u
            //-------------------

            if ( !string.IsNullOrEmpty( mProgram.title ) )
            {
                if( mLinkOnline )
                    mInputTitle = mProgram.title;
                else
                    titleTextBox.Text = mProgram.title;
            }
            storyCountComboBox.Text = string.Format("{0:0}", mProgram.StoryCount);

            mSelectTvStation				= mProgram.syoboiTvStation;
            recordTvStationTextBox.Text		= mProgram.tvStation;
            mCheckedRecordTvStation			= (mProgram.syoboiTvStation != mProgram.tvStation);
            recordTvStationCheckBox.Checked = mCheckedRecordTvStation;

            syoboiTidUpdown.Value = mProgram.syoboiTid;

            //-------------------
            // "�^��\��"�^�u
            //-------------------
            Scheduler sched = ReserveManager.DefaultScheduler;
            List<string> stations;

            if (sched != null)
            {
                //----------------------------------------
                // �^��v���O�C���̃v���p�e�B�y�[�W�\��
                //----------------------------------------
                if ( sched.ProfilePageType != null )
                {
                    mProfilePage = (Scheduler.ProfilePage)Activator.CreateInstance( sched.ProfilePageType );
                    mProfilePage.Create( reservePanel );

                    mProfilePage.Load( mProgram.SchedulerProfile( sched.ProfileType ) );
                }
            }

            tvStationComboBox_SelectedIndexChanged( null,null );	// �����y�[�W��TV�ǃR���{�������

            adjustStartTimeUpdown.Value	= mProgram.adjustStartTime;
            adjustEndTimeUpdown.Value	= mProgram.adjustEndTime;

            //-------------------
            // "�G���R�[�h"�^�u
            //-------------------
            string selectedName = null;

            mCurrentEncoder	= mProgram.EncoderType;
            mCurrentProfile	= mProgram.EncoderProfile;

            mEncoderTable = new Hashtable();

            //--------------------------
            // �G���R�[�_�ꗗ��\��
            //--------------------------
            foreach (Type encoderType in EncodeManager.EncoderList)
            {
                Encoder encoder;

                encoder = (Encoder)Activator.CreateInstance(encoderType);

                if (mCurrentEncoder == encoderType)
                {
                    selectedName = encoder.Name;
                }

                encoderComboBox.Items.Add(encoder.Name);

                mEncoderTable.Add(encoder.Name, encoder);
            }

            if (EncodeManager.EncoderList.Count == 0)
            {
                encodeCheckBox.Enabled = false;
            }else{
                encoderComboBox.SelectedIndex = 0;
                if (selectedName != null)
                    encoderComboBox.Text = selectedName;	// ���݂̃G���R�[�_��I��
            }

            if (mProgram.EncoderProfile !=null)				// �ăG���R�[�h�`�F�b�N�{�b�N�X
            {
                encodeCheckBox.Checked = true;
            }

            //-------------------
            // "���̑�"�^�u
            //-------------------

            WithoutPowerCheckBox.Checked	= mProgram.WithoutPower;
            filterKeywordCheckBox.Checked	= mProgram.enableFilterKeyword;
            filterKeywordTextBox.Text		= mProgram.filterKeyword;

            // �R���g���[���֑̋���X�V
            specifyNumberRadio_CheckedChanged(this, null);
            filterKeywordCheckBox_CheckedChanged(this,null);
            recordTvStation_CheckedChanged(this,null);

            try
            {
                PriorityCombobox.SelectedIndex = 4 - ((mProgram.priority - 10) / 10);
            }
            catch(Exception ex)
            {
                PriorityCombobox.SelectedIndex = 2;
            }

            RefreshControl();

            return ShowDialog();
        }