반응형

맥을 사용 할 때 트랙패드를 사용할 때 화면을 미는듯 아주 편리하게 사용합니다.
하지만, 마우스를 사용할 때는 스크롤 방향이 움직임 방향으로 하는 것이 익숙한데 트랙패드와 반대 방향이 됩니다. 이 문제를 해결해줄 수 있는 프로그램 scroll reverser라는 프로그램을 꾸준히 잘사용해 오고 있습니다.

맥 모하비 업그레이드 후에는 아래오 같이 보안 및 개인 정보 보호에서 Scroll Reverser 를 체크 설정을 다시 해줘야 합니다.


그렇지 않으면, 메뉴바에서 아이콘이 제대로 나타지 않거나 작동이 안 될 수 있습니다.


프로그램 다운 링크

반응형
반응형
The following is a simple example of declaring and using a delegate. Notice that both the delegate, 
Del, and the associated method, MultiplyNumbers, have the same signature 

// Declare a delegate
delegate void Del(int i, double j); class MathClass { static void Main() { MathClass m = new MathClass(); // Delegate instantiation using "MultiplyNumbers" Del d = m.MultiplyNumbers; // Invoke the delegate object. System.Console.WriteLine("Invoking the delegate using 'MultiplyNumbers':"); for (int i = 1; i <= 5; i++) { d(i, 2); } // Keep the console window open in debug mode. System.Console.WriteLine("Press any key to exit."); System.Console.ReadKey(); } // Declare the associated method. void MultiplyNumbers(int m, double n) { System.Console.Write(m * n + " "); } } /* Output: Invoking the delegate using 'MultiplyNumbers': 2 4 6 8 10 */


반응형
반응형
C# 에서 Thread.Sleep 등을 이용해서 Delay를 줄 순 있지만...
프로그램이...간혹 멈춰 버리는 문제가 발생해서...

/// <summary>
/// Delay 함수 MS
/// </summary>
/// <param name="MS">(단위 : MS)
///
private static DateTime Delay(int MS)
{
   DateTime ThisMoment = DateTime.Now;
   TimeSpan duration = new TimeSpan(0, 0, 0, 0, MS);
   DateTime AfterWards = ThisMoment.Add(duration);
 
   while (AfterWards >= ThisMoment)
   {
       System.Windows.Forms.Application.DoEvents();
       ThisMoment = DateTime.Now;
   }
 
   return DateTime.Now;
}

메소드 작성하시고 나서 .. Delay를 걸어줄 곳 찾아서 Delay(100); 식으로 입력하시면 됩니다.
단위는 밀리초로.. 1000 = 1초 입니다.
반응형

+ Recent posts