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.
40 lines
938 B
40 lines
938 B
using PEIS.Base;
|
|
using PEIS.Entity;
|
|
using PEIS.Event;
|
|
using PEIS.Presenter;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace PEIS.View.Base
|
|
{
|
|
public partial class PatientForm : ViewBase, IBasePatientView
|
|
{
|
|
public PatientForm()
|
|
{
|
|
InitializeComponent();
|
|
Shown += PatientForm_Shown;
|
|
}
|
|
|
|
protected override object CreatePresenter()
|
|
{
|
|
return new BasePatientPresenter(this);
|
|
}
|
|
|
|
private void PatientForm_Shown(object sender, EventArgs e)
|
|
{
|
|
OnGetBasePatient();
|
|
}
|
|
|
|
public event EventHandler<Args<BasePatient>> GetBasePatient;
|
|
|
|
protected virtual void OnGetBasePatient()
|
|
{
|
|
GetBasePatient?.Invoke(this, new Args<BasePatient> { });
|
|
}
|
|
|
|
public void ShowBasePatient(List<BasePatient> items)
|
|
{
|
|
DgcPatient.DataSource = items;
|
|
}
|
|
}
|
|
}
|
|
|