コード例 #1
0
 // 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_, "");
     }
 }
コード例 #2
0
        // Token: 0x06000423 RID: 1059 RVA: 0x00027EF0 File Offset: 0x000260F0
        private static void a(Document A_0)
        {
            if (A_0 == null)
            {
                return;
            }
            PromptSelectionResult promptSelectionResult = null;

            try
            {
                promptSelectionResult = A_0.Editor.SelectImplied();
            }
            catch (Exception ex)
            {
                if (ex.ErrorStatus != 2)
                {
                    throw ex;
                }
                promptSelectionResult = null;
            }
            if (promptSelectionResult == null || promptSelectionResult.Status != 5100)
            {
                return;
            }
            AvcPalette.a(new List <ObjectId>(promptSelectionResult.Value.GetObjectIds()));
        }
コード例 #3
0
 // 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_, "");
     }
 }
コード例 #4
0
 // 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_, "");
     }
 }
コード例 #5
0
 // 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_, "");
     }
 }
コード例 #6
0
 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_, "");
     }
 }