OpenTranslation() public method

public OpenTranslation ( string path, Encoding encoding ) : void
path string
encoding System.Text.Encoding
return void
Ejemplo n.º 1
0
        public static void OpenTranslation(string path, Encoding encoding)
        {
            if (document.IsTranslationLoaded)
            {
                CloseTranslation();
            }

            document.OpenTranslation(path, encoding);
            EmitTranslationLoadedEvent();

            /* Reselect, for the widgets to update accordingly */
            Ui.View.Selection.Reselect();
        }