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 ButcherManageClient
|
|
{
|
|
public partial class SettingForm : Form
|
|
{
|
|
public SettingForm()
|
|
{
|
|
InitializeComponent();
|
|
uTextBoxWithPad1.Text = AppContext.Context.UrlConfig.ServerUrl;
|
|
}
|
|
|
|
private void cancelBtn_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void saveBtn_Click(object sender, EventArgs e)
|
|
{
|
|
AppContext.Context.UrlConfig.ServerUrl = this.uTextBoxWithPad1.Text.Trim();
|
|
AppContext.Context.Save();
|
|
MessageBox.Show("设置保存成功!");
|
|
}
|
|
}
|
|
}
|