WinFormTools/WinformGeneralDeveloperFrame/FrmBaseEdit.cs

43 lines
931 B
C#
Raw Normal View History

2021-04-13 17:46:18 +08:00
using DevExpress.XtraEditors;
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;
using WinformGeneralDeveloperFrame.Commons;
namespace WinformGeneralDeveloperFrame
{
public partial class FrmBaseEdit : DevExpress.XtraEditors.XtraForm
{
public FrmBaseEdit()
{
InitializeComponent();
}
private void btnOK_Click(object sender, EventArgs e)
{
if (Save())
"保存成功".ShowTips();
}
private void btnCanel_Click(object sender, EventArgs e)
{
Exit();
this.Close();
}
public virtual bool Save()
{
return false;
}
public virtual void Exit()
{
}
}
}