コード例 #1
0
        /// <summary>
        /// Handles the save and back button being pressed on a <see cref="Views.PayersEdit"/> form
        /// </summary>
        /// <param name="sender">The sender object</param>
        /// <param name="e">Event arguments</param>
        public static void EditSaveAndBack(object sender, EventArgs e)
        {
            var success = EditPayer();

            if (success)
            {
                PayersEdit.Owner.Show();
                PayersEdit.Close();
            }
        }
コード例 #2
0
 /// <summary>
 /// Handles the cancel button being pressed on a <see cref="Views.PayersEdit"/> form
 /// </summary>
 /// <param name="sender">The sender object</param>
 /// <param name="e">Event arguments</param>
 public static void EditCancelClicked(object sender, EventArgs e)
 {
     PayersEdit.Owner.Show();
     PayersEdit.Close();
 }