Пример #1
0
        public async Task RunWithHourglassAsyncTest()
        {
            using (var ctrl = new ToolStripButton())
            {
                var done = false;
                await ctrl.RunWithHourglassAsync(async() => await Task.Run(() => done = true));

                Assert.IsTrue(done);
            }
        }