Ejemplo n.º 1
0
        /// <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();
            }
        }
Ejemplo n.º 2
0
 /// <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();
 }