Example #1
0
 /// <summary>
 /// event-worker for JournalEventRecieved-event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void JournalEventRecieved(object sender, FileScanner.EDJournalScanner.JournalEventArgs e)
 {
     try
     {
         switch (e.EventType)
         {
         case FileScanner.EDJournalScanner.JournalEvent.Fileheader:
             JournalHeaderObject = (JObject)e.Data;
             break;
         }
     }
     catch (Exception ex)
     {
         CErr.processError(ex, "Error while processing the JournalEventRecieved-event");
     }
 }
Example #2
0
        /// <summary>
        /// event-worker for JournalEventRecieved-event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void JournalEventRecieved(object sender, FileScanner.EDJournalScanner.JournalEventArgs e)
        {
            try
            {
                switch (e.EventType)
                {
                case FileScanner.EDJournalScanner.JournalEvent.Resurrect:
                    // Not sure at which body we are now. So we will delete this information.
                    Program.actualCondition.Body     = "";
                    Program.actualCondition.BodyType = "";
                    break;

                case FileScanner.EDJournalScanner.JournalEvent.Fileheader:
                    JournalHeaderObject = (JObject)e.Data;
                    Program.MainForm.RefreshHeadline();
                    break;
                }
            }
            catch (Exception ex)
            {
                CErr.processError(ex, "Error while processing the JournalEventRecieved-event");
            }
        }