public override void Execute(object @object) { if (!Enabled) { return; } if (EditorObserver.ActiveEditor == null) { return; } if (EditorObserver.ActiveEditor.IsSelection) { return; } using (var ed = new EquationDialog()) { if (ed.ShowDialog(EditorObserver.DialogOwner) == DialogResult.OK) { } } }
public override void Execute(object @object) { if (!Enabled) { return; } //if (EditorObserver.ActiveEditor.IsSelection) //{ // return; //} using (var ed = new EquationDialog()) { ed.InitializeData(); if (ed.ShowDialog(EditorObserver.DialogOwner) == DialogResult.OK) { } } }