public void HideIcon()
 {
     if (ProductsDrawableOverrule.ProductsDrawableOverruleInstance != null)
     {
         UserConfigFile.SetValue("mpProductInsert", "ShowIcon", false.ToString(), true);
         Overrule.RemoveOverrule(RXObject.GetClass(typeof(Entity)), ProductsDrawableOverrule.Instance());
         ProductsDrawableOverrule.ProductsDrawableOverruleInstance = null;
         Application.DocumentManager.MdiActiveDocument.Editor.Regen();
     }
 }
 public static void ShowIcon()
 {
     if (ProductsDrawableOverrule.ProductsDrawableOverruleInstance == null)
     {
         UserConfigFile.SetValue(UserConfigFile.ConfigFileZone.Settings, "mpProductInsert", "ShowIcon",
                                 true.ToString(), true);
         Overrule.AddOverrule(RXObject.GetClass(typeof(Entity)), ProductsDrawableOverrule.Instance(), true);
         Overrule.Overruling = true;
         Application.DocumentManager.MdiActiveDocument.Editor.Regen();
     }
 }
 public static ProductsDrawableOverrule Instance()
 {
     return(ProductsDrawableOverruleInstance ?? (ProductsDrawableOverruleInstance = new ProductsDrawableOverrule()));
 }