예제 #1
0
 private void CopyStyle(ISyncLabController syncLab)
 {
     new Task(() =>
     {
         ThreadUtil.WaitFor(1000);
         syncLab.DialogClickOk();
     }).Start();
     syncLab.Copy();
 }
예제 #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();
 }
예제 #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();
        }