Exemple #1
0
        public void ReloadSliceSettings(object state)
        {
            lastAdvanceControlsIndex = advancedControls2.SelectedTabIndex;

            WidescreenPanel.PreChangePanels.CallEvents(null, null);

            // remove the advance control and replace it with new ones built for the selected printer
            int advancedControlsIndex = GetChildIndex(advancedControls2);

            RemoveChild(advancedControlsIndex);
            advancedControls2.Close();

            if (advancedControlsLinkButton != null)
            {
                advancedControlsLinkButton.Click            -= new EventHandler(AdvancedControlsButton_Click);
                advancedControlsLinkButton.MouseEnterBounds -= new EventHandler(onMouseEnterBoundsPrintQueueLink);
                advancedControlsLinkButton.MouseLeaveBounds -= new EventHandler(onMouseLeaveBoundsPrintQueueLink);
            }

            advancedControls2 = CreateNewAdvancedControls(AdvancedControlsButton_Click,
                                                          onMouseEnterBoundsPrintQueueLink,
                                                          onMouseLeaveBoundsPrintQueueLink);
            AddChild(advancedControls2, advancedControlsIndex);

            // This is a hack to make the panel remain on the screen.  It would be great to debug it and understand
            // why it does not work without this code in here.
            //currentParent.Parent.Width = currentParent.Parent.Width + 1;
        }
Exemple #2
0
        public void ReloadSliceSettings()
        {
            WidescreenPanel.PreChangePanels.CallEvents(null, null);

            // remove the advance control and replace it with new ones built for the selected printer
            int advancedControlsIndex = GetChildIndex(advancedTab);

            RemoveChild(advancedControlsIndex);
            advancedTab.Close();

            advancedTab = CreateAdvancedControlsTab();
            AddChild(advancedTab, advancedControlsIndex);
        }
        public void ReloadSliceSettings()
        {
            WidescreenPanel.PreChangePanels.CallEvents(null, null);
            if (advancedTab.HasBeenClosed)
            {
                return;
            }

            PopOutManager.SaveIfClosed = false;
            // remove the advance control and replace it with new ones built for the selected printer
            int advancedControlsIndex = GetChildIndex(advancedTab);

            RemoveChild(advancedControlsIndex);
            advancedTab.Close();

            advancedTab = CreateAdvancedControlsTab();
            AddChild(advancedTab, advancedControlsIndex);
            PopOutManager.SaveIfClosed = true;
        }