// Token: 0x06000426 RID: 1062 RVA: 0x0002807C File Offset: 0x0002627C
 private static void a(object A_0, DocumentCollectionEventArgs A_1)
 {
     try
     {
         if (!(A_1.Document == null))
         {
             using (A_1.Document.a())
             {
                 AvcPalette.a();
             }
             AvcPalette.b();
             if (AvcPalette.b)
             {
                 AvcPalette.b(A_1.Document);
             }
         }
     }
     catch (CancelException)
     {
         ah.c();
     }
     catch (WarningException ex)
     {
         ah.a(ex.Message);
     }
     catch (Exception a_)
     {
         ah.a(a_, "");
     }
 }
 // Token: 0x06000420 RID: 1056 RVA: 0x00027E1C File Offset: 0x0002601C
 private static void a(object A_0, EventArgs A_1)
 {
     try
     {
         if (A_1 == null || !(A_0 is Document))
         {
             AvcPalette.b();
         }
         else
         {
             AvcPalette.a();
             AvcPalette.b();
             AvcPalette.a(A_0 as Document);
         }
     }
     catch (CancelException)
     {
         ah.c();
     }
     catch (WarningException ex)
     {
         ah.a(ex.Message);
     }
     catch (Exception a_)
     {
         AvcPalette.b();
         ah.a(a_, "");
     }
 }
 // Token: 0x0600041B RID: 1051 RVA: 0x00027CBC File Offset: 0x00025EBC
 private static void a(object A_0, PaletteSetStateEventArgs A_1)
 {
     try
     {
         if (A_1.NewState == null && AvcPalette.b)
         {
             AvcPalette.b();
             AvcPalette.b(Application.DocumentManager.MdiActiveDocument);
             AvcPalette.b = false;
         }
         else if (A_1.NewState == 1 && !AvcPalette.b)
         {
             AvcPalette.c(Application.DocumentManager.MdiActiveDocument);
             AvcPalette.b = true;
         }
     }
     catch (Exception a_)
     {
         ah.a(a_, "");
     }
 }