コード例 #1
0
        public static void Delete <T>(this FrameModalProxy <T> container, DeleteSymbol <T> symbol, bool consumeAlert = true)
            where T : Entity
        {
            container.OperationClick(symbol);
            if (consumeAlert)
            {
                container.Selenium.CloseMessageModal(MessageModalButton.Yes);
            }

            container.WaitNotVisible();
        }
コード例 #2
0
        public FrameModalProxy <T> ConstructFrom <F, T>(ConstructSymbol <T> .From <F> constructSymbol, bool shouldDisapear = false)
            where F : Entity
            where T : Entity
        {
            var lites = ResultTable.SelectedEntities();

            var modal = Operation(constructSymbol).WaitVisible().CaptureOnClick();

            var result = new FrameModalProxy <T>(modal);

            result.Disposing += okPressed =>
            {
                if (shouldDisapear)
                {
                    ResultTable.WaitNoVisible(lites);
                }
                else
                {
                    ResultTable.WaitSuccess(lites);
                }
            };

            return(result);
        }