Exemplo n.º 1
0
 /// <summary>
 /// Resetボタンのイベントハンドラ
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonReset_Click(object sender, EventArgs e)
 {
     ImgDisplay.Close();
     LGN_RF0.Close();
     LGN_RF1.Close();
     LGN_RF2.Close();
     LGN_RF3.Close();
     LGN_RF4.Close();
     LGN_RF5.Close();
     LGN_RF6.Close();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 非同期に描画のリフレッシュを実行
 /// </summary>
 private async void AsyncRefresh1()
 {
     await Task.Run(() =>
     {
         ImgDisplay = new ImgDisplayWindow();
         LGN_RF0    = new LGN_View(0);
         LGN_RF1    = new LGN_View(1);
         LGN_RF2    = new LGN_View(2);
         LGN_RF3    = new LGN_View(3);
         LGN_RF4    = new LGN_View(4);
         LGN_RF5    = new LGN_View(5);
         LGN_RF6    = new LGN_View(6);
         ImgDisplay.Show();
         LGN_RF0.Show();
         LGN_RF1.Show();
         LGN_RF2.Show();
         LGN_RF3.Show();
         LGN_RF4.Show();
         LGN_RF5.Show();
         LGN_RF6.Show();
         while (true)
         {
             if (DrawFlag_IMG)
             {
                 ImgDisplay.ImgRefresh();
                 LGN_RF0.DrawRefresh(bmp_RF0);
                 LGN_RF1.DrawRefresh(bmp_RF1);
                 LGN_RF2.DrawRefresh(bmp_RF2);
                 LGN_RF3.DrawRefresh(bmp_RF3);
                 LGN_RF4.DrawRefresh(bmp_RF4);
                 LGN_RF5.DrawRefresh(bmp_RF5);
                 LGN_RF6.DrawRefresh(bmp_RF6);
                 DrawFlag_IMG = false;
             }
             if (ReturnFlag)
             {
                 ImgDisplay.Close();
                 LGN_RF0.Close();
                 LGN_RF1.Close();
                 LGN_RF2.Close();
                 LGN_RF3.Close();
                 LGN_RF4.Close();
                 LGN_RF5.Close();
                 LGN_RF6.Close();
                 ReturnFlag = false;
                 return;
             }
         }
     });
 }