/// <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(); }
/// <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; } }