Beispiel #1
0
        public StoreControl(AmoebaManager amoebaManager, BufferManager bufferManager)
        {
            _amoebaManager = amoebaManager;
            _bufferManager = bufferManager;

            _seedStateCache = new SeedStateCache(_amoebaManager);

            InitializeComponent();

            var storeDownloadControl = new StoreDownloadControl(this, _amoebaManager, _bufferManager);

            storeDownloadControl.Height   = Double.NaN;
            storeDownloadControl.Width    = Double.NaN;
            _storeDownloadTabItem.Content = storeDownloadControl;

            var storeUploadControl = new StoreUploadControl(this, _amoebaManager, _bufferManager);

            storeUploadControl.Height   = Double.NaN;
            storeUploadControl.Width    = Double.NaN;
            _storeUploadTabItem.Content = storeUploadControl;

            var libraryControl = new LibraryControl(this, _amoebaManager, _bufferManager);

            libraryControl.Height   = Double.NaN;
            libraryControl.Width    = Double.NaN;
            _libraryTabItem.Content = libraryControl;
        }
        public StoreControl(AmoebaManager amoebaManager, BufferManager bufferManager)
        {
            _amoebaManager = amoebaManager;
            _bufferManager = bufferManager;

            _seedStateCache = new SeedStateCache(_amoebaManager);

            InitializeComponent();

            var storeDownloadControl = new StoreDownloadControl(this, _amoebaManager, _bufferManager);
            storeDownloadControl.Height = Double.NaN;
            storeDownloadControl.Width = Double.NaN;
            _storeDownloadTabItem.Content = storeDownloadControl;

            var storeUploadControl = new StoreUploadControl(this, _amoebaManager, _bufferManager);
            storeUploadControl.Height = Double.NaN;
            storeUploadControl.Width = Double.NaN;
            _storeUploadTabItem.Content = storeUploadControl;

            var libraryControl = new LibraryControl(this, _amoebaManager, _bufferManager);
            libraryControl.Height = Double.NaN;
            libraryControl.Width = Double.NaN;
            _libraryTabItem.Content = libraryControl;
        }