public ChangeWorkstationLanguageCommand
 (
     string featureId,
     WorkstationContainer container,
     WorkstationLanguageResources language
 )
     : base(featureId, container)
 {
     Language = language;
 }
Example #2
0
        private void InitializeLanguages(WorkstationContainer viewerContainer)
        {
            English = new WorkstationLanguageResources( );
            Spanish = new WorkstationLanguageResources( );

            English.ToolBarStream     = new MemoryStream( );
            English.MessagesStream    = new MemoryStream( );
            English.LoaderSteeam      = new MemoryStream( );
            English.ActionsNameStream = new MemoryStream( );
            Spanish.ToolBarStream     = new MemoryStream(Encoding.UTF8.GetBytes(Leadtools.Demos.Workstation.Customized.Properties.Resources.Toolstrip_Spanish));
            Spanish.MessagesStream    = new MemoryStream(Encoding.UTF8.GetBytes(Leadtools.Demos.Workstation.Customized.Properties.Resources.Messages_Spanish));
            Spanish.LoaderSteeam      = new MemoryStream(Encoding.UTF8.GetBytes(Leadtools.Demos.Workstation.Customized.Properties.Resources.StatusMessages_Spanish));
            Spanish.ActionsNameStream = new MemoryStream(Encoding.UTF8.GetBytes(Leadtools.Demos.Workstation.Customized.Properties.Resources.actionName_Spanish));

            WorkstationMessages.SaveMessages(English.MessagesStream);
            ToolStripMenuProperties.SaveStrings(English.ToolBarStream);
            LoaderStatusMessage.Save(English.LoaderSteeam);

            viewerContainer.State.GetMouseButtonActionDisplayNameStream(English.ActionsNameStream);
        }