private void btnAddFee_Click(object sender, EventArgs e) { DataTable holder = dbquery.User(uname); uname = holder.Rows[0]["last_name"].ToString() + ", " + holder.Rows[0]["first_name"].ToString(); addfee = new Accounting.frmAddFee(true); addfee.syear = lblsy.Text; addfee.uname = uname; addfee.reference = this; addfee.Show(); }
private void btnUpdateFee_Click(object sender, EventArgs e) { if (checkBox2.Checked) { MessageBox.Show("You Are Updating An Archived Fee, Proceed?", "WARNING!", MessageBoxButtons.OK, MessageBoxIcon.Warning); addfee = new Accounting.frmAddFee(false, dic); addfee.uname = uname; addfee.syear = lblsy.Text; addfee.dtadd = dt; addfee.Show(); addfee.reference = this; } else { addfee = new Accounting.frmAddFee(false, dic); addfee.uname = uname; addfee.syear = lblsy.Text; addfee.dtadd = dt; addfee.Show(); addfee.reference = this; } }