/// <summary> /// Called when the panel is about to redraw. /// </summary> /// <param name="e">.</param> /// <remarks> /// Set <see cref="PanelEventArgs.Ignore"/> = true if the module redraws the panel itself. /// <para> /// The base method triggers the <see cref="Redrawing"/> event. /// </para> /// </remarks> public virtual void UIRedrawing(PanelEventArgs e) { Redrawing?.Invoke(this, e); }
/// <summary> /// Called when the panel is about to be closed. /// </summary> /// <param name="e">.</param> /// <remarks> /// There are issues: http://bugs.farmanager.com/view.php?id=602 /// <para> /// Far calls this unexpectedly on plugin commands invoked from the command line /// even if a new panel is not going to be opened and the current one closed. /// Thus, it can be called more than once. /// </para> /// </remarks> public virtual void UIClosing(PanelEventArgs e) //_090321_165608 { Closing?.Invoke(this, e); }
//_090321_165608 /// <summary> /// Called when the panel is about to be closed. /// </summary> /// <param name="e">.</param> /// <remarks> /// There are issues: http://bugs.farmanager.com/view.php?id=602 /// <para> /// Far calls this unexpectedly on plugin commands invoked from the command line /// even if a new panel is not going to be opened and the current one closed. /// Thus, it can be called more than once. /// </para> /// </remarks> public virtual void UIClosing(PanelEventArgs e) { if (Closing != null) Closing(this, e); }
/// <summary> /// Called when the panel is about to redraw. /// </summary> /// <param name="e">.</param> /// <remarks> /// Set <see cref="PanelEventArgs.Ignore"/> = true if the module redraws the panel itself. /// <para> /// The base method triggers the <see cref="Redrawing"/> event. /// </para> /// </remarks> public virtual void UIRedrawing(PanelEventArgs e) { if (Redrawing != null) Redrawing(this, e); }
/// <inheritdoc/> public override void UIRedrawing(PanelEventArgs e) { base.UIRedrawing(e); string dir = string.Empty; var file = CurrentFile; if (file != null) { TreeFile node = (TreeFile)file; TreeFile parent = node.Parent; if (parent != null) dir = parent.Path; else dir = node.Path; } if (dir.Length > 0) { Title = "Tree: " + dir; } else { Title = "Tree"; dir = "*"; // to avoid empty (Far closes on dots or CtrlPgUp); STOP: see _130117_234326 } //! panel directory is not the same as the explorer location CurrentLocation = dir; }