void ReleaseDesignerOutlets() { if (FirstCell != null) { FirstCell.Dispose(); FirstCell = null; } if (SecondCell != null) { SecondCell.Dispose(); SecondCell = null; } if (ThirdCell != null) { ThirdCell.Dispose(); ThirdCell = null; } if (PlayIcon != null) { PlayIcon.Dispose(); PlayIcon = null; } }
public override void AwakeFromNib() { base.AwakeFromNib(); FirstCell.MockSuggestion(); SecondCell.MockSuggestion(); ThirdCell.MockSuggestion(); }
public override int GetHashCode() { unchecked { var code = DeckNumber.GetHashCode() + FirstCell.GetHashCode() + Direction.GetHashCode() + base.GetHashCode(); return(code); } }
public bool Equals(IShip other) { if (ReferenceEquals(other, null)) { return(ReferenceEquals(this, null)); } return(DeckNumber.Equals(other.DeckNumber) && FirstCell.Equals(other.FirstCell) && Direction.Equals(other.Direction)); }
public TCell GetFirstCell <TCell> () where TCell : Cell => FirstCell as TCell ?? FirstCell?.GetNextCell <TCell> ();