Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
        //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);
        }