private void OpenSelectedRequest() { if (SibiResultGrid.CurrentRow.Index > -1) { OpenRequest(SibiResultGrid.CurrentRowStringValue(SibiRequestCols.Guid)); } }
private void SendToGrid(DataTable results) { try { using (results) { gridFilling = true; SibiResultGrid.SuspendLayout(); SibiResultGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; SibiResultGrid.ColumnHeadersHeight = 38; GetStatusColors(results); SibiResultGrid.Populate(results, SibiTableColumns()); SetStatusCellColors(); SibiResultGrid.FastAutoSizeColumns(); SibiResultGrid.ClearSelection(); SibiResultGrid.ResumeLayout(); if (this.Visible) { gridFilling = false; } SetMunisStatuses(); } } catch (Exception ex) { ErrorHandling.ErrHandle(ex, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void InitForm() { try { this.Icon = Properties.Resources.sibi_icon; SibiResultGrid.DoubleBuffered(true); this.GridTheme = new GridTheme(Colors.HighlightBlue, Colors.SibiSelectColor, Colors.SibiSelectAltColor, SibiResultGrid.DefaultCellStyle.BackColor); StyleFunctions.SetGridStyle(SibiResultGrid, this.GridTheme); ToolStrip1.BackColor = Colors.SibiToolBarColor; windowList.InsertWindowList(ToolStrip1); SetDisplayYears(); ShowAll("All"); GetMunisStatuses(); this.Show(); this.Activate(); } catch (Exception ex) { ErrorHandling.ErrHandle(ex, System.Reflection.MethodBase.GetCurrentMethod()); this.Dispose(); } }