public void Dispose() { if (!_disposed) { if (CornerNW != null) { CornerNW.Dispose(); CornerNW = null; } if (CornerNE != null) { CornerNE.Dispose(); CornerNE = null; } if (CornerSE != null) { CornerSE.Dispose(); CornerSE = null; } if (CornerSW != null) { CornerSW.Dispose(); CornerSW = null; } if (BorderN != null) { BorderN.Dispose(); BorderN = null; } if (BorderE != null) { BorderE.Dispose(); BorderE = null; } if (BorderS != null) { BorderS.Dispose(); BorderS = null; } if (BorderW != null) { BorderW.Dispose(); BorderW = null; } _disposed = true; } }
public void Dispose() { if (!_disposed) { if (CornerNW != null) { CornerNW.Dispose(); CornerNW = null; } if (CornerNE != null) { CornerNE.Dispose(); CornerNE = null; } if (CornerSE != null) { CornerSE.Dispose(); CornerSE = null; } if (CornerSW != null) { CornerSW.Dispose(); CornerSW = null; } if (BorderN != null) { BorderN.Dispose(); BorderN = null; } if (BorderE != null) { BorderE.Dispose(); BorderE = null; } if (BorderS != null) { BorderS.Dispose(); BorderS = null; } if (BorderW != null) { BorderW.Dispose(); BorderW = null; } if (Minimize != null) { Minimize.Dispose(); Minimize = null; } if (Maximize != null) { Maximize.Dispose(); Maximize = null; } if (Restore != null) { Restore.Dispose(); Restore = null; } if (Close != null) { Close.Dispose(); Close = null; } _disposed = true; } }