Subversion Repositories DevTools

Rev

Rev 2126 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2126 Rev 2136
Line 1... Line 1...
1
using System;
1
using System;
2
using System.Windows.Forms;
2
using System.Windows.Forms;
3
using System.IO;
3
using System.IO;
4
using Word;
4
using Microsoft.Office.Interop.Word;
5
using System.Threading;
5
using System.Threading;
6
using System.Text;
6
using System.Text;
7
 
7
 
8
 
8
 
9
namespace EA_DocGen
9
namespace EA_DocGen
Line 321... Line 321...
321
         switch( ItemName )
321
         switch( ItemName )
322
         {
322
         {
323
            case MI_GenDocFromModelLayout:	
323
            case MI_GenDocFromModelLayout:	
324
               Repository.EnsureOutputVisible(GUI_OUTPUT_TAB_NAME);
324
               Repository.EnsureOutputVisible(GUI_OUTPUT_TAB_NAME);
325
               threadCreateDoc = new Thread(new ThreadStart(EA_Utilities.createWordDoc));
325
               threadCreateDoc = new Thread(new ThreadStart(EA_Utilities.createWordDoc));
326
               threadCreateDoc.ApartmentState = ApartmentState.STA;
326
               threadCreateDoc.SetApartmentState(ApartmentState.STA);
327
               threadCreateDoc.Start();
327
               threadCreateDoc.Start();
328
               break;
328
               break;
329
 
329
 
330
            case MI_CopyGUIDToClipboard:
330
            case MI_CopyGUIDToClipboard:
331
               EA_Utilities.copy_GUID_to_clipboard();
331
               EA_Utilities.copy_GUID_to_clipboard();