/// <summary> /// Handles the save and back button being pressed on the <see cref="Views.ExpenseAdd"/> 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 = SaveAddExpense(); if (success) { ExpenseAdd.Owner.Show(); ExpenseAdd.Close(); } }
/// <summary> /// Handles the cancel button being pressed on the <see cref="Views.ExpenseAdd"/> form /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">Event arguments</param> public static void ExpenseCancelClick(object sender, EventArgs e) { ExpenseAdd.Owner.Show(); ExpenseAdd.Close(); }