old_flsystem/类库/Grant.Framework/OnlineRenewalForm.cs

48 lines
1.1 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 OnlineRenewalForm : BaseForm
{
public int type = 1;
public OnlineRenewalForm(string cardname)
{
InitializeComponent();
textEdit1.Text = cardname;
}
private void button1_Click(object sender, EventArgs e)
{
try
{
type = comboBox1.SelectedIndex + 1;
this.DialogResult = DialogResult.OK;
}
catch (Exception ex)
{
ShowError(ex);
}
}
private void button2_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
}
private void OnlineRenewalForm_Load(object sender, EventArgs e)
{
comboBox1.SelectedIndex = 1;
}
}
}