Exemple #1
0
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if( components != null )
				{
					components.Dispose();
				}

				if( (this._tdhEditBox != null)																// 1.0.001
				//&& !this._tdhEditBox.Disposing															// 1.0.001
				//&& !this._tdhEditBox.IsDisposed															// 1.0.001
				)																							// 1.0.001
				{																							// 1.0.001
					this._tdhEditBox.Dispose();																// 1.0.001
				}																							// 1.0.001
				this._tdhEditBox = null;																	// 1.0.001
			}
			base.Dispose( disposing );
		}
Exemple #2
0
		}																									// 1.0.001


		private void TabPage_Rename(System.Windows.Forms.TabPage theTabPage, int idxTab)					// 1.0.010
		{																									// 1.0.001
			if (!this.gblRunModeIs_DesignMode																// 1.0.001
			&& (theTabPage != null) )																		// 1.0.001
			{																								// 1.0.001
				System.Drawing.RectangleF tabRect = TabRect_ByIdx(idxTab);									// 1.0.001
				if (tabRect != System.Drawing.RectangleF.Empty)												// 1.0.001
				{																							// 1.0.001
					this.cmnuTabRect_TabRect_Idx = idxTab;													// 1.0.001

					// Create [this._tdhEditBox] -- to allow TdhTabPage-Rename								// 1.0.001
					if (this._tdhEditBox == null)															// 1.0.001
					{																						// 1.0.001
						this._tdhEditBox = new XmlParsersAndUi.TDHEditBox.TdhEditBox(new XmlParsersAndUi.TDHEditBox.EditComplete(this.TabPage_Renamed));	// 1.0.001
					}																						// 1.0.001
					this._tdhEditBox.Show(																	// 1.0.001
					//this._tdhEditBox.ShowDialog(															// 1.0.001
						this.PointToScreen(new System.Drawing.Point((int)tabRect.X, (int)tabRect.Y)),		// 1.0.001
						(int)tabRect.Height, (int)tabRect.Width,											// 1.0.001
						theTabPage.Text.Trim()																// 1.0.001
						);																					// 1.0.001
				}																							// 1.0.001
				else																						// 1.0.001
				{																							// 1.0.001
					this.cmnuTabRect_TabRect_Idx = -1;														// 1.0.001
					this.cmnuTabRect_Built = false;															// 1.0.001
					this._OnTabEvents_RenameIsAdd = false;													// 1.0.001
				}																							// 1.0.001
			}																								// 1.0.001
		}																									// 1.0.001