Beispiel #1
0
        public bool Equals(DataWaypoint?other)
        {
            if (!other.HasValue)
            {
                return(false);
            }

            return(Juncture.Equals(other.Value.Juncture) && Signal.Equals(other.Value.Signal));
        }
Beispiel #2
0
 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}");
     }
 }
Beispiel #3
0
        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}");
            }
        }