mirror of https://github.com/logchan/chuni-hands
make ReSharper happy
parent
b1e8930bb4
commit
63d3d7edc2
|
@ -1,2 +1,3 @@
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=BROKENITHM/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=chuni/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
|
@ -20,7 +20,7 @@ namespace chuni_hands {
|
|||
data[i] = (byte) (sensors[i].Active ? 0x80 : 0x00);
|
||||
}
|
||||
|
||||
_accessor.WriteArray<byte>(0, data, 0, 6);
|
||||
_accessor.WriteArray(0, data, 0, 6);
|
||||
}
|
||||
|
||||
private static void Initialize() {
|
||||
|
|
|
@ -15,16 +15,16 @@ namespace chuni_hands {
|
|||
private const string ConfigFile = "chuni-hands.json";
|
||||
|
||||
private VideoCapture _capture;
|
||||
private Config _config = new Config();
|
||||
private volatile bool _closing = false;
|
||||
private readonly List<Sensor> _sensors = new List<Sensor>(5);
|
||||
private readonly Mat _mat = new Mat();
|
||||
private byte[] _matData = new byte[0];
|
||||
private readonly List<Sensor> _sensors = new List<Sensor>(5);
|
||||
private Task _captureTask;
|
||||
private bool _hasPendingReset = false;
|
||||
private HttpClient _http = new HttpClient();
|
||||
|
||||
public Config Config => _config;
|
||||
private Task _captureTask;
|
||||
private volatile bool _closing = false;
|
||||
|
||||
private readonly Config _config = new Config();
|
||||
private readonly HttpClient _http = new HttpClient();
|
||||
|
||||
public MainWindow() {
|
||||
if (File.Exists(ConfigFile)) {
|
||||
|
|
|
@ -11,8 +11,8 @@ namespace chuni_hands {
|
|||
public int Size => _config.SensorSize;
|
||||
|
||||
private Mat _startValue;
|
||||
private Config _config;
|
||||
private int _id;
|
||||
private readonly Config _config;
|
||||
private readonly int _id;
|
||||
|
||||
public Sensor(int id, Config config) {
|
||||
_id = id;
|
||||
|
|
Loading…
Reference in New Issue