private void stop_Click(object sender, RoutedEventArgs e) { stop.IsEnabled = false; teachMe.IsEnabled = true; MouseHook.Stop(); KBHook.Stop(); }
private void teachMe_Click(object sender, RoutedEventArgs e) { stop.IsEnabled = true; teachMe.IsEnabled = false; this.WindowState = WindowState.Minimized; MouseHook.Start(); KBHook.Start(); }