geboshi_V1/LeatherProject/LeatherApp/Page/EdgeOffserFrm.cs

35 lines
932 B
C#
Raw Normal View History

using Sunny.UI;
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 LeatherApp.Page
{
public partial class EdgeOffserFrm : Form
{
public EdgeOffserFrm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Config.EdgeOffset = (double)this.numericUpDown2.Value;
IniFile ini = new IniFile(Config.appBasePath + "\\SysConfig.ini");
//[LOG]
ini.Write("BOffset", "EdgeOffset", (double)this.numericUpDown2.Value);
}
private void EdgeOffserFrm_Load(object sender, EventArgs e)
{
this.numericUpDown2.Value = (decimal)Config.EdgeOffset;
}
}
}