void ReleaseDesignerOutlets() { if (ImageViewMenuIcon != null) { ImageViewMenuIcon.Dispose(); ImageViewMenuIcon = null; } if (LabelContentType != null) { LabelContentType.Dispose(); LabelContentType = null; } if (LabelTitle != null) { LabelTitle.Dispose(); LabelTitle = null; } if (RootView != null) { RootView.Dispose(); RootView = null; } if (ViewBackground != null) { ViewBackground.Dispose(); ViewBackground = null; } if (ViewContentType != null) { ViewContentType.Dispose(); ViewContentType = null; } if (ViewMenuIcon != null) { ViewMenuIcon.Dispose(); ViewMenuIcon = null; } if (ViewOverlay != null) { ViewOverlay.Dispose(); ViewOverlay = null; } }
//================================================================ //Constructors //================================================================ public BaseView(Game game, Vector2 position) { this.game = game; spriteBatch = new SpriteBatch(game.GraphicsDevice); camera = new Camera2d(game.GraphicsDevice.Viewport.Width, game.GraphicsDevice.Viewport.Height); camera.Position = new Vector2(camera.width / 2, camera.height / 2); childrens = new List<Widget>(); clickListener = new List<IOnClickListener>(); Position = position; background = new ViewBackground(position); background.Background(this, camera.width, camera.height); DrawBackground = true; }
//================================================================ //Constructors //================================================================ public BaseView(Game game, Vector2 position) { this.game = game; spriteBatch = new SpriteBatch(game.GraphicsDevice); camera = new Camera2d(game.GraphicsDevice.Viewport.Width, game.GraphicsDevice.Viewport.Height); camera.Position = new Vector2(camera.width / 2, camera.height / 2); childrens = new List <Widget>(); clickListener = new List <IOnClickListener>(); Position = position; background = new ViewBackground(position); background.Background(this, camera.width, camera.height); DrawBackground = true; }
void ReleaseDesignerOutlets() { if (Carico1 != null) { Carico1.Dispose(); Carico1 = null; } if (Desc != null) { Desc.Dispose(); Desc = null; } if (InfoStack != null) { InfoStack.Dispose(); InfoStack = null; } if (Ne1 != null) { Ne1.Dispose(); Ne1 = null; } if (Ne10 != null) { Ne10.Dispose(); Ne10 = null; } if (Ne11 != null) { Ne11.Dispose(); Ne11 = null; } if (Ne12 != null) { Ne12.Dispose(); Ne12 = null; } if (Ne13 != null) { Ne13.Dispose(); Ne13 = null; } if (Ne14 != null) { Ne14.Dispose(); Ne14 = null; } if (Ne15 != null) { Ne15.Dispose(); Ne15 = null; } if (Ne2 != null) { Ne2.Dispose(); Ne2 = null; } if (Ne3 != null) { Ne3.Dispose(); Ne3 = null; } if (Ne4 != null) { Ne4.Dispose(); Ne4 = null; } if (Ne5 != null) { Ne5.Dispose(); Ne5 = null; } if (Ne6 != null) { Ne6.Dispose(); Ne6 = null; } if (Ne7 != null) { Ne7.Dispose(); Ne7 = null; } if (Ne8 != null) { Ne8.Dispose(); Ne8 = null; } if (Ne9 != null) { Ne9.Dispose(); Ne9 = null; } if (Pausa1 != null) { Pausa1.Dispose(); Pausa1 = null; } if (Rips1 != null) { Rips1.Dispose(); Rips1 = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (Serie1 != null) { Serie1.Dispose(); Serie1 = null; } if (Slow1_Check != null) { Slow1_Check.Dispose(); Slow1_Check = null; } if (Split1_Check != null) { Split1_Check.Dispose(); Split1_Check = null; } if (StackES10 != null) { StackES10.Dispose(); StackES10 = null; } if (StackES11 != null) { StackES11.Dispose(); StackES11 = null; } if (StackES12 != null) { StackES12.Dispose(); StackES12 = null; } if (StackES13 != null) { StackES13.Dispose(); StackES13 = null; } if (StackES14 != null) { StackES14.Dispose(); StackES14 = null; } if (StackES15 != null) { StackES15.Dispose(); StackES15 = null; } if (StackES2 != null) { StackES2.Dispose(); StackES2 = null; } if (StackES3 != null) { StackES3.Dispose(); StackES3 = null; } if (StackES4 != null) { StackES4.Dispose(); StackES4 = null; } if (StackES5 != null) { StackES5.Dispose(); StackES5 = null; } if (StackES6 != null) { StackES6.Dispose(); StackES6 = null; } if (StackES7 != null) { StackES7.Dispose(); StackES7 = null; } if (StackES8 != null) { StackES8.Dispose(); StackES8 = null; } if (StackES9 != null) { StackES9.Dispose(); StackES9 = null; } if (StackEsercizio != null) { StackEsercizio.Dispose(); StackEsercizio = null; } if (Stop1_Check != null) { Stop1_Check.Dispose(); Stop1_Check = null; } if (Time1_Check != null) { Time1_Check.Dispose(); Time1_Check = null; } if (Titolo != null) { Titolo.Dispose(); Titolo = null; } if (ViewBackground != null) { ViewBackground.Dispose(); ViewBackground = null; } if (ViewPrincipale != null) { ViewPrincipale.Dispose(); ViewPrincipale = null; } }