/// <summary> /// Helper to show the UI Unit Scale panel /// </summary> private void ShowUnitScaleDialog() { // Create panel dialog if (unitScaleDlg == null) this.unitScaleDlg = new CSharpFramework.Dialogs.UnitScaleDialog(); else this.unitScaleDlg.Hide(); UpdateUnitScaleDialogPosition(); this.unitScaleDlg.Show(Parent.Parent); }
/// <summary> /// Helper to hide the UI Unit Scale panel /// </summary> private void HideUnitScaleDialog() { if (unitScaleDlg == null) return; this.unitScaleDlg.Close(); this.unitScaleDlg.Dispose(); this.unitScaleDlg = null; }