Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Test Async void

            var asyncVoid = new AsyncVoidMethod();

            asyncVoid.TestAsyncVoid();

            //Test Delay
            var progress = new Progress <int>();
            var count    = new ProgressLab();

            progress.ProgressChanged += (sender, args) =>
            {
                Console.WriteLine("Hola");
            };
            count.Counter(progress).GetAwaiter();
        }
 /// <summary>
 /// 読み込み中パネル(※間に合わせ)
 /// </summary>
 /// <param name="visible"></param>
 private void LoadingPanelVisible(bool visible)
 {
     ProgressPanel.Visible = visible;
     ProgressLab.Refresh();
 }