private void ApplyField(UIMapper aMapper)
 {
     if (aMapper != null && aMapper.ShowDialog() == DialogResult.OK)
     {
         MapReferences mapRef = Mapped.LoadMapToTree(projectView, UIMapper.Result, ctxTreeMenu);
         mapRef.LastMap       = currentMode;
         mapRef.LastMethodMap = aMapper.MethodMap;
         if (UIMapper.RuleSets.Count > 0)
         {
             string storeName = currentMode.ToString();
             Guid   anId      = Guid.Empty;
             if (currentMode == DataMapType.MethodParameterMap)
             {
                 anId      = aMapper.MethodMap.ID;
                 storeName = mapRef.LastMethodMap.MethodName;
             }
             MapManager.FindRuleAndUpdate(storeName, mapRef.ReferenceInfo, UIMapper.RuleSets, currentMode, anId);
         }
     }
 }