public static IFileModel GetInstance(ExcelName type) { Type t = TableTypeHelper.GetInstanceType(type); return((IFileModel)Activator.CreateInstance(t)); }
public static IViewModel GetInstance(Table_Type type) { Type t = TableTypeHelper.GetInstanceType(type); return((IViewModel)Activator.CreateInstance(t)); }