/// <summary> /// Handles the save and back button being pressed on a <see cref="Views.PayersAdd"/> 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 = AddNewPayer(); if (success) { PayersAdd.Owner.Show(); PayersAdd.Close(); } }
/// <summary> /// Handles a <see cref="Views.PayersAdd"/> form being opened from a <see cref="Views.PayerView"/> form /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">Event arguments</param> public static void AddPayerClicked(object sender, EventArgs e) { if (PayersAdd == null) { PayersAdd = new PayersAdd(); PayersAdd.FormClosed += PayerAddViewOnFormClosed; } PayersAdd.Show(PayerView); PayerView.Hide(); }
/// <summary> /// Handles the cancel button being pressed on a <see cref="Views.PayersAdd"/> form /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">Event arguments</param> public static void AddCancelClick(object sender, EventArgs e) { PayersAdd.Owner.Show(); PayersAdd.Close(); }