Esempio n. 1
0
        private void InitializeDataGrid()
        {
            this.projectDataGridView1.AutoGenerateColumns = false;

            this.Idcolumn             = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ProjectNamecolumn    = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.TopicTableNamecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.AnswerTemplatecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.TopicProgresscolumn  = new iMacrosPostingDashboard.DataGridViewProgressColumn();
            this.Statuscolumn         = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ProgressReportcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();

            this.Languagecolumn            = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Pausebeforeconfirmcolumn  = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Pausebeforenextpostcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.PostQnAcolumn             = new System.Windows.Forms.DataGridViewTextBoxColumn();

            this.projectDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.Idcolumn,
                this.ProjectNamecolumn,
                this.TopicTableNamecolumn,
                this.AnswerTemplatecolumn,
                this.TopicProgresscolumn,
                this.ProgressReportcolumn,
                this.Statuscolumn,
                this.Languagecolumn,
                this.Pausebeforeconfirmcolumn,
                this.Pausebeforenextpostcolumn,
                this.PostQnAcolumn
            });



            //
            // Id
            //
            this.Idcolumn.FillWeight       = 19.79696F;
            this.Idcolumn.HeaderText       = "Id";
            this.Idcolumn.Name             = "Id";
            this.Idcolumn.DataPropertyName = "Id";
            this.Idcolumn.Resizable        = System.Windows.Forms.DataGridViewTriState.False;
            //
            // ProjectName
            //
            this.ProjectNamecolumn.FillWeight       = 140.1015F;
            this.ProjectNamecolumn.HeaderText       = "ProjectName";
            this.ProjectNamecolumn.Name             = "ProjectName";
            this.ProjectNamecolumn.DataPropertyName = "ProjectName";
            //
            // TopicTableName
            //
            this.TopicTableNamecolumn.HeaderText       = "TopicsTable";
            this.TopicTableNamecolumn.Name             = "TopicsTable";
            this.TopicTableNamecolumn.DataPropertyName = "TopicsTable";
            this.TopicTableNamecolumn.Visible          = false;
            //
            // AnswerTemplate
            //
            this.AnswerTemplatecolumn.HeaderText       = "AnswerTemplate";
            this.AnswerTemplatecolumn.Name             = "AnswerTemplate";
            this.AnswerTemplatecolumn.DataPropertyName = "AnswerTemplate";
            this.AnswerTemplatecolumn.Visible          = false;
            //
            // TopicProgress
            //
            this.TopicProgresscolumn.FillWeight       = 140.1015F;
            this.TopicProgresscolumn.HeaderText       = "Topic Progress";
            this.TopicProgresscolumn.Name             = "ProgressBar";
            this.TopicProgresscolumn.DataPropertyName = "ProgressBar";
            //
            // Status
            //
            this.Statuscolumn.HeaderText       = "Proj. Status";
            this.Statuscolumn.Name             = "ProjStatus";
            this.Statuscolumn.DataPropertyName = "ProjStatus";
            //
            // ProgressReport
            //
            this.ProgressReportcolumn.HeaderText       = "ProgressReport";
            this.ProgressReportcolumn.Name             = "ProgressReport";
            this.ProgressReportcolumn.DataPropertyName = "ProgressReport";
            this.ProgressReportcolumn.Width            = 200;

            this.Languagecolumn.HeaderText       = "Language";
            this.Languagecolumn.DataPropertyName = "Language";
            this.Languagecolumn.Visible          = true;

            this.Pausebeforeconfirmcolumn.DataPropertyName = "Pausebeforeconfirm";
            this.Pausebeforeconfirmcolumn.Visible          = false;

            this.Pausebeforenextpostcolumn.DataPropertyName = "Pausebeforenextpost";
            this.Pausebeforenextpostcolumn.Visible          = false;

            this.PostQnAcolumn.DataPropertyName = "PostQnA";
            this.PostQnAcolumn.Visible          = false;
        }
