New function add / change accountrecord
This commit is contained in:
@ -8,6 +8,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WinFormDi;
|
||||
|
||||
namespace WinFormDiApp
|
||||
{
|
||||
@ -17,12 +18,14 @@ namespace WinFormDiApp
|
||||
private readonly frmPayments _payments;
|
||||
private readonly frmReadPayments _readPayments;
|
||||
private readonly frmSearchData _searchData;
|
||||
private readonly frmEditPayment _editPayment;
|
||||
|
||||
public MainWindow(
|
||||
IMessages messages,
|
||||
frmPayments payments,
|
||||
frmReadPayments readPayments,
|
||||
frmSearchData searchData
|
||||
frmSearchData searchData,
|
||||
frmEditPayment editPayment
|
||||
)
|
||||
{
|
||||
InitializeComponent();
|
||||
@ -30,6 +33,7 @@ namespace WinFormDiApp
|
||||
_payments = payments;
|
||||
_readPayments = readPayments;
|
||||
_searchData = searchData;
|
||||
_editPayment = editPayment;
|
||||
}
|
||||
|
||||
private void MainWindow_Load(object sender, EventArgs e)
|
||||
@ -62,5 +66,10 @@ namespace WinFormDiApp
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
_editPayment.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user