コード例 #1
0
 public TTSDataGridViewProgressColumn()
 {
     CellTemplate = new TTSDataGridViewProgressCell();
 }
コード例 #2
0
        /*============PrivateFunction=======*/

        private void SetControl()
        {
            udThreadCount.Value = Configuration.Instance.TTSThreadCount;
            udTTSSpeed.Value    = Configuration.Instance.TTSSpeed;

            dgvTTS.AutoGenerateColumns = false;

            DataGridViewCell            novelTitleCell      = new DataGridViewTextBoxCell();
            DataGridViewCell            chapterTitleCell    = new DataGridViewTextBoxCell();
            DataGridViewCell            chapterIndexCell    = new DataGridViewTextBoxCell();
            DataGridViewCell            requestPriorityCell = new DataGridViewTextBoxCell();
            DataGridViewCell            requestRateCell     = new DataGridViewTextBoxCell();
            TTSDataGridViewProgressCell progressCell        = new TTSDataGridViewProgressCell();

            DataGridViewTextBoxColumn novelTitleColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = novelTitleCell,
                Name             = "NovelTitle",
                HeaderText       = "Novel Title",
                DataPropertyName = "NovelTitle",
                Width            = 150,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn chapterTitleColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = chapterTitleCell,
                Name             = "ChapterTitle",
                HeaderText       = "Chapter Title",
                DataPropertyName = "ChapterTitle",
                Width            = 150,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn chapterIndexColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = chapterIndexCell,
                Name             = "ChapterIndex",
                HeaderText       = "Chapter Index",
                DataPropertyName = "ChapterIndex",
                Width            = 125,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn requestPriorityColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = requestPriorityCell,
                Name             = "Priority",
                HeaderText       = "Priority",
                DataPropertyName = "Priority",
                Width            = 125,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn requestRateColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = requestRateCell,
                Name             = "Rate",
                HeaderText       = "Speak Rate",
                DataPropertyName = "Rate",
                Width            = 100,
                ReadOnly         = true
            };

            TTSDataGridViewProgressColumn progressColumn = new TTSDataGridViewProgressColumn()
            {
                Name             = "Progress",
                HeaderText       = "Progress",
                DataPropertyName = "Progress",
                AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill
            };

            dgvTTS.Columns.Add(novelTitleColumn);
            dgvTTS.Columns.Add(chapterTitleColumn);
            dgvTTS.Columns.Add(chapterIndexColumn);
            dgvTTS.Columns.Add(requestPriorityColumn);
            dgvTTS.Columns.Add(requestRateColumn);
            dgvTTS.Columns.Add(progressColumn);
        }
コード例 #3
0
 public TTSDataGridViewProgressColumn()
 {
     CellTemplate = new TTSDataGridViewProgressCell();
 }
コード例 #4
0
        /*============PrivateFunction=======*/

        private void BindGrid()
        {
            udThreadCount.Value = Configuration.Instance.TTSThreadCount;

            dgvTTS.AutoGenerateColumns = false;

            DataGridViewCell            novelTitleCell      = new DataGridViewTextBoxCell();
            DataGridViewCell            chapterTitleCell    = new DataGridViewTextBoxCell();
            DataGridViewCell            chapterIndexCell    = new DataGridViewTextBoxCell();
            DataGridViewCell            requestPriorityCell = new DataGridViewTextBoxCell();
            TTSDataGridViewProgressCell progressCell        = new TTSDataGridViewProgressCell();

            DataGridViewTextBoxColumn novelTitleColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = novelTitleCell,
                Name             = "NovelTitle",
                HeaderText       = "Novel Title",
                DataPropertyName = "NovelTitle",
                Width            = 200,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn chapterTitleColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = chapterTitleCell,
                Name             = "ChapterTitle",
                HeaderText       = "Chapter Title",
                DataPropertyName = "ChapterTitle",
                Width            = 200,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn chapterIndexColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = chapterIndexCell,
                Name             = "ChapterIndex",
                HeaderText       = "Chapter Index",
                DataPropertyName = "ChapterIndex",
                Width            = 100,
                ReadOnly         = true
            };

            DataGridViewTextBoxColumn requestPriorityColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate     = requestPriorityCell,
                Name             = "Priority",
                HeaderText       = "Priority",
                DataPropertyName = "Priority",
                Width            = 100,
                ReadOnly         = true
            };

            TTSDataGridViewProgressColumn progressColumn = new TTSDataGridViewProgressColumn()
            {
                Name             = "Progress",
                HeaderText       = "Progress",
                DataPropertyName = "Progress",
                Width            = 197
            };

            dgvTTS.Columns.Add(novelTitleColumn);
            dgvTTS.Columns.Add(chapterTitleColumn);
            dgvTTS.Columns.Add(chapterIndexColumn);
            dgvTTS.Columns.Add(requestPriorityColumn);
            dgvTTS.Columns.Add(progressColumn);
        }
コード例 #5
0
        /*============PrivateFunction=======*/

        private void BindGrid()
        {
            udThreadCount.Value = Configuration.Instance.TTSThreadCount;

            dgvTTS.AutoGenerateColumns = false;

            DataGridViewCell novelTitleCell = new DataGridViewTextBoxCell();
            DataGridViewCell chapterTitleCell = new DataGridViewTextBoxCell();
            DataGridViewCell chapterIndexCell = new DataGridViewTextBoxCell();
            DataGridViewCell requestPriorityCell = new DataGridViewTextBoxCell();
            TTSDataGridViewProgressCell progressCell = new TTSDataGridViewProgressCell();

            DataGridViewTextBoxColumn novelTitleColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate = novelTitleCell,
                Name = "NovelTitle",
                HeaderText = "Novel Title",
                DataPropertyName = "NovelTitle",
                Width = 200,
                ReadOnly = true
            };

            DataGridViewTextBoxColumn chapterTitleColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate = chapterTitleCell,
                Name = "ChapterTitle",
                HeaderText = "Chapter Title",
                DataPropertyName = "ChapterTitle",
                Width = 200,
                ReadOnly = true
            };

            DataGridViewTextBoxColumn chapterIndexColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate = chapterIndexCell,
                Name = "ChapterIndex",
                HeaderText = "Chapter Index",
                DataPropertyName = "ChapterIndex",
                Width = 100,
                ReadOnly = true
            };

            DataGridViewTextBoxColumn requestPriorityColumn = new DataGridViewTextBoxColumn()
            {
                CellTemplate = requestPriorityCell,
                Name = "Priority",
                HeaderText = "Priority",
                DataPropertyName = "Priority",
                Width = 100,
                ReadOnly = true
            };
            
            TTSDataGridViewProgressColumn progressColumn = new TTSDataGridViewProgressColumn()
            {
                Name = "Progress",
                HeaderText = "Progress",
                DataPropertyName = "Progress",
                Width = 197
            };
            
            dgvTTS.Columns.Add(novelTitleColumn);
            dgvTTS.Columns.Add(chapterTitleColumn);
            dgvTTS.Columns.Add(chapterIndexColumn);
            dgvTTS.Columns.Add(requestPriorityColumn);
            dgvTTS.Columns.Add(progressColumn);

            

        }