public PlanetViewer(Planet planet, OpenView openViewDelegate) { this.openViewDelegate = openViewDelegate; this.planet = planet; this.planet.Moved += new MovedEventHandler(planet_Moved); this.planet.Changed += new ChangedEventHandler(planet_Changed); InitializeComponent(); planet_Changed(planet); planet_Moved(planet); }
public PlanetSystemViewer(PlanetSystem planetSystem, OpenView openViewDelegate) { this.openViewDelegate = openViewDelegate; this.planetSystem = planetSystem; this.planetSystem.Moved += new MovedEventHandler(planetSystem_Moved); InitializeComponent(); planetSystem_Moved(planetSystem); }
public static void UnAssignAllEvents() { OnOpenView = null; OnCloseView = null; OnBackButtonPressed = null; OnChangeSound = null; OnStartGame = null; OnPauseGame = null; OnShootBubble = null; OnAllowShoot = null; }
public override void EnterState() { openView = stateController.AppViews.OpenView; openView.OnSaveChosen += LoadChosenSaveFile; openView.OnBackButton += BackToMenu; foreach (var saveFile in SaveController.Instance.SaveDataCollection.saveDataList) { openView.SetupGridButton(saveFile.id); } openView.SubscribeButtonActions(); openView.DisplayView(true); }