天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
1.9 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class TJDefaultDataSetNum : Form
{
public TJDefaultDataSetNum()
{
InitializeComponent();
}
/// <summary>
/// 设置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnSet_Click(object sender, EventArgs e)
{
if (txtDataSetNum.Text.Trim().Length == 0)
{
MessageBox.Show("设置的值不允许为空!");
}
else
{
//QM.Config.CustomConfig.SetItem("ShowDataCount", txtDataSetNum.Text);
QMAPP.WinForm.Common.LocalSetting.Settings["ShowDataCount"] = txtDataSetNum.Text;
QMAPP.WinForm.Common.LocalSetting.Settings["RowCount"] = txtRowCount.Text;
MessageBox.Show("设置成功!");
TJFrmPlace fplace = (TJFrmPlace)this.Owner;
fplace.GetInitData();
fplace.InitContainer();
this.Close();
}
}
private void txtDataSetNum_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar != '\b' && !Char.IsDigit(e.KeyChar))
{
e.Handled = true;
}
}
private void DefaultDataSetNum_Load(object sender, EventArgs e)
{
//txtDataSetNum.Text = QM.Config.CustomConfig.GetItem("ShowDataCount");
txtDataSetNum.Text = QMAPP.WinForm.Common.LocalSetting.Settings["ShowDataCount"];
txtRowCount.Text = QMAPP.WinForm.Common.LocalSetting.Settings["RowCount"];
}
}
}