Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         formatsDS = decksService.GetAllFormats();
         formatsGrid.DataSource = formatsDS;
         formatsGrid.DataBind();
         Cache["Formats"] = formatsDS;
     }
 }
 public void LoadDropDpwnLists()
 {
     try
     {
         Utilities.AddToDropDownList(deckService.GetAllDeckNames(), nameDropDownList, "Decks", "deckName", "deckId");
         Utilities.AddToDropDownList(deckService.GetAllFormats(), formatDropDownList, "Formats", "formatName", "formatId");
     }
     catch (Exception ex)
     {
     }
 }
 private void AddFormats()
 {
     try
     {
         DecksService cardsServices = new DecksService();
         DataSet      cardsDataSet  = cardsServices.GetAllFormats();
         Utilities.AddToDropDownList(cardsDataSet, formatsDropDownList, "Formats", "formatName", "formatId");
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.StackTrace);
     }
 }