public HightlightManager(LeasingChart chart) { m_chart = chart; //color table http://www.flounder.com/csharp_color_table.htm MouseOverBrush = Brushes.SkyBlue; MouseOverBrush.Freeze(); DefaultBrush = Brushes.Transparent; DefaultBrush.Freeze(); SelectedBrush = Brushes.DodgerBlue; DefaultBrush.Freeze(); }
void IDisposable.Dispose() { VeryLargeFont.Dispose(); VeryLargeFont.Dispose(); LargeFont.Dispose(); MediumFont.Dispose(); SmallFont.Dispose(); VerySmallFont.Dispose(); FillBrush.Dispose(); AccentBrush.Dispose(); DefaultBrush.Dispose(); }
/// <summary> /// GetHashCode() /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { int hashCode = (Folder != null ? Folder.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DateTimeFormat.GetHashCode(); hashCode = (hashCode * 397) ^ IsWritingEachTabEnabled.GetHashCode(); hashCode = (hashCode * 397) ^ IsWritingToFileEnabled.GetHashCode(); hashCode = (hashCode * 397) ^ InfoBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ ErrorBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ CriticalErrorBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ SuccessBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ CodeFlowBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ DefaultBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ DebugBrush.ToString().GetHashCode(); hashCode = (hashCode * 397) ^ CustomBrush.ToString().GetHashCode(); return(hashCode); } }