chore: use file-scoped namespace
This commit is contained in:
1 parent
99d2fafb72
commit
bbf1b7d4c6
748 files changed
+57929
-58678
No files matched your search
@@ -1,13 +1,12 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace HandyControl.Data
|
||||
{
|
||||
public class CancelRoutedEventArgs : RoutedEventArgs
|
||||
{
|
||||
public CancelRoutedEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source)
|
||||
{
|
||||
}
|
||||
namespace HandyControl.Data;
|
||||
|
||||
public bool Cancel { get; set; }
|
||||
public class CancelRoutedEventArgs : RoutedEventArgs
|
||||
{
|
||||
public CancelRoutedEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public bool Cancel { get; set; }
|
||||
}
|
||||
@@ -1,19 +1,18 @@
|
||||
using System.Windows;
|
||||
|
||||
|
||||
namespace HandyControl.Data
|
||||
namespace HandyControl.Data;
|
||||
|
||||
public class FunctionEventArgs<T> : RoutedEventArgs
|
||||
{
|
||||
public class FunctionEventArgs<T> : RoutedEventArgs
|
||||
public FunctionEventArgs(T info)
|
||||
{
|
||||
public FunctionEventArgs(T info)
|
||||
{
|
||||
Info = info;
|
||||
}
|
||||
|
||||
public FunctionEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source)
|
||||
{
|
||||
}
|
||||
|
||||
public T Info { get; set; }
|
||||
Info = info;
|
||||
}
|
||||
}
|
||||
|
||||
public FunctionEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source)
|
||||
{
|
||||
}
|
||||
|
||||
public T Info { get; set; }
|
||||
}
|
||||
@@ -1,18 +1,17 @@
|
||||
using System;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace HandyControl.Data
|
||||
namespace HandyControl.Data;
|
||||
|
||||
public class KeyboardHookEventArgs : EventArgs
|
||||
{
|
||||
public class KeyboardHookEventArgs : EventArgs
|
||||
public bool IsSystemKey { get; }
|
||||
|
||||
public Key Key { get; }
|
||||
|
||||
public KeyboardHookEventArgs(int virtualKey, bool isSystemKey)
|
||||
{
|
||||
public bool IsSystemKey { get; }
|
||||
|
||||
public Key Key { get; }
|
||||
|
||||
public KeyboardHookEventArgs(int virtualKey, bool isSystemKey)
|
||||
{
|
||||
IsSystemKey = isSystemKey;
|
||||
Key = KeyInterop.KeyFromVirtualKey(virtualKey);
|
||||
}
|
||||
IsSystemKey = isSystemKey;
|
||||
Key = KeyInterop.KeyFromVirtualKey(virtualKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,11 @@
|
||||
using System;
|
||||
using HandyControl.Tools.Interop;
|
||||
|
||||
namespace HandyControl.Data
|
||||
{
|
||||
internal class MouseHookEventArgs : EventArgs
|
||||
{
|
||||
public MouseHookMessageType MessageType { get; set; }
|
||||
namespace HandyControl.Data;
|
||||
|
||||
public InteropValues.POINT Point { get; set; }
|
||||
}
|
||||
}
|
||||
internal class MouseHookEventArgs : EventArgs
|
||||
{
|
||||
public MouseHookMessageType MessageType { get; set; }
|
||||
|
||||
public InteropValues.POINT Point { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user