Beispiel #1
0
        public static IncidentHelperVariables MakeIncidentVariables(StoreIncidentVariables def)
        {
            IncidentHelperVariables helper = (IncidentHelperVariables)Activator.CreateInstance(def.incidentHelper);

            helper.storeIncident = def;
            return(helper);
        }
Beispiel #2
0
        private static bool TryMakeIncident(StoreIncidentVariables incident, Viewer viewer, string message, out IncidentHelperVariables incidentHelper)
        {
            incidentHelper = StoreIncidentMaker.MakeIncidentVariables(incident);

            if (incidentHelper == null)
            {
                return(false);
            }

            incidentHelper.Viewer  = viewer;
            incidentHelper.message = message;

            return(true);
        }