/// <summary> /// Determines if this <see cref="Watch"/> is equals to an instance of <see cref="Cheat"/> /// </summary> /// <param name="obj">The <see cref="Cheat"/> to compare</param> /// <returns>True if both object are equals; otherwise, false</returns> public bool Equals(Cheat other) { return(!object.ReferenceEquals(other, null) && this._domain == other.Domain && this._address == other.Address && this._size == other.Size); }
public Cheat(Cheat cheat) { if (cheat.IsSeparator) { _enabled = false; _watch = SeparatorWatch.Instance; _compare = null; } else { _enabled = cheat.Enabled; _watch = Watch.GenerateWatch( cheat.Domain, cheat.Address ?? 0, cheat.Size, cheat.Type, cheat.BigEndian ?? false, cheat.Name ); _compare = cheat.Compare; _val = cheat.Value ?? 0; Pulse(); } }
/// <summary> /// Determines if this <see cref="Watch"/> is equals to an instance of <see cref="Cheat"/> /// </summary> /// <param name="other">The <see cref="Cheat"/> to compare</param> /// <returns>True if both object are equals; otherwise, false</returns> public bool Equals(Cheat other) { return(!ReferenceEquals(other, null) && _domain == other.Domain && Address == other.Address && Size == other.Size); }
public void ClearForm() { _cheat = Cheat.Separator; _editmode = false; SetFormToDefault(); }
public void SetCheat(Cheat cheat) { _editmode = true; _cheat = cheat; if (cheat.IsSeparator) { SetFormToDefault(); } else { SetFormToCheat(); } }
public CheatListEventArgs(Cheat c) { Cheat = c; }