private void miFillFromSchema_Click()
        {
            var stripHost = new ToolStripControlHost(popupFillStructure);

            _fillDropDown         = new ToolStripDropDown();
            stripHost.Margin      = new Padding(0);
            _fillDropDown.Padding = new Padding(0);
            _fillDropDown.Items.Add(stripHost);
            var showPoint = toolStrip4.PointToScreen(miFillFromSchema.Bounds.Location);

            showPoint.Y += miFillFromSchema.Bounds.Height;

            lbWarningFillStructure.Visible = !_controller.IsStructureEmpty(treeStructure.MetadataStructure);

            _fillDropDown.Show(showPoint);
        }
Exemple #2
0
        private void MenuItemMetadataStructureFillFromSchema_OnClick()
        {
            FillStructureFromSchemaPopup.IsOpen = true;

            TextBlockWarning.Visibility = !_controller.IsStructureEmpty(MetadataStructureTree.MetadataStructure) ? Visibility.Visible:Visibility.Collapsed;
        }