public void SaveToDb() { if (_dbSaved != null && ParseText.Equals(_dbSaved)) { MessageBox.Show("Parse text appears to be the same"); return; } int fId1 = Shared.Locator().Fighter1.SelectedFighter.FighterId; int fId2 = Shared.Locator().Fighter2.SelectedFighter.FighterId; int pId1 = Shared.Locator().FightPlanF1.SelectedFightPlan.PlanId; int pId2 = Shared.Locator().FightPlanF2.SelectedFightPlan.PlanId; FightOptions options = Shared.Locator().Options.Options; _parseResult.SaveToDatabase(options, fId1, fId2, pId1, pId2, this.ParseText); _dbSaved = ParseText; }
public override bool Equals(object obj) { return(_text.Equals(obj)); }