Esempio n. 2
0
        private void InitializeDataGrid()
        {
        
            this.projectDataGridView1.AutoGenerateColumns = false;

            this.Idcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ProjectNamecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.TopicTableNamecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.AnswerTemplatecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.TopicProgresscolumn = new iMacrosPostingDashboard.DataGridViewProgressColumn();
            this.Statuscolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ProgressReportcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();

            this.Languagecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Pausebeforeconfirmcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Pausebeforenextpostcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.PostQnAcolumn = new System.Windows.Forms.DataGridViewTextBoxColumn();

            this.projectDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Idcolumn,
            this.ProjectNamecolumn,
            this.TopicTableNamecolumn,
            this.AnswerTemplatecolumn,
            this.TopicProgresscolumn,
            this.ProgressReportcolumn,
            this.Statuscolumn,
            this.Languagecolumn,
            this.Pausebeforeconfirmcolumn,
            this.Pausebeforenextpostcolumn,
            this.PostQnAcolumn

            });
            
            
            
            
            
            // 
            // Id
            // 
            this.Idcolumn.FillWeight = 19.79696F;
            this.Idcolumn.HeaderText = "Id";
            this.Idcolumn.Name = "Id";
            this.Idcolumn.DataPropertyName = "Id";
            this.Idcolumn.Resizable = System.Windows.Forms.DataGridViewTriState.False;
            // 
            // ProjectName
            // 
            this.ProjectNamecolumn.FillWeight = 140.1015F;
            this.ProjectNamecolumn.HeaderText = "ProjectName";
            this.ProjectNamecolumn.Name = "ProjectName";
            this.ProjectNamecolumn.DataPropertyName = "ProjectName";
            // 
            // TopicTableName
            // 
            this.TopicTableNamecolumn.HeaderText = "TopicsTable";
            this.TopicTableNamecolumn.Name = "TopicsTable";
            this.TopicTableNamecolumn.DataPropertyName = "TopicsTable";
            this.TopicTableNamecolumn.Visible = false;
            // 
            // AnswerTemplate
            // 
            this.AnswerTemplatecolumn.HeaderText = "AnswerTemplate";
            this.AnswerTemplatecolumn.Name = "AnswerTemplate";
            this.AnswerTemplatecolumn.DataPropertyName = "AnswerTemplate";
            this.AnswerTemplatecolumn.Visible = false;
            // 
            // TopicProgress
            // 
            this.TopicProgresscolumn.FillWeight = 140.1015F;
            this.TopicProgresscolumn.HeaderText = "Topic Progress";
            this.TopicProgresscolumn.Name = "ProgressBar";
            this.TopicProgresscolumn.DataPropertyName = "ProgressBar";
            // 
            // Status
            // 
            this.Statuscolumn.HeaderText = "Proj. Status";
            this.Statuscolumn.Name = "ProjStatus";
            this.Statuscolumn.DataPropertyName = "ProjStatus";
            // 
            // ProgressReport
            // 
            this.ProgressReportcolumn.HeaderText = "ProgressReport";
            this.ProgressReportcolumn.Name = "ProgressReport";
            this.ProgressReportcolumn.DataPropertyName = "ProgressReport";
            this.ProgressReportcolumn.Width = 200;

            this.Languagecolumn.HeaderText = "Language";
            this.Languagecolumn.DataPropertyName = "Language";
            this.Languagecolumn.Visible = true;

            this.Pausebeforeconfirmcolumn.DataPropertyName = "Pausebeforeconfirm";
            this.Pausebeforeconfirmcolumn.Visible = false;

            this.Pausebeforenextpostcolumn.DataPropertyName = "Pausebeforenextpost";
            this.Pausebeforenextpostcolumn.Visible = false;

            this.PostQnAcolumn.DataPropertyName = "PostQnA";
            this.PostQnAcolumn.Visible = false;
        }