protected virtual Core.Screen PopulateScreenObject() { Core.Screen retVal = null; //string[] urlSegments = this.Request.Url.Segments; //string rootFolder = null; ////if (urlSegments.Length > 4) ////{ //// rootFolder = urlSegments[urlSegments.Length - 3].Replace("/", ""); ////} ////else ////{ //// rootFolder = urlSegments[urlSegments.Length - 2].Replace("/", ""); ////} //if (rootFolder.ToLower() == "app") if (this.Request.Url.AbsolutePath.ToLower().Contains("/app/")) { string pageName = this.RouteData.GetRequiredString("page"); string folder = this.RouteData.GetRequiredString("folder"); retVal = Screen.GetByFolderAndName(folder, pageName); this.EnableViewState = true; } return(retVal); }
private void ProcessScreen(Core.Screen screen) { Grid grid; List <Section> sections; GridSection gridSection; foreach (Section section in screen.Sections) { if (section is GridSection) { gridSection = (GridSection)section; grid = gridSection.Grid; ProcessGrid(grid); } if (section is EditableGridSection) { gridSection = (EditableGridSection)section; grid = gridSection.Grid; ProcessGrid(grid); } } Core.Screen.Save(screen); }
public DirectXControl() { InitializeComponent(); this.screen = new Core.Screen(Handle); this.Resize += DirectXControl_Resize; this.Paint += DirectXControl_Paint; this.Disposed += DirectXControl_Disposed; }
public Sob(NPC associatedNPC) { this.associatedNPC = associatedNPC; _baseentity = new BaseEntity(this); _screen = new ProjectX_V3_Game.Core.Screen(this); }
public GameClient() { IsAIBot = true; this.socketClient = new ProjectX_V3_Lib.Network.SocketClient(); socketClient.Owner = this; socketClient.Crypto = new ProjectX_V3_Lib.Cryptography.GameCrypto(Program.Config.ReadString("GameKey").GetBytes()); _screen = new ProjectX_V3_Game.Core.Screen(this); _baseentity = new BaseEntity(this); _maxhp = 0; _maxmp = 0; _inventory = new ProjectX_V3_Game.Data.Inventory(this); _equipments = new ProjectX_V3_Game.Data.Equipments(this); _trade = new ProjectX_V3_Game.Data.TradeData(); _spelldata = new ProjectX_V3_Game.Data.SpellData(this); _subclasses = new SubClasses(); Warehouses = new ConcurrentDictionary<ushort, ProjectX_V3_Game.Data.Warehouse>(); foreach (ushort whID in whids) { if (!Warehouses.TryAdd(whID, new Data.Warehouse(this, whID))) throw new Exception("Failed to add Warehouse..."); } TournamentScore = new ProjectX_V3_Game.Tournaments.TournamentScore(); TournamentInfo = new ProjectX_V3_Game.Tournaments.TournamentInfo(this); Arena = new ProjectX_V3_Game.Data.ArenaInfo(this); Pets = new ConcurrentDictionary<int, BattlePet>(); Permission = Enums.PlayerPermission.Normal; }
public Monster() { _screen = new ProjectX_V3_Game.Core.Screen(this); _baseentity = new BaseEntity(this); }
public NPC() { _screen = new ProjectX_V3_Game.Core.Screen(this); _baseentity = new BaseEntity(this); _maxhp = 0; _maxmp = 0; }
/// <summary> /// Creates a new instance of GroundItem. /// </summary> /// <param name="item">The actual item info.</param> public GroundItem(ItemInfo item) { this.item = item; _screen = new ProjectX_V3_Game.Core.Screen(this); }