made QOL changes to refill edit
This commit is contained in:
parent
f83804237c
commit
63e5ad09fb
@ -47,8 +47,8 @@ namespace Louis__Pharmacy_CNSA212_FP
|
||||
|
||||
dgvRefills.DataSource = ds.Tables[0];
|
||||
}
|
||||
|
||||
private void frmRefill_reLoad(object sender, EventArgs e)
|
||||
|
||||
public void frmRefill_reLoad(object sender, EventArgs e)
|
||||
{
|
||||
int rxID = 0;
|
||||
|
||||
@ -70,7 +70,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
||||
|
||||
refillID = (row.Cells[0].Value).ToString();
|
||||
|
||||
frmRefillAdd add = new frmRefillAdd(false);
|
||||
frmRefillAdd add = new frmRefillAdd(false, this);
|
||||
add.MdiParent = MdiParent;
|
||||
add.StartPosition = FormStartPosition.CenterScreen;
|
||||
add.Show();
|
||||
|
@ -16,9 +16,11 @@ namespace Louis__Pharmacy_CNSA212_FP
|
||||
private static bool isAdd;
|
||||
public DataSet ds = new DataSet();
|
||||
public string currentID = "";
|
||||
|
||||
public frmRefillAdd(bool isNew)
|
||||
private frmRefill SourceForm;
|
||||
public frmRefillAdd(bool isNew, frmRefill refillform)
|
||||
{
|
||||
|
||||
SourceForm = refillform;
|
||||
isAdd = isNew;
|
||||
InitializeComponent();
|
||||
|
||||
@ -126,6 +128,9 @@ namespace Louis__Pharmacy_CNSA212_FP
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
SourceForm.frmRefill_reLoad(sender, e);
|
||||
Close();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user