public static IControlOptionTableDefinition GetControleOptions(ITableDefinition table) { if (table == null) { return(null); } Type tp = null; if (m_dicTypeTableToTypeControle.TryGetValue(table.GetType(), out tp)) { if (tp != null) { IControlOptionTableDefinition ctrl = Activator.CreateInstance(tp, new object[0]) as IControlOptionTableDefinition; return(ctrl); } } return(null); }
//--------------------------------------- public bool CanFill(ITableDefinition tableDefinition) { return(typeof(CTableDefinitionSNMP).IsAssignableFrom(tableDefinition.GetType()) || typeof(CTableDefinitionSnmpOfScalar).IsAssignableFrom(tableDefinition.GetType())); }
//--------------------------------------- public bool CanFill(ITableDefinition tableDefinition) { return(typeof(CTableDefinitionFramework).IsAssignableFrom(tableDefinition.GetType())); }
//---------------------------------------------------------- public bool CanFill(ITableDefinition tableDefinition) { return(typeof(CTableDefinitionDataHotel).IsAssignableFrom(tableDefinition.GetType()) || typeof(CTableDefinitionEntitiesDataHotel).IsAssignableFrom(tableDefinition.GetType())); }
//---------------------------------------------------------- public bool CanFill(ITableDefinition tableDefinition) { return(typeof(CTableDefinitionSharepoint).IsAssignableFrom(tableDefinition.GetType())); }