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