Пример #1
0
        public void Index(bookmark b)
        {
            string sessionID = HttpContext.Session.SessionID;
            var    temp      = new List <bookmark>();

            if (Session[sessionID] != null)
            {
                temp = (List <bookmark>)Session[sessionID];
            }
            temp.Add(b);
            Session[sessionID] = temp;
        }
Пример #2
0
        public void Add(int id, string user_id)
        {
            bookmark b = new bookmark();

            b.UserGuid = user_id;
            b.LetterId = id;
            b.RevisedDate = DateTime.UtcNow;
            b.AddDate = DateTime.UtcNow;
            b.Visible = 1;

            db_mssql.bookmarks.Add(b);
            db_mssql.SaveChanges();
        }
Пример #3
0
    /* Set the bookmark position for this file */
    protected virtual void OnBookmarkPositionActionActivated(object sender, System.EventArgs e)
    {
        Int32 hashcode = bookFile.GetHashCode();

        bookmark currentBookmark = new bookmark();

        currentBookmark.fileHash = hashcode;
        currentBookmark.fileTitle = "Not implemented";
        currentBookmark.filePosition = bookStreamPosition;

        //add new bookmark to list

        //write bookmark to file
    }
Пример #4
0
        public void loadAdminBookmarks(Player player)
        {
            string       SQL     = "SELECT * FROM `admin_bookmark` WHERE `playerid` = ?id";
            MySqlCommand command = new MySqlCommand(SQL, this._mySqlConnection);

            command.Parameters.AddWithValue("?id", player.playerId);

            MySqlDataReader reader = command.ExecuteReader();

            if (reader.HasRows)
            {
                while (reader.Read())
                {
                    bookmark bookmark = new bookmark();
                    bookmark.continent = (int)reader.GetValue(reader.GetOrdinal("continent"));
                    bookmark.x         = (float)reader.GetValue(reader.GetOrdinal("x"));
                    bookmark.y         = (float)reader.GetValue(reader.GetOrdinal("y"));
                    bookmark.z         = (float)reader.GetValue(reader.GetOrdinal("z"));
                    bookmark.name      = reader.GetValue(reader.GetOrdinal("name")).ToString();
                    player.AdminBookmarks.Add(bookmark);
                }
            }
            reader.Close();
        }
Пример #5
0
        public ServiceManager(
            NodeContainer container, CacheStorage storage, Logger logger, TimerManager timerManager,
            BoundServiceManager boundServiceManager,
            machoNet machoNet,
            objectCaching objectCaching,
            alert alert,
            authentication authentication,
            character character,
            userSvc userSvc,
            charmgr charmgr,
            config config,
            dogmaIM dogmaIM,
            invbroker invbroker,
            warRegistry warRegistry,
            station station,
            map map,
            account account,
            skillMgr skillMgr,
            contractMgr contractMgr,
            corpStationMgr corpStationMgr,
            bookmark bookmark,
            LSC LSC,
            onlineStatus onlineStatus,
            billMgr billMgr,
            facWarMgr facWarMgr,
            corporationSvc corporationSvc,
            clientStatsMgr clientStatsMgr,
            voiceMgr voiceMgr,
            standing2 standing2,
            tutorialSvc tutorialSvc,
            agentMgr agentMgr,
            corpRegistry corpRegistry,
            marketProxy marketProxy,
            stationSvc stationSvc,
            certificateMgr certificateMgr,
            jumpCloneSvc jumpCloneSvc,
            LPSvc LPSvc,
            lookupSvc lookupSvc,
            insuranceSvc insuranceSvc,
            slash slash,
            ship ship,
            corpmgr corpmgr,
            repairSvc repairSvc,
            reprocessingSvc reprocessingSvc,
            ramProxy ramProxy,
            factory factory)
        {
            this.Container           = container;
            this.CacheStorage        = storage;
            this.BoundServiceManager = boundServiceManager;
            this.TimerManager        = timerManager;
            this.Logger = logger;
            this.Log    = this.Logger.CreateLogChannel("ServiceManager");

            // store all the services
            this.machoNet        = machoNet;
            this.objectCaching   = objectCaching;
            this.alert           = alert;
            this.authentication  = authentication;
            this.character       = character;
            this.userSvc         = userSvc;
            this.charmgr         = charmgr;
            this.config          = config;
            this.dogmaIM         = dogmaIM;
            this.invbroker       = invbroker;
            this.warRegistry     = warRegistry;
            this.station         = station;
            this.map             = map;
            this.account         = account;
            this.skillMgr        = skillMgr;
            this.contractMgr     = contractMgr;
            this.corpStationMgr  = corpStationMgr;
            this.bookmark        = bookmark;
            this.LSC             = LSC;
            this.onlineStatus    = onlineStatus;
            this.billMgr         = billMgr;
            this.facWarMgr       = facWarMgr;
            this.corporationSvc  = corporationSvc;
            this.clientStatsMgr  = clientStatsMgr;
            this.voiceMgr        = voiceMgr;
            this.standing2       = standing2;
            this.tutorialSvc     = tutorialSvc;
            this.agentMgr        = agentMgr;
            this.corpRegistry    = corpRegistry;
            this.marketProxy     = marketProxy;
            this.stationSvc      = stationSvc;
            this.certificateMgr  = certificateMgr;
            this.jumpCloneSvc    = jumpCloneSvc;
            this.LPSvc           = LPSvc;
            this.lookupSvc       = lookupSvc;
            this.insuranceSvc    = insuranceSvc;
            this.slash           = slash;
            this.ship            = ship;
            this.corpmgr         = corpmgr;
            this.repairSvc       = repairSvc;
            this.reprocessingSvc = reprocessingSvc;
            this.ramProxy        = ramProxy;
            this.factory         = factory;
        }