Example #1
0
 internal static void SetUseLayoutRounding(ModelItem selectedItem)
 {
     if (DesignerUtilities.UseRounding(selectedItem, (Dictionary <ModelItem, bool>)null))
     {
         DesignerUtilities.DesignerRoundingPrecision = 0;
     }
     else
     {
         DesignerUtilities.DesignerRoundingPrecision = 3;
     }
 }
Example #2
0
        internal static void SetUseLayoutRounding(IEnumerable <ModelItem> selectedItems)
        {
            bool flag = true;
            Dictionary <ModelItem, bool> cache = new Dictionary <ModelItem, bool>();

            foreach (ModelItem selectedItem in selectedItems)
            {
                flag = DesignerUtilities.UseRounding(selectedItem, cache);
                if (!flag)
                {
                    break;
                }
            }
            if (flag)
            {
                DesignerUtilities.DesignerRoundingPrecision = 0;
            }
            else
            {
                DesignerUtilities.DesignerRoundingPrecision = 3;
            }
        }