Esempio n. 1
0
 private void CopyStyle(ISyncLabController syncLab, int[,] dialogItems)
 {
     WindowWatcher.Push("Copy Format", syncLab.Copy);
     for (int i = 0; i < dialogItems.GetLength(0); i++)
     {
         syncLab.DialogSelectItem(dialogItems[i, CategoryIndexPosition], dialogItems[i, FormatItemIndexPosition]);
     }
     WindowWatcher.Pop(syncLab.DialogClickOk);
 }
Esempio n. 2
0
 private void CopyStyle(ISyncLabController syncLab, int[,] dialogItems)
 {
     new Task(() =>
     {
         ThreadUtil.WaitFor(1000);
         for (int i = 0; i < dialogItems.GetLength(0); i++)
         {
             syncLab.DialogSelectItem(dialogItems[i, CategoryIndexPosition], dialogItems[i, FormatItemIndexPosition]);
         }
         syncLab.DialogClickOk();
     }).Start();
     syncLab.Copy();
 }
Esempio n. 3
0
        private void TestCopyCustomPerspectiveShadow(ISyncLabController syncLab)
        {
            PpOperations.SelectSlide(CustomPerspectiveShadowSlideNo);
            PpOperations.SelectShape(CustomPerspectiveShadow);

            // shadow item
            int categoryIndex = 3;
            int itemIndex     = 0;

            new Task(() =>
            {
                ThreadUtil.WaitFor(1000);
                syncLab.DialogSelectItem(categoryIndex, itemIndex);
                MessageBoxUtil.ExpectMessageBoxWillPopUp(SyncLabText.WarningDialogTitle,
                                                         SyncLabText.WarningSyncPerspectiveShadow, syncLab.DialogClickOk, "Ok");
            }).Start();
            syncLab.Copy();
        }