Flag cierre de ventanas

Elena/develop
Gerardo 2022-05-29 18:38:25 +02:00
parent fe3e58ed2c
commit b9af14a188
3 changed files with 13 additions and 9 deletions

View File

@ -43,7 +43,10 @@ namespace OliviaAddInPro
pane.Activate(); pane.Activate();
} }
protected override void OnHidden()
{
OliviaGlob.SetFlagTipEjec(TiposEjecucion.Ninguno);
}
internal static void Hide_() internal static void Hide_()
{ {
DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID);
@ -64,7 +67,7 @@ namespace OliviaAddInPro
if (isVisible == false && !firstTimeShow) if (isVisible == false && !firstTimeShow)
{ {
//avisa de cerrar la ventana //avisa de cerrar la ventana
OliviaGlob.SetFlagTipEjec(TiposEjecucion.Ninguno); //OliviaGlob.SetFlagTipEjec(TiposEjecucion.Ninguno);
} }
if (firstTimeShow) if (firstTimeShow)
firstTimeShow = false; firstTimeShow = false;

View File

@ -63,15 +63,13 @@ namespace OliviaAddInPro
//The parameter passed to this method will be true if the Dockpane is being opened and it is false when you close the dockpane //The parameter passed to this method will be true if the Dockpane is being opened and it is false when you close the dockpane
protected override void OnShow(bool isVisible) protected override void OnShow(bool isVisible)
{ {
/*if (isVisible == false && !firstTimeShow && !hideTemp)
{
//avisa de cerrar la ventana
OliviaGlob.SetFlagTipEjec(TiposEjecucion.Ninguno);
}*/
if (firstTimeShow) if (firstTimeShow)
firstTimeShow = false; firstTimeShow = false;
} }
protected override void OnHidden()
{
OliviaGlob.SetFlagTipEjec(TiposEjecucion.Ninguno);
}
/// <summary> /// <summary>
/// Text shown near the top of the DockPane. /// Text shown near the top of the DockPane.
/// </summary> /// </summary>

View File

@ -43,7 +43,10 @@ namespace OliviaAddInPro
hideTemp = false; hideTemp = false;
pane.Activate(); pane.Activate();
} }
protected override void OnHidden()
{
OliviaGlob.SetFlagTipEjec(TiposEjecucion.Ninguno);
}
internal static void Hide_() internal static void Hide_()
{ {
DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID);