45 lines
961 B
C#
45 lines
961 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Louis__Pharmacy_CNSA212_FP
|
|
{
|
|
public partial class frmPhysician : Form
|
|
{
|
|
|
|
private bool isAdd;
|
|
private frmInfo SourceForm;
|
|
|
|
public frmPhysician(frmInfo sourceForm, bool isNew)
|
|
{
|
|
|
|
SourceForm = sourceForm;
|
|
|
|
isAdd = isNew;
|
|
InitializeComponent();
|
|
|
|
txtState.MaxLength = 2;
|
|
|
|
if (isNew)
|
|
{
|
|
lblDisPurpose.Text = @"Add Physician";
|
|
btnGO.Text = @"Create";
|
|
}
|
|
else
|
|
{
|
|
lblDisPurpose.Text = @"Edit Physician";
|
|
btnGO.Text = @"Update";
|
|
}
|
|
|
|
}
|
|
|
|
private void btnClose_Click(object sender, EventArgs e)
|
|
{
|
|
Close();
|
|
}
|
|
|
|
private void btnGO_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |