made QOL changes to refill edit

This commit is contained in:
EggMan20339 2024-02-23 09:46:49 -05:00
parent f83804237c
commit 63e5ad09fb
2 changed files with 10 additions and 5 deletions

View File

@ -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();

View File

@ -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)
{