예제 #1
0
 private static void WmcObjectStore_StoreExpired(object sender, StoredObjectEventArgs e)
 {
     Logger.WriteError("A database recovery has been detected. Attempting to open new database.");
     Close();
     StoreExpired              = true;
     objectStore.StoreExpired -= WmcObjectStore_StoreExpired;
     if (WmcObjectStore != null)
     {
         Logger.WriteInformation("Successfully opened new store.");
     }
 }
예제 #2
0
        private static void TVstore_StoredObjectUpdated(object sender, StoredObjectEventArgs e)
        {
            // Get list of Recordings
            var libraryRecordings = TVlibrary.Recordings;
            // Check if Object ID matches a Recording
            var recording = libraryRecordings.FirstOrDefault(xx => xx.Id == e.ObjectId);

            // If Recording Exists
            if (recording != null)
            {
                // Send the Resume Point Update
                SendResumeUpdate(recording);
            }
        }
예제 #3
0
 private void Channel_Updated(object sender, StoredObjectEventArgs e)
 {
     if (ListView != null && ListView.InvokeRequired)
     {
         try
         {
             ListView?.Invoke(new Action(delegate
             {
                 ((myChannelLvi)ListView?.Items[Index]).PopulateMergedChannelItems();
                 ((myChannelLvi)ListView?.Items[Index]).ShowCustomLabels(Custom);
                 ListView?.Invalidate(Bounds);
             }));
         }
         catch
         {
             // do nothing
         }
     }
     else
     {
         PopulateMergedChannelItems();
         ShowCustomLabels(Custom);
     }
 }