コード例 #1
0
ファイル: frmMain.cs プロジェクト: rotators/fonline-mapgen
 private void pnlRenderBitmap_MouseDown(object sender, MouseEventArgs e)
 {
     if (mouseSelection.isDown)
     {
         return;
     }
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         mouseSelection.Click(new Point((int)((float)e.X / scaleFactor), (int)((float)e.Y / scaleFactor)));
         RefreshViewport();
     }
     else if (e.Button == System.Windows.Forms.MouseButtons.Right)
     {
         mouseSelection.isRightClickDown = true;
     }
 }