private void EditObject() { int objectId = ObjectID.GetValueOrDefault(-1); if (objectId > 0) { PluginManager.Instance.EditLookupObject(LookupType, objectId); } }