コード例 #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();
        }