Esempio n. 1
0
 protected async override Task<int> ExecuteAsync(AsyncCodeActivityContext context)
 {
     var el = Element.Get(context);
     var blocking = Blocking.Get(context);
     var duration = Duration.Get(context);
     await el.Highlight(blocking, System.Drawing.Color.Red, duration);
     return 13;
 }
Esempio n. 2
0
        protected async override Task <int> ExecuteAsync(AsyncCodeActivityContext context)
        {
            var el       = Element.Get(context);
            var blocking = Blocking.Get(context);
            var duration = Duration.Get(context);

            if (Duration == null || Duration.Expression == null)
            {
                duration = TimeSpan.FromSeconds(3);
            }
            await el.Highlight(blocking, System.Drawing.Color.Red, duration);

            return(13);
        }
Esempio n. 3
0
 // Returns 'null' if returnPacket is FALSE, else returns received packet
 protected PacketReader WaitRecv(ushort header, bool returnPacket = false)
 {
     client.WaitScriptRecv(header, reader, returnPacket);
     return(reader.Get());
 }