コード例 #1
0
        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);
        }
コード例 #2
0
 //---------------------------------------
 public bool CanFill(ITableDefinition tableDefinition)
 {
     return(typeof(CTableDefinitionSNMP).IsAssignableFrom(tableDefinition.GetType()) ||
            typeof(CTableDefinitionSnmpOfScalar).IsAssignableFrom(tableDefinition.GetType()));
 }
コード例 #3
0
 //---------------------------------------
 public bool CanFill(ITableDefinition tableDefinition)
 {
     return(typeof(CTableDefinitionFramework).IsAssignableFrom(tableDefinition.GetType()));
 }
コード例 #4
0
 //----------------------------------------------------------
 public bool CanFill(ITableDefinition tableDefinition)
 {
     return(typeof(CTableDefinitionDataHotel).IsAssignableFrom(tableDefinition.GetType()) ||
            typeof(CTableDefinitionEntitiesDataHotel).IsAssignableFrom(tableDefinition.GetType()));
 }
コード例 #5
0
 //----------------------------------------------------------
 public bool CanFill(ITableDefinition tableDefinition)
 {
     return(typeof(CTableDefinitionSharepoint).IsAssignableFrom(tableDefinition.GetType()));
 }