Files
KJD_WebService/TEMUKJD/KJDForms/SalesCenterForms/LimitedSalesActivityNameForm.cs
T

37 lines
1.2 KiB
C#

using TemuKJD.KJDForms.BaseForms;
using NaiBa.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TemuKJD.KJDForms.SalesCenterForms
{
public partial class LimitedSalesActivityNameForm : LRBaseForm
{
public LimitedSalesActivityNameForm()
{
InitializeComponent();
this.Load += GroupBuyCustomActivityNameForm_Load;
}
private void GroupBuyCustomActivityNameForm_Load(object sender, EventArgs e)
{
this.textBoxX1.Text = string.Join("\r\n", SeckillingAndLimitedSalesForm.CustomActivityNames) + "\r\n";
}
private void btnSave_Click(object sender, EventArgs e)
{
SeckillingAndLimitedSalesForm.CustomActivityNames = this.textBoxX1.Text.Trim().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
NaiBa.Util.Helper.ConfigHelper.SaveConfig<List<string>>("limited_sales_custom_names", SeckillingAndLimitedSalesForm.CustomActivityNames);
this.Close();
}
}
}