├── .gitattributes
├── .gitignore
├── README.md
├── lceda_step_downloader.sln
└── lceda_step_downloader
├── App.xaml
├── App.xaml.cs
├── Bootstrapper.cs
├── Models
├── ComponentModel.cs
└── RootModel.cs
├── Properties
├── AssemblyInfo.cs
├── DesignTimeResources.xaml
├── Resource.Designer.cs
└── Resource.resx
├── ViewModels
└── RootViewModel.cs
├── Views
├── RootView.xaml
└── RootView.xaml.cs
├── asserts
└── image.png
├── doc
└── Snipaste_2022-03-26_19-50-10.png
├── lceda_step_downloader.csproj
└── logo256.ico
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Oo]ut/
33 | [Ll]og/
34 | [Ll]ogs/
35 |
36 | # Visual Studio 2015/2017 cache/options directory
37 | .vs/
38 | # Uncomment if you have tasks that create the project's static files in wwwroot
39 | #wwwroot/
40 |
41 | # Visual Studio 2017 auto generated files
42 | Generated\ Files/
43 |
44 | # MSTest test Results
45 | [Tt]est[Rr]esult*/
46 | [Bb]uild[Ll]og.*
47 |
48 | # NUnit
49 | *.VisualState.xml
50 | TestResult.xml
51 | nunit-*.xml
52 |
53 | # Build Results of an ATL Project
54 | [Dd]ebugPS/
55 | [Rr]eleasePS/
56 | dlldata.c
57 |
58 | # Benchmark Results
59 | BenchmarkDotNet.Artifacts/
60 |
61 | # .NET Core
62 | project.lock.json
63 | project.fragment.lock.json
64 | artifacts/
65 |
66 | # ASP.NET Scaffolding
67 | ScaffoldingReadMe.txt
68 |
69 | # StyleCop
70 | StyleCopReport.xml
71 |
72 | # Files built by Visual Studio
73 | *_i.c
74 | *_p.c
75 | *_h.h
76 | *.ilk
77 | *.meta
78 | *.obj
79 | *.iobj
80 | *.pch
81 | *.pdb
82 | *.ipdb
83 | *.pgc
84 | *.pgd
85 | *.rsp
86 | *.sbr
87 | *.tlb
88 | *.tli
89 | *.tlh
90 | *.tmp
91 | *.tmp_proj
92 | *_wpftmp.csproj
93 | *.log
94 | *.vspscc
95 | *.vssscc
96 | .builds
97 | *.pidb
98 | *.svclog
99 | *.scc
100 |
101 | # Chutzpah Test files
102 | _Chutzpah*
103 |
104 | # Visual C++ cache files
105 | ipch/
106 | *.aps
107 | *.ncb
108 | *.opendb
109 | *.opensdf
110 | *.sdf
111 | *.cachefile
112 | *.VC.db
113 | *.VC.VC.opendb
114 |
115 | # Visual Studio profiler
116 | *.psess
117 | *.vsp
118 | *.vspx
119 | *.sap
120 |
121 | # Visual Studio Trace Files
122 | *.e2e
123 |
124 | # TFS 2012 Local Workspace
125 | $tf/
126 |
127 | # Guidance Automation Toolkit
128 | *.gpState
129 |
130 | # ReSharper is a .NET coding add-in
131 | _ReSharper*/
132 | *.[Rr]e[Ss]harper
133 | *.DotSettings.user
134 |
135 | # TeamCity is a build add-in
136 | _TeamCity*
137 |
138 | # DotCover is a Code Coverage Tool
139 | *.dotCover
140 |
141 | # AxoCover is a Code Coverage Tool
142 | .axoCover/*
143 | !.axoCover/settings.json
144 |
145 | # Coverlet is a free, cross platform Code Coverage Tool
146 | coverage*.json
147 | coverage*.xml
148 | coverage*.info
149 |
150 | # Visual Studio code coverage results
151 | *.coverage
152 | *.coveragexml
153 |
154 | # NCrunch
155 | _NCrunch_*
156 | .*crunch*.local.xml
157 | nCrunchTemp_*
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 | # Note: 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 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
191 | # checkin your Azure Web App publish settings, but sensitive information contained
192 | # in these scripts will be unencrypted
193 | PublishScripts/
194 |
195 | # NuGet Packages
196 | *.nupkg
197 | # NuGet Symbol Packages
198 | *.snupkg
199 | # The packages folder can be ignored because of Package Restore
200 | **/[Pp]ackages/*
201 | # except build/, which is used as an MSBuild target.
202 | !**/[Pp]ackages/build/
203 | # Uncomment if necessary however generally it will be regenerated when needed
204 | #!**/[Pp]ackages/repositories.config
205 | # NuGet v3's project.json files produces more ignorable files
206 | *.nuget.props
207 | *.nuget.targets
208 |
209 | # Microsoft Azure Build Output
210 | csx/
211 | *.build.csdef
212 |
213 | # Microsoft Azure Emulator
214 | ecf/
215 | rcf/
216 |
217 | # Windows Store app package directories and files
218 | AppPackages/
219 | BundleArtifacts/
220 | Package.StoreAssociation.xml
221 | _pkginfo.txt
222 | *.appx
223 | *.appxbundle
224 | *.appxupload
225 |
226 | # Visual Studio cache files
227 | # files ending in .cache can be ignored
228 | *.[Cc]ache
229 | # but keep track of directories ending in .cache
230 | !?*.[Cc]ache/
231 |
232 | # Others
233 | ClientBin/
234 | ~$*
235 | *~
236 | *.dbmdl
237 | *.dbproj.schemaview
238 | *.jfm
239 | *.pfx
240 | *.publishsettings
241 | orleans.codegen.cs
242 |
243 | # Including strong name files can present a security risk
244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
245 | #*.snk
246 |
247 | # Since there are multiple workflows, uncomment next line to ignore bower_components
248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
249 | #bower_components/
250 |
251 | # RIA/Silverlight projects
252 | Generated_Code/
253 |
254 | # Backup & report files from converting an old project file
255 | # to a newer Visual Studio version. Backup files are not needed,
256 | # because we have git ;-)
257 | _UpgradeReport_Files/
258 | Backup*/
259 | UpgradeLog*.XML
260 | UpgradeLog*.htm
261 | ServiceFabricBackup/
262 | *.rptproj.bak
263 |
264 | # SQL Server files
265 | *.mdf
266 | *.ldf
267 | *.ndf
268 |
269 | # Business Intelligence projects
270 | *.rdl.data
271 | *.bim.layout
272 | *.bim_*.settings
273 | *.rptproj.rsuser
274 | *- [Bb]ackup.rdl
275 | *- [Bb]ackup ([0-9]).rdl
276 | *- [Bb]ackup ([0-9][0-9]).rdl
277 |
278 | # Microsoft Fakes
279 | FakesAssemblies/
280 |
281 | # GhostDoc plugin setting file
282 | *.GhostDoc.xml
283 |
284 | # Node.js Tools for Visual Studio
285 | .ntvs_analysis.dat
286 | node_modules/
287 |
288 | # Visual Studio 6 build log
289 | *.plg
290 |
291 | # Visual Studio 6 workspace options file
292 | *.opt
293 |
294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
295 | *.vbw
296 |
297 | # Visual Studio LightSwitch build output
298 | **/*.HTMLClient/GeneratedArtifacts
299 | **/*.DesktopClient/GeneratedArtifacts
300 | **/*.DesktopClient/ModelManifest.xml
301 | **/*.Server/GeneratedArtifacts
302 | **/*.Server/ModelManifest.xml
303 | _Pvt_Extensions
304 |
305 | # Paket dependency manager
306 | .paket/paket.exe
307 | paket-files/
308 |
309 | # FAKE - F# Make
310 | .fake/
311 |
312 | # CodeRush personal settings
313 | .cr/personal
314 |
315 | # Python Tools for Visual Studio (PTVS)
316 | __pycache__/
317 | *.pyc
318 |
319 | # Cake - Uncomment if you are using it
320 | # tools/**
321 | # !tools/packages.config
322 |
323 | # Tabs Studio
324 | *.tss
325 |
326 | # Telerik's JustMock configuration file
327 | *.jmconfig
328 |
329 | # BizTalk build output
330 | *.btp.cs
331 | *.btm.cs
332 | *.odx.cs
333 | *.xsd.cs
334 |
335 | # OpenCover UI analysis results
336 | OpenCover/
337 |
338 | # Azure Stream Analytics local run output
339 | ASALocalRun/
340 |
341 | # MSBuild Binary and Structured Log
342 | *.binlog
343 |
344 | # NVidia Nsight GPU debugger configuration file
345 | *.nvuser
346 |
347 | # MFractors (Xamarin productivity tool) working folder
348 | .mfractor/
349 |
350 | # Local History for Visual Studio
351 | .localhistory/
352 |
353 | # BeatPulse healthcheck temp database
354 | healthchecksdb
355 |
356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
357 | MigrationBackup/
358 |
359 | # Ionide (cross platform F# VS Code tools) working folder
360 | .ionide/
361 |
362 | # Fody - auto-generated XML schema
363 | FodyWeavers.xsd
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | lceda_step_downloader
2 |
3 | 
4 |
--------------------------------------------------------------------------------
/lceda_step_downloader.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.0.32014.148
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lceda_step_downloader", "lceda_step_downloader\lceda_step_downloader.csproj", "{538A404E-BACD-4CBD-AAA8-A0B665DE7DC8}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {538A404E-BACD-4CBD-AAA8-A0B665DE7DC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {538A404E-BACD-4CBD-AAA8-A0B665DE7DC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {538A404E-BACD-4CBD-AAA8-A0B665DE7DC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {538A404E-BACD-4CBD-AAA8-A0B665DE7DC8}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {E15877B8-0B07-478A-BB72-F43654AA743E}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/lceda_step_downloader/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/lceda_step_downloader/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | namespace lceda_step_downloader
4 | {
5 | public partial class App : Application
6 | {
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Bootstrapper.cs:
--------------------------------------------------------------------------------
1 | using lceda_step_downloader.ViewModels;
2 | using Stylet;
3 | using System;
4 |
5 | namespace lceda_step_downloader
6 | {
7 | public class Bootstrapper : Bootstrapper
8 | {
9 |
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Models/ComponentModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Text.Json.Serialization;
6 | using System.Threading.Tasks;
7 |
8 | namespace lceda_step_downloader.Models.Component
9 | {
10 | public class Modifier
11 | {
12 |
13 | public string uuid { get; set; }
14 |
15 | public string username { get; set; }
16 |
17 | public string nickname { get; set; }
18 |
19 | public string avatar { get; set; }
20 | }
21 |
22 | public class Creator
23 | {
24 |
25 | public string uuid { get; set; }
26 |
27 | public string username { get; set; }
28 |
29 | public string nickname { get; set; }
30 |
31 | public string avatar { get; set; }
32 | }
33 |
34 |
35 | public class Owner
36 | {
37 |
38 | public string uuid { get; set; }
39 |
40 | public string username { get; set; }
41 |
42 | public string nickname { get; set; }
43 |
44 | public string avatar { get; set; }
45 | }
46 |
47 | public class Tags
48 | {
49 |
50 | public List parent_tag { get; set; }
51 |
52 | public List child_tag { get; set; }
53 | }
54 |
55 | public class Result
56 | {
57 |
58 | public string uuid { get; set; }
59 |
60 | public Modifier modifier { get; set; }
61 |
62 | public Creator creator { get; set; }
63 |
64 | public Owner owner { get; set; }
65 |
66 | public string description { get; set; }
67 |
68 | public int docType { get; set; }
69 |
70 | public string dataStr { get; set; }
71 |
72 | public Tags tags { get; set; }
73 |
74 | [JsonPropertyName("public")]
75 | public bool _public { get; set; }
76 |
77 | public string source { get; set; }
78 |
79 | [JsonIgnore]
80 | public string version { get; set; }
81 |
82 | public int type { get; set; }
83 |
84 | public string title { get; set; }
85 |
86 | public int createTime { get; set; }
87 |
88 | public int updateTime { get; set; }
89 |
90 | public string created_at { get; set; }
91 |
92 | public string display_title { get; set; }
93 |
94 | public string updated_at { get; set; }
95 |
96 | public int ticket { get; set; }
97 |
98 | public string std_uuid { get; set; }
99 |
100 | [JsonPropertyName("3d_model_uuid")]
101 | public string _3d_model_uuid { get; set; }
102 |
103 | public bool has_device { get; set; }
104 | }
105 |
106 | public class Component
107 | {
108 |
109 | public bool success { get; set; }
110 |
111 | public int code { get; set; }
112 |
113 | public Result result { get; set; }
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Models/RootModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Text.Json.Serialization;
6 | using System.Threading.Tasks;
7 |
8 | namespace lceda_step_downloader.Models.Root
9 | {
10 | public class SearchSite
11 | {
12 | public string Site { get; set; }
13 | public int Value { get; set; }
14 | }
15 | public class Owner
16 | {
17 | public string uuid { get; set; }
18 | public string username { get; set; }
19 | public string nickname { get; set; }
20 | public string avatar { get; set; }
21 | }
22 |
23 | public class Creator
24 | {
25 |
26 | public string uuid { get; set; }
27 | public string username { get; set; }
28 | public string nickname { get; set; }
29 | public string avatar { get; set; }
30 | }
31 |
32 | public class Modifier
33 | {
34 | public string uuid { get; set; }
35 | public string username { get; set; }
36 | public string nickname { get; set; }
37 | public string avatar { get; set; }
38 | }
39 |
40 | public class Parent_tag
41 | {
42 | public string uuid { get; set; }
43 | public string name { get; set; }
44 | public string name_cn { get; set; }
45 | }
46 |
47 | public class Child_tag
48 | {
49 | public string uuid { get; set; }
50 | public string name { get; set; }
51 | public string name_cn { get; set; }
52 | }
53 |
54 | public class Tags
55 | {
56 | public Parent_tag parent_tag { get; set; }
57 | public Child_tag child_tag { get; set; }
58 | }
59 |
60 | public class Attributes
61 | {
62 | [JsonPropertyName("LCSC Part Name")]
63 | public string LCSC_Part_Name { get; set; }
64 |
65 | [JsonPropertyName("Supplier Part")]
66 | public string Supplier_Part { get; set; }
67 |
68 | public string Manufacturer { get; set; }
69 |
70 | [JsonPropertyName("Manufacturer Part")]
71 | public string Manufacturer_Part { get; set; }
72 |
73 | [JsonPropertyName("Supplier Footprint")]
74 | public string Supplier_Footprint { get; set; }
75 |
76 | [JsonPropertyName("JLCPCB Part Class")]
77 | public string JLCPCB_Part_Class { get; set; }
78 |
79 | public string Datasheet { get; set; }
80 |
81 | public string Supplier { get; set; }
82 |
83 | [JsonPropertyName("Add into BOM")]
84 | public string Add_into_BOM { get; set; }
85 |
86 | [JsonPropertyName("Convert to PCB")]
87 | public string Convert_to_PCB { get; set; }
88 |
89 | public string Symbol { get; set; }
90 |
91 | public string Footprint { get; set; }
92 |
93 | [JsonPropertyName("3D Model")]
94 | public string _3D_Model { get; set; }
95 |
96 | [JsonPropertyName("3D Model Title")]
97 | public string _3D_Model_Title { get; set; }
98 |
99 | [JsonPropertyName("3D Model Transform")]
100 | public string _3D_Model_Transform { get; set; }
101 |
102 | [JsonPropertyName("Connector Type")]
103 | public string Connector_Type { get; set; }
104 |
105 | public string Standard { get; set; }
106 |
107 | public string Gender { get; set; }
108 |
109 | [JsonPropertyName("Number of Contacts")]
110 | public string Number_of_Contacts { get; set; }
111 |
112 | [JsonPropertyName("Number of Ports")]
113 | public string Number_of_Ports { get; set; }
114 |
115 | [JsonPropertyName("Mounting Style")]
116 | public string Mounting_Style { get; set; }
117 |
118 | [JsonPropertyName("Current Rating - Power (Max)")]
119 |
120 | public string Current_Rating_Power { get; set; }
121 |
122 | [JsonPropertyName("Operating Temperature Range")]
123 | public string Operating_Temperature_Range { get; set; }
124 |
125 | [JsonPropertyName("Welding Temperature(Max)")]
126 | public string Welding_Temperature { get; set; }
127 | }
128 |
129 | public class Symbol
130 | {
131 |
132 | public string uuid { get; set; }
133 |
134 | public string title { get; set; }
135 |
136 | public string display_title { get; set; }
137 | }
138 |
139 | public class Footprint
140 | {
141 |
142 | public string uuid { get; set; }
143 |
144 | public string title { get; set; }
145 |
146 | public string display_title { get; set; }
147 | }
148 |
149 | public class ResultItem
150 | {
151 |
152 | public string uuid { get; set; }
153 |
154 | public Owner owner { get; set; }
155 |
156 | public Creator creator { get; set; }
157 |
158 | public Modifier modifier { get; set; }
159 |
160 | public string description { get; set; }
161 |
162 | public string title { get; set; }
163 |
164 | //public Tags tags { get; set; }
165 |
166 | public List images { get; set; }
167 |
168 | public Attributes attributes { get; set; }
169 |
170 | public string source { get; set; }
171 | [JsonIgnore]
172 | public int version { get; set; }
173 |
174 | public string project_uuid { get; set; }
175 |
176 | public int footprint_type { get; set; }
177 |
178 | public int symbol_type { get; set; }
179 |
180 | public string product_code { get; set; }
181 |
182 | public int updateTime { get; set; }
183 |
184 | public int createTime { get; set; }
185 |
186 | public string display_title { get; set; }
187 |
188 | public string created_at { get; set; }
189 |
190 | public string updated_at { get; set; }
191 |
192 | public int ticket { get; set; }
193 |
194 | public Symbol symbol { get; set; }
195 |
196 | public Footprint footprint { get; set; }
197 | }
198 |
199 | public class Root
200 | {
201 |
202 | public bool success { get; set; }
203 |
204 | public int code { get; set; }
205 |
206 | public List result { get; set; }
207 | }
208 |
209 | }
210 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
4 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Properties/DesignTimeResources.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Properties/Resource.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace lceda_step_downloader.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resource {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resource() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("lceda_step_downloader.Properties.Resource", typeof(Resource).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 重写当前线程的 CurrentUICulture 属性,对
51 | /// 使用此强类型资源类的所有资源查找执行重写。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Properties/Resource.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/lceda_step_downloader/ViewModels/RootViewModel.cs:
--------------------------------------------------------------------------------
1 | using Stylet;
2 | using lceda_step_downloader.Models.Root;
3 | using lceda_step_downloader.Models.Component;
4 | using System.Collections.Generic;
5 | using System.Collections.ObjectModel;
6 | using System.Windows.Controls;
7 | using System.Diagnostics;
8 | using System;
9 | using System.Net.Http;
10 | using System.Text.Json;
11 | using System.Threading.Tasks;
12 | using HelixToolkit.Wpf;
13 | using System.Windows.Media.Media3D;
14 | using System.Windows.Data;
15 | using System.Globalization;
16 | using System.IO;
17 | using System.Windows.Threading;
18 | using System.Windows;
19 | using System.Text;
20 | using System.IO.Compression;
21 | using System.Net;
22 | using System.Linq;
23 | using HandyControl.Controls;
24 |
25 | namespace lceda_step_downloader.ViewModels
26 | {
27 | public class RootViewModel : PropertyChangedBase
28 | {
29 | private string _title = "立创EDA 3D模型下载器";
30 | public string Title
31 | {
32 | get { return _title; }
33 | set { SetAndNotify(ref _title, value); }
34 | }
35 | private static readonly HttpClient client = new(new HttpClientHandler
36 | {
37 | AutomaticDecompression = DecompressionMethods.GZip
38 | });
39 |
40 | private bool _downloadallowed;
41 | public bool DownloadAllowed
42 | {
43 | get { return _downloadallowed; }
44 | set { SetAndNotify(ref _downloadallowed, value); }
45 | }
46 |
47 | private ResultItem _selecteditem;
48 | public ResultItem Selecteditem
49 | {
50 | get { return _selecteditem; }
51 | set { SetAndNotify(ref _selecteditem, value); }
52 | }
53 |
54 | private Model3DGroup _myModelGroup;
55 | public Model3DGroup MyModelGroup
56 | {
57 | get { return _myModelGroup; }
58 | set
59 | {
60 | SetAndNotify(ref _myModelGroup, value);
61 |
62 | }
63 | }
64 |
65 | private string _imageSource;
66 |
67 | public string ImageSource
68 | {
69 | get => _imageSource;
70 | set => SetAndNotify(ref _imageSource, value);
71 | }
72 |
73 | private Root searchresult;
74 | public Root SearchResult
75 | {
76 | get { return searchresult; }
77 | set { SetAndNotify(ref searchresult, value); }
78 | }
79 |
80 | private Component _selectedcomponent;
81 | public Component SelectedComponent
82 | {
83 | get { return _selectedcomponent; }
84 | set { SetAndNotify(ref _selectedcomponent, value); }
85 | }
86 | private ObservableCollection _searchsites;
87 |
88 | public ObservableCollection SearchSites
89 | {
90 | get { return _searchsites; }
91 | set { _searchsites = value; }
92 | }
93 | private SearchSite _ssite;
94 |
95 | public SearchSite SSite
96 | {
97 | get { return _ssite; }
98 | set
99 | {
100 | _ssite = value;
101 | Debug.WriteLine(value.Site);
102 | }
103 | }
104 |
105 | public RootViewModel()
106 | {
107 | Selecteditem = null;
108 | SearchSites = new ObservableCollection()
109 | {
110 | //new SearchSite(){Site="LCEDA", Value = 0},
111 | new SearchSite(){Site="LCSC", Value = 1},
112 | };
113 | SSite = SearchSites[0];
114 |
115 | //创建模型存储目录
116 | if (!Directory.Exists(@".\temp"))
117 | {
118 | Directory.CreateDirectory(@".\temp");
119 | }
120 | if (!Directory.Exists(@".\step"))
121 | {
122 | Directory.CreateDirectory(@".\step");
123 | }
124 | }
125 |
126 | public void DoSearch(string argument)
127 | {
128 | Debug.WriteLine(String.Format("搜索关键字: {0}", argument));
129 | Task task = new(() => SearchTask(argument));
130 | task.Start();
131 | }
132 |
133 | public async void SearchTask(string argument)
134 | {
135 | if (SSite == null)
136 | {
137 | return;
138 | }
139 | if (SSite.Site == "LCSC")
140 | {
141 | var streamTask = client.GetStreamAsync("https://pro.lceda.cn/api/szlcsc/eda/product/list?wd=" + argument.ToString());
142 | Debug.WriteLine(streamTask.ToString());
143 | SearchResult = await JsonSerializer.DeserializeAsync(await streamTask);
144 | Debug.WriteLine(SearchResult.result.Count);
145 | }
146 |
147 | }
148 |
149 | public void OnResultSelection()
150 | {
151 | if (Selecteditem == null)
152 | {
153 | return;
154 | }
155 | DownloadAllowed = true;
156 |
157 | //部分器件没有图片, 替换成商城LOGO
158 | if (Selecteditem.images.Count == 0)
159 | {
160 | ImageSource = "https:" + Selecteditem.creator.avatar;
161 | return;
162 | }
163 | ImageSource = Selecteditem.images[0];
164 | }
165 |
166 | public void DownloadObj()
167 | {
168 | if (Selecteditem == null)
169 | {
170 | return;
171 | }
172 |
173 | Debug.WriteLine("准备下载obj:编号{0},标题{1}", SearchResult.result.IndexOf(Selecteditem), Selecteditem.display_title);
174 | Debug.WriteLine(Selecteditem.attributes._3D_Model);
175 |
176 | if (File.Exists(@".\temp\" + Selecteditem.title.ToString().Replace("/", "") + @".obj"))
177 | {
178 | Debug.WriteLine("存在缓存");
179 | Application.Current.Dispatcher.Invoke(() =>
180 | {
181 | ObjReader CurrentHelixObjReader = new();
182 | MyModelGroup = CurrentHelixObjReader.Read(@".\temp\" + Selecteditem.title.ToString().Replace("/", "") + @".obj");
183 |
184 | });
185 | return;
186 | }
187 | Task.Run(() => DownloadObjAsync());
188 | }
189 |
190 | public void DownloadStep()
191 | {
192 | //https://pro.lceda.cn/api/components/9059586b8e0c4e2ba21b2ac2c1eb066b?uuid=9059586b8e0c4e2ba21b2ac2c1eb066b&path=0819f05c4eef4c71ace90d822a990e87
193 | //https://pro.lceda.cn/api/components/105b388c0c03439aa7dbf35dd2b762a6?uuid=105b388c0c03439aa7dbf35dd2b762a6
194 | //{"success":true,"code":0,"result":{"uuid":"105b388c0c03439aa7dbf35dd2b762a6","modifier":{"uuid":"0819f05c4eef4c71ace90d822a990e87","username":"LCSC","nickname":"LCSC","avatar":"\/\/image.lceda.cn\/avatars\/2018\/6\/kFlrasi7W06gTdBLAqW3fkrqbDhbowynuSzkjqso.png"},"creator":{"uuid":"0819f05c4eef4c71ace90d822a990e87","username":"LCSC","nickname":"LCSC","avatar":"\/\/image.lceda.cn\/avatars\/2018\/6\/kFlrasi7W06gTdBLAqW3fkrqbDhbowynuSzkjqso.png"},"owner":{"uuid":"0819f05c4eef4c71ace90d822a990e87","username":"LCSC","nickname":"LCSC","avatar":"\/\/image.lceda.cn\/avatars\/2018\/6\/kFlrasi7W06gTdBLAqW3fkrqbDhbowynuSzkjqso.png"},"description":"","docType":16,"dataStr":"{\"model\":\"6d30b5a04660477fbdff168686b01590\",\"type\":\"wrl\",\"src\":\"qfn-56_l7.0-w7.0-p0.40-tl-ep4.0\",\"unit\":\"mm\"}","tags":{"parent_tag":[],"child_tag":[]},"public":true,"source":"","version":1653017104,"type":3,"title":"qfn-56_l7.0-w7.0-p0.40-tl-ep4.0","createTime":1653017104,"updateTime":1658962217,"created_at":"2022-05-20 11:25:04","display_title":"QFN-56_L7.0-W7.0-P0.40-TL-EP4.0","updated_at":"2022-07-28 06:55:05","ticket":1,"std_uuid":"ce2b808f96c74d7981784d534cecd1c0","3d_model_uuid":"6d30b5a04660477fbdff168686b01590","has_device":false,"path":"0819f05c4eef4c71ace90d822a990e87"}}
195 | //https://modules.lceda.cn/qAxj6KHrDKw4blvCG8QJPs7Y/6d30b5a04660477fbdff168686b01590
196 | if (Selecteditem == null)
197 | {
198 | return;
199 | }
200 |
201 | Debug.WriteLine("准备下载step:编号{0},标题{1}", SearchResult.result.IndexOf(Selecteditem), Selecteditem.display_title);
202 | Debug.WriteLine(Selecteditem.attributes._3D_Model_Transform);
203 |
204 | //器件名称
205 | //if (File.Exists(@".\step\" + Selecteditem.title.ToString().Replace("/", "") + @".step"))
206 | //封装名称
207 | if (File.Exists(@".\step\" + Selecteditem.footprint.display_title.ToString().Replace("/", "") + @".step"))
208 | {
209 | Debug.WriteLine("存在step缓存");
210 | Growl.Info("STEP文件已存在");
211 | return;
212 | }
213 | DownloadAllowed = false;
214 | Task.Run(() => DownloadStepAsync());
215 | }
216 |
217 | //构造PCB数据, 以利用lceda专业版的PCB导出STEP接口
218 | public async void DownloadStepAsync()
219 | {
220 | var streamTask = client.GetStreamAsync("https://pro.lceda.cn/api/components/" + Selecteditem.attributes._3D_Model + "?uuid=" + Selecteditem.attributes._3D_Model);
221 |
222 | SelectedComponent = await JsonSerializer.DeserializeAsync(await streamTask);
223 | if (SelectedComponent.code != 0)
224 | {
225 | SelectedComponent = new Component
226 | {
227 | result = new Result()
228 | };
229 | SelectedComponent.result._3d_model_uuid = Selecteditem.attributes._3D_Model;
230 | }
231 | Debug.WriteLine(SelectedComponent.result._3d_model_uuid);
232 |
233 | Stream streamStep = await client.GetStreamAsync("https://modules.lceda.cn/qAxj6KHrDKw4blvCG8QJPs7Y/" + SelectedComponent.result._3d_model_uuid);
234 | //器件名称
235 | //var tempTitle = string.Join("_", Selecteditem.title.ToString().Split(Path.GetInvalidFileNameChars()));
236 | //封装名称
237 | var tempTitle = string.Join("_", Selecteditem.footprint.display_title.ToString().ToString().Split(Path.GetInvalidFileNameChars()));
238 | string fileToWriteTo = Path.Combine(AppContext.BaseDirectory, "step", tempTitle + ".step");
239 | using Stream streamToWriteTo = File.Open(fileToWriteTo, FileMode.Create);
240 | await streamStep.CopyToAsync(streamToWriteTo);
241 | //MediaEle sr = new(await streamStep);
242 | //using Stream streamToWriteTo = File.Open(@".\step\" + Selecteditem.title.ToString().Replace("/", "") + @".step", FileMode.Create);
243 | //await sr.CopyToAsync(streamToWriteTo);
244 |
245 | //StreamWriter stepWriter = new(@".\step\" + Selecteditem.title.ToString().Replace("/", "") + @".step");
246 |
247 | //器件模型的变换数据, 以适应lceda的坐标系以及比例, 参数由lc后台维护, 可见lceda的模型也不全是自己画的
248 | var model_dx = Convert.ToDouble(Selecteditem.attributes._3D_Model_Transform.Split(',')[0]) / 10.0;
249 | var model_dy = Convert.ToDouble(Selecteditem.attributes._3D_Model_Transform.Split(',')[1]) / 10.0;
250 | var model_dz = Convert.ToDouble(Selecteditem.attributes._3D_Model_Transform.Split(',')[2]) / 10.0;
251 | var model_rz = Convert.ToInt32(Selecteditem.attributes._3D_Model_Transform.Split(',')[3]);
252 | var model_rx = Convert.ToInt32(Selecteditem.attributes._3D_Model_Transform.Split(',')[4]);
253 | var model_ry = Convert.ToInt32(Selecteditem.attributes._3D_Model_Transform.Split(',')[5]);
254 | var model_x = Convert.ToDouble(Selecteditem.attributes._3D_Model_Transform.Split(',')[6]) / 10.0;
255 | var model_y = Convert.ToDouble(Selecteditem.attributes._3D_Model_Transform.Split(',')[7]) / 10.0;
256 | var model_z = Convert.ToDouble(Selecteditem.attributes._3D_Model_Transform.Split(',')[8]) / 10.0 - 49;
257 |
258 | //构造的PCB数据
259 | //var stringPayload =
260 | // "[\"DOCTYPE\",\"PREVIEW\",\"1.0\"]\r\n" +
261 | // "[\"HEAD\",{\"scale\":0.0254}]\r\n" +
262 | // "[\"HEAD\",{\"scale\":10}]\r\n" +
263 | // "[\"LAYER\",11,\"OUTLINE\",\"Board Outline Layer\",3,\"#c2c200\",1,\"#c2c200\",1]\r\n" +
264 | // "[\"POLY\",\"e60\",0,\"\",11,1,[40,-40,\"L\",42,-40,42,-38,40,-38,40,-40],0]\r\n" +
265 | // "[\"COMPONENT\",\"e0\",0,9,0,0,0,{\"uuid\":\"" + SelectedComponent.result._3d_model_uuid +
266 | // "\",\"dx\":" + model_dx.ToString() +
267 | // ",\"dy\":" + model_dy.ToString() +
268 | // ",\"dz\":" + model_dz.ToString() +
269 | // ",\"rz\":" + model_rz.ToString() +
270 | // ",\"rx\":" + model_rx.ToString() +
271 | // ",\"ry\":" + model_ry.ToString() +
272 | // ",\"x\":" + model_x.ToString() +
273 | // ",\"y\":" + model_y.ToString() +
274 | // ",\"z\":" + model_z.ToString() +
275 | // ",\"Footprint\":\"USB-C-SMD_TYPEC-303-ACP16\",\"Designator\":\"USB1\",\"Device\":\"TYPEC-303-ACP16\"},0]";
276 |
277 | //var compressedContent = CompressRequestContent(stringPayload);
278 | //compressedContent.Headers.Add("Content-Encoding", "gzip");
279 | //compressedContent.Headers.Add("Content-Type", "x-application/x-gzip");
280 |
281 | //var resp = await client.PostAsync("https://pro.lceda.cn/occapi/api/convert/pcb2step", compressedContent);
282 |
283 | //var responseStream = await resp.Content.ReadAsStreamAsync();
284 |
285 | //var streamReader = new StreamReader(responseStream);
286 |
287 | //StreamWriter stepWriter = new(@".\step\" + Selecteditem.title.ToString().Replace("/", "") + @".step");
288 |
289 | //如果你上传的PCB数据里只有器件没有PCB, 或者PCB面积过小(<0.5*0.5mm), lc后台都会给你加上PCB
290 | //所以这里用了个凑活能用的方法:在程序里自动删掉PCB对应实体节点, 可能在某些软件里仍然会显示一个小小的PCB
291 | //实测AD Fusion 360 SW显示正常, 有更好的方法欢迎PR
292 | //string readline;
293 | //while ((readline = streamReader.ReadLine()) != null)
294 | //{
295 | // if(readline.Contains("#29 = ADVANCED_BREP_SHAPE_REPRESENTATION('',(#11,#30)"))
296 | // {
297 | // stepWriter.WriteLine(readline.Replace("#30", "'NONE'"));
298 | // }
299 | // else
300 | // {
301 | // stepWriter.WriteLine(readline);
302 | // }
303 | //}
304 |
305 | //stepWriter.Flush();
306 | //stepWriter.Close();
307 | //stepWriter.Dispose();
308 | DownloadAllowed = true;
309 | Growl.Success("下载成功");
310 | }
311 |
312 | public static HttpContent CompressRequestContent(string content)
313 | {
314 | var compressedStream = new MemoryStream();
315 | using (var contentStream = new System.IO.MemoryStream(Encoding.UTF8.GetBytes(content)))
316 | {
317 | using var gzipStream = new GZipStream(compressedStream, CompressionMode.Compress);
318 | contentStream.CopyTo(gzipStream);
319 | }
320 |
321 | var httpContent = new ByteArrayContent(compressedStream.ToArray());
322 | return httpContent;
323 | }
324 |
325 | public async void DownloadObjAsync()
326 | {
327 | var streamTask = client.GetStreamAsync("https://pro.lceda.cn/api/components/" + Selecteditem.attributes._3D_Model + "?uuid=" + Selecteditem.attributes._3D_Model);
328 |
329 | SelectedComponent = await JsonSerializer.DeserializeAsync(await streamTask);
330 | if (SelectedComponent.code != 0)
331 | {
332 | SelectedComponent = new Component
333 | {
334 | result = new Result
335 | {
336 | _3d_model_uuid = Selecteditem.attributes._3D_Model
337 | }
338 | };
339 | }
340 | Debug.WriteLine(SelectedComponent.result._3d_model_uuid);
341 |
342 | var streamObj = client.GetStreamAsync("https://modules.lceda.cn/3dmodel/" + SelectedComponent.result._3d_model_uuid);
343 | ObjMtlSplit(streamObj);
344 | }
345 |
346 | //lc前端从服务端获取的OBJ模型数据实际上是把mtl和obj写在了一个文件里面, 然后前端再做处理展示, 这里同样需要做分离
347 | public async void ObjMtlSplit(Task objstream)
348 | {
349 | var tempTitle = string.Join("_", Selecteditem.title.ToString().Split(Path.GetInvalidFileNameChars()));
350 | StreamWriter objWriter = new(Path.Combine(AppContext.BaseDirectory, "temp", tempTitle + ".obj"));
351 | StreamWriter mtlWriter = new(Path.Combine(AppContext.BaseDirectory, "temp", tempTitle + ".mtl"));
352 | //StreamWriter objWriter = new(@".\temp\" + Selecteditem.title.ToString().Replace("/", "") + @".obj");
353 | //StreamWriter mtlWriter = new(@".\temp\" + Selecteditem.title.ToString().Replace("/", "") + @".mtl");
354 |
355 | objWriter.WriteLine("mtllib " + tempTitle + ".mtl");
356 | StreamReader sr = new(await objstream);
357 | String readline = string.Empty;
358 | while ((readline = sr.ReadLine()) != null)
359 | {
360 | objWriter.WriteLine(readline);
361 | if (readline.Contains("newmtl"))
362 | {
363 | mtlWriter.WriteLine(readline);
364 | for (var i = 0; i < 3; i++)
365 | {
366 | readline = sr.ReadLine();
367 | mtlWriter.WriteLine(readline);
368 | }
369 | readline = sr.ReadLine();
370 | readline = sr.ReadLine();
371 | mtlWriter.WriteLine(readline);
372 | }
373 | }
374 | mtlWriter.Flush();
375 | mtlWriter.Close();
376 | objWriter.Flush();
377 | objWriter.Close();
378 | Application.Current.Dispatcher.Invoke(() =>
379 | {
380 | ObjReader CurrentHelixObjReader = new();
381 | MyModelGroup = CurrentHelixObjReader.Read(Path.Combine(AppContext.BaseDirectory, "temp", tempTitle + ".obj"));
382 | });
383 | }
384 | }
385 |
386 | [ValueConversion(typeof(Int32), typeof(ListViewItem))]
387 | public class IndexConverter : IValueConverter
388 | {
389 | public object Convert(object value, Type TargetType, object parameter, CultureInfo culture)
390 | {
391 | ListViewItem item = (ListViewItem)value;
392 | ListView listView = ItemsControl.ItemsControlFromItemContainer(item) as ListView;
393 | return listView.ItemContainerGenerator.IndexFromContainer(item) + 1;
394 | }
395 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
396 | {
397 | throw new NotImplementedException();
398 | }
399 | }
400 |
401 | public class BooleanOrConverter : IMultiValueConverter
402 | {
403 | public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
404 | {
405 | return !values.OfType().Any((b => b == false));
406 |
407 | }
408 |
409 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
410 | {
411 | throw new NotImplementedException();
412 | }
413 | }
414 | }
415 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Views/RootView.xaml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
21 |
23 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
47 |
48 |
55 |
56 |
57 |
59 |
66 |
67 |
70 |
71 |
72 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
105 |
106 |
107 |
108 |
109 |
131 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
--------------------------------------------------------------------------------
/lceda_step_downloader/Views/RootView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace lceda_step_downloader.Views
6 | {
7 | public partial class RootView : HandyControl.Controls.Window
8 | {
9 | public RootView()
10 | {
11 | InitializeComponent();
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lceda_step_downloader/asserts/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seishinkouki/lceda_step_downloader/8cce5a52da32bd082fca85d12f4fd7cf31c28b50/lceda_step_downloader/asserts/image.png
--------------------------------------------------------------------------------
/lceda_step_downloader/doc/Snipaste_2022-03-26_19-50-10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seishinkouki/lceda_step_downloader/8cce5a52da32bd082fca85d12f4fd7cf31c28b50/lceda_step_downloader/doc/Snipaste_2022-03-26_19-50-10.png
--------------------------------------------------------------------------------
/lceda_step_downloader/lceda_step_downloader.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | WinExe
4 | net6.0-windows
5 | true
6 | lceda_step_downloader
7 | lceda_step_downloader
8 | 1.0.0.0
9 | Debug;Release
10 | Copyright © seishinkouki 2022
11 | 1.0.0.0
12 | 1.0.0.0
13 | logo256.ico
14 | x86
15 |
16 |
17 | TRACE;Core
18 |
19 |
20 | TRACE;Core
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | True
39 | True
40 | Resource.resx
41 |
42 |
43 |
44 |
45 | ResXFileCodeGenerator
46 | Resource.Designer.cs
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/lceda_step_downloader/logo256.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seishinkouki/lceda_step_downloader/8cce5a52da32bd082fca85d12f4fd7cf31c28b50/lceda_step_downloader/logo256.ico
--------------------------------------------------------------------------------