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.
56 lines
1.4 KiB
56 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Stone.WinModule.Standard
|
|
{
|
|
public partial class frmMessageQuestion : Form
|
|
{
|
|
private int BillType = 0;
|
|
public frmMessageQuestion()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
public frmMessageQuestion(int billType)
|
|
{
|
|
InitializeComponent();
|
|
BillType = billType;
|
|
}
|
|
|
|
public DialogResult ShowQuestion(string msg)
|
|
{
|
|
this.lblMessage.Text = msg;
|
|
this.DialogResult = DialogResult.None;
|
|
return this.ShowDialog();
|
|
}
|
|
|
|
private void btnOK_Click(object sender, EventArgs e)
|
|
{
|
|
if (BillType == 0)
|
|
{
|
|
frmPasswordVerify frm = new frmPasswordVerify();
|
|
frm.UserName = User.UserInfo.UserName;
|
|
if (frm.ShowDialog() == DialogResult.OK)
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.No;
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|