/// <summary> /// Handles the Command event of the DeleteButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.CommandEventArgs"/> instance containing the event data.</param> protected void DeleteButton_Command(object sender, CommandEventArgs e) { SkuEntryHelper skuEntrys = new SkuEntryHelper(PersistSkuEntrys); skuEntrys.RemoveSkuEntry(e.CommandArgument.ToString()); EntryList.DataSource = skuEntrys; EntryList.DataBind(); this.PersistSkuEntrys = skuEntrys.ToString(); }
/// <summary> /// Handles the Click event of the AddEntry control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void AddEntry_Click(object sender, EventArgs e) { SkuEntryHelper skuEntrys = new SkuEntryHelper(PersistSkuEntrys); skuEntrys.AddSkuEntry(SkuEntryFilter.SelectedEntryCode); EntryList.DataSource = skuEntrys; EntryList.DataBind(); this.PersistSkuEntrys = skuEntrys.ToString(); }