/// <summary> /// Handles the save and back button being clicked on a <see cref="Views.PayeeAdd"/> form /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">Event arguments</param> public static void AddSaveAndBack(object sender, EventArgs e) { var success = AddPayee(); if (success) { PayeeAdd.Owner.Show(); PayeeAdd.Close(); } }
/// <summary> /// Handles a <see cref="Views.PayeeAdd"/> form being opened from a <see cref="PayeeViewForm"/> form /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">Event arguments</param> public static void AddPayeeClick(object sender, EventArgs e) { if (PayeeAdd == null) { PayeeAdd = new PayeeAdd(); PayeeAdd.FormClosed += PayeeAddViewOnClick; } PayeeAdd.Show(PayeeView); PayeeView.Hide(); }
/// <summary> /// Handles the cancel button being clicked on a <see cref="Views.PayeeAdd"/> form /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">Event arguments</param> public static void AddCancelClick(object sender, EventArgs e) { PayeeAdd.Owner.Show(); PayeeAdd.Close(); }