ElectronicObserver.Window.FormCompass.TableEnemyCandidateMember_CellPaint C# (CSharp) Method

TableEnemyCandidateMember_CellPaint() private method

private TableEnemyCandidateMember_CellPaint ( object sender, TableLayoutCellPaintEventArgs e ) : void
sender object
e TableLayoutCellPaintEventArgs
return void
		private void TableEnemyCandidateMember_CellPaint(object sender, TableLayoutCellPaintEventArgs e)
		{

			if (_enemyFleetCandidate == null || _enemyFleetCandidateIndex + e.Column >= _enemyFleetCandidate.Count)
				return;


			if (e.Column != (Utility.Configuration.Config.FormCompass.CandidateDisplayCount - 1)) {
				e.Graphics.DrawLine(Utility.Configuration.Config.UI.SubBackColorPen, e.CellBounds.Right - 1, e.CellBounds.Top, e.CellBounds.Right - 1, e.CellBounds.Bottom - 1);
				if (e.Row == 5) e.Graphics.DrawLine(Utility.Configuration.Config.UI.SubBackColorPen, e.CellBounds.X, e.CellBounds.Bottom - 1, e.CellBounds.Right - 1, e.CellBounds.Bottom - 1);
			} else if (e.Row == 5) {
				e.Graphics.DrawLine(Utility.Configuration.Config.UI.SubBackColorPen, e.CellBounds.X, e.CellBounds.Bottom - 1, e.CellBounds.Right - 2, e.CellBounds.Bottom - 1);
			}
		}