Files
KJD/TEMUKJD/KJDForms/ShopForms/FreightTemplateNameForm.cs
T

33 lines
1.1 KiB
C#

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.ShopForms
{
public partial class FreightTemplateNameForm : BaseForms.LRBaseForm
{
public FreightTemplateNameForm()
{
InitializeComponent();
}
private void FreightTemplateNameForm_Load(object sender, EventArgs e)
{
this.textBoxX1.Text = string.Join("\r\n", FreightTemplateForm.CustomFreightTemplateNames) + "\r\n";
}
private void btnSave_Click(object sender, EventArgs e)
{
FreightTemplateForm.CustomFreightTemplateNames = this.textBoxX1.Text.Trim().Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
NaiBa.Util.Helper.ConfigHelper.SaveConfig<List<string>>("freight_template_custom_names", FreightTemplateForm.CustomFreightTemplateNames);
this.Close();
}
}
}