51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Text;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
using DevExpress.XtraEditors;
|
|||
|
using UI.Framework.Forms;
|
|||
|
|
|||
|
namespace Grant.Framework
|
|||
|
{
|
|||
|
public partial class RechargePointForm : BaseForm
|
|||
|
{
|
|||
|
public RechargePointForm(string username)
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
textBox1.Text = username;
|
|||
|
}
|
|||
|
|
|||
|
private void simpleButton1_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
this.DialogResult = DialogResult.No;
|
|||
|
}
|
|||
|
|
|||
|
public string username = string.Empty;
|
|||
|
public int point = 0;
|
|||
|
|
|||
|
private void simpleButton2_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
if (string.IsNullOrWhiteSpace(textBox1.Text)) throw new Exception("请填写充值账户!");
|
|||
|
username = textBox1.Text.Trim();
|
|||
|
point = (int)(numericUpDown1.Value * 100m);
|
|||
|
this.DialogResult = DialogResult.OK;
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
ShowError(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void RechargePointForm_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|