Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Src/Common/FwUtils/EventConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static class EventConstants
public const string PrepareToRefresh = "PrepareToRefresh";
public const string RecordNavigation = "RecordNavigation";
public const string RefreshCurrentList = "RefreshCurrentList";
public const string RefreshInterlin = "RefreshInterlin";
public const string RefreshPopupWindowFonts = "RefreshPopupWindowFonts";
public const string ReloadAreaTools = "ReloadAreaTools";
public const string RemoveFilters = "RemoveFilters";
Expand Down
10 changes: 7 additions & 3 deletions Src/LexText/Interlinear/InterlinMaster.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Src/LexText/Interlinear/InterlinMaster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ public override void Init(Mediator mediator, PropertyTable propertyTable, XmlNod
InitBase(mediator, propertyTable, configurationParameters);
m_fullyInitialized = true;
RefreshPaneBar();

Subscriber.Subscribe(EventConstants.RefreshInterlin, RefreshInterlin);
}

/// <summary>
Expand Down Expand Up @@ -880,7 +882,7 @@ protected override void OnValidating(System.ComponentModel.CancelEventArgs e)
SaveWorkInProgress();
}

public void OnRefreshInterlin(object argument)
private void RefreshInterlin(object argument)
{
// Reset data.
RootStText = null;
Expand Down
2 changes: 1 addition & 1 deletion Src/LexText/Morphology/ParserAnalysisRemover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void Process()
});

// Interlin display may be affected.
m_dlg.Mediator.SendMessage("RefreshInterlin", null);
Publisher.Publish(new PublisherParameterObject(EventConstants.RefreshInterlin, null));
}

#endregion IUtility implementation
Expand Down
3 changes: 2 additions & 1 deletion Src/LexText/Morphology/UserAnalysisRemover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Text;
using System.Threading.Tasks;
using SIL.FieldWorks.Common.FwUtils;
using static SIL.FieldWorks.Common.FwUtils.FwUtils;
using SIL.FieldWorks.FwCoreDlgs;
using SIL.LCModel.Infrastructure;
using SIL.LCModel;
Expand Down Expand Up @@ -124,7 +125,7 @@ public void Process()
}
});

m_dlg.Mediator.SendMessage("RefreshInterlin", null);
Publisher.Publish(new PublisherParameterObject(EventConstants.RefreshInterlin, null));

}

Expand Down
Loading