Example #1
0
        public void execute()
        {
            Finish_EventArgs ev = new Finish_EventArgs();

            try
            {
                try
                {
                    run();
                }
                catch (Exception ex)
                {
                    ev = on_error(ex);
                }
                finally
                {
                    //Finish(this, ev);
                    messenger.send("item_finished", this, ev);
                }
            }
            catch (Exception ex)
            {
                Feedback.print(ex);
            }
        }
Example #2
0
        protected virtual Finish_EventArgs on_error(Exception ex)
        {
            //Feedback.print(input);
            Feedback.print(ex);
            //status = Operation_Status.Failure;
            Finish_EventArgs ev = new Finish_EventArgs();

            ev.success = false;
            //ev.errorMessage = "Error with item # " + index.ToString() + "";
            return(ev);
        }