public void PrizeComplete(PrizeModel prize)
 {
     //Get back from the form a PrizeModel
     selectedPrizes.Add(prize);
     WireUpLists();
 }
Exemple #2
0
 public void PrizeComplete(PrizeModel model)
 {
     selectedPrizes.Add(model);
     WireUpList();
 }
        // TODO - Make CreatePrize method save to text file
        /// <summary>
        /// Saves a new prize to the text file
        /// </summary>
        /// <param name="model">The prize information</param>
        /// <returns>The prize information, including the unique identifier</returns>
        public PrizeModel CreatePrize(PrizeModel model)
        {
            model.Id = 1;

            return(model);
        }
 public void PrizeComplete(PrizeModel prize)
 {
     selectedPrizes.Add(prize);
     WireUpLists();
 }
Exemple #5
0
 // TODO - Make the CreatePrize method actually save to the databasw
 /// <summary>
 /// Saves the new Prize to the database
 /// </summary>
 /// <param name="model">The Prize info</param>
 /// <returns>The Prize information, including the unique Identifier</returns>
 public PrizeModel CreatePrize(PrizeModel model)
 {
     using (IDbConnection connection = new System.Data.SqlClient.SqlConnector(GlobalConfig.CnnString("Tournaments")))
     {
     }
 }
Exemple #6
0
 public void PrizeComplete(PrizeModel model)
 {
     selectedPrizes.Add(model);
     InitializeList();
 }
 public void PrizeComplete(PrizeModel model)
 {
     // Take the PrizeModel and put it onto our list of selected prizes
     selectedPrizes.Add(model);
     WireUpLists();
 }
Exemple #8
0
 public void DeletePrize(PrizeModel model)
 {
     throw new NotImplementedException();
 }
Exemple #9
0
 public IActionResult Prize([FromBody] PrizeModel prize)
 {
     _adminService.AddOrUpdatePrize(prize);
     return(Ok("The prize was added/updated."));
 }
        public void PrizeComplete(PrizeModel model)
        {
            selectedPrizes.Add(model);

            RefreshLists();
        }
Exemple #11
0
 //TO DO - Wire up the CreatePrize for text files
 public PrizeModel CreatePrize(PrizeModel model)
 {
     throw new NotImplementedException();
 }
 public void PrizeComplete(PrizeModel model)
 {
     // Get back a PrizeModel from the window
     // Take the PrizeModel and put it into the observable collection of selected prizes
     SelectedPrizes.Add(model);
 }
        public void PrizeComplete(PrizeModel model)
        {
            selectedPrizes.Add(model);

            prizesListBox.Refresh();
        }
Exemple #14
0
 public PrizeModel CreatePrize(PrizeModel model)
 {
     // TODO - Create method to save new prize in db.
     model.Id = 1;
     return(model);
 }
 public void PrizeComplete(PrizeModel model)
 {
     // Take the PrizeModel and put it in the selectedPrizes box
     selectedPrizes.Add(model);
     WireUpLists();
 }
Exemple #16
0
 public PrizeModel CreatePrize(PrizeModel model)
 {
     return(model);
 }