Ejemplo n.º 1
0
		/// <summary>
		/// Properties context menu clicked.
		/// </summary>
		protected override void OnPropertiesClick(object sender, EventArgs e)
		{
			if(propertiesDialog != null && ! propertiesDialog.IsDisposed)
				// Already open
				return;

			// Display the dialog
			propertiesDialog = new MeasurePropertiesDialog();
			propertiesDialog.Show();
		}
Ejemplo n.º 2
0
		/// <summary>
		/// RenderableObject abstract member (needed)
		/// OBS: Worker thread (don't update UI directly from this thread)
		/// </summary>
		public override void Dispose()
		{
			isInitialized = false;
			if(m_texture!=null)
			{
				m_texture.Dispose();
				m_texture = null;
			}
			if(m_texture!=null)
			{
				propertiesDialog.Dispose();
				propertiesDialog = null;
			}
			if(save!=null)
			{
				save.Dispose();
				save = null;
			}
		}
Ejemplo n.º 3
0
		/// <summary>
		/// RenderableObject abstract member (needed)
		/// OBS: Worker thread (don't update UI directly from this thread)
		/// </summary>
		public override void Dispose()
		{
			isInitialized = false;
			if(m_texture!=null)
			{
				m_texture.Dispose();
				m_texture = null;
			}
			if(m_texture!=null)
			{
				propertiesDialog.Dispose();
				propertiesDialog = null;
			}
			if(save!=null)
			{
				save.Dispose();
				save = null;
			}
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Properties context menu clicked.
		/// </summary>
		protected override void OnPropertiesClick(object sender, EventArgs e)
		{
			if(propertiesDialog != null && ! propertiesDialog.IsDisposed)
				// Already open
				return;

			// Display the dialog
			propertiesDialog = new MeasurePropertiesDialog();
			propertiesDialog.Show();
		}