/// <summary> /// Constructor that calls the Microsoft.VisualStudio.Shell.WindowPane constructor then /// our initialization functions. /// </summary> /// <param name="package">Our Package instance.</param> public EditorPane(SimpleDataAccessLayerPackage package) : base(null) { PrivateInit(package); }
/// <summary> /// Initialization routine for the Editor. Loads the list of properties for the dal document /// which will show up in the properties window /// </summary> /// <param name="package"></param> private void PrivateInit(SimpleDataAccessLayerPackage package) { _myPackage = package; _loading = false; _gettingCheckoutStatus = false; _trackSel = null; Control.CheckForIllegalCrossThreadCalls = false; // Create an ArrayList to store the objects that can be selected var listObjects = new ArrayList(); // Create the object that will show the document's properties // on the properties window. var prop = new EditorProperties(this); listObjects.Add(prop); // Create the SelectionContainer object. _selContainer = new SelectionContainer(true, false) { SelectableObjects = listObjects, SelectedObjects = listObjects }; // Create and initialize the editor var resources = new ComponentResourceManager(typeof(EditorPane)); _editorControl = new MainEditorWindow(); //resources.ApplyResources(_editorControl, "editorControl", CultureInfo.CurrentUICulture); // Handle Focus event // I should override this one //this.editorControl.RichTextBoxControl.GotFocus += new EventHandler(this.OnGotFocus); // Call the helper function that will do all of the command setup work // -- no commands here // setupCommands(); }
public EditorFactory(SimpleDataAccessLayerPackage package) { Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering {0} constructor", ToString())); _editorPackage = package; }