You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjClick/FormClientManager.cs

47 lines
1.1 KiB
C#

using DataBlockHelper.DBHelpers;
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 Mesnac.Action.ChemicalWeighing.LjClick
{
public partial class FormClientManager : Form
{
int index = 0;
public FormClientManager(int id)
{
InitializeComponent();
this.index = id;
var ls = DB2108Helper.GetClickEntities();
this.textBox8.Text = ls[id].ClickValue.ToString();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Dispose();
}
private void btnOK_Click(object sender, EventArgs e)
{
string str = textBox8.Text;
DB2108Helper.WriteClick(index, new DataBlockHelper.Entity.ClickEntity()
{
ClickValue = Convert.ToSingle(str)
});
this.Dispose();
}
}
}