This class represents a rule insertion control. A rule insertion control consists of a set of hotlinks that are used to insert various rule items. Rule formula controls provide information about which type of items it is interested in inserting and in what context the hotlinks should be displayed. It provides an Insert event that indicates when a user has attempted to insert an item.
Наследование: System.Windows.Forms.UserControl, IFWDisposable
Пример #1
0
		private void InitializeComponent()
		{
			this.m_view = new SIL.FieldWorks.LexText.Controls.PatternView();
			this.m_insertionControl = new InsertionControl();
			this.m_panel.SuspendLayout();
			this.SuspendLayout();
			//
			// m_panel
			//
			this.m_panel.Location = new System.Drawing.Point(225, 0);
			this.m_panel.Size = new System.Drawing.Size(22, 20);
			//
			// m_btnLauncher
			//
			this.m_btnLauncher.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.m_btnLauncher.Size = new System.Drawing.Size(22, 20);
			//
			// m_view
			//
			this.m_view.BackColor = System.Drawing.SystemColors.Window;
			this.m_view.Dock = System.Windows.Forms.DockStyle.Left;
			this.m_view.DoSpellCheck = false;
			this.m_view.Group = null;
			this.m_view.IsTextBox = false;
			this.m_view.Location = new System.Drawing.Point(0, 0);
			this.m_view.Mediator = null;
			this.m_view.Name = "m_view";
			this.m_view.ReadOnlyView = false;
			this.m_view.ScrollMinSize = new System.Drawing.Size(0, 0);
			this.m_view.ScrollPosition = new System.Drawing.Point(0, 0);
			this.m_view.ShowRangeSelAfterLostFocus = false;
			this.m_view.Size = new System.Drawing.Size(226, 20);
			this.m_view.SizeChangedSuppression = false;
			this.m_view.TabIndex = 3;
			this.m_view.WritingSystemFactory = null;
			this.m_view.WsPending = -1;
			this.m_view.Zoom = 1F;
			//
			// m_insertionControl
			//
			this.m_insertionControl.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.m_insertionControl.Location = new System.Drawing.Point(0, 20);
			this.m_insertionControl.Name = "m_insertionControl";
			this.m_insertionControl.Size = new System.Drawing.Size(247, 23);
			this.m_insertionControl.TabIndex = 2;
			//
			// RuleFormulaControl
			//
			this.Controls.Add(this.m_view);
			this.Controls.Add(this.m_insertionControl);
			this.Name = "RuleFormulaControl";
			this.Size = new System.Drawing.Size(247, 43);
			this.Controls.SetChildIndex(this.m_insertionControl, 0);
			this.Controls.SetChildIndex(this.m_view, 0);
			this.Controls.SetChildIndex(this.m_panel, 0);
			this.m_panel.ResumeLayout(false);
			this.ResumeLayout(false);

		}
Пример #2
0
		protected override void Dispose(bool disposing)
		{
			if (IsDisposed)
				return;

			if (disposing)
			{
				m_insertionControl.Insert -= m_insertionControl_Insert;
			}

			m_insertionControl = null;
			m_view = null;

			base.Dispose(disposing);
		}