 | View code sample |
| using System;
| | using System.Collections.Generic;
| | using System.ComponentModel;
| | using System.Data;
| | using System.Drawing;
| | using System.Text;
| | using System.Windows.Forms;
| | using MVP.Presenter;
| | using BusinessEntities;
| | namespace MVP.View
| | {
| | public partial class ETGView : Form, IPresenter
| | {
| | MVP.Presenter.Presenter _presenter = new MVP.Presenter.Presenter();
| |
| | public ETGView()
| | {
| | InitializeComponent();
| | }
| |
| | private void btnGetEmpInfo_Click(object sender, EventArgs e)
| | {
| | _presenter.GetEmployeeInfo(1);
| |
| | }
| |
| |
| |
| | public Employee EmployeeInfo
| | {
| | get
| | {
| | throw new Exception("The method or operation is not implemented.");
| | }
| | set
| | {
| | if (value != null)
| | {
| | MessageBox.Show(value.Name);
| | MessageBox.Show(value.Email);
| | }
| | }
| | }
| |
| |
| | }
| | }
| |
|