示例#1
0
		}																									// 1.0.001


		/// <summary>																						// 1.0.001
		/// Clean up any resources being used.																// 1.0.001
		/// </summary>																						// 1.0.001
		protected override void Dispose( bool disposing )													// 1.0.001
		{																									// 1.0.001
			if( disposing )																					// 1.0.001
			{																								// 1.0.001
				if(components != null)																		// 1.0.001
				{																							// 1.0.001
					components.Dispose();																	// 1.0.001
				}																							// 1.0.001
				
				if( (this._frmEditBox != null)																// 1.0.001
				&& !this._frmEditBox.Disposing																// 1.0.001
				&& !this._frmEditBox.IsDisposed																// 1.0.001
				//&& this._frmEditBox.Created																	// 1.0.001
				)																							// 1.0.001
				{																							// 1.0.001
					this._frmEditBox.Close();																// 1.0.001
					this._frmEditBox.Dispose();																// 1.0.001
				}																							// 1.0.001
				this._frmEditBox = null;																	// 1.0.001

			}																								// 1.0.001
			base.Dispose( disposing );																		// 1.0.001
		}																									// 1.0.001
示例#2
0
		}																									// 1.0.003

		private void ShowIt(bool showDialog, System.Drawing.Point ptShow, int height, int width, string editText)	// 1.0.003
		{																									// 1.0.003
			this._dialogResult = System.Windows.Forms.DialogResult.None;									// 1.0.001
			this._editAccepted = false;																		// 1.0.001
			this._editText = "";																			// 1.0.001
			this._editTextChanged = false;																	// 1.0.001

			#region Create [this._frmEditBox]
			if( (this._frmEditBox == null)																	// 1.0.001
			|| this._frmEditBox.Disposing																	// 1.0.001
			|| this._frmEditBox.IsDisposed																	// 1.0.001
			|| !this._frmEditBox.Created																	// 1.0.001
			)																								// 1.0.001
			{																								// 1.0.001
				this._frmEditBox = new TDHEditBox.frmEditBox(												// 1.0.001
					new XmlParsersAndUi.TDHEditBox.EditComplete(this.EditComplete)					// 1.0.001
					);																						// 1.0.001
			}																								// 1.0.001
			#endregion 

			if (showDialog)																					// 1.0.003
			{																								// 1.0.003
				this._frmEditBox.ShowDialog(ptShow, height, width, editText);								// 1.0.003
			}																								// 1.0.003
			else																							// 1.0.003
			{																								// 1.0.003
				this._frmEditBox.Show(ptShow, height, width, editText);										// 1.0.001
			}																								// 1.0.003
		}																									// 1.0.003