コード例 #1
0
        protected override Arguments CreateArgumentPackageCore(IDataSourceManager manager)
        {
            Arguments argPack = new Arguments();

            StructuredArchiveDataSource dataSource = manager.GetSource(ArgumentPackageDataSourceFactory.DataSourceId) as StructuredArchiveDataSource;

            if (dataSource != null)
            {
                argPack.Droid = dataSource.GenerateDroid();
                dataSource.AddItem(argPack.Droid, argPack);
            }

            return(argPack);
        }
 /// <summary>
 /// Gets the data source with corresponding source Id.
 /// </summary>
 public static StructuredArchiveDataSource Get(IDataSourceManager dataSourceManager)
 {
     return(dataSourceManager.GetSource(DataSourceId) as StructuredArchiveDataSource);
 }
コード例 #3
0
 public static StructuredArchiveDataSource Get(IDataSourceManager DSM)
 {
     return DSM.GetSource(DataSourceId) as StructuredArchiveDataSource;
 }