private void PluginTraceViewer_ConnectionUpdated(object sender, ConnectionUpdatedEventArgs e) { LoadFilter(); var orgver = new Version(e.ConnectionDetail.OrganizationVersion); LogInfo("Connected CRM version: {0}", orgver); ClearControls(); var orgok = orgver >= new Version(7, 1); gridControl.SetOrgService(orgok ? e.Service : null); buttonRetrieveLogs.Enabled = orgok; tsmiRefreshFilter.Enabled = orgok; if (orgok) { filterControl.LoadConstraints(); LoadLogSetting(); } else { LogError("CRM version too old for Plugin Trace Viewer"); MessageBox.Show("Plug-in Trace Log was introduced in\nMicrosoft Dynamics CRM 2015 Update 1 (7.1.0.0)\n\nPlease connect to a newer organization to use this cool tool.", "Organization too old", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }