public void DrawSummaryForHighlightedRow(CheckableDataGridViewRow row, SummaryTextComponent summaryComponent, Action runOnUrlClick) { Program.Invoke(this, delegate { LicenseDataGridViewRow lRow = row as LicenseDataGridViewRow; if(lRow == null) return; summaryPanel.Title = lRow.XenObject.Name; summaryPanel.HelperUrl = Messages.LICENSE_MANAGER_BUY_LICENSE_LINK_TEXT; summaryPanel.HelperUrlVisible = true; summaryPanel.WarningVisible = lRow.WarningRequired; summaryPanel.WarningText = lRow.WarningText; summaryPanel.SummaryText = summaryComponent; summaryPanel.WarningIcon = lRow.RowStatus == LicenseDataGridViewRow.Status.Warning ? SystemIcons.Error.ToBitmap() : Resources._000_WarningAlert_h32bit_32; summaryPanel.InformationVisible = false; summaryPanel.RunOnUrlClick = runOnUrlClick; }); }
public void DrawSummaryForHighlightedRow(CheckableDataGridViewRow row, SummaryTextComponent summaryComponent, Action runOnUrlClick) { Program.Invoke(this, delegate { LicenseDataGridViewRow lRow = row as LicenseDataGridViewRow; if(lRow == null || lRow.XenObject == null) return; summaryPanel.Title = lRow.XenObject.Name; summaryPanel.HelperUrl = Messages.LICENSE_MANAGER_BUY_LICENSE_LINK_TEXT; summaryPanel.HelperUrlVisible = lRow.HelperUrlRequired && !Controller.ReadOnlyView; summaryPanel.WarningVisible = lRow.WarningRequired; summaryPanel.WarningText = lRow.WarningText; summaryPanel.SummaryText = summaryComponent; switch (lRow.RowStatus) { case LicenseDataGridViewRow.Status.Information: summaryPanel.WarningIcon = Resources._000_Alert2_h32bit_16; break; case LicenseDataGridViewRow.Status.Warning: summaryPanel.WarningIcon = Resources._000_error_h32bit_16; break; default: summaryPanel.WarningIcon = Resources._000_Tick_h32bit_16; break; } summaryPanel.InformationVisible = false; summaryPanel.RunOnUrlClick = runOnUrlClick; }); }
protected SummaryTextDecorator(SummaryTextComponent component) { Component = component; }
public LicenseManagerSummaryLicenseExpiresDecorator(SummaryTextComponent component, CheckableDataGridViewRow row) : base(component, row) { }
public LicenseManagerSummaryDecorator(SummaryTextComponent component, CheckableDataGridViewRow row) : base(component) { Row = row as LicenseDataGridViewRow; Debug.Assert(Row != null && row != null, "Failure to cast CheckableDataGridViewRow to LicenseDataGridViewRow"); }
protected SummaryTextDecorator(SummaryTextComponent component) { Component = component; }