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()); }
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(); }
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(); }
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(); }
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()); }
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(); }
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(); }
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(); }