Esempio n. 1
0
    public IndexedCollection Stack(int SlotID)
    {
        if (!zCol.ContainsKey(SlotID))
        {
            zCol.Add(SlotID, new IndexedCollection());
        }

        return((IndexedCollection)zCol.Item(SlotID));
    }
Esempio n. 2
0
    //internal bool Remove(string ServerSID = "")
    //{
    //    if (ServerSID.Length == 0) { return Remove(-1); }
    //    return Remove(zServers.GetID(ServerSID));
    //}

    internal IndexedCollection Stack(int ServerID, int SlotID)
    {
        if (!SlotExist(SlotID))
        {
            return(null);
        }
        if (Servers.Item(ServerID) == null)
        {
            return(null);
        }

        if (!zStacks.ContainsKey(ServerID))
        {
            zStacks.Add(ServerID, new VirtualStack());
        }

        VirtualStack zItem = (VirtualStack)zStacks.Item(ServerID);

        return(zItem.Stack(SlotID));
    }
Esempio n. 3
0
 internal VirtualServer Item(int ServerID)
 {
     return((VirtualServer)zServers.Item(ServerID));
 }