using LittleRabbit.LittleRabbitForms.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 LittleRabbit.LittleRabbitForms.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>("limited_sales_custom_names", SeckillingAndLimitedSalesForm.CustomActivityNames); this.Close(); } } }