Skip to content

Commit 5ce2dad

Browse files
committed
First commit
1 parent b6833df commit 5ce2dad

98 files changed

Lines changed: 6875 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
# Object files
2+
*.o
3+
*.ko
4+
*.obj
5+
*.elf
6+
*.pyc
7+
8+
# Visual Studio Project Items:
9+
*.suo
10+
11+
# Precompiled Headers
12+
*.gch
13+
*.pch
14+
15+
# Libraries
16+
*.lib
17+
*.a
18+
*.la
19+
*.lo
20+
21+
# Shared objects (inc. Windows DLLs)
22+
#*.dll
23+
*.so
24+
*.so.*
25+
*.dylib
26+
27+
# Executables
28+
*/bin/*.exe
29+
*.out
30+
*.app
31+
*.i*86
32+
*.x86_64
33+
*.hex
34+
35+
# QC Cloud Setup Bash Files
36+
*.sh
37+
38+
# QC Config Files:
39+
# config.json
40+
41+
# QC-C-Specific
42+
*Engine/bin/Debug/cache/data/*.zip
43+
*/obj/*
44+
*/bin/*
45+
*Data/*
46+
*Docker/*
47+
*/Docker/*
48+
*Algorithm.Python/Lib/*
49+
*/[Ee]xtensions/*
50+
!**/Libraries/*
51+
52+
# C Debug Binaries
53+
*.pdb
54+
55+
## Ignore Visual Studio temporary files, build results, and
56+
## files generated by popular Visual Studio add-ons.
57+
58+
# User-specific files
59+
*.suo
60+
*.user
61+
*.userosscache
62+
*.sln.docstates
63+
*.userprefs
64+
65+
# Build results
66+
[Dd]ebug/
67+
[Dd]ebugPublic/
68+
[Rr]elease/
69+
[Rr]eleases/
70+
x64/
71+
x86/
72+
.vs/
73+
build/
74+
bld/
75+
[Bb]in/
76+
[Oo]bj/
77+
78+
# Roslyn cache directories
79+
*.ide/
80+
81+
# MSTest test Results
82+
[Tt]est[Rr]esult*/
83+
[Bb]uild[Ll]og.*
84+
85+
#NUNIT
86+
*.VisualState.xml
87+
TestResult.xml
88+
89+
# Build Results of an ATL Project
90+
[Dd]ebugPS/
91+
[Rr]eleasePS/
92+
dlldata.c
93+
94+
*_i.c
95+
*_p.c
96+
*_i.h
97+
*.ilk
98+
*.meta
99+
*.obj
100+
*.pch
101+
*.pdb
102+
*.pgc
103+
*.pgd
104+
*.rsp
105+
*.sbr
106+
*.tlb
107+
*.tli
108+
*.tlh
109+
*.tmp
110+
*.tmp_proj
111+
*.log
112+
*.vspscc
113+
*.vssscc
114+
.builds
115+
*.pidb
116+
*.svclog
117+
*.scc
118+
119+
# Chutzpah Test files
120+
_Chutzpah*
121+
122+
# Visual C++ cache files
123+
ipch/
124+
*.aps
125+
*.ncb
126+
*.opensdf
127+
*.sdf
128+
*.cachefile
129+
130+
# Visual Studio profiler
131+
*.psess
132+
*.vsp
133+
*.vspx
134+
135+
# TFS 2012 Local Workspace
136+
$tf/
137+
138+
# Guidance Automation Toolkit
139+
*.gpState
140+
141+
# ReSharper is a .NET coding add-in
142+
_ReSharper*/
143+
*.[Rr]e[Ss]harper
144+
*.DotSettings.user
145+
146+
# JustCode is a .NET coding addin-in
147+
.JustCode
148+
149+
# TeamCity is a build add-in
150+
_TeamCity*
151+
152+
# DotCover is a Code Coverage Tool
153+
*.dotCover
154+
155+
# NCrunch
156+
_NCrunch_*
157+
.*crunch*.local.xml
158+
159+
# MightyMoose
160+
*.mm.*
161+
AutoTest.Net/
162+
163+
# Web workbench (sass)
164+
.sass-cache/
165+
166+
# Installshield output folder
167+
[Ee]xpress/
168+
169+
# DocProject is a documentation generator add-in
170+
DocProject/buildhelp/
171+
DocProject/Help/*.HxT
172+
DocProject/Help/*.HxC
173+
DocProject/Help/*.hhc
174+
DocProject/Help/*.hhk
175+
DocProject/Help/*.hhp
176+
DocProject/Help/Html2
177+
DocProject/Help/html
178+
179+
# Click-Once directory
180+
publish/
181+
182+
# Publish Web Output
183+
*.[Pp]ublish.xml
184+
*.azurePubxml
185+
# TODO: Comment the next line if you want to checkin your web deploy settings
186+
# but database connection strings (with potential passwords) will be unencrypted
187+
*.pubxml
188+
*.publishproj
189+
190+
# NuGet Packages
191+
*.nupkg
192+
# The packages folder can be ignored because of Package Restore
193+
**/packages/*
194+
# except build/, which is used as an MSBuild target.
195+
!**/packages/build/
196+
# If using the old MSBuild-Integrated Package Restore, uncomment this:
197+
#!**/packages/repositories.config
198+
# ignore sln level nuget
199+
.nuget/
200+
201+
# Windows Azure Build Output
202+
csx/
203+
*.build.csdef
204+
205+
# Windows Store app package directory
206+
AppPackages/
207+
208+
# Others
209+
*.Cache
210+
ClientBin/
211+
[Ss]tyle[Cc]op.*
212+
~$*
213+
*~
214+
*.dbmdl
215+
*.dbproj.schemaview
216+
*.pfx
217+
*.publishsettings
218+
node_modules/
219+
bower_components/
220+
221+
# RIA/Silverlight projects
222+
Generated_Code/
223+
224+
# Backup & report files from converting an old project file
225+
# to a newer Visual Studio version. Backup files are not needed,
226+
# because we have git ;-)
227+
_UpgradeReport_Files/
228+
Backup*/
229+
UpgradeLog*.XML
230+
UpgradeLog*.htm
231+
232+
# SQL Server files
233+
*.mdf
234+
*.ldf
235+
236+
# Business Intelligence projects
237+
*.rdl.data
238+
*.bim.layout
239+
*.bim_*.settings
240+
241+
# Microsoft Fakes
242+
FakesAssemblies/
243+
244+
# Test Runner
245+
testrunner/
246+
247+
# Meld original diff files
248+
*.orig
249+
250+
# Output chart data
251+
Charts/
252+
253+
# NCrunch files
254+
*.ncrunchsolution
255+
*.ncrunchproject
256+
257+
# QuantConnect plugin files
258+
QuantConnectProjects.xml
259+
Launcher/Plugins/*
260+
/ApiPython/dist
261+
/ApiPython/quantconnect.egg-info
262+
/ApiPython/quantconnect.egg-info/*
263+
264+
QuantConnect.Lean.sln.DotSettings*
265+
secret.config
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2018 Capnode AB
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
using GalaSoft.MvvmLight.Command;
16+
17+
namespace NetworkCamera.Core
18+
{
19+
public interface ITreeViewModel
20+
{
21+
RelayCommand DeleteCommand { get; }
22+
RelayCommand StartCommand { get; }
23+
RelayCommand StopCommand { get; }
24+
void Refresh();
25+
}
26+
}

NetworkCamera.Core/ModelBase.cs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright 2018 Capnode AB
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
using System;
16+
using System.ComponentModel;
17+
using System.Linq;
18+
using System.Reflection;
19+
20+
namespace NetworkCamera.Core
21+
{
22+
[Serializable]
23+
abstract public class ModelBase
24+
{
25+
protected void SetBrowsable(string property, bool value)
26+
{
27+
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(this.GetType())[property];
28+
BrowsableAttribute attribute = (BrowsableAttribute)descriptor.Attributes[typeof(BrowsableAttribute)];
29+
FieldInfo[] fields = attribute.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Instance);
30+
FieldInfo fieldToChange = fields.Single();
31+
fieldToChange.SetValue(attribute, value);
32+
}
33+
34+
protected void SetReadonly(string property, bool value)
35+
{
36+
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(this.GetType())[property];
37+
ReadOnlyAttribute attribute = (ReadOnlyAttribute)descriptor.Attributes[typeof(ReadOnlyAttribute)];
38+
FieldInfo[] fields = attribute.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Instance);
39+
FieldInfo fieldToChange = fields.Single();
40+
fieldToChange.SetValue(attribute, value);
41+
}
42+
}
43+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<Copyright></Copyright>
6+
<Company></Company>
7+
<Authors></Authors>
8+
<PackageId>NetworkCamera.Core</PackageId>
9+
<Product>NetworkCamera.Core</Product>
10+
<NeutralLanguage>en-US</NeutralLanguage>
11+
<RunAnalyzersDuringLiveAnalysis>false</RunAnalyzersDuringLiveAnalysis>
12+
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
13+
</PropertyGroup>
14+
15+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
16+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
17+
<WarningsAsErrors />
18+
<CodeAnalysisRuleSet />
19+
</PropertyGroup>
20+
21+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
22+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
23+
<WarningsAsErrors />
24+
<CodeAnalysisRuleSet />
25+
</PropertyGroup>
26+
27+
<ItemGroup>
28+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.7">
29+
<PrivateAssets>all</PrivateAssets>
30+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
31+
</PackageReference>
32+
<PackageReference Include="MvvmLightLibsStd10" Version="5.4.1.1" />
33+
</ItemGroup>
34+
35+
</Project>

NetworkCamera.Device/.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[*.cs]
2+
3+
# CA1031: Do not catch general exception types
4+
dotnet_diagnostic.CA1031.severity = silent
5+
dotnet_diagnostic.CA1812.severity = silent
6+
7+
# CA1303: Do not pass literals as localized parameters
8+
dotnet_diagnostic.CA1303.severity = silent

0 commit comments

Comments
 (0)