Exemplo n.º 1
0
        private void ActivateDockElement(DockableWindow dockElement, InterfaceActivationEventArgs e)
        {
            if (dockElement.DockSituation != DockSituation.None)
            {
                if (!dockElement.IsOpen)
                {
                    dockElement.Open();
                }

                dockElement.Activate();
                e.Handled = true;
            }
        }
Exemplo n.º 2
0
        private void ActivateDockElement(Type panelType, InterfaceActivationEventArgs e)
        {
            WidgetPanel dockElement = panels[panelType];

            if (dockElement == null)
            {
                throw new InvalidOperationException("Failed to find panel for: " + panelType.ToString());
            }

            if (dockElement.DockState != DockState.Hidden)
            {
                dockElement.Activate();
                e.Handled = true;
            }
        }
Exemplo n.º 3
0
 private void ChangeElementActivated(object sender, InterfaceActivationEventArgs e)
 {
     ActivateDockElement(typeof(ElementChangePanel), e);
 }
Exemplo n.º 4
0
 private void InsertElementActivated(object sender, InterfaceActivationEventArgs e)
 {
     ActivateDockElement(typeof(ElementInsertPanel), e);
 }
Exemplo n.º 5
0
 private void ChangeAttributesActivated(object sender, InterfaceActivationEventArgs e)
 {
     ActivateDockElement(dockAttributes, e);
 }
Exemplo n.º 6
0
 private void ChangeElementActivated(object sender, InterfaceActivationEventArgs e)
 {
     ActivateDockElement(dockElementChange, e);
 }
Exemplo n.º 7
0
 private void InsertElementActivated(object sender, InterfaceActivationEventArgs e)
 {
     ActivateDockElement(dockElementInsert, e);
 }