Наследование: ATMLCommonLibrary.forms.ATMLDocumentBaseForm, IATMLDockableWindow, IATMLTranslatorConsumer
Пример #1
0
 public ATMLTranslatorToolWindow(ITranslatorNavigator navigator)
 {
     InitializeComponent();
     InitSourceTypes();
     _bindingSource                 = new BindingSource();
     _navigator                     = navigator;
     _navigator.FileAdded          += NavigatorOnFileAdded;
     _navigator.FileDeleted        += NavigatorOnFileDeleted;
     _translatorOutputWindow        = new ATMLTranslatorOutputWindow();
     edtSourceDocument.Lexing.Lexer = Lexer.Fortran;
     edtSourceDocument.ConfigurationManager.Language = "fortran";
     btnParseSourceDocument.Enabled     = false;
     edtSourceDocument.ModifiedChanged += edtSourceDocument_ModifiedChanged;
     edtSourceDocument.KeyUp           += edtSourceDocument_KeyUp;
     edtSourceDocument.NativeInterface.SetReadOnly(true);
     ProjectManager.Instance.ProjectOpened  += InstanceOnProjectOpened;
     ProjectManager.Instance.ProjectClosing += InstanceOnProjectClosing;
     dgBuildList.Resize += DgBuildListOnResize;
     dgPropertyInfo.Columns.Add("name", "Property");
     dgPropertyInfo.Columns.Add("value", "Value");
     dgPropertyInfo.RowsDefaultCellStyle.BackColor = Color.Honeydew;
     dgPropertyInfo.Resize += (sender, args) => ResizePropertyGrid();
     dgPropertyInfo.EditingControlShowing += DgPropertyInfoOnEditingControlShowing;
     dgBuildList.ReadOnly             = true;
     btnSaveTranslationConfig.Visible = false;
     btnUndo.Visible = false;
     ResizePropertyGrid();
     SetButtonStates();
 }
 public ATMLTranslatorToolWindow( ITranslatorNavigator navigator )
 {
     InitializeComponent();
     InitSourceTypes();
     _bindingSource = new BindingSource();
     _navigator = navigator;
     _navigator.FileAdded += NavigatorOnFileAdded;
     _navigator.FileDeleted += NavigatorOnFileDeleted;
     _translatorOutputWindow = new ATMLTranslatorOutputWindow();
     edtSourceDocument.Lexing.Lexer = Lexer.Fortran;
     edtSourceDocument.ConfigurationManager.Language = "fortran";
     btnParseSourceDocument.Enabled = false;
     edtSourceDocument.ModifiedChanged += edtSourceDocument_ModifiedChanged;
     edtSourceDocument.KeyUp += edtSourceDocument_KeyUp;
     edtSourceDocument.NativeInterface.SetReadOnly( true );
     ProjectManager.Instance.ProjectOpened += InstanceOnProjectOpened;
     ProjectManager.Instance.ProjectClosing += InstanceOnProjectClosing;
     dgBuildList.Resize += DgBuildListOnResize;
     dgPropertyInfo.Columns.Add( "name", "Property" );
     dgPropertyInfo.Columns.Add( "value", "Value" );
     dgPropertyInfo.RowsDefaultCellStyle.BackColor = Color.Honeydew;
     dgPropertyInfo.Resize += ( sender, args ) => ResizePropertyGrid();
     dgPropertyInfo.EditingControlShowing += DgPropertyInfoOnEditingControlShowing;
     dgBuildList.ReadOnly = true;
     btnSaveTranslationConfig.Visible = false;
     btnUndo.Visible = false;
     ResizePropertyGrid();
     SetButtonStates();
 }