// 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_, "");
     }
 }
 // Token: 0x06000425 RID: 1061 RVA: 0x00027F9C File Offset: 0x0002619C
 private static void b(object A_0, DocumentCollectionEventArgs A_1)
 {
     try
     {
         if (A_1.Document == null)
         {
             if (AvcPalette.a != null && AvcPalette.b)
             {
                 AvcPalette.a.Visible = false;
                 AvcPalette.d         = true;
             }
         }
         else
         {
             if (AvcPalette.a != null && AvcPalette.b && !AvcPalette.d)
             {
                 AvcPalette.c(A_1.Document);
             }
             if (AvcPalette.d && AvcPalette.a != null && !AvcPalette.b)
             {
                 AvcPalette.d         = false;
                 AvcPalette.a.Visible = true;
             }
         }
     }
     catch (CancelException)
     {
         ah.c();
     }
     catch (WarningException ex)
     {
         ah.a(ex.Message);
     }
     catch (Exception a_)
     {
         ah.a(a_, "");
     }
 }
 public static void AvcPaletteCommand()
 {
     try
     {
         y.a();
         if (AvcPalette.a == null || AvcPalette.a.IsDisposed)
         {
             CultureInfo currentUICulture = Thread.CurrentThread.CurrentUICulture;
             if (h.e())
             {
                 CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
                 if (currentUICulture != currentCulture)
                 {
                     Thread.CurrentThread.CurrentUICulture = currentCulture;
                 }
             }
             try
             {
                 AvcPalette.c               = new a4();
                 AvcPalette.a               = new PaletteSet("A>V>C>", "AvcPalette", new Guid("29E0BFF2-50E4-4F95-976F-54206038D36E"));
                 AvcPalette.a.Style         = 62;
                 AvcPalette.a.Style        |= 128;
                 AvcPalette.a.MinimumSize   = new Size(150, 25);
                 AvcPalette.a.Size          = new Size(200, 100);
                 AvcPalette.a.StateChanged += new PaletteSetStateEventHandler(AvcPalette.a);
                 AvcPalette.a.EnableTransparency(true);
                 AvcPalette.a.Icon = Resources.Kit;
                 AvcPalette.a.Add("A>V>C>", AvcPalette.c);
                 AvcPalette.d();
                 AvcPalette.a.Visible = true;
             }
             finally
             {
                 if (currentUICulture != Thread.CurrentThread.CurrentUICulture)
                 {
                     Thread.CurrentThread.CurrentUICulture = currentUICulture;
                 }
             }
         }
         else if (AvcPalette.b)
         {
             AvcPalette.a.Close();
             AvcPalette.a.Visible = false;
             AvcPalette.c();
         }
         else
         {
             AvcPalette.a.Activate(0);
             AvcPalette.d();
             AvcPalette.a.Visible = true;
             p.c.i();
         }
     }
     catch (CancelException)
     {
         ah.c();
     }
     catch (WarningException ex)
     {
         ah.a(ex.Message);
     }
     catch (Exception a_)
     {
         ah.a(a_, "");
     }
 }