예제 #1
0
 private void pctPrevDeck_Click(object sender, EventArgs e)
 {
     if (currentDeckIt > 0 && currentDeck != newDeck)
     {
         currentDeckIt--;
     }
     currentDeck = decksList.data[currentDeckIt];
     UpdateDeckInfos();
     Console.WriteLine("deck ite : " + currentDeckIt.ToString());
 }
예제 #2
0
 private void pctNextDeck_Click(object sender, EventArgs e)
 {
     if (currentDeckIt < decksList.data.Count() - 1)
     {
         currentDeckIt++;
         currentDeck = decksList.data[currentDeckIt];
     }
     else if (currentDeckIt <= decksList.data.Count() - 1)
     {
         currentDeck = newDeck;
     }
     UpdateDeckInfos();
 }
예제 #3
0
        private void    InitializeDeckEditor()
        {
            ParserJSON    parser = new ParserJSON();
            RequestServer newreq = new RequestServer();

            String rsp = newreq.DeckAll(s.tokenConnection.Profiles[0].ToString(), s.tokenConnection.Tok);

            decksList = parser.DeckAll(rsp);
            if (decksList.data.Count > 0)
            {
                currentDeck = decksList.data[0];
            }
            else
            {
                currentDeck = newDeck;
            }
            UpdateDeckInfos();
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            ParserJSON    parser = new ParserJSON();
            RequestServer newreq = new RequestServer();

            decksList     = parser.DeckAll(newreq.DeckAll(s.tokenConnection.Profiles[0].ToString(), s.tokenConnection.Tok));
            currentDeckIt = 0;
            InitializeNewDeck();
            if (decksList.data.Count() > 0)
            {
                currentDeck = decksList.data[currentDeckIt];
            }
            else
            {
                currentDeck = newDeck;
            }
            UpdateDeckInfos();
        }
예제 #5
0
 private void pctPrevDeck_Click(object sender, EventArgs e)
 {
     if (currentDeckIt > 0 && currentDeck != newDeck)
         currentDeckIt--;
     currentDeck = decksList.data[currentDeckIt];
     UpdateDeckInfos();
     Console.WriteLine("deck ite : " + currentDeckIt.ToString());
 }
예제 #6
0
 private void pctNextDeck_Click(object sender, EventArgs e)
 {
     if (currentDeckIt < decksList.data.Count()-1)
     {
         currentDeckIt++;
         currentDeck = decksList.data[currentDeckIt];
     }
     else if (currentDeckIt <= decksList.data.Count()-1)
         currentDeck = newDeck;
     UpdateDeckInfos();
 }
예제 #7
0
        private void InitializeDeckEditor()
        {
            ParserJSON parser = new ParserJSON();
            RequestServer newreq = new RequestServer();

            String rsp = newreq.DeckAll(s.tokenConnection.Profiles[0].ToString(), s.tokenConnection.Tok);
            decksList = parser.DeckAll(rsp);
            if (decksList.data.Count > 0)
                currentDeck = decksList.data[0];
            else
                currentDeck = newDeck;
            UpdateDeckInfos();
        }
예제 #8
0
        private void button1_Click(object sender, EventArgs e)
        {
            ParserJSON parser = new ParserJSON();
            RequestServer newreq = new RequestServer();

            decksList = parser.DeckAll(newreq.DeckAll(s.tokenConnection.Profiles[0].ToString(), s.tokenConnection.Tok));
            currentDeckIt = 0;
            InitializeNewDeck();
            if (decksList.data.Count() > 0)
                currentDeck = decksList.data[currentDeckIt];
            else
                currentDeck = newDeck;
            UpdateDeckInfos();
        }