Class LanguageEditor
- Namespace
- AlphaFramework.Editor.Gui
- Assembly
- AlphaFramework.Editor.dll
Allows a user to edit language localizations for the GUI
public class LanguageEditor : UndoCloneTab<XmlDictionary>, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
LanguageEditor
- Implements
- Inherited Members
- Extension Methods
Constructors
LanguageEditor(string, bool)
Creates a new GUI language editor.
public LanguageEditor(string filePath, bool overwrite)
Parameters
filePath
stringThe path to the file to be edited.
overwrite
booltrue
if an existing file supposed to be overwritten when SaveFile() is called.
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue if managed resources should be disposed; otherwise, false.
OnDelete()
Hook to delete the currently selected object in this tab
protected override void OnDelete()
OnInitialize()
Called on startup to load the content for this tab from a file
protected override void OnInitialize()
OnSaveFile()
Called when the content of this tab is to be saved to a file.
protected override void OnSaveFile()
Exceptions
- ArgumentException
The file path is invalid.
- NotSupportedException
The file path is invalid.
- IOException
There was a problem writing a file.
- UnauthorizedAccessException
Write access to a file was denied.
OnUpdate()
Called on startup, content updates and tab switch to refresh any on-screen displays
protected override void OnUpdate()