Advertisement
HaLo2FrEeEk

boolean mockup

Jan 28th, 2011
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. bool topleft = false;
  2. bool topright = false;
  3. bool bottomleft = false;
  4. bool bottomright = false;
  5.  
  6. private void handleTopRight_MouseDown(object sender, MouseEventArgs e)
  7. {
  8.     topRight = true;
  9. }
  10.  
  11. private void handleTopRight_MouseUp(object sender, MouseEventArgs e)
  12. {
  13.     topRight = false;
  14. }
  15.  
  16. private void handleTopRight_MouseMove(object sender, MouseEventArgs e)
  17. {
  18.     if(topRight)
  19.     {
  20.         // Do move code...
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement