public int CompareTo(ICorePluginInfo cp) { return cp == null || cp.Disposed ? -1 : _Priority.CompareTo(cp.Priority); }
public bool Equals(ICorePluginInfo cp) { return !ReferenceEquals(cp, null) && (ReferenceEquals(cp, this) || cp.TypeOf == _TypeOf); }
public int CompareTo(ICorePluginInfo cp) { return(cp == null || cp.Disposed ? -1 : _Priority.CompareTo(cp.Priority)); }
private void CompileBufferEntry(int x, int y, int w, int h, int i, ICorePluginInfo cp) { if (w * h <= 0 || cp == null) { return; } var xx = x; var yy = y + (i * 67); AddRectangle(xx, yy, w, 65, Color.Black, cp.Active ? Color.PaleGoldenrod : Color.Silver, 2); xx += 5; yy += 5; var label = cp.Name.WrapUOHtmlColor(HtmlColor, false); AddHtml(xx + 5, yy, w - 80, 40, label, false, false); xx = x + (w - 60); label = cp.Version.ToString().WrapUOHtmlColor(HtmlColor, false); AddHtml(xx, yy, 55, 40, label, false, false); xx = x + 5; yy += 25; Color color, border, fill; if (cp.Disposed) { label = "DISPOSED".WrapUOHtmlBold().WrapUOHtmlCenter(); color = border = Color.OrangeRed; fill = Color.Black; AddRectangle(xx, yy, w - 10, 30, fill, border, 1); AddHtml(xx, yy, w, 30, label.WrapUOHtmlColor(color, false), false, false); return; } var bw = (w - 10) / 4; label = "CONFIG".WrapUOHtmlBold().WrapUOHtmlCenter(); color = border = Color.PaleGoldenrod; fill = Color.Black; AddHtmlButton(xx, yy, bw, 30, o => HandleConfig(cp), label, color, fill, border, 1); xx += bw; label = "DEBUG".WrapUOHtmlBold().WrapUOHtmlCenter(); color = border = cp.Debug ? Color.LawnGreen : Color.OrangeRed; AddHtmlButton(xx, yy, bw, 30, o => HandleDebug(cp), label, color, fill, border, 1); xx += bw; label = "QUIET".WrapUOHtmlBold().WrapUOHtmlCenter(); color = border = cp.Quiet ? Color.LawnGreen : Color.OrangeRed; AddHtmlButton(xx, yy, bw, 30, o => HandleQuiet(cp), label, color, fill, border, 1); xx += bw; label = "ACTIVE".WrapUOHtmlBold().WrapUOHtmlCenter(); color = border = cp.Active ? Color.LawnGreen : Color.OrangeRed; AddHtmlButton(xx, yy, bw, 30, o => HandleActive(cp), label, color, fill, border, 1); }
public bool Equals(ICorePluginInfo cp) { return(!ReferenceEquals(cp, null) && (ReferenceEquals(cp, this) || cp.TypeOf == _TypeOf)); }