public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is Guid G) { return(EP.GetTreeMemberForGuid(G)); } else { throw new ArgumentException("EntityToGuidConverter ConvertBack recived non Guid type"); } }
//public void AddEventToJob(IJob J, string Character, string Comment, string Event_Type, string Job, int Progress_Effects) //{ // IEvent E = JEF.CreateJobEvent(Character, Comment, Event_Type, Job, Progress_Effects); // AddEventToJob(J, E); //} //public void AddEventToJob(IJob J, IEvent E) //{ // JL.ApplyEvent(J, E); //} #region Event Creation public void CreateJobEvent(IJob job, int Effects) { DSH.ShowNewEventPopup(EventCreated, job, EP.GetTreeMemberForGuid(job.OwnerEntity), Effects, DP.CurrentDay); }