/// <summary> /// Switches from proxy to direct drawing representation /// </summary> private void BtnUpdateProxyModeClick(object sender, EventArgs e) { var img = axMap1.GetActiveLayer(); if (img != null) { bool proxyNeeded = cboActiveProxyMode.SelectedIndex == (int)ProxyDisplayMode.Proxy; GridHelper.UpdateProxyMode(img, proxyNeeded); } }