Example #1
0
 public PhysicalAttributes(int owner, bool blockMove, bool blockLight, EntitySizes size = EntitySizes.None)
 {
     OwnerID    = owner;
     BlockMove  = blockMove;
     BlockLight = blockLight;
     Size       = size;
 }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (EntitySizes != null)
            {
                EntitySizes.Dispose();
                EntitySizes = null;
            }

            if (FileResults != null)
            {
                FileResults.Dispose();
                FileResults = null;
            }

            if (IsAppWorking != null)
            {
                IsAppWorking.Dispose();
                IsAppWorking = null;
            }

            if (SearchButton != null)
            {
                SearchButton.Dispose();
                SearchButton = null;
            }

            if (SearchParameter != null)
            {
                SearchParameter.Dispose();
                SearchParameter = null;
            }

            if (SelectableActions != null)
            {
                SelectableActions.Dispose();
                SelectableActions = null;
            }

            if (TrashCanIcon != null)
            {
                TrashCanIcon.Dispose();
                TrashCanIcon = null;
            }

            if (SearchField != null)
            {
                SearchField.Dispose();
                SearchField = null;
            }
        }