protected BulldozeController()
        {
            InitializeComponent();
            previewBitmap = ResourceUtil.loadSystemBitmap("bulldozer.bmp");
            preview.Image = previewBitmap;
            LandBuilderContribution builder = (LandBuilderContribution)PluginManager.theInstance.getContribution("{AE43E6DB-39F0-49FE-BE18-EE3FAC248FDE}");

            currentController = builder.createBuilder(new ControllerSiteImpl(this));
        }
Exemple #2
0
        public override void updatePreview()
        {
            LandBuilderContribution builder = (LandBuilderContribution)indexSelector.currentItem;

            using (PreviewDrawer drawer = builder.createPreview(preview.Size))
            {
                if (previewBitmap != null)
                {
                    previewBitmap.Dispose();
                }
                preview.Image = previewBitmap = drawer.createBitmap();
            }

            currentController = builder.createBuilder(new ControllerSiteImpl(this));
        }