Exemple #1
0
        public void SetCollection(IActivateItems activator, IPersistableObjectCollection collection)
        {
            _bLoading = true;
            SetItemActivator(activator);

            _collection = (GoodBadCataloguePieChartObjectCollection)collection;

            if (firstTime)
            {
                SetupFlags();
            }

            btnAllCatalogues.Checked   = !_collection.IsSingleCatalogueMode;
            btnSingleCatalogue.Checked = _collection.IsSingleCatalogueMode;
            btnShowLabels.Checked      = _collection.ShowLabels;

            CommonFunctionality.Add(btnAllCatalogues);
            CommonFunctionality.Add(toolStripLabel1);
            CommonFunctionality.Add(btnAllCatalogues);
            CommonFunctionality.Add(btnSingleCatalogue);
            CommonFunctionality.Add(btnShowLabels);
            CommonFunctionality.Add(btnRefresh);

            foreach (var mi in _flagOptions)
            {
                CommonFunctionality.AddToMenu(mi);
            }

            GenerateChart();
            _bLoading = false;
        }
Exemple #2
0
        public void SetCollection(IActivateItems activator, IPersistableObjectCollection collection)
        {
            _bLoading   = true;
            _activator  = activator;
            _collection = (GoodBadCataloguePieChartObjectCollection)collection;

            btnAllCatalogues.Image   = _activator.CoreIconProvider.GetImage(RDMPConcept.CatalogueItemsNode);
            btnSingleCatalogue.Image = _activator.CoreIconProvider.GetImage(RDMPConcept.Catalogue, OverlayKind.Link);

            btnAllCatalogues.Checked   = !_collection.IsSingleCatalogueMode;
            btnSingleCatalogue.Checked = _collection.IsSingleCatalogueMode;
            btnShowLabels.Checked      = _collection.ShowLabels;

            activator.Theme.ApplyTo(toolStrip1);

            GenerateChart();
            _bLoading = false;
        }