public bool Equals(DataWaypoint?other) { if (!other.HasValue) { return(false); } return(Juncture.Equals(other.Value.Juncture) && Signal.Equals(other.Value.Signal)); }
public void RemoveJuncture(Juncture juncture) { try { Biosphere?.Junctures.Remove(juncture); Logger.AddLog($"Removed the Juncture: {juncture.Name}"); ErasChanged.Invoke(this, null); } catch { Logger.AddLog($"Unable to Remove the Juncture: {juncture.Name}"); } }
public void EditJuncture(Juncture source, Era caused, double date, string name, string description, string keys) { try { Year year = new Year(date); List <string> keywords = keys.ToUpper().Split(' ').ToList(); source.Edit(caused, year, name, description, keywords); Logger.AddLog($"Edited the Juncture: {name}"); } catch { Logger.AddLog($"Unable to Edit the Juncture: {source.Name}"); } }