37 lines
1.1 KiB
C#
37 lines
1.1 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 GroupBuyCustomActivityNameForm : LRBaseForm
|
|
{
|
|
public GroupBuyCustomActivityNameForm()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.Load += GroupBuyCustomActivityNameForm_Load;
|
|
}
|
|
|
|
private void GroupBuyCustomActivityNameForm_Load(object sender, EventArgs e)
|
|
{
|
|
this.textBoxX1.Text = string.Join("\r\n", GroupBuyForm.CustomActivityNames) + "\r\n";
|
|
}
|
|
|
|
private void btnSave_Click(object sender, EventArgs e)
|
|
{
|
|
GroupBuyForm.CustomActivityNames = this.textBoxX1.Text.Trim().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
|
NaiBa.Util.Helper.ConfigHelper.SaveConfig<List<string>>("group_buy_custom_names", GroupBuyForm.CustomActivityNames);
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|