Example #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Create the persistence object. We can't do it in InitializeComponent
 /// because we have the <see cref="Persist"/> property that allows not
 /// to persist.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private void InitializePersistence()
 {
     m_persistence        = new SIL.FieldWorks.Common.Controls.Persistence(components);
     m_persistence.Parent = this;
     m_persistence.EnableSaveWindowSettings = false;
     m_persistence.SaveSettings            += new SIL.FieldWorks.Common.Controls.Persistence.Settings(SaveSettings);
     m_persistence.LoadSettings            += new SIL.FieldWorks.Common.Controls.Persistence.Settings(LoadSettings);
 }
Example #2
0
 /// -----------------------------------------------------------------------------------
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 /// -----------------------------------------------------------------------------------
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DummyPersistedFormWinDef));
     this.m_persistence = new SIL.FieldWorks.Common.Controls.Persistence(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.m_persistence)).BeginInit();
     //
     // m_persistence
     //
     this.m_persistence.Parent = this;
     //
     // DummyPersistedFormWinDef
     //
     this.AutoScaleMode         = AutoScaleMode.Font;
     this.AccessibleDescription = ((string)(resources.GetObject("$this.AccessibleDescription")));
     this.AccessibleName        = ((string)(resources.GetObject("$this.AccessibleName")));
     this.Anchor            = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("$this.Anchor")));
     this.AutoScroll        = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin  = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize        = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Dock          = ((System.Windows.Forms.DockStyle)(resources.GetObject("$this.Dock")));
     this.Enabled       = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font          = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode       = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location      = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximumSize   = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize   = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name          = "DummyPersistedFormWinDef";
     this.RightToLeft   = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text          = resources.GetString("$this.Text");
     this.Visible       = ((bool)(resources.GetObject("$this.Visible")));
     ((System.ComponentModel.ISupportInitialize)(this.m_persistence)).EndInit();
 }
Example #3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Create the persistence object
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void InitializePersistence()
		{
			m_persistence = new SIL.FieldWorks.Common.Controls.Persistence(components);
			m_persistence.Parent = this;
			m_persistence.EnableSaveWindowSettings = false;
			m_persistence.SaveSettings += new Persistence.Settings(SaveSettings);
			m_persistence.LoadSettings += new Persistence.Settings(LoadSettings);
		}