private void Initialisation() { // Default Message and TextBox lblReviewerDiplay.Text = "Click on a row in the table to insert a comment."; txtBoxReview.Text = ""; // Enable DataGrid dGridAll.Enabled = true; dGridAwaiting.Enabled = true; dGridOpen.Enabled = true; dGridLocked.Enabled = true; dGridClosed.Enabled = true; // Hide label and panel txtBoxReview.Visible = false; lblRefresh.Visible = false; btnSubmitReview.Visible = false; btnGoToLink.Visible = false; // Set Label to blue color lblReviewerDiplay.ForeColor = Color.SteelBlue; // Set Default Cursor tabReviews.Cursor = Cursors.IBeam; // Load Data in DataGrid DataTable dtAll = reviewTaskExtractor.GetReviewsAllStatus(); DataTable dtAwaiting = reviewTaskExtractor.GetReviewsAwaiting(); DataTable dtOpen = reviewTaskExtractor.GetReviewsOpen(); DataTable dtLocked = reviewTaskExtractor.GetReviewsLocked(); DataTable dtClosed = reviewTaskExtractor.GetReviewsClosed(); dGridAll.DataSource = dtAll; dGridAwaiting.DataSource = dtAwaiting; dGridOpen.DataSource = dtOpen; dGridLocked.DataSource = dtLocked; dGridClosed.DataSource = dtClosed; // Text Wrap in DataGrid dGridAll.DefaultCellStyle.WrapMode = DataGridViewTriState.True; dGridAwaiting.DefaultCellStyle.WrapMode = DataGridViewTriState.True; dGridOpen.DefaultCellStyle.WrapMode = DataGridViewTriState.True; dGridLocked.DefaultCellStyle.WrapMode = DataGridViewTriState.True; dGridClosed.DefaultCellStyle.WrapMode = DataGridViewTriState.True; // Hide Data ReviewId in DataGrid DataGridViewColumn dGridAllColreviewId = dGridAll.Columns["reviewId"]; DataGridViewColumn dGridAwaitingColreviewId = dGridAwaiting.Columns["reviewId"]; DataGridViewColumn dGridOpenColreviewId = dGridOpen.Columns["reviewId"]; DataGridViewColumn dGridLockedColreviewId = dGridLocked.Columns["reviewId"]; DataGridViewColumn dGridClosedColreviewId = dGridClosed.Columns["reviewId"]; dGridAllColreviewId.Visible = false; dGridAwaitingColreviewId.Visible = false; dGridOpenColreviewId.Visible = false; dGridLockedColreviewId.Visible = false; dGridClosedColreviewId.Visible = false; // Hide Data Link in DataGrid DataGridViewColumn dGridAllColLink = dGridAll.Columns["Link"]; DataGridViewColumn dGridAwaitingColLink = dGridAwaiting.Columns["Link"]; DataGridViewColumn dGridOpenColLink = dGridOpen.Columns["Link"]; DataGridViewColumn dGridLockedColLink = dGridLocked.Columns["Link"]; DataGridViewColumn dGridClosedColLink = dGridClosed.Columns["Link"]; dGridAllColLink.Visible = false; dGridAwaitingColLink.Visible = false; dGridOpenColLink.Visible = false; dGridLockedColLink.Visible = false; dGridClosedColLink.Visible = false; // Set Status Column Width DataGridViewColumn dGridAllColStatus = dGridAll.Columns["Status"]; DataGridViewColumn dGridAwaitingColStatus = dGridAwaiting.Columns["Status"]; DataGridViewColumn dGridOpenColStatus = dGridOpen.Columns["Status"]; DataGridViewColumn dGridLockedColStatus = dGridLocked.Columns["Status"]; DataGridViewColumn dGridClosedColStatus = dGridClosed.Columns["Status"]; dGridAllColStatus.FillWeight = 12; dGridAwaitingColStatus.FillWeight = 12; dGridOpenColStatus.FillWeight = 12; dGridLockedColStatus.FillWeight = 12; dGridClosedColStatus.FillWeight = 12; // Set Specialism Column Width DataGridViewColumn dGridAllColSpecialism = dGridAll.Columns["Specialism"]; DataGridViewColumn dGridAwaitingColSpecialism = dGridAwaiting.Columns["Specialism"]; DataGridViewColumn dGridOpenColSpecialism = dGridOpen.Columns["Specialism"]; DataGridViewColumn dGridLockedColSpecialism = dGridLocked.Columns["Specialism"]; DataGridViewColumn dGridClosedColSpecialism = dGridClosed.Columns["Specialism"]; dGridAllColSpecialism.FillWeight = 35; dGridAwaitingColSpecialism.FillWeight = 35; dGridOpenColSpecialism.FillWeight = 35; dGridLockedColSpecialism.FillWeight = 35; dGridClosedColSpecialism.FillWeight = 35; }