public static ExtentionPropertiesModel Create(Component component)
        {
            var model = new ExtentionPropertiesModel()
            {
                Owner = ExtentionPropertyOwner.Component
            };

            model.Rows = new List <Row>();
            foreach (var property in component.Properties)
            {
                var row = new Row()
                {
                    Id       = property.Id,
                    DataType = property.DataType,
                    Name     = property.Name,
                    Value    = property.Value
                };
                model.Rows.Add(row);
            }
            return(model);
        }
        public static ExtentionPropertiesModel Create(Event eventObj)
        {
            var model = new ExtentionPropertiesModel()
            {
                Owner = ExtentionPropertyOwner.Event
            };

            model.Rows = new List <Row>();
            foreach (var eventProperty in eventObj.Properties)
            {
                var row = new Row()
                {
                    Id       = eventProperty.Id,
                    DataType = eventProperty.DataType,
                    Name     = eventProperty.Name,
                    Value    = eventProperty.Value
                };
                model.Rows.Add(row);
            }
            return(model);
        }
        public static ExtentionPropertiesModel Create(Log log)
        {
            var model = new ExtentionPropertiesModel()
            {
                Owner       = ExtentionPropertyOwner.Log,
                ShowHeaders = false
            };

            model.Rows = new List <Row>();
            foreach (var property in log.Parameters)
            {
                var row = new Row()
                {
                    Id       = property.Id,
                    DataType = property.DataType,
                    Name     = property.Name,
                    Value    = property.Value
                };
                model.Rows.Add(row);
            }
            return(model);
        }