41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
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 OffsetFrm : Form
|
|
{
|
|
public OffsetFrm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OffsetFrm_Load(object sender, EventArgs e)
|
|
{
|
|
this.numericUpDown1.Value = (decimal)Config.DataOffset1;
|
|
this.numericUpDown2.Value = (decimal)Config.DataOffset2;
|
|
this.numericUpDown3.Value = (decimal)Config.DataOffset3;
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
Config.DataOffset1 = (double)this.numericUpDown1.Value;
|
|
Config.DataOffset2 = (double)this.numericUpDown2.Value;
|
|
Config.DataOffset3 = (double)this.numericUpDown3.Value;
|
|
IniFile ini = new IniFile(Config.appBasePath + "\\SysConfig.ini");
|
|
//[LOG]
|
|
ini.Write("HouDuOffset", "DataOffset1", (double)this.numericUpDown1.Value);
|
|
ini.Write("HouDuOffset", "DataOffset2", (double)this.numericUpDown2.Value);
|
|
ini.Write("HouDuOffset", "DataOffset3", (double)this.numericUpDown3.Value);
|
|
}
|
|
}
|
|
}
|