Inheritance: SIL.FieldWorks.Common.RootSites.RootSiteControl, IVwNotifyChange
Beispiel #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.m_msaDlglauncherView = new SIL.FieldWorks.XWorks.LexEd.MSADlglauncherView();
     this.m_panel.SuspendLayout();
     this.SuspendLayout();
     //
     // m_panel
     //
     this.m_panel.Name = "m_panel";
     //
     // m_btnLauncher
     //
     this.m_btnLauncher.Name = "m_btnLauncher";
     //
     // m_msaDlglauncherView
     //
     this.m_msaDlglauncherView.BackColor                  = System.Drawing.SystemColors.Window;
     this.m_msaDlglauncherView.Dock                       = System.Windows.Forms.DockStyle.Fill;
     this.m_msaDlglauncherView.Group                      = null;
     this.m_msaDlglauncherView.Location                   = new System.Drawing.Point(0, 0);
     this.m_msaDlglauncherView.Mediator                   = null;
     this.m_msaDlglauncherView.Name                       = "m_msaDlglauncherView";
     this.m_msaDlglauncherView.ReadOnlyView               = false;
     this.m_msaDlglauncherView.ScrollPosition             = new System.Drawing.Point(0, 0);
     this.m_msaDlglauncherView.ShowRangeSelAfterLostFocus = false;
     this.m_msaDlglauncherView.Size                       = new System.Drawing.Size(128, 24);
     this.m_msaDlglauncherView.SizeChangedSuppression     = false;
     this.m_msaDlglauncherView.TabIndex                   = 0;
     this.m_msaDlglauncherView.WsPending                  = -1;
     this.m_msaDlglauncherView.Zoom                       = 1F;
     //
     // MSADlgLauncher
     //
     this.Controls.Add(this.m_msaDlglauncherView);
     this.MainControl = this.m_msaDlglauncherView;
     this.Name        = "MSADlgLauncher";
     this.Size        = new System.Drawing.Size(150, 24);
     this.Controls.SetChildIndex(this.m_panel, 0);
     this.Controls.SetChildIndex(this.m_msaDlglauncherView, 0);
     this.m_panel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="parent"></param>
        public override void Install(DataTree parent)
        {
            CheckDisposed();

            base.Install(parent);

            MSADlgLauncher ctrl = (MSADlgLauncher)Control;

            this.Size = new System.Drawing.Size(208, 32);
            ctrl.Initialize((FdoCache)Mediator.PropertyTable.GetValue("cache"),
                            Object,
                            1,     // Maybe need a real flid?
                            "InterlinearName",
                            ContainingDataTree.PersistenceProvder,
                            Mediator,
                            "InterlinearName",
                            XmlUtils.GetOptionalAttributeValue(m_configurationNode, "ws", "analysis"));     // TODO: Get better default 'best ws'.
            MSADlglauncherView view = ctrl.MainControl as MSADlglauncherView;

            view.StyleSheet = FontHeightAdjuster.StyleSheetFromMediator(Mediator);
        }