/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged /// resources; <c>false</c> to release only unmanaged resources. /// </param> /// ----------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (IsDisposed) { return; } if (disposing) { if (m_fntForSpecialChar != null) { m_fntForSpecialChar.Dispose(); } if (m_toolTip != null) { m_toolTip.Dispose(); } } m_fntForSpecialChar = null; m_toolTip = null; base.Dispose(disposing); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="CharacterGrid"/> class. /// </summary> /// ----------------------------------------------------------------------------------- public CharacterGrid() { DoubleBuffered = true; AllowUserToAddRows = false; AllowUserToDeleteRows = false; AllowUserToResizeColumns = false; AllowUserToResizeRows = false; MultiSelect = false; ReadOnly = true; ColumnHeadersVisible = false; RowHeadersVisible = false; VirtualMode = true; ShowCellToolTips = false; BorderStyle = BorderStyle.None; DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; BackColor = SystemColors.Window; Name = "CharacterGrid"; m_fntForSpecialChar = new Font(SystemFonts.IconTitleFont.FontFamily, 8f); m_toolTip = new CharacterInfoToolTip(); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="T:EditorialChecksGrid"/> class. /// </summary> /// ------------------------------------------------------------------------------------ public EditorialChecksGrid() { m_charChkResultToolTip = new CharacterInfoToolTip(); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged /// resources; <c>false</c> to release only unmanaged resources. /// </param> /// ----------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (IsDisposed) return; if( disposing ) { if (m_fntForSpecialChar != null) m_fntForSpecialChar.Dispose(); if (m_toolTip != null) m_toolTip.Dispose(); } m_fntForSpecialChar = null; m_toolTip = null; base.Dispose( disposing ); }