├── .gitignore ├── O-ComTool_Pro.sln ├── O-ComTool_Pro ├── ASCII.Designer.cs ├── ASCII.cs ├── ASCII.resx ├── About.Designer.cs ├── About.cs ├── About.resx ├── App.config ├── Check.Designer.cs ├── Check.cs ├── Check.resx ├── CheckUpdate.Designer.cs ├── CheckUpdate.cs ├── CheckUpdate.resx ├── Donate.Designer.cs ├── Donate.cs ├── Donate.resx ├── Format.Designer.cs ├── Format.cs ├── Format.resx ├── HightLight.Designer.cs ├── HightLight.cs ├── HightLight.resx ├── HightLightRichTextBox.Designer.cs ├── HightLightRichTextBox.cs ├── HttpWebRequestHelper.cs ├── Logo48.ico ├── MainForm.Designer.cs ├── MainForm.cs ├── MainForm.resx ├── Note.Designer.cs ├── Note.cs ├── Note.resx ├── O-ComTool_Pro.csproj ├── O_ScrollBar.Designer.cs ├── O_ScrollBar.cs ├── Option.Designer.cs ├── Option.cs ├── Option.resx ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── QuickSend.Designer.cs ├── QuickSend.cs ├── QuickSend.resx ├── Resources │ ├── ASC_48px.png │ ├── About_48px.png │ ├── Add Tag_48px.png │ ├── AddDown_52px.png │ ├── Add_48px.png │ ├── AliPay.png │ ├── AliPay1.png │ ├── AsciiTable.png │ ├── BackGround_48px.png │ ├── Calculator_48px.png │ ├── Change Theme_48px.png │ ├── Change_48px.png │ ├── Check_48px.png │ ├── Connect_Red_50px.png │ ├── Connected_48px.png │ ├── Device Manager_48px.png │ ├── Disconnected_48px.png │ ├── Donate_48px.png │ ├── Exit_48px.png │ ├── Export_48px.png │ ├── FastColoredTextBox.dll │ ├── File_48px.png │ ├── Format_48px.png │ ├── Help_48px.png │ ├── Home_48px.png │ ├── Import_48px.png │ ├── Led_Green_50px.png │ ├── Led_Red_50px.png │ ├── Log Cabin_48px.png │ ├── Logo.png │ ├── Rec_Clear_48px.png │ ├── ReplaceDown_48px.png │ ├── Replace_48px.png │ ├── Send_Clear_48px.png │ ├── Settings_48px.png │ ├── Show_48px.png │ ├── Sleep_48px.png │ ├── SubDown_52px.png │ ├── Sub_48px.png │ ├── Tools_48px.png │ ├── Updates_48px.png │ ├── WechatPay.png │ └── WechatPay1.png ├── Update.Designer.cs ├── Update.cs ├── Update.resx ├── UpdateHelper.cs ├── app.Designer.cs └── app.settings ├── README.md └── Res ├── ASC.ico ├── ASC_48px.png ├── ASC_64.png ├── About.ico ├── About_48px.png ├── About_64.png ├── Add Tag_48px.png ├── AddDown_52px.png ├── Add_48px.png ├── Add_Tag.ico ├── Add_Tag_64.png ├── AliPay1.png ├── AsciiTable.png ├── BackGround_48px.png ├── Calculator_48px.png ├── Change Theme_48px.png ├── Change_48px.png ├── Check.ico ├── Check_48px.png ├── Connect_Green_50px.png ├── Connect_Red_50px.png ├── Connected_48px.png ├── Device Manager_48px.png ├── Disconnected_48px.png ├── Donate.ico ├── Donate_48px.png ├── Donate_64.png ├── Exit_48px.png ├── Export_48px.png ├── File_48px.png ├── Format.ico ├── Format_48px.png ├── Format_64.png ├── Help_48px.png ├── Home_48px.png ├── Icon.ico ├── Icon ├── Logo128.ico ├── Logo16.ico ├── Logo32.ico ├── Logo48.ico └── Logo64.ico ├── Import_48px.png ├── Info_48px.png ├── Led_Green_50px.png ├── Led_Red_50px.png ├── Log Cabin_48px.png ├── Logo.png ├── Rec_Clear_48px.png ├── ReplaceDown_48px.png ├── Replace_48px.png ├── Restart_64.png ├── Send_Clear_48px.png ├── Settings.ico ├── Settings_48px.png ├── Settings_64.png ├── Show_48px.png ├── Sleep_48px.png ├── SubDown_52px.png ├── Sub_48px.png ├── TestLogo.ico ├── TestLogo2.ico ├── TestLogo3.ico ├── Tools_48px.png ├── Updates.ico ├── Updates_128.png ├── Updates_48px.png ├── Updates_64.png └── WechatPay1.png /.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 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 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 | # Nuget personal access tokens and Credentials 210 | # nuget.config 211 | 212 | # Microsoft Azure Build Output 213 | csx/ 214 | *.build.csdef 215 | 216 | # Microsoft Azure Emulator 217 | ecf/ 218 | rcf/ 219 | 220 | # Windows Store app package directories and files 221 | AppPackages/ 222 | BundleArtifacts/ 223 | Package.StoreAssociation.xml 224 | _pkginfo.txt 225 | *.appx 226 | *.appxbundle 227 | *.appxupload 228 | 229 | # Visual Studio cache files 230 | # files ending in .cache can be ignored 231 | *.[Cc]ache 232 | # but keep track of directories ending in .cache 233 | !?*.[Cc]ache/ 234 | 235 | # Others 236 | ClientBin/ 237 | ~$* 238 | *~ 239 | *.dbmdl 240 | *.dbproj.schemaview 241 | *.jfm 242 | *.pfx 243 | *.publishsettings 244 | orleans.codegen.cs 245 | 246 | # Including strong name files can present a security risk 247 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 248 | #*.snk 249 | 250 | # Since there are multiple workflows, uncomment next line to ignore bower_components 251 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 252 | #bower_components/ 253 | 254 | # RIA/Silverlight projects 255 | Generated_Code/ 256 | 257 | # Backup & report files from converting an old project file 258 | # to a newer Visual Studio version. Backup files are not needed, 259 | # because we have git ;-) 260 | _UpgradeReport_Files/ 261 | Backup*/ 262 | UpgradeLog*.XML 263 | UpgradeLog*.htm 264 | ServiceFabricBackup/ 265 | *.rptproj.bak 266 | 267 | # SQL Server files 268 | *.mdf 269 | *.ldf 270 | *.ndf 271 | 272 | # Business Intelligence projects 273 | *.rdl.data 274 | *.bim.layout 275 | *.bim_*.settings 276 | *.rptproj.rsuser 277 | *- [Bb]ackup.rdl 278 | *- [Bb]ackup ([0-9]).rdl 279 | *- [Bb]ackup ([0-9][0-9]).rdl 280 | 281 | # Microsoft Fakes 282 | FakesAssemblies/ 283 | 284 | # GhostDoc plugin setting file 285 | *.GhostDoc.xml 286 | 287 | # Node.js Tools for Visual Studio 288 | .ntvs_analysis.dat 289 | node_modules/ 290 | 291 | # Visual Studio 6 build log 292 | *.plg 293 | 294 | # Visual Studio 6 workspace options file 295 | *.opt 296 | 297 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 298 | *.vbw 299 | 300 | # Visual Studio LightSwitch build output 301 | **/*.HTMLClient/GeneratedArtifacts 302 | **/*.DesktopClient/GeneratedArtifacts 303 | **/*.DesktopClient/ModelManifest.xml 304 | **/*.Server/GeneratedArtifacts 305 | **/*.Server/ModelManifest.xml 306 | _Pvt_Extensions 307 | 308 | # Paket dependency manager 309 | .paket/paket.exe 310 | paket-files/ 311 | 312 | # FAKE - F# Make 313 | .fake/ 314 | 315 | # CodeRush personal settings 316 | .cr/personal 317 | 318 | # Python Tools for Visual Studio (PTVS) 319 | __pycache__/ 320 | *.pyc 321 | 322 | # Cake - Uncomment if you are using it 323 | # tools/** 324 | # !tools/packages.config 325 | 326 | # Tabs Studio 327 | *.tss 328 | 329 | # Telerik's JustMock configuration file 330 | *.jmconfig 331 | 332 | # BizTalk build output 333 | *.btp.cs 334 | *.btm.cs 335 | *.odx.cs 336 | *.xsd.cs 337 | 338 | # OpenCover UI analysis results 339 | OpenCover/ 340 | 341 | # Azure Stream Analytics local run output 342 | ASALocalRun/ 343 | 344 | # MSBuild Binary and Structured Log 345 | *.binlog 346 | 347 | # NVidia Nsight GPU debugger configuration file 348 | *.nvuser 349 | 350 | # MFractors (Xamarin productivity tool) working folder 351 | .mfractor/ 352 | 353 | # Local History for Visual Studio 354 | .localhistory/ 355 | 356 | # BeatPulse healthcheck temp database 357 | healthchecksdb 358 | 359 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 360 | MigrationBackup/ 361 | 362 | # Ionide (cross platform F# VS Code tools) working folder 363 | .ionide/ 364 | 365 | # Fody - auto-generated XML schema 366 | FodyWeavers.xsd 367 | 368 | # VS Code files for those working on multiple tools 369 | .vscode/* 370 | !.vscode/settings.json 371 | !.vscode/tasks.json 372 | !.vscode/launch.json 373 | !.vscode/extensions.json 374 | *.code-workspace 375 | 376 | # Local History for Visual Studio Code 377 | .history/ 378 | 379 | # Windows Installer files from build outputs 380 | *.cab 381 | *.msi 382 | *.msix 383 | *.msm 384 | *.msp 385 | 386 | # JetBrains Rider 387 | .idea/ 388 | *.sln.iml -------------------------------------------------------------------------------- /O-ComTool_Pro.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O-ComTool_Pro", "O-ComTool_Pro\O-ComTool_Pro.csproj", "{64A6B582-C0EB-460F-BEC1-A768C80831B7}" 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 | {64A6B582-C0EB-460F-BEC1-A768C80831B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {64A6B582-C0EB-460F-BEC1-A768C80831B7}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {64A6B582-C0EB-460F-BEC1-A768C80831B7}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {64A6B582-C0EB-460F-BEC1-A768C80831B7}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /O-ComTool_Pro/ASCII.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class ASCII 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ASCII)); 32 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 33 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 34 | this.SuspendLayout(); 35 | // 36 | // pictureBox1 37 | // 38 | this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill; 39 | this.pictureBox1.Image = global::O_ComTool_Pro.Properties.Resources.AsciiTable; 40 | this.pictureBox1.Location = new System.Drawing.Point(0, 0); 41 | this.pictureBox1.Name = "pictureBox1"; 42 | this.pictureBox1.Size = new System.Drawing.Size(521, 480); 43 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 44 | this.pictureBox1.TabIndex = 0; 45 | this.pictureBox1.TabStop = false; 46 | // 47 | // ASCII 48 | // 49 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 50 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 51 | this.ClientSize = new System.Drawing.Size(521, 480); 52 | this.Controls.Add(this.pictureBox1); 53 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 54 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 55 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 56 | this.MaximizeBox = false; 57 | this.MinimizeBox = false; 58 | this.Name = "ASCII"; 59 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 60 | this.Text = "O-ComTool ASCII码表"; 61 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 62 | this.ResumeLayout(false); 63 | 64 | } 65 | 66 | #endregion 67 | 68 | private System.Windows.Forms.PictureBox pictureBox1; 69 | 70 | } 71 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/ASCII.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class ASCII : Form 14 | { 15 | public ASCII() 16 | { 17 | InitializeComponent(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /O-ComTool_Pro/About.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class About 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About)); 32 | this.Lab_Contact = new System.Windows.Forms.Label(); 33 | this.Lab_Author = new System.Windows.Forms.Label(); 34 | this.Lab_Version = new System.Windows.Forms.Label(); 35 | this.Lab_AppName = new System.Windows.Forms.Label(); 36 | this.Pic_Logo = new System.Windows.Forms.PictureBox(); 37 | this.textBox1 = new System.Windows.Forms.TextBox(); 38 | ((System.ComponentModel.ISupportInitialize)(this.Pic_Logo)).BeginInit(); 39 | this.SuspendLayout(); 40 | // 41 | // Lab_Contact 42 | // 43 | this.Lab_Contact.AutoSize = true; 44 | this.Lab_Contact.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 45 | this.Lab_Contact.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(53)))), ((int)(((byte)(53))))); 46 | this.Lab_Contact.Location = new System.Drawing.Point(148, 130); 47 | this.Lab_Contact.Name = "Lab_Contact"; 48 | this.Lab_Contact.Size = new System.Drawing.Size(248, 22); 49 | this.Lab_Contact.TabIndex = 22; 50 | this.Lab_Contact.Text = "联系:chinafjnpoqc@163.com"; 51 | // 52 | // Lab_Author 53 | // 54 | this.Lab_Author.AutoSize = true; 55 | this.Lab_Author.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 56 | this.Lab_Author.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(53)))), ((int)(((byte)(53))))); 57 | this.Lab_Author.Location = new System.Drawing.Point(148, 104); 58 | this.Lab_Author.Name = "Lab_Author"; 59 | this.Lab_Author.Size = new System.Drawing.Size(141, 22); 60 | this.Lab_Author.TabIndex = 21; 61 | this.Lab_Author.Text = "作者:Gustav Ou"; 62 | // 63 | // Lab_Version 64 | // 65 | this.Lab_Version.AutoSize = true; 66 | this.Lab_Version.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 67 | this.Lab_Version.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(53)))), ((int)(((byte)(53))))); 68 | this.Lab_Version.Location = new System.Drawing.Point(148, 78); 69 | this.Lab_Version.Name = "Lab_Version"; 70 | this.Lab_Version.Size = new System.Drawing.Size(58, 22); 71 | this.Lab_Version.TabIndex = 20; 72 | this.Lab_Version.Text = "版本:"; 73 | // 74 | // Lab_AppName 75 | // 76 | this.Lab_AppName.AutoSize = true; 77 | this.Lab_AppName.Font = new System.Drawing.Font("微软雅黑", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 78 | this.Lab_AppName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(53)))), ((int)(((byte)(53))))); 79 | this.Lab_AppName.Location = new System.Drawing.Point(140, 9); 80 | this.Lab_AppName.Name = "Lab_AppName"; 81 | this.Lab_AppName.Size = new System.Drawing.Size(307, 64); 82 | this.Lab_AppName.TabIndex = 19; 83 | this.Lab_AppName.Text = "O-ComTool"; 84 | // 85 | // Pic_Logo 86 | // 87 | this.Pic_Logo.Image = global::O_ComTool_Pro.Properties.Resources.Logo; 88 | this.Pic_Logo.Location = new System.Drawing.Point(19, 28); 89 | this.Pic_Logo.Name = "Pic_Logo"; 90 | this.Pic_Logo.Size = new System.Drawing.Size(115, 116); 91 | this.Pic_Logo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 92 | this.Pic_Logo.TabIndex = 18; 93 | this.Pic_Logo.TabStop = false; 94 | // 95 | // textBox1 96 | // 97 | this.textBox1.Enabled = false; 98 | this.textBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 99 | this.textBox1.Location = new System.Drawing.Point(19, 167); 100 | this.textBox1.Multiline = true; 101 | this.textBox1.Name = "textBox1"; 102 | this.textBox1.ReadOnly = true; 103 | this.textBox1.Size = new System.Drawing.Size(410, 84); 104 | this.textBox1.TabIndex = 23; 105 | this.textBox1.Text = " O-ComTool是一款简单易用的串口调试工具,便捷、舒适是它的核心,O-ComTool指在以最顺手的方式解决串口调试过程中出现的问题,希望这款软件能够成" + 106 | "为您的好帮手。\r\n"; 107 | // 108 | // About 109 | // 110 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 111 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 112 | this.BackColor = System.Drawing.Color.White; 113 | this.ClientSize = new System.Drawing.Size(452, 263); 114 | this.Controls.Add(this.textBox1); 115 | this.Controls.Add(this.Lab_Contact); 116 | this.Controls.Add(this.Lab_Author); 117 | this.Controls.Add(this.Lab_Version); 118 | this.Controls.Add(this.Lab_AppName); 119 | this.Controls.Add(this.Pic_Logo); 120 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 121 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 122 | this.MaximizeBox = false; 123 | this.MinimizeBox = false; 124 | this.Name = "About"; 125 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 126 | this.Text = "O-ComTool 关于"; 127 | this.Load += new System.EventHandler(this.About_Load); 128 | ((System.ComponentModel.ISupportInitialize)(this.Pic_Logo)).EndInit(); 129 | this.ResumeLayout(false); 130 | this.PerformLayout(); 131 | 132 | } 133 | 134 | #endregion 135 | 136 | private System.Windows.Forms.Label Lab_Contact; 137 | private System.Windows.Forms.Label Lab_Author; 138 | private System.Windows.Forms.Label Lab_Version; 139 | private System.Windows.Forms.Label Lab_AppName; 140 | private System.Windows.Forms.PictureBox Pic_Logo; 141 | private System.Windows.Forms.TextBox textBox1; 142 | } 143 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/About.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class About : Form 14 | { 15 | public About() 16 | { 17 | InitializeComponent(); 18 | } 19 | 20 | private void About_Load(object sender, EventArgs e) 21 | { 22 | Lab_Version.Text = "版本:V" + Application.ProductVersion.Substring(0, 5); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /O-ComTool_Pro/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 9600 15 | 16 | 17 | 3 18 | 19 | 20 | 0 21 | 22 | 23 | 0 24 | 25 | 26 | 0 27 | 28 | 29 | True 30 | 31 | 32 | True 33 | 34 | 35 | False 36 | 37 | 38 | False 39 | 40 | 41 | False 42 | 43 | 44 | 100 45 | 46 | 47 | False 48 | 49 | 50 | False 51 | 52 | 53 | False 54 | 55 | 56 | 1000 57 | 58 | 59 | www.ifreehub.com 60 | 61 | 62 | 63 | 64 | 65 | False 66 | 67 | 68 | False 69 | 70 | 71 | 2018-11-21 23:22:00 72 | 73 | 74 | 39, 40, 34 75 | 76 | 77 | 248, 248, 242 78 | 79 | 80 | 39, 40, 34 81 | 82 | 83 | 248, 248, 242 84 | 85 | 86 | Consolas, 10.5pt 87 | 88 | 89 | Consolas, 10.5pt 90 | 91 | 92 | 3 93 | 94 | 95 | 96 | 98 | Title1 99 | Title2 100 | Title3 101 | 102 | 103 | 104 | 105 | 106 | 108 | Data1 109 | Data2 110 | Data3 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | True 119 | 120 | 121 | True 122 | 123 | 124 | 20 125 | 126 | 127 | False 128 | 129 | 130 | False 131 | 132 | 133 | 248, 248, 242 134 | 135 | 136 | 39, 40, 34 137 | 138 | 139 | 248, 248, 242 140 | 141 | 142 | 39, 40, 34 143 | 144 | 145 | Consolas, 10.5pt 146 | 147 | 148 | Consolas, 10.5pt 149 | 150 | 151 | True 152 | 153 | 154 | False 155 | 156 | 157 | 0 158 | 159 | 160 | False 161 | 162 | 163 | ([^A-Za-z_&-]((bad|wrong|incorrect|improper|invalid|unsupported|bad)( file| memory)? (descriptor|alloc(ation)?|addr(ess)?|owner(ship)?|arg(ument)?|param(eter)?|setting|length|filename)|not properly|improperly|(operation |connection |authentication |access |permission )?(denied|disallowed|not allowed|refused|problem|failed|failure|not permitted)|no [A-Za-z]+( [A-Za-z]+)? found|invalid|unsupported|not supported|seg(mentation )?fault|corruption|corrupted|corrupt|overflow|underrun|not ok|unimplemented|unsuccessfull|not implemented|permerrors?|fehlers?|errore|errors?|erreurs?|fejl|virhe|grea|erro|fel|\(ee\)|\(ni\))[^A-Za-z_-]) 164 | 165 | 166 | ([^A-Za-z_&-](ok|accepted|allowed|enabled|connected|erfolgreich|exitoso|successo|sucedido|successfully|successful|succeeded|success)[^A-Za-z_-]) 167 | 168 | 169 | [^A-Za-z_&-](\[\-w[A-Za-z-]+\]|caught signal [0-9]+|cannot|(connection (to (remote host|[a-z0-9.]+) )?)?(closed|terminated|stopped|not responding)|exited|no more [A-Za-z] available|unexpected|(command |binary |file )?not found|(o)+ps|out of (space|memory)|low (memory|disk)|unknown|disabled|disconnected|deprecated|refused|disconnect(ion)?|advertencia|avvertimento|attention|warnings?|achtung|exclamation|alerts?|warnungs?|advarsel|pedwarn|aviso|varoitus|upozorenje|peringatan|uyari|varning|avertissement|\(ww\)|\(\?\?\)|could not|unable to)[^A-Za-z_-] 170 | 171 | 172 | [^A-Za-z_&-](debug|test)[^A-Za-z_-] 173 | 174 | 175 | [^0-9A-Za-z_&-](localhost|([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4])\.[0-9]+\.[0-9]+\.[0-9]+|null|none)[^0-9A-Za-z_-] 176 | 177 | 178 | [^A-Za-z_&-](last (failed )?login:|launching|checking|loading|creating|building|important|booting|starting|notice|informational|informationen|informazioni|informaction|oplysninger|informations?|info|informaction|informasi|note|\(ii\)|\(\!\!\))[^A-Za-z_-] 179 | 180 | 181 | ([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]):([0-9][0-9][0-9]-(<|>)) 182 | 183 | 184 | True 185 | 186 | 187 | False 188 | 189 | 190 | 191 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Check.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class Check 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Check)); 32 | this.cmbWaySelect = new System.Windows.Forms.ComboBox(); 33 | this.label1 = new System.Windows.Forms.Label(); 34 | this.txtResault = new System.Windows.Forms.TextBox(); 35 | this.btnCheck = new System.Windows.Forms.Button(); 36 | this.txtData = new System.Windows.Forms.TextBox(); 37 | this.SuspendLayout(); 38 | // 39 | // cmbWaySelect 40 | // 41 | this.cmbWaySelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 42 | this.cmbWaySelect.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 43 | this.cmbWaySelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 44 | this.cmbWaySelect.FormattingEnabled = true; 45 | this.cmbWaySelect.Items.AddRange(new object[] { 46 | "CheckSum", 47 | "XOR", 48 | "CRC-16(Modbus)", 49 | "CRC-32"}); 50 | this.cmbWaySelect.Location = new System.Drawing.Point(273, 147); 51 | this.cmbWaySelect.Name = "cmbWaySelect"; 52 | this.cmbWaySelect.Size = new System.Drawing.Size(94, 25); 53 | this.cmbWaySelect.TabIndex = 12; 54 | // 55 | // label1 56 | // 57 | this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 58 | this.label1.AutoSize = true; 59 | this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 60 | this.label1.Location = new System.Drawing.Point(4, 150); 61 | this.label1.Name = "label1"; 62 | this.label1.Size = new System.Drawing.Size(79, 19); 63 | this.label1.TabIndex = 11; 64 | this.label1.Text = "计算结果:"; 65 | // 66 | // txtResault 67 | // 68 | this.txtResault.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 69 | this.txtResault.Font = new System.Drawing.Font("Consolas", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 70 | this.txtResault.Location = new System.Drawing.Point(77, 147); 71 | this.txtResault.Name = "txtResault"; 72 | this.txtResault.Size = new System.Drawing.Size(135, 24); 73 | this.txtResault.TabIndex = 10; 74 | this.txtResault.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 75 | // 76 | // btnCheck 77 | // 78 | this.btnCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 79 | this.btnCheck.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 80 | this.btnCheck.Location = new System.Drawing.Point(383, 144); 81 | this.btnCheck.Name = "btnCheck"; 82 | this.btnCheck.Size = new System.Drawing.Size(75, 30); 83 | this.btnCheck.TabIndex = 9; 84 | this.btnCheck.Text = "计算"; 85 | this.btnCheck.UseVisualStyleBackColor = true; 86 | this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click); 87 | // 88 | // txtData 89 | // 90 | this.txtData.Dock = System.Windows.Forms.DockStyle.Top; 91 | this.txtData.Font = new System.Drawing.Font("Consolas", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 92 | this.txtData.Location = new System.Drawing.Point(0, 0); 93 | this.txtData.Multiline = true; 94 | this.txtData.Name = "txtData"; 95 | this.txtData.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 96 | this.txtData.Size = new System.Drawing.Size(467, 139); 97 | this.txtData.TabIndex = 8; 98 | // 99 | // Check 100 | // 101 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 102 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 103 | this.BackColor = System.Drawing.Color.White; 104 | this.ClientSize = new System.Drawing.Size(467, 178); 105 | this.Controls.Add(this.txtResault); 106 | this.Controls.Add(this.cmbWaySelect); 107 | this.Controls.Add(this.label1); 108 | this.Controls.Add(this.btnCheck); 109 | this.Controls.Add(this.txtData); 110 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 111 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 112 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 113 | this.MaximizeBox = false; 114 | this.MinimizeBox = false; 115 | this.Name = "Check"; 116 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 117 | this.Text = "O-ComTool 校验"; 118 | this.ResumeLayout(false); 119 | this.PerformLayout(); 120 | 121 | } 122 | 123 | #endregion 124 | 125 | private System.Windows.Forms.ComboBox cmbWaySelect; 126 | private System.Windows.Forms.Label label1; 127 | private System.Windows.Forms.TextBox txtResault; 128 | private System.Windows.Forms.Button btnCheck; 129 | private System.Windows.Forms.TextBox txtData; 130 | } 131 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/Check.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Text.RegularExpressions; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace O_ComTool_Pro 13 | { 14 | public partial class Check : Form 15 | { 16 | public Check() 17 | { 18 | InitializeComponent(); 19 | cmbWaySelect.SelectedIndex = 0; 20 | } 21 | 22 | byte CheckSum(byte[] buffer, uint length) 23 | { 24 | byte CS = 0; 25 | for (uint i = 0; i < length; i++) 26 | CS += buffer[i]; 27 | return CS; 28 | } 29 | 30 | byte XOR(byte[] buffer, uint length) 31 | { 32 | byte xor = 0; 33 | for (uint i = 0; i < length; i++) 34 | xor ^= buffer[i]; 35 | return xor; 36 | } 37 | 38 | public uint crc16_modbus(byte[] modbusdata, uint length) 39 | { 40 | uint i, j; 41 | uint crc16 = 0xffff; 42 | for (i = 0; i < length; i++) 43 | { 44 | crc16 ^= modbusdata[i]; 45 | for (j = 0; j < 8; j++) 46 | { 47 | if ((crc16 & 0x01) == 1) 48 | { 49 | crc16 = (crc16 >> 1) ^ 0xA001; 50 | } 51 | else 52 | { 53 | crc16 = crc16 >> 1; 54 | } 55 | } 56 | } 57 | return crc16; 58 | } 59 | 60 | ulong[] Crc32Table = new ulong[256]; 61 | public void GetCRC32Table() 62 | { 63 | ulong Crc; 64 | int i, j; 65 | for (i = 0; i < 256; i++) 66 | { 67 | Crc = (ulong)i; 68 | for (j = 8; j > 0; j--) 69 | { 70 | if ((Crc & 1) == 1) 71 | Crc = (Crc >> 1) ^ 0xEDB88320; 72 | else 73 | Crc >>= 1; 74 | } 75 | Crc32Table[i] = Crc; 76 | } 77 | } 78 | 79 | ulong crc32_calc(byte[] data, uint len) 80 | { 81 | ulong value = 0xffffffff; 82 | GetCRC32Table(); 83 | for (int i = 0; i < len; i++) 84 | { 85 | value = (value >> 8) ^ Crc32Table[(value & 0xFF) ^ data[i]]; 86 | } 87 | return value ^ 0xffffffff; 88 | } 89 | 90 | private void btnCheck_Click(object sender, EventArgs e) 91 | { 92 | uint i = 0; 93 | MatchCollection mc = Regex.Matches(txtData.Text, @"(?i)[\da-f]{2}"); 94 | byte[] bytesToCheck = new byte[mc.Count]; 95 | foreach (Match m in mc)//遍历所有mc,并将其转换成十六进制 96 | { 97 | bytesToCheck[i++] = byte.Parse(m.Value, System.Globalization.NumberStyles.HexNumber);//赋值并累加 98 | } 99 | switch (cmbWaySelect.SelectedIndex) 100 | { 101 | case 0: 102 | txtResault.Text = "0x" + CheckSum(bytesToCheck, i).ToString("X2"); 103 | break; 104 | case 1: 105 | txtResault.Text = "0x" + XOR(bytesToCheck, i).ToString("X2"); 106 | break; 107 | case 2: 108 | txtResault.Text = "0x" + crc16_modbus(bytesToCheck, i).ToString("X4"); 109 | break; 110 | case 3: 111 | txtResault.Text = "0x" + crc32_calc(bytesToCheck, i).ToString("X8"); 112 | break; 113 | 114 | } 115 | } 116 | 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /O-ComTool_Pro/CheckUpdate.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class CheckUpdate 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CheckUpdate)); 32 | this.labMessage = new System.Windows.Forms.Label(); 33 | this.btnGoToUpdate = new System.Windows.Forms.Button(); 34 | this.btnSkipCurrentVersion = new System.Windows.Forms.Button(); 35 | this.labLatestVersion = new System.Windows.Forms.Label(); 36 | this.SuspendLayout(); 37 | // 38 | // labMessage 39 | // 40 | this.labMessage.AutoSize = true; 41 | this.labMessage.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 42 | this.labMessage.Location = new System.Drawing.Point(102, 13); 43 | this.labMessage.Name = "labMessage"; 44 | this.labMessage.Size = new System.Drawing.Size(172, 27); 45 | this.labMessage.TabIndex = 0; 46 | this.labMessage.Text = "有新版本更新啦!"; 47 | // 48 | // btnGoToUpdate 49 | // 50 | this.btnGoToUpdate.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 51 | this.btnGoToUpdate.Location = new System.Drawing.Point(41, 80); 52 | this.btnGoToUpdate.Name = "btnGoToUpdate"; 53 | this.btnGoToUpdate.Size = new System.Drawing.Size(110, 35); 54 | this.btnGoToUpdate.TabIndex = 1; 55 | this.btnGoToUpdate.Text = "前往更新"; 56 | this.btnGoToUpdate.UseVisualStyleBackColor = true; 57 | this.btnGoToUpdate.Click += new System.EventHandler(this.btnGoToUpdate_Click); 58 | // 59 | // btnSkipCurrentVersion 60 | // 61 | this.btnSkipCurrentVersion.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 62 | this.btnSkipCurrentVersion.Location = new System.Drawing.Point(239, 80); 63 | this.btnSkipCurrentVersion.Name = "btnSkipCurrentVersion"; 64 | this.btnSkipCurrentVersion.Size = new System.Drawing.Size(110, 35); 65 | this.btnSkipCurrentVersion.TabIndex = 2; 66 | this.btnSkipCurrentVersion.Text = "跳过当前版本"; 67 | this.btnSkipCurrentVersion.UseVisualStyleBackColor = true; 68 | this.btnSkipCurrentVersion.Click += new System.EventHandler(this.btnSkipCurrentVersion_Click); 69 | // 70 | // labLatestVersion 71 | // 72 | this.labLatestVersion.AutoSize = true; 73 | this.labLatestVersion.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 74 | this.labLatestVersion.Location = new System.Drawing.Point(123, 47); 75 | this.labLatestVersion.Name = "labLatestVersion"; 76 | this.labLatestVersion.Size = new System.Drawing.Size(124, 19); 77 | this.labLatestVersion.TabIndex = 3; 78 | this.labLatestVersion.Text = "最新版本:V2.0.1"; 79 | // 80 | // CheckUpdate 81 | // 82 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 83 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 84 | this.BackColor = System.Drawing.Color.White; 85 | this.ClientSize = new System.Drawing.Size(384, 134); 86 | this.Controls.Add(this.labLatestVersion); 87 | this.Controls.Add(this.btnSkipCurrentVersion); 88 | this.Controls.Add(this.btnGoToUpdate); 89 | this.Controls.Add(this.labMessage); 90 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 91 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 92 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 93 | this.MaximizeBox = false; 94 | this.MinimizeBox = false; 95 | this.Name = "CheckUpdate"; 96 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 97 | this.Text = "O-ComTool 更新提示"; 98 | this.Load += new System.EventHandler(this.CheckUpdate_Load); 99 | this.ResumeLayout(false); 100 | this.PerformLayout(); 101 | 102 | } 103 | 104 | #endregion 105 | 106 | private System.Windows.Forms.Label labMessage; 107 | private System.Windows.Forms.Button btnGoToUpdate; 108 | private System.Windows.Forms.Button btnSkipCurrentVersion; 109 | private System.Windows.Forms.Label labLatestVersion; 110 | } 111 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/CheckUpdate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class CheckUpdate : Form 14 | { 15 | string update_url = ""; 16 | public CheckUpdate() 17 | { 18 | InitializeComponent(); 19 | Control.CheckForIllegalCrossThreadCalls = false; 20 | } 21 | 22 | private void CheckUpdate_Load(object sender, EventArgs e) 23 | { 24 | labLatestVersion.Text = "最新版本: V" + MainForm.check_version_value.version; 25 | update_url = MainForm.check_version_value.link; 26 | } 27 | 28 | private void btnGoToUpdate_Click(object sender, EventArgs e) 29 | { 30 | System.Diagnostics.Process.Start(update_url); 31 | this.Close(); 32 | } 33 | 34 | private void btnSkipCurrentVersion_Click(object sender, EventArgs e) 35 | { 36 | app.Default.SkipVersion = MainForm.check_version_value.version; 37 | app.Default.Save(); 38 | this.Close(); 39 | } 40 | 41 | 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Donate.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class Donate 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Donate)); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.label2 = new System.Windows.Forms.Label(); 34 | this.label3 = new System.Windows.Forms.Label(); 35 | this.pictureBox2 = new System.Windows.Forms.PictureBox(); 36 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 37 | this.label4 = new System.Windows.Forms.Label(); 38 | this.label5 = new System.Windows.Forms.Label(); 39 | this.label6 = new System.Windows.Forms.Label(); 40 | this.label7 = new System.Windows.Forms.Label(); 41 | this.label8 = new System.Windows.Forms.Label(); 42 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); 43 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 44 | this.SuspendLayout(); 45 | // 46 | // label1 47 | // 48 | this.label1.AutoSize = true; 49 | this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 50 | this.label1.Location = new System.Drawing.Point(23, 34); 51 | this.label1.Name = "label1"; 52 | this.label1.Size = new System.Drawing.Size(401, 19); 53 | this.label1.TabIndex = 2; 54 | this.label1.Text = "开发不易,如果这个软件对您有帮助,不妨请作者吃个包子吧!"; 55 | // 56 | // label2 57 | // 58 | this.label2.AutoSize = true; 59 | this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 60 | this.label2.Location = new System.Drawing.Point(92, 257); 61 | this.label2.Name = "label2"; 62 | this.label2.Size = new System.Drawing.Size(58, 22); 63 | this.label2.TabIndex = 3; 64 | this.label2.Text = "支付宝"; 65 | // 66 | // label3 67 | // 68 | this.label3.AutoSize = true; 69 | this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 70 | this.label3.Location = new System.Drawing.Point(303, 257); 71 | this.label3.Name = "label3"; 72 | this.label3.Size = new System.Drawing.Size(42, 22); 73 | this.label3.TabIndex = 4; 74 | this.label3.Text = "微信"; 75 | // 76 | // pictureBox2 77 | // 78 | this.pictureBox2.Image = global::O_ComTool_Pro.Properties.Resources.WechatPay1; 79 | this.pictureBox2.Location = new System.Drawing.Point(239, 87); 80 | this.pictureBox2.Name = "pictureBox2"; 81 | this.pictureBox2.Size = new System.Drawing.Size(171, 172); 82 | this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 83 | this.pictureBox2.TabIndex = 1; 84 | this.pictureBox2.TabStop = false; 85 | // 86 | // pictureBox1 87 | // 88 | this.pictureBox1.Image = global::O_ComTool_Pro.Properties.Resources.AliPay1; 89 | this.pictureBox1.Location = new System.Drawing.Point(32, 93); 90 | this.pictureBox1.Name = "pictureBox1"; 91 | this.pictureBox1.Size = new System.Drawing.Size(179, 161); 92 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 93 | this.pictureBox1.TabIndex = 0; 94 | this.pictureBox1.TabStop = false; 95 | // 96 | // label4 97 | // 98 | this.label4.AutoSize = true; 99 | this.label4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 100 | this.label4.Location = new System.Drawing.Point(23, 4); 101 | this.label4.Name = "label4"; 102 | this.label4.Size = new System.Drawing.Size(138, 27); 103 | this.label4.TabIndex = 5; 104 | this.label4.Text = "嘿 朋友!!!"; 105 | // 106 | // label5 107 | // 108 | this.label5.AutoSize = true; 109 | this.label5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 110 | this.label5.Location = new System.Drawing.Point(23, 53); 111 | this.label5.Name = "label5"; 112 | this.label5.Size = new System.Drawing.Size(191, 19); 113 | this.label5.TabIndex = 6; 114 | this.label5.Text = "如不方便,也可支付宝搜索”"; 115 | // 116 | // label6 117 | // 118 | this.label6.AutoSize = true; 119 | this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 120 | this.label6.Location = new System.Drawing.Point(23, 72); 121 | this.label6.Name = "label6"; 122 | this.label6.Size = new System.Drawing.Size(331, 19); 123 | this.label6.TabIndex = 7; 124 | this.label6.Text = "您的支持是作者不断更新、维护的动力,非常感谢!"; 125 | // 126 | // label7 127 | // 128 | this.label7.AutoSize = true; 129 | this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 130 | this.label7.ForeColor = System.Drawing.Color.Red; 131 | this.label7.Location = new System.Drawing.Point(203, 53); 132 | this.label7.Name = "label7"; 133 | this.label7.Size = new System.Drawing.Size(72, 19); 134 | this.label7.TabIndex = 8; 135 | this.label7.Text = "9795782"; 136 | // 137 | // label8 138 | // 139 | this.label8.AutoSize = true; 140 | this.label8.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 141 | this.label8.Location = new System.Drawing.Point(265, 53); 142 | this.label8.Name = "label8"; 143 | this.label8.Size = new System.Drawing.Size(107, 19); 144 | this.label8.TabIndex = 9; 145 | this.label8.Text = "“领取大红包!"; 146 | // 147 | // Donate 148 | // 149 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 150 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 151 | this.BackColor = System.Drawing.Color.White; 152 | this.ClientSize = new System.Drawing.Size(446, 285); 153 | this.Controls.Add(this.label7); 154 | this.Controls.Add(this.label8); 155 | this.Controls.Add(this.label6); 156 | this.Controls.Add(this.label5); 157 | this.Controls.Add(this.label4); 158 | this.Controls.Add(this.label3); 159 | this.Controls.Add(this.label2); 160 | this.Controls.Add(this.label1); 161 | this.Controls.Add(this.pictureBox2); 162 | this.Controls.Add(this.pictureBox1); 163 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 164 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 165 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 166 | this.MaximizeBox = false; 167 | this.MinimizeBox = false; 168 | this.Name = "Donate"; 169 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 170 | this.Text = "O-ComTool 捐赠"; 171 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); 172 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 173 | this.ResumeLayout(false); 174 | this.PerformLayout(); 175 | 176 | } 177 | 178 | #endregion 179 | 180 | private System.Windows.Forms.PictureBox pictureBox1; 181 | private System.Windows.Forms.PictureBox pictureBox2; 182 | private System.Windows.Forms.Label label1; 183 | private System.Windows.Forms.Label label2; 184 | private System.Windows.Forms.Label label3; 185 | private System.Windows.Forms.Label label4; 186 | private System.Windows.Forms.Label label5; 187 | private System.Windows.Forms.Label label6; 188 | private System.Windows.Forms.Label label7; 189 | private System.Windows.Forms.Label label8; 190 | } 191 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/Donate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class Donate : Form 14 | { 15 | public Donate() 16 | { 17 | InitializeComponent(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Format.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class Format 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Format)); 32 | this.chkH = new System.Windows.Forms.CheckBox(); 33 | this.ChkPoint = new System.Windows.Forms.CheckBox(); 34 | this.button1 = new System.Windows.Forms.Button(); 35 | this.label1 = new System.Windows.Forms.Label(); 36 | this.chkSpace = new System.Windows.Forms.CheckBox(); 37 | this.chkComma = new System.Windows.Forms.CheckBox(); 38 | this.chk0x = new System.Windows.Forms.CheckBox(); 39 | this.txtDest = new System.Windows.Forms.TextBox(); 40 | this.txtSrc = new System.Windows.Forms.TextBox(); 41 | this.SuspendLayout(); 42 | // 43 | // chkH 44 | // 45 | this.chkH.AutoSize = true; 46 | this.chkH.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 47 | this.chkH.Location = new System.Drawing.Point(228, 96); 48 | this.chkH.Name = "chkH"; 49 | this.chkH.Size = new System.Drawing.Size(51, 24); 50 | this.chkH.TabIndex = 17; 51 | this.chkH.Text = "\"H\""; 52 | this.chkH.UseVisualStyleBackColor = true; 53 | // 54 | // ChkPoint 55 | // 56 | this.ChkPoint.AutoSize = true; 57 | this.ChkPoint.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 58 | this.ChkPoint.Location = new System.Drawing.Point(174, 96); 59 | this.ChkPoint.Name = "ChkPoint"; 60 | this.ChkPoint.Size = new System.Drawing.Size(43, 24); 61 | this.ChkPoint.TabIndex = 16; 62 | this.ChkPoint.Text = "\".\""; 63 | this.ChkPoint.UseVisualStyleBackColor = true; 64 | // 65 | // button1 66 | // 67 | this.button1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 68 | this.button1.Location = new System.Drawing.Point(429, 95); 69 | this.button1.Name = "button1"; 70 | this.button1.Size = new System.Drawing.Size(75, 27); 71 | this.button1.TabIndex = 15; 72 | this.button1.Text = "格式化"; 73 | this.button1.UseVisualStyleBackColor = true; 74 | this.button1.Click += new System.EventHandler(this.button1_Click); 75 | // 76 | // label1 77 | // 78 | this.label1.AutoSize = true; 79 | this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 80 | this.label1.Location = new System.Drawing.Point(3, 98); 81 | this.label1.Name = "label1"; 82 | this.label1.Size = new System.Drawing.Size(51, 20); 83 | this.label1.TabIndex = 14; 84 | this.label1.Text = "选项:"; 85 | // 86 | // chkSpace 87 | // 88 | this.chkSpace.AutoSize = true; 89 | this.chkSpace.Checked = true; 90 | this.chkSpace.CheckState = System.Windows.Forms.CheckState.Checked; 91 | this.chkSpace.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 92 | this.chkSpace.Location = new System.Drawing.Point(282, 96); 93 | this.chkSpace.Name = "chkSpace"; 94 | this.chkSpace.Size = new System.Drawing.Size(68, 24); 95 | this.chkSpace.TabIndex = 13; 96 | this.chkSpace.Text = "\"空格\""; 97 | this.chkSpace.UseVisualStyleBackColor = true; 98 | // 99 | // chkComma 100 | // 101 | this.chkComma.AutoSize = true; 102 | this.chkComma.Checked = true; 103 | this.chkComma.CheckState = System.Windows.Forms.CheckState.Checked; 104 | this.chkComma.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 105 | this.chkComma.Location = new System.Drawing.Point(120, 96); 106 | this.chkComma.Name = "chkComma"; 107 | this.chkComma.Size = new System.Drawing.Size(43, 24); 108 | this.chkComma.TabIndex = 12; 109 | this.chkComma.Text = "\",\""; 110 | this.chkComma.UseVisualStyleBackColor = true; 111 | // 112 | // chk0x 113 | // 114 | this.chk0x.AutoSize = true; 115 | this.chk0x.Checked = true; 116 | this.chk0x.CheckState = System.Windows.Forms.CheckState.Checked; 117 | this.chk0x.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 118 | this.chk0x.Location = new System.Drawing.Point(60, 96); 119 | this.chk0x.Name = "chk0x"; 120 | this.chk0x.Size = new System.Drawing.Size(55, 24); 121 | this.chk0x.TabIndex = 11; 122 | this.chk0x.Text = "\"0x\""; 123 | this.chk0x.UseVisualStyleBackColor = true; 124 | // 125 | // txtDest 126 | // 127 | this.txtDest.Dock = System.Windows.Forms.DockStyle.Bottom; 128 | this.txtDest.Font = new System.Drawing.Font("Consolas", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 129 | this.txtDest.Location = new System.Drawing.Point(0, 128); 130 | this.txtDest.Multiline = true; 131 | this.txtDest.Name = "txtDest"; 132 | this.txtDest.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 133 | this.txtDest.Size = new System.Drawing.Size(506, 90); 134 | this.txtDest.TabIndex = 10; 135 | // 136 | // txtSrc 137 | // 138 | this.txtSrc.Dock = System.Windows.Forms.DockStyle.Top; 139 | this.txtSrc.Font = new System.Drawing.Font("Consolas", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 140 | this.txtSrc.Location = new System.Drawing.Point(0, 0); 141 | this.txtSrc.Multiline = true; 142 | this.txtSrc.Name = "txtSrc"; 143 | this.txtSrc.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 144 | this.txtSrc.Size = new System.Drawing.Size(506, 90); 145 | this.txtSrc.TabIndex = 9; 146 | // 147 | // Format 148 | // 149 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 150 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 151 | this.BackColor = System.Drawing.Color.White; 152 | this.ClientSize = new System.Drawing.Size(506, 218); 153 | this.Controls.Add(this.chkH); 154 | this.Controls.Add(this.ChkPoint); 155 | this.Controls.Add(this.button1); 156 | this.Controls.Add(this.label1); 157 | this.Controls.Add(this.chkSpace); 158 | this.Controls.Add(this.chkComma); 159 | this.Controls.Add(this.chk0x); 160 | this.Controls.Add(this.txtDest); 161 | this.Controls.Add(this.txtSrc); 162 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 163 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 164 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 165 | this.MaximizeBox = false; 166 | this.MinimizeBox = false; 167 | this.Name = "Format"; 168 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 169 | this.Text = "O-ComTool 报文格式化"; 170 | this.ResumeLayout(false); 171 | this.PerformLayout(); 172 | 173 | } 174 | 175 | #endregion 176 | 177 | private System.Windows.Forms.CheckBox chkH; 178 | private System.Windows.Forms.CheckBox ChkPoint; 179 | private System.Windows.Forms.Button button1; 180 | private System.Windows.Forms.Label label1; 181 | private System.Windows.Forms.CheckBox chkSpace; 182 | private System.Windows.Forms.CheckBox chkComma; 183 | private System.Windows.Forms.CheckBox chk0x; 184 | private System.Windows.Forms.TextBox txtDest; 185 | private System.Windows.Forms.TextBox txtSrc; 186 | } 187 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/Format.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Text.RegularExpressions; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace O_ComTool_Pro 13 | { 14 | public partial class Format : Form 15 | { 16 | public Format() 17 | { 18 | InitializeComponent(); 19 | } 20 | 21 | private void button1_Click(object sender, EventArgs e) 22 | { 23 | string txt_dest_str = ""; 24 | string txt_src_clr = System.Text.RegularExpressions.Regex.Replace(txtSrc.Text, "0x|0X|[, Hh]", ""); 25 | 26 | MatchCollection mc = Regex.Matches(txt_src_clr, @"(?i)[\da-f]{2}");//正则获取符合十六进制规则的数据,如果数据错误则跳过该数据 27 | 28 | foreach (Match m in mc)//遍历所有mc,并将其转换成十六进制 29 | { 30 | if (chk0x.Checked) 31 | { 32 | txt_dest_str += "0x"; 33 | } 34 | txt_dest_str += m.Value; 35 | if (chkComma.Checked) 36 | { 37 | txt_dest_str += ","; 38 | } 39 | if (ChkPoint.Checked) 40 | { 41 | txt_dest_str += "."; 42 | } 43 | if (chkH.Checked) 44 | { 45 | txt_dest_str += "H"; 46 | } 47 | if (chkSpace.Checked) 48 | { 49 | txt_dest_str += " "; 50 | } 51 | } 52 | txtDest.Text = txt_dest_str; 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /O-ComTool_Pro/HightLight.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class HightLight 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HightLight)); 32 | this.labKey = new System.Windows.Forms.Label(); 33 | this.txbKey = new System.Windows.Forms.TextBox(); 34 | this.labColor = new System.Windows.Forms.Label(); 35 | this.btnChoseColor = new System.Windows.Forms.Button(); 36 | this.btnOk = new System.Windows.Forms.Button(); 37 | this.btnCancel = new System.Windows.Forms.Button(); 38 | this.colorDialog1 = new System.Windows.Forms.ColorDialog(); 39 | this.SuspendLayout(); 40 | // 41 | // labKey 42 | // 43 | this.labKey.AutoSize = true; 44 | this.labKey.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 45 | this.labKey.Location = new System.Drawing.Point(6, 12); 46 | this.labKey.Name = "labKey"; 47 | this.labKey.Size = new System.Drawing.Size(65, 20); 48 | this.labKey.TabIndex = 0; 49 | this.labKey.Text = "关键字:"; 50 | // 51 | // txbKey 52 | // 53 | this.txbKey.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 54 | this.txbKey.Location = new System.Drawing.Point(67, 9); 55 | this.txbKey.Name = "txbKey"; 56 | this.txbKey.Size = new System.Drawing.Size(100, 26); 57 | this.txbKey.TabIndex = 1; 58 | // 59 | // labColor 60 | // 61 | this.labColor.BackColor = System.Drawing.Color.Lime; 62 | this.labColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 63 | this.labColor.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 64 | this.labColor.Location = new System.Drawing.Point(176, 9); 65 | this.labColor.Name = "labColor"; 66 | this.labColor.Size = new System.Drawing.Size(26, 26); 67 | this.labColor.TabIndex = 8; 68 | // 69 | // btnChoseColor 70 | // 71 | this.btnChoseColor.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 72 | this.btnChoseColor.Location = new System.Drawing.Point(208, 8); 73 | this.btnChoseColor.Name = "btnChoseColor"; 74 | this.btnChoseColor.Size = new System.Drawing.Size(29, 29); 75 | this.btnChoseColor.TabIndex = 9; 76 | this.btnChoseColor.Text = "..."; 77 | this.btnChoseColor.UseVisualStyleBackColor = true; 78 | this.btnChoseColor.Click += new System.EventHandler(this.btnChoseColor_Click); 79 | // 80 | // btnOk 81 | // 82 | this.btnOk.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 83 | this.btnOk.Location = new System.Drawing.Point(81, 43); 84 | this.btnOk.Name = "btnOk"; 85 | this.btnOk.Size = new System.Drawing.Size(75, 29); 86 | this.btnOk.TabIndex = 10; 87 | this.btnOk.Text = "确定"; 88 | this.btnOk.UseVisualStyleBackColor = true; 89 | this.btnOk.Click += new System.EventHandler(this.btnOk_Click); 90 | // 91 | // btnCancel 92 | // 93 | this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 94 | this.btnCancel.Location = new System.Drawing.Point(162, 43); 95 | this.btnCancel.Name = "btnCancel"; 96 | this.btnCancel.Size = new System.Drawing.Size(75, 29); 97 | this.btnCancel.TabIndex = 11; 98 | this.btnCancel.Text = "取消"; 99 | this.btnCancel.UseVisualStyleBackColor = true; 100 | this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); 101 | // 102 | // HightLight 103 | // 104 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 105 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 106 | this.ClientSize = new System.Drawing.Size(244, 80); 107 | this.Controls.Add(this.btnCancel); 108 | this.Controls.Add(this.btnOk); 109 | this.Controls.Add(this.btnChoseColor); 110 | this.Controls.Add(this.labColor); 111 | this.Controls.Add(this.txbKey); 112 | this.Controls.Add(this.labKey); 113 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 114 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 115 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 116 | this.MaximizeBox = false; 117 | this.MinimizeBox = false; 118 | this.Name = "HightLight"; 119 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 120 | this.Text = "O-ComTool 高亮"; 121 | this.Load += new System.EventHandler(this.HightLight_Load); 122 | this.ResumeLayout(false); 123 | this.PerformLayout(); 124 | 125 | } 126 | 127 | #endregion 128 | 129 | private System.Windows.Forms.Label labKey; 130 | private System.Windows.Forms.TextBox txbKey; 131 | private System.Windows.Forms.Label labColor; 132 | private System.Windows.Forms.Button btnChoseColor; 133 | private System.Windows.Forms.Button btnOk; 134 | private System.Windows.Forms.Button btnCancel; 135 | private System.Windows.Forms.ColorDialog colorDialog1; 136 | } 137 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/HightLight.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class HightLight : Form 14 | { 15 | Option option_form; 16 | public HightLight(Option form) 17 | { 18 | InitializeComponent(); 19 | option_form = form; 20 | } 21 | 22 | private void HightLight_Load(object sender, EventArgs e) 23 | { 24 | option_form.hl_valid = false; 25 | if (option_form.hl_mode == 2) 26 | { 27 | //MessageBox.Show("hl_mode2"); 28 | txbKey.Text = option_form.hl_key; 29 | labColor.BackColor = System.Drawing.ColorTranslator.FromHtml(option_form.hl_color); 30 | } 31 | } 32 | 33 | private void btnOk_Click(object sender, EventArgs e) 34 | { 35 | if (txbKey.Text != "") 36 | { 37 | option_form.hl_valid = true; 38 | option_form.hl_key = txbKey.Text; 39 | option_form.hl_color = option_form.Color2Hex(labColor.BackColor); 40 | this.Close(); 41 | } 42 | else 43 | { 44 | MessageBox.Show("请输入关键字!","O-ComTool 错误",MessageBoxButtons.OK,MessageBoxIcon.Error); 45 | } 46 | } 47 | 48 | private void btnChoseColor_Click(object sender, EventArgs e) 49 | { 50 | if (colorDialog1.ShowDialog() == DialogResult.OK) 51 | { 52 | Color new_color = colorDialog1.Color; 53 | labColor.BackColor = new_color; 54 | } 55 | } 56 | 57 | private void btnCancel_Click(object sender, EventArgs e) 58 | { 59 | option_form.hl_valid = false; 60 | this.Close(); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /O-ComTool_Pro/HightLightRichTextBox.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class HightLightRichTextBox 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region 组件设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /O-ComTool_Pro/HightLightRichTextBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.IO; 5 | using System.Windows.Forms; 6 | using System.ComponentModel; 7 | using System.Text.RegularExpressions; 8 | using System.Drawing; 9 | 10 | namespace O_ComTool_Pro 11 | { 12 | public partial class HightLightRichTextBox : System.Windows.Forms.RichTextBox 13 | { 14 | private HightLightSettings m_settings = new HightLightSettings(); 15 | private static bool m_bPaint = true; 16 | private string m_strLine = ""; 17 | private int m_nLineLength = 0; 18 | private int m_nLineStart = 0; 19 | private string m_strKeywords = ""; 20 | 21 | /// 22 | /// The settings. 23 | /// 24 | public HightLightSettings Settings 25 | { 26 | get { return m_settings; } 27 | } 28 | 29 | /// 30 | /// WndProc 31 | /// 32 | /// 33 | protected override void WndProc(ref System.Windows.Forms.Message m) 34 | { 35 | if (m.Msg == 0x00f) 36 | { 37 | if (m_bPaint) 38 | base.WndProc(ref m); 39 | else 40 | m.Result = IntPtr.Zero; 41 | } 42 | else 43 | base.WndProc(ref m); 44 | } 45 | 46 | /// 47 | /// OnTextChanged 48 | /// 49 | /// 50 | //protected override void OnTextChanged(EventArgs e) 51 | //{ 52 | // if (Settings.Enable == false) return; 53 | // // Calculate shit here. 54 | // m_nContentLength = this.TextLength; 55 | 56 | // int nCurrentSelectionStart = SelectionStart; 57 | // int nCurrentSelectionLength = SelectionLength; 58 | 59 | // m_bPaint = false; 60 | 61 | // // Find the start of the current line. 62 | // m_nLineStart = nCurrentSelectionStart; 63 | // while ((m_nLineStart > 0) && (Text[m_nLineStart - 1] != '\n')) 64 | // m_nLineStart--; 65 | // // Find the end of the current line. 66 | // m_nLineEnd = nCurrentSelectionStart; 67 | // while ((m_nLineEnd < Text.Length) && (Text[m_nLineEnd] != '\n')) 68 | // m_nLineEnd++; 69 | // // Calculate the length of the line. 70 | // m_nLineLength = m_nLineEnd - m_nLineStart; 71 | // // Get the current line. 72 | // m_strLine = Text.Substring(m_nLineStart, m_nLineLength); 73 | 74 | // // Process this line. 75 | // ProcessLine(); 76 | 77 | // m_bPaint = true; 78 | //} 79 | 80 | /// 81 | /// Process a line. 82 | /// 83 | private void ProcessLine() 84 | { 85 | // Save the position and make the whole line black 86 | int nPosition = SelectionStart; 87 | 88 | SelectionStart = m_nLineStart; 89 | SelectionLength = m_nLineLength; 90 | SelectionColor = Settings.DefaultColor; 91 | 92 | // Process the keywords 93 | ProcessRegex(m_strKeywords, Settings.Keywords, Settings.KeywordColor); 94 | 95 | 96 | SelectionStart = nPosition; 97 | SelectionLength = 0; 98 | SelectionColor = Settings.DefaultColor; 99 | } 100 | 101 | /// 102 | /// Process a regular expression. 103 | /// 104 | /// The regular expression. 105 | /// The color. 106 | private void ProcessRegex(string strRegex, List keys, List color) 107 | { 108 | Regex regKeywords = new Regex(strRegex, RegexOptions.Compiled); 109 | Match regMatch; 110 | 111 | for (regMatch = regKeywords.Match(m_strLine); regMatch.Success; regMatch = regMatch.NextMatch()) 112 | { 113 | // Process the words 114 | int nStart = m_nLineStart + regMatch.Index; 115 | int nLenght = regMatch.Length; 116 | SelectionStart = nStart; 117 | SelectionLength = nLenght; 118 | for (int i = 0; i < color.Count; i++) 119 | { 120 | if (regMatch.Value == keys[i]) 121 | { 122 | SelectionColor = color[i]; 123 | } 124 | } 125 | } 126 | } 127 | 128 | /// 129 | /// Compiles the keywords as a regular expression. 130 | /// 131 | public void CompileKeywords() 132 | { 133 | m_strKeywords = ""; 134 | for (int i = 0; i < Settings.Keywords.Count; i++) 135 | { 136 | string strKeyword = Settings.Keywords[i]; 137 | 138 | if (i == Settings.Keywords.Count - 1) 139 | m_strKeywords += strKeyword; 140 | else 141 | m_strKeywords += strKeyword + "|"; 142 | } 143 | } 144 | } 145 | 146 | /// 147 | /// Class to store HightLight objects in. 148 | /// 149 | public class HightLightList 150 | { 151 | public List m_rgList = new List(); 152 | public List m_color = new List(); 153 | } 154 | 155 | /// 156 | /// Settings for the keywords and colors. 157 | /// 158 | public class HightLightSettings 159 | { 160 | HightLightList m_rgKeywords = new HightLightList(); 161 | Color default_color = new Color(); 162 | bool enable= false; 163 | 164 | #region Properties 165 | /// 166 | /// A list containing all keywords. 167 | /// 168 | public List Keywords 169 | { 170 | get { return m_rgKeywords.m_rgList; } 171 | } 172 | 173 | /// 174 | /// The color of keywords. 175 | /// 176 | public List KeywordColor 177 | { 178 | get { return m_rgKeywords.m_color; } 179 | } 180 | 181 | /// 182 | /// the color of other words 183 | /// 184 | public Color DefaultColor 185 | { 186 | get { return default_color; } 187 | set { default_color = value; } 188 | } 189 | 190 | public bool Enable 191 | { 192 | get { return enable; } 193 | set { enable = value; } 194 | } 195 | #endregion 196 | } 197 | } 198 | -------------------------------------------------------------------------------- /O-ComTool_Pro/HttpWebRequestHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Net; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace O_ComTool_Pro 10 | { 11 | class HttpWebRequestHelper 12 | { 13 | /// 14 | /// Http Get Request 15 | /// 16 | /// 17 | /// 18 | public static string HttpGetRequest(string url) 19 | { 20 | string strGetResponse = string.Empty; 21 | try 22 | { 23 | var getRequest = CreateHttpRequest(url, "GET"); 24 | var getResponse = getRequest.GetResponse() as HttpWebResponse; 25 | strGetResponse = GetHttpResponse(getResponse, "GET"); 26 | } 27 | catch (Exception ex) 28 | { 29 | strGetResponse = ex.Message; 30 | } 31 | return strGetResponse; 32 | } 33 | 34 | /// 35 | /// Http Get Request Async 36 | /// 37 | /// 38 | public static async void HttpGetRequestAsync(string url) 39 | { 40 | string strGetResponse = string.Empty; 41 | try 42 | { 43 | var getRequest = CreateHttpRequest(url, "GET"); 44 | var getResponse = await getRequest.GetResponseAsync() as HttpWebResponse; 45 | strGetResponse = GetHttpResponse(getResponse, "GET"); 46 | } 47 | catch (Exception ex) 48 | { 49 | strGetResponse = ex.Message; 50 | } 51 | //return strGetResponse; 52 | //Console.WriteLine("reslut:" + strGetResponse); 53 | } 54 | 55 | /// 56 | /// Http Post Request 57 | /// 58 | /// 59 | /// 60 | /// 61 | public static string HttpPostRequest(string url, string postJsonData) 62 | { 63 | string strPostReponse = string.Empty; 64 | try 65 | { 66 | var postRequest = CreateHttpRequest(url, "POST", postJsonData); 67 | var postResponse = postRequest.GetResponse() as HttpWebResponse; 68 | strPostReponse = GetHttpResponse(postResponse, "POST"); 69 | } 70 | catch (Exception ex) 71 | { 72 | strPostReponse = ex.Message; 73 | } 74 | return strPostReponse; 75 | } 76 | 77 | /// 78 | /// Http Post Request Async 79 | /// 80 | /// 81 | /// 82 | public static async void HttpPostRequestAsync(string url, string postData) 83 | { 84 | string strPostReponse = string.Empty; 85 | try 86 | { 87 | var postRequest = CreateHttpRequest(url, "POST", postData); 88 | var postResponse = await postRequest.GetResponseAsync() as HttpWebResponse; 89 | strPostReponse = GetHttpResponse(postResponse, "POST"); 90 | } 91 | catch (Exception ex) 92 | { 93 | strPostReponse = ex.Message; 94 | } 95 | if (strPostReponse != "true") 96 | { 97 | Console.WriteLine("--> reslut : " + strPostReponse); 98 | Console.WriteLine(postData); 99 | } 100 | } 101 | 102 | private static HttpWebRequest CreateHttpRequest(string url, string requestType, params object[] strJson) 103 | { 104 | HttpWebRequest request = null; 105 | const string get = "GET"; 106 | const string post = "POST"; 107 | if (string.Equals(requestType, get, StringComparison.OrdinalIgnoreCase)) 108 | { 109 | request = CreateGetHttpWebRequest(url); 110 | } 111 | if (string.Equals(requestType, post, StringComparison.OrdinalIgnoreCase)) 112 | { 113 | Console.Write("strJson" + strJson[0].ToString()); 114 | request = CreatePostHttpWebRequest(url, strJson[0].ToString()); 115 | } 116 | return request; 117 | } 118 | 119 | private static HttpWebRequest CreateGetHttpWebRequest(string url) 120 | { 121 | var getRequest = HttpWebRequest.Create(url) as HttpWebRequest; 122 | getRequest.Method = "GET"; 123 | getRequest.Timeout = 5000; 124 | getRequest.ContentType = "text/html;charset=UTF-8"; 125 | getRequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; 126 | return getRequest; 127 | } 128 | 129 | private static HttpWebRequest CreatePostHttpWebRequest(string url, string postData) 130 | { 131 | var postRequest = HttpWebRequest.Create(url) as HttpWebRequest; 132 | byte[] byteData = Encoding.UTF8.GetBytes(postData); 133 | postRequest.KeepAlive = false; 134 | postRequest.Timeout = 5000; 135 | postRequest.Method = "POST"; 136 | postRequest.ContentType = "application/x-www-form-urlencoded;charset=UTF-8"; 137 | postRequest.ContentLength = byteData.Length; 138 | //postRequest.ContentLength = postData.Length; 139 | postRequest.AllowWriteStreamBuffering = false; 140 | Stream writer = postRequest.GetRequestStream(); 141 | //var writer = new StreamWriter(postRequest.GetRequestStream(), Encoding.ASCII); 142 | 143 | writer.Write(byteData, 0, byteData.Length); 144 | //writer.Write(postData); 145 | writer.Flush(); 146 | return postRequest; 147 | } 148 | 149 | private static string GetHttpResponse(HttpWebResponse response, string requestType) 150 | { 151 | var responseResult = ""; 152 | const string post = "POST"; 153 | string encoding = "UTF-8"; 154 | if (string.Equals(requestType, post, StringComparison.OrdinalIgnoreCase)) 155 | { 156 | encoding = response.ContentEncoding; 157 | if (encoding == null || encoding.Length < 1) 158 | { 159 | encoding = "UTF-8"; 160 | } 161 | } 162 | using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(encoding))) 163 | { 164 | responseResult = reader.ReadToEnd(); 165 | } 166 | return responseResult; 167 | } 168 | 169 | private static string GetHttpResponseAsync(HttpWebResponse response, string requestType) 170 | { 171 | var responseResult = ""; 172 | const string post = "POST"; 173 | string encoding = "UTF-8"; 174 | if (string.Equals(requestType, post, StringComparison.OrdinalIgnoreCase)) 175 | { 176 | encoding = response.ContentEncoding; 177 | if (encoding == null || encoding.Length < 1) 178 | { 179 | encoding = "UTF-8"; 180 | } 181 | } 182 | using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(encoding))) 183 | { 184 | responseResult = reader.ReadToEnd(); 185 | } 186 | return responseResult; 187 | } 188 | 189 | 190 | } 191 | } 192 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Logo48.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Logo48.ico -------------------------------------------------------------------------------- /O-ComTool_Pro/Note.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class Note 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Note)); 32 | this.labName = new System.Windows.Forms.Label(); 33 | this.txtName = new System.Windows.Forms.TextBox(); 34 | this.btnApply = new System.Windows.Forms.Button(); 35 | this.SuspendLayout(); 36 | // 37 | // labName 38 | // 39 | this.labName.AutoSize = true; 40 | this.labName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 41 | this.labName.Location = new System.Drawing.Point(6, 17); 42 | this.labName.Name = "labName"; 43 | this.labName.Size = new System.Drawing.Size(65, 19); 44 | this.labName.TabIndex = 0; 45 | this.labName.Text = "备注名:"; 46 | // 47 | // txtName 48 | // 49 | this.txtName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 50 | this.txtName.Location = new System.Drawing.Point(71, 14); 51 | this.txtName.MaxLength = 20; 52 | this.txtName.Name = "txtName"; 53 | this.txtName.Size = new System.Drawing.Size(152, 26); 54 | this.txtName.TabIndex = 1; 55 | this.txtName.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtName_KeyPress); 56 | // 57 | // btnApply 58 | // 59 | this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 60 | this.btnApply.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 61 | this.btnApply.Location = new System.Drawing.Point(226, 12); 62 | this.btnApply.Name = "btnApply"; 63 | this.btnApply.Size = new System.Drawing.Size(75, 31); 64 | this.btnApply.TabIndex = 3; 65 | this.btnApply.Text = "应用"; 66 | this.btnApply.UseVisualStyleBackColor = true; 67 | this.btnApply.Click += new System.EventHandler(this.btnApply_Click); 68 | // 69 | // Note 70 | // 71 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 72 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 73 | this.BackColor = System.Drawing.Color.White; 74 | this.ClientSize = new System.Drawing.Size(310, 52); 75 | this.Controls.Add(this.btnApply); 76 | this.Controls.Add(this.txtName); 77 | this.Controls.Add(this.labName); 78 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 79 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 80 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 81 | this.MaximizeBox = false; 82 | this.MinimizeBox = false; 83 | this.Name = "Note"; 84 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 85 | this.Text = "O-ComTool 添加备注"; 86 | this.Load += new System.EventHandler(this.Note_Load); 87 | this.ResumeLayout(false); 88 | this.PerformLayout(); 89 | 90 | } 91 | 92 | #endregion 93 | 94 | private System.Windows.Forms.Label labName; 95 | private System.Windows.Forms.TextBox txtName; 96 | private System.Windows.Forms.Button btnApply; 97 | } 98 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/Note.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class Note : Form 14 | { 15 | MainForm main_form;//声明一个MainForm对象 16 | public Note(MainForm form) 17 | { 18 | this.main_form = form;//将MainForm传过来的Form赋值到声明的main_form 19 | InitializeComponent(); 20 | } 21 | 22 | private void btnApply_Click(object sender, EventArgs e) 23 | { 24 | if (txtName.Text != "") 25 | { 26 | main_form.Text = "O-ComTool V" + Application.ProductVersion.Substring(0, 5) + " [" + txtName.Text + "]"; 27 | } 28 | else 29 | { 30 | main_form.Text = "O-ComTool V" + Application.ProductVersion.Substring(0, 5); 31 | } 32 | this.Close(); 33 | } 34 | 35 | private void txtName_KeyPress(object sender, KeyPressEventArgs e) 36 | { 37 | if (e.KeyChar == System.Convert.ToChar(13))//回车响应 38 | { 39 | btnApply_Click(sender, e); 40 | e.Handled = true; 41 | } 42 | } 43 | 44 | private void Note_Load(object sender, EventArgs e) 45 | { 46 | 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /O-ComTool_Pro/O-ComTool_Pro.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {64A6B582-C0EB-460F-BEC1-A768C80831B7} 8 | WinExe 9 | Properties 10 | O_ComTool_Pro 11 | O-ComTool_Pro 12 | v4.5 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | Logo48.ico 36 | 37 | 38 | 39 | False 40 | ..\..\FastColoredTextBox\FastColoredTextBox\bin\Release\FastColoredTextBox.dll 41 | False 42 | False 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | Form 60 | 61 | 62 | About.cs 63 | 64 | 65 | True 66 | True 67 | app.settings 68 | 69 | 70 | Form 71 | 72 | 73 | ASCII.cs 74 | 75 | 76 | Form 77 | 78 | 79 | Check.cs 80 | 81 | 82 | Form 83 | 84 | 85 | CheckUpdate.cs 86 | 87 | 88 | Form 89 | 90 | 91 | Donate.cs 92 | 93 | 94 | Form 95 | 96 | 97 | Format.cs 98 | 99 | 100 | Component 101 | 102 | 103 | HightLightRichTextBox.cs 104 | 105 | 106 | 107 | Form 108 | 109 | 110 | MainForm.cs 111 | 112 | 113 | Form 114 | 115 | 116 | Note.cs 117 | 118 | 119 | Form 120 | 121 | 122 | Option.cs 123 | 124 | 125 | Component 126 | 127 | 128 | O_ScrollBar.cs 129 | 130 | 131 | 132 | 133 | UserControl 134 | 135 | 136 | QuickSend.cs 137 | 138 | 139 | Form 140 | 141 | 142 | Update.cs 143 | 144 | 145 | 146 | About.cs 147 | 148 | 149 | ASCII.cs 150 | 151 | 152 | Check.cs 153 | 154 | 155 | CheckUpdate.cs 156 | 157 | 158 | Donate.cs 159 | 160 | 161 | Format.cs 162 | 163 | 164 | MainForm.cs 165 | Designer 166 | 167 | 168 | Note.cs 169 | 170 | 171 | Option.cs 172 | 173 | 174 | ResXFileCodeGenerator 175 | Resources.Designer.cs 176 | Designer 177 | 178 | 179 | True 180 | Resources.resx 181 | True 182 | 183 | 184 | QuickSend.cs 185 | 186 | 187 | Update.cs 188 | 189 | 190 | SettingsSingleFileGenerator 191 | app.Designer.cs 192 | Designer 193 | 194 | 195 | SettingsSingleFileGenerator 196 | Settings.Designer.cs 197 | 198 | 199 | True 200 | Settings.settings 201 | True 202 | 203 | 204 | 205 | 206 | Designer 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 348 | -------------------------------------------------------------------------------- /O-ComTool_Pro/O_ScrollBar.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class O_ScrollBar 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region 组件设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要修改 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /O-ComTool_Pro/O_ScrollBar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Diagnostics; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | #region O_ScrollBar 14 | public partial class O_ScrollBar : Control 15 | { 16 | private int @value; 17 | 18 | public int Value 19 | { 20 | get { return value; } 21 | set 22 | { 23 | if (this.value == value) 24 | return; 25 | this.value = value; 26 | Invalidate(); 27 | OnScroll(); 28 | } 29 | } 30 | 31 | private int maximum = 100; 32 | public int Maximum 33 | { 34 | get { return maximum; } 35 | set { maximum = value; Invalidate(); } 36 | } 37 | 38 | private int thumbSize = 10; 39 | public int ThumbSize 40 | { 41 | get { return thumbSize; } 42 | set { thumbSize = value; Invalidate(); } 43 | } 44 | 45 | private Color thumbColor = Color.Gray; 46 | public Color ThumbColor 47 | { 48 | get { return thumbColor; } 49 | set { thumbColor = value; Invalidate(); } 50 | } 51 | 52 | private Color borderColor = Color.Silver; 53 | public Color BorderColor 54 | { 55 | get { return borderColor; } 56 | set { borderColor = value; Invalidate(); } 57 | } 58 | 59 | private ScrollOrientation orientation; 60 | public ScrollOrientation Orientation 61 | { 62 | get { return orientation; } 63 | set { orientation = value; Invalidate(); } 64 | } 65 | 66 | public event ScrollEventHandler Scroll; 67 | 68 | public O_ScrollBar() 69 | { 70 | SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); 71 | } 72 | 73 | protected override void OnMouseDown(MouseEventArgs e) 74 | { 75 | if (e.Button == MouseButtons.Left) 76 | MouseScroll(e); 77 | base.OnMouseDown(e); 78 | } 79 | 80 | protected override void OnMouseMove(MouseEventArgs e) 81 | { 82 | if (e.Button == MouseButtons.Left) 83 | MouseScroll(e); 84 | base.OnMouseMove(e); 85 | } 86 | 87 | /* 88 | protected override void OnMouseUp(MouseEventArgs e) 89 | { 90 | if (e.Button == MouseButtons.Left) 91 | OnScroll(ScrollEventType.EndScroll); 92 | base.OnMouseUp(e); 93 | }*/ 94 | 95 | private void MouseScroll(MouseEventArgs e) 96 | { 97 | int v = 0; 98 | switch (Orientation) 99 | { 100 | case ScrollOrientation.VerticalScroll: v = Maximum * (e.Y - thumbSize / 2) / (Height - thumbSize); break; 101 | case ScrollOrientation.HorizontalScroll: v = Maximum * (e.X - thumbSize / 2) / (Width - thumbSize); break; 102 | } 103 | Value = Math.Max(0, Math.Min(Maximum, v)); 104 | } 105 | 106 | public virtual void OnScroll(ScrollEventType type = ScrollEventType.ThumbPosition) 107 | { 108 | if (Scroll != null) 109 | Scroll(this, new ScrollEventArgs(type, Value, Orientation)); 110 | } 111 | 112 | protected override void OnPaint(PaintEventArgs e) 113 | { 114 | if (Maximum <= 0) 115 | return; 116 | 117 | Rectangle thumbRect = Rectangle.Empty; 118 | switch (Orientation) 119 | { 120 | case ScrollOrientation.HorizontalScroll: 121 | thumbRect = new Rectangle(value * (Width - thumbSize) / Maximum, 2, thumbSize, Height - 4); 122 | break; 123 | case ScrollOrientation.VerticalScroll: 124 | thumbRect = new Rectangle(2, value * (Height - thumbSize) / Maximum, Width - 4, thumbSize); 125 | break; 126 | } 127 | 128 | using (var brush = new SolidBrush(thumbColor)) 129 | e.Graphics.FillRectangle(brush, thumbRect); 130 | 131 | using (var pen = new Pen(borderColor)) 132 | e.Graphics.DrawRectangle(pen, new Rectangle(0, 0, Width - 1, Height - 1)); 133 | } 134 | } 135 | 136 | #endregion 137 | //public partial class O_ScrollBar : Component 138 | //{ 139 | // //public O_ScrollBar() 140 | // //{ 141 | // // InitializeComponent(); 142 | // //} 143 | 144 | // //public O_ScrollBar(IContainer container) 145 | // //{ 146 | // // container.Add(this); 147 | 148 | // // InitializeComponent(); 149 | // //} 150 | 151 | //} 152 | } 153 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace O_ComTool_Pro 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// 应用程序的主入口点。 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; 18 | Application.EnableVisualStyles(); 19 | Application.SetCompatibleTextRenderingDefault(false); 20 | Application.Run(new MainForm()); 21 | } 22 | 23 | public static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) 24 | { 25 | string dllName = args.Name.Contains(",") ? args.Name.Substring(0, args.Name.IndexOf(',')) : args.Name.Replace(".dll", ""); 26 | dllName = dllName.Replace(".", "_"); 27 | if (dllName.EndsWith("_resources")) return null; 28 | System.Resources.ResourceManager rm = new System.Resources.ResourceManager("O_ComTool_Pro.Properties.Resources", System.Reflection.Assembly.GetExecutingAssembly()); 29 | byte[] bytes = (byte[])rm.GetObject(dllName); 30 | return System.Reflection.Assembly.Load(bytes); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("O-ComTool")] 9 | [assembly: AssemblyDescription("方便好用的串口调试助手")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("O-ComTool")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 使此程序集中的类型 18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, 19 | // 则将该类型上的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("82230450-ef81-45ce-9b31-7d66a44ffa71")] 24 | 25 | // 程序集的版本信息由下面四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("2.1.1.0")] 36 | [assembly: AssemblyFileVersion("2.1.1.0")] 37 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Properties/Resources.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 | 121 | 122 | ..\Resources\Led_Red_50px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | ..\Resources\Tools_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | ..\Resources\Rec_Clear_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | 131 | ..\Resources\Device Manager_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 132 | 133 | 134 | ..\Resources\Calculator_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 135 | 136 | 137 | ..\Resources\Disconnected_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 138 | 139 | 140 | ..\Resources\AddDown_52px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 141 | 142 | 143 | ..\Resources\Log Cabin_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 144 | 145 | 146 | ..\Resources\Exit_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 147 | 148 | 149 | ..\Resources\Connected_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 150 | 151 | 152 | ..\Resources\Logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 153 | 154 | 155 | ..\Resources\Change Theme_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 156 | 157 | 158 | ..\Resources\ReplaceDown_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 159 | 160 | 161 | ..\Resources\Home_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 162 | 163 | 164 | ..\Resources\Connect_Red_50px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 165 | 166 | 167 | ..\Resources\AliPay1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 168 | 169 | 170 | ..\Resources\Sleep_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 171 | 172 | 173 | ..\Resources\File_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 174 | 175 | 176 | ..\Resources\About_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 177 | 178 | 179 | ..\Resources\Help_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 180 | 181 | 182 | ..\Resources\Show_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 183 | 184 | 185 | ..\Resources\BackGround_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 186 | 187 | 188 | ..\Resources\Change_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 189 | 190 | 191 | ..\Resources\Import_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 192 | 193 | 194 | ..\Resources\Add Tag_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 195 | 196 | 197 | ..\Resources\Updates_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 198 | 199 | 200 | ..\Resources\AsciiTable.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 201 | 202 | 203 | ..\Resources\Sub_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 204 | 205 | 206 | ..\Resources\Replace_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 207 | 208 | 209 | ..\Resources\Export_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 210 | 211 | 212 | ..\Resources\Send_Clear_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 213 | 214 | 215 | ..\Resources\SubDown_52px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 216 | 217 | 218 | ..\Resources\AliPay.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 219 | 220 | 221 | ..\Resources\Led_Green_50px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 222 | 223 | 224 | ..\Resources\WechatPay.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 225 | 226 | 227 | ..\Resources\Settings_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 228 | 229 | 230 | ..\Resources\ASC_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 231 | 232 | 233 | ..\Resources\Format_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 234 | 235 | 236 | ..\Resources\Check_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 237 | 238 | 239 | ..\Resources\Donate_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 240 | 241 | 242 | ..\Resources\Add_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 243 | 244 | 245 | ..\Resources\WechatPay1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 246 | 247 | 248 | ..\Resources\FastColoredTextBox.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 249 | 250 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace O_ComTool_Pro.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /O-ComTool_Pro/QuickSend.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class QuickSend 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region 组件设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.btnSend = new System.Windows.Forms.Button(); 33 | this.txtName = new System.Windows.Forms.TextBox(); 34 | this.txtData = new System.Windows.Forms.TextBox(); 35 | this.labName = new System.Windows.Forms.Label(); 36 | this.labIndex = new System.Windows.Forms.Label(); 37 | this.timer1 = new System.Windows.Forms.Timer(this.components); 38 | this.panel1 = new System.Windows.Forms.Panel(); 39 | this.picDelete = new System.Windows.Forms.PictureBox(); 40 | ((System.ComponentModel.ISupportInitialize)(this.picDelete)).BeginInit(); 41 | this.SuspendLayout(); 42 | // 43 | // btnSend 44 | // 45 | this.btnSend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 46 | this.btnSend.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 47 | this.btnSend.Location = new System.Drawing.Point(509, 5); 48 | this.btnSend.Name = "btnSend"; 49 | this.btnSend.Size = new System.Drawing.Size(41, 21); 50 | this.btnSend.TabIndex = 20; 51 | this.btnSend.TabStop = false; 52 | this.btnSend.Text = "Send"; 53 | this.btnSend.UseVisualStyleBackColor = true; 54 | this.btnSend.Click += new System.EventHandler(this.btnSend_Click); 55 | // 56 | // txtName 57 | // 58 | this.txtName.Location = new System.Drawing.Point(26, 5); 59 | this.txtName.Name = "txtName"; 60 | this.txtName.Size = new System.Drawing.Size(61, 21); 61 | this.txtName.TabIndex = 19; 62 | this.txtName.TabStop = false; 63 | this.txtName.Visible = false; 64 | this.txtName.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtName_KeyPress); 65 | // 66 | // txtData 67 | // 68 | this.txtData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 69 | | System.Windows.Forms.AnchorStyles.Right))); 70 | this.txtData.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 71 | this.txtData.Location = new System.Drawing.Point(95, 4); 72 | this.txtData.Name = "txtData"; 73 | this.txtData.Size = new System.Drawing.Size(408, 22); 74 | this.txtData.TabIndex = 16; 75 | this.txtData.TabStop = false; 76 | this.txtData.Tag = ""; 77 | // 78 | // labName 79 | // 80 | this.labName.AutoEllipsis = true; 81 | this.labName.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 82 | this.labName.Location = new System.Drawing.Point(24, 8); 83 | this.labName.Name = "labName"; 84 | this.labName.Size = new System.Drawing.Size(65, 14); 85 | this.labName.TabIndex = 22; 86 | this.labName.Text = "Item_name"; 87 | this.labName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 88 | this.labName.Click += new System.EventHandler(this.labName_Click); 89 | this.labName.DoubleClick += new System.EventHandler(this.labName_DoubleClick); 90 | // 91 | // labIndex 92 | // 93 | this.labIndex.AutoSize = true; 94 | this.labIndex.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 95 | this.labIndex.Location = new System.Drawing.Point(3, 9); 96 | this.labIndex.Name = "labIndex"; 97 | this.labIndex.Size = new System.Drawing.Size(23, 12); 98 | this.labIndex.TabIndex = 17; 99 | this.labIndex.Text = "99."; 100 | // 101 | // timer1 102 | // 103 | this.timer1.Tick += new System.EventHandler(this.timer1_Tick); 104 | // 105 | // panel1 106 | // 107 | this.panel1.BackColor = System.Drawing.Color.Black; 108 | this.panel1.Location = new System.Drawing.Point(27, 24); 109 | this.panel1.Name = "panel1"; 110 | this.panel1.Size = new System.Drawing.Size(60, 1); 111 | this.panel1.TabIndex = 23; 112 | // 113 | // picDelete 114 | // 115 | this.picDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 116 | this.picDelete.Cursor = System.Windows.Forms.Cursors.Hand; 117 | this.picDelete.Image = global::O_ComTool_Pro.Properties.Resources.Sub_48px; 118 | this.picDelete.Location = new System.Drawing.Point(555, 3); 119 | this.picDelete.Name = "picDelete"; 120 | this.picDelete.Size = new System.Drawing.Size(25, 25); 121 | this.picDelete.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 122 | this.picDelete.TabIndex = 21; 123 | this.picDelete.TabStop = false; 124 | this.picDelete.Tag = "1"; 125 | this.picDelete.Visible = false; 126 | this.picDelete.Click += new System.EventHandler(this.picDelete_Click); 127 | this.picDelete.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picDelete_MouseDown); 128 | this.picDelete.MouseUp += new System.Windows.Forms.MouseEventHandler(this.picDelete_MouseUp); 129 | // 130 | // QuickSend 131 | // 132 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 133 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 134 | this.Controls.Add(this.btnSend); 135 | this.Controls.Add(this.txtName); 136 | this.Controls.Add(this.txtData); 137 | this.Controls.Add(this.picDelete); 138 | this.Controls.Add(this.labName); 139 | this.Controls.Add(this.labIndex); 140 | this.Controls.Add(this.panel1); 141 | this.Name = "QuickSend"; 142 | this.Size = new System.Drawing.Size(583, 30); 143 | this.Load += new System.EventHandler(this.QuickSend_Load); 144 | ((System.ComponentModel.ISupportInitialize)(this.picDelete)).EndInit(); 145 | this.ResumeLayout(false); 146 | this.PerformLayout(); 147 | 148 | } 149 | 150 | #endregion 151 | 152 | private System.Windows.Forms.Button btnSend; 153 | private System.Windows.Forms.TextBox txtName; 154 | private System.Windows.Forms.TextBox txtData; 155 | private System.Windows.Forms.PictureBox picDelete; 156 | private System.Windows.Forms.Label labName; 157 | private System.Windows.Forms.Label labIndex; 158 | private System.Windows.Forms.Timer timer1; 159 | private System.Windows.Forms.Panel panel1; 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /O-ComTool_Pro/QuickSend.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Drawing; 5 | using System.Data; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class QuickSend : UserControl 14 | { 15 | public QuickSend() 16 | { 17 | InitializeComponent(); 18 | } 19 | 20 | private void labName_Click(object sender, EventArgs e) 21 | { 22 | 23 | } 24 | 25 | private void QuickSend_Load(object sender, EventArgs e) 26 | { 27 | 28 | } 29 | 30 | private void labName_DoubleClick(object sender, EventArgs e) 31 | { 32 | timer1.Start(); 33 | labName.Visible = false; 34 | txtName.Text = labName.Text; 35 | txtName.Visible = true; 36 | } 37 | 38 | private void timer1_Tick(object sender, EventArgs e) 39 | { 40 | if (((this.PointToClient(Cursor.Position).X < (txtName.Location.X)) 41 | || (this.PointToClient(Cursor.Position).X > (txtName.Location.X + txtName.Width)) 42 | || (this.PointToClient(Cursor.Position).Y < (txtName.Location.Y)) 43 | || (this.PointToClient(Cursor.Position).Y > (txtName.Location.Y + txtName.Height))) 44 | && (Control.MouseButtons == MouseButtons.Left)) 45 | { 46 | timer1.Stop(); 47 | labName.Text = txtName.Text; 48 | txtName.Visible = false; 49 | labName.Visible = true; 50 | //MessageBox.Show("MousePosition(" + this.PointToClient(Cursor.Position).X + "," + this.PointToClient(Cursor.Position).Y + ")\n" + 51 | // "txtName.Location (" + txtName.Location.X + "," + txtName.Location.Y + ")\n" + 52 | // "this.Location (" + this.Location.X + "," + this.Location.Y + ")\n" + 53 | // "min_point(" + (txtName.Location.X) + "," + (txtName.Location.Y) + ")\n" + 54 | // "max_point(" + (txtName.Location.X + txtName.Width) + "," + (txtName.Location.Y + txtName.Height) + ")"); 55 | } 56 | } 57 | 58 | private void txtName_KeyPress(object sender, KeyPressEventArgs e) 59 | { 60 | if (e.KeyChar == System.Convert.ToChar(13))//回车响应 61 | { 62 | e.Handled = true; 63 | labName.Text = txtName.Text; 64 | txtName.Visible = false; 65 | labName.Visible = true; 66 | } 67 | } 68 | public short Index 69 | { 70 | //get { return labIndex.Text; } 71 | set { labIndex.Text = value.ToString().PadLeft(2,'0') + "."; } 72 | } 73 | 74 | public string ItemName 75 | { 76 | get { return labName.Text; } 77 | set { labName.Text = value; } 78 | } 79 | 80 | public string Data 81 | { 82 | get { return txtData.Text; } 83 | set { txtData.Text = value; } 84 | } 85 | 86 | public bool DelVisible 87 | { 88 | get { return picDelete.Visible; } 89 | set { picDelete.Visible = value; } 90 | } 91 | 92 | 93 | public delegate void BtnClickHandle(object sender, EventArgs e); //定义事件 94 | 95 | public event BtnClickHandle SendClicked; 96 | private void btnSend_Click(object sender, EventArgs e) 97 | { 98 | if (SendClicked != null) 99 | SendClicked(sender, new EventArgs());//把按钮自身作为参数传递 100 | } 101 | 102 | public event BtnClickHandle DelClicked; 103 | private void picDelete_Click(object sender, EventArgs e) 104 | { 105 | this.Focus(); 106 | if (DelClicked != null) 107 | DelClicked(sender, new EventArgs());//把按钮自身作为参数传递 108 | } 109 | 110 | private void picDelete_MouseDown(object sender, MouseEventArgs e) 111 | { 112 | picDelete.Image = Properties.Resources.SubDown_52px; 113 | } 114 | 115 | private void picDelete_MouseUp(object sender, MouseEventArgs e) 116 | { 117 | picDelete.Image = Properties.Resources.Sub_48px; 118 | } 119 | 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /O-ComTool_Pro/QuickSend.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 | 121 | 17, 17 122 | 123 | -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/ASC_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/ASC_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/About_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/About_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Add Tag_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Add Tag_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/AddDown_52px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/AddDown_52px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Add_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Add_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/AliPay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/AliPay.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/AliPay1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/AliPay1.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/AsciiTable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/AsciiTable.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/BackGround_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/BackGround_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Calculator_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Calculator_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Change Theme_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Change Theme_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Change_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Change_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Check_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Check_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Connect_Red_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Connect_Red_50px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Connected_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Connected_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Device Manager_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Device Manager_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Disconnected_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Disconnected_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Donate_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Donate_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Exit_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Exit_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Export_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Export_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/FastColoredTextBox.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/FastColoredTextBox.dll -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/File_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/File_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Format_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Format_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Help_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Help_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Home_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Home_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Import_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Import_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Led_Green_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Led_Green_50px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Led_Red_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Led_Red_50px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Log Cabin_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Log Cabin_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Logo.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Rec_Clear_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Rec_Clear_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/ReplaceDown_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/ReplaceDown_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Replace_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Replace_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Send_Clear_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Send_Clear_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Settings_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Settings_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Show_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Show_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Sleep_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Sleep_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/SubDown_52px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/SubDown_52px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Sub_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Sub_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Tools_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Tools_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/Updates_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/Updates_48px.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/WechatPay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/WechatPay.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Resources/WechatPay1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/O-ComTool_Pro/Resources/WechatPay1.png -------------------------------------------------------------------------------- /O-ComTool_Pro/Update.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace O_ComTool_Pro 2 | { 3 | partial class Update 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Update)); 32 | this.labCurrentVersion = new System.Windows.Forms.Label(); 33 | this.labLatestVersion = new System.Windows.Forms.Label(); 34 | this.label3 = new System.Windows.Forms.Label(); 35 | this.txbInformation = new System.Windows.Forms.TextBox(); 36 | this.btnSkipCurrentVersion = new System.Windows.Forms.Button(); 37 | this.btnGoToUpdate = new System.Windows.Forms.Button(); 38 | this.SuspendLayout(); 39 | // 40 | // labCurrentVersion 41 | // 42 | this.labCurrentVersion.AutoSize = true; 43 | this.labCurrentVersion.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 44 | this.labCurrentVersion.Location = new System.Drawing.Point(12, 10); 45 | this.labCurrentVersion.Name = "labCurrentVersion"; 46 | this.labCurrentVersion.Size = new System.Drawing.Size(90, 22); 47 | this.labCurrentVersion.TabIndex = 0; 48 | this.labCurrentVersion.Text = "当前版本:"; 49 | // 50 | // labLatestVersion 51 | // 52 | this.labLatestVersion.AutoSize = true; 53 | this.labLatestVersion.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 54 | this.labLatestVersion.Location = new System.Drawing.Point(12, 37); 55 | this.labLatestVersion.Name = "labLatestVersion"; 56 | this.labLatestVersion.Size = new System.Drawing.Size(169, 22); 57 | this.labLatestVersion.TabIndex = 1; 58 | this.labLatestVersion.Text = "最新版本:正在获取..."; 59 | // 60 | // label3 61 | // 62 | this.label3.AutoSize = true; 63 | this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 64 | this.label3.Location = new System.Drawing.Point(12, 71); 65 | this.label3.Name = "label3"; 66 | this.label3.Size = new System.Drawing.Size(74, 22); 67 | this.label3.TabIndex = 2; 68 | this.label3.Text = "更新说明"; 69 | // 70 | // txbInformation 71 | // 72 | this.txbInformation.BackColor = System.Drawing.Color.White; 73 | this.txbInformation.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 74 | this.txbInformation.Location = new System.Drawing.Point(2, 96); 75 | this.txbInformation.Multiline = true; 76 | this.txbInformation.Name = "txbInformation"; 77 | this.txbInformation.ReadOnly = true; 78 | this.txbInformation.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 79 | this.txbInformation.Size = new System.Drawing.Size(463, 128); 80 | this.txbInformation.TabIndex = 3; 81 | // 82 | // btnSkipCurrentVersion 83 | // 84 | this.btnSkipCurrentVersion.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 85 | this.btnSkipCurrentVersion.Location = new System.Drawing.Point(318, 234); 86 | this.btnSkipCurrentVersion.Name = "btnSkipCurrentVersion"; 87 | this.btnSkipCurrentVersion.Size = new System.Drawing.Size(110, 35); 88 | this.btnSkipCurrentVersion.TabIndex = 7; 89 | this.btnSkipCurrentVersion.Text = "跳过当前版本"; 90 | this.btnSkipCurrentVersion.UseVisualStyleBackColor = true; 91 | this.btnSkipCurrentVersion.Click += new System.EventHandler(this.btnSkipCurrentVersion_Click); 92 | // 93 | // btnGoToUpdate 94 | // 95 | this.btnGoToUpdate.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 96 | this.btnGoToUpdate.Location = new System.Drawing.Point(33, 234); 97 | this.btnGoToUpdate.Name = "btnGoToUpdate"; 98 | this.btnGoToUpdate.Size = new System.Drawing.Size(110, 35); 99 | this.btnGoToUpdate.TabIndex = 6; 100 | this.btnGoToUpdate.Text = "前往更新"; 101 | this.btnGoToUpdate.UseVisualStyleBackColor = true; 102 | this.btnGoToUpdate.Click += new System.EventHandler(this.btnGoToUpdate_Click); 103 | // 104 | // Update 105 | // 106 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 107 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 108 | this.BackColor = System.Drawing.Color.White; 109 | this.ClientSize = new System.Drawing.Size(466, 281); 110 | this.Controls.Add(this.btnSkipCurrentVersion); 111 | this.Controls.Add(this.btnGoToUpdate); 112 | this.Controls.Add(this.txbInformation); 113 | this.Controls.Add(this.label3); 114 | this.Controls.Add(this.labLatestVersion); 115 | this.Controls.Add(this.labCurrentVersion); 116 | this.Font = new System.Drawing.Font("黑体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 117 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 118 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 119 | this.MaximizeBox = false; 120 | this.MinimizeBox = false; 121 | this.Name = "Update"; 122 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 123 | this.Text = "O-ComTool 软件更新"; 124 | this.Load += new System.EventHandler(this.Update_Load); 125 | this.ResumeLayout(false); 126 | this.PerformLayout(); 127 | 128 | } 129 | 130 | #endregion 131 | 132 | private System.Windows.Forms.Label labCurrentVersion; 133 | private System.Windows.Forms.Label labLatestVersion; 134 | private System.Windows.Forms.Label label3; 135 | private System.Windows.Forms.TextBox txbInformation; 136 | private System.Windows.Forms.Button btnSkipCurrentVersion; 137 | private System.Windows.Forms.Button btnGoToUpdate; 138 | } 139 | } -------------------------------------------------------------------------------- /O-ComTool_Pro/Update.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace O_ComTool_Pro 12 | { 13 | public partial class Update : Form 14 | { 15 | string update_url = ""; 16 | string server_url = "http://www.ifreehub.com/octservice/"; 17 | 18 | UpdateHelper.check_value ret_update; 19 | 20 | public Update() 21 | { 22 | InitializeComponent(); 23 | Control.CheckForIllegalCrossThreadCalls = false; 24 | } 25 | 26 | private void Update_Load(object sender, EventArgs e) 27 | { 28 | labCurrentVersion.Text = "当前版本:V" + Application.ProductVersion.Substring(0, 5); 29 | Task check_version = new Task(() => 30 | { 31 | ret_update = UpdateHelper.check_update(server_url); 32 | if (ret_update.valid == true) 33 | { 34 | labLatestVersion.Text = "最新版本:V" + ret_update.version; 35 | update_url = ret_update.link; 36 | txbInformation.Text = ret_update.feature; 37 | if (ret_update.version != Application.ProductVersion.Substring(0, 5)) 38 | { 39 | btnGoToUpdate.Enabled = true; 40 | btnSkipCurrentVersion.Enabled = true; 41 | } 42 | app.Default.LastCheckTime = DateTime.Now.ToString("yyy-MM-dd HH:mm:ss"); 43 | app.Default.Save(); 44 | } 45 | else 46 | { 47 | labLatestVersion.Text = "最新版本:啊哦!更新检查失败!"; 48 | txbInformation.Text = "可能的原因:\r\n1.当前网络状态异常;\r\n2.打开的姿势不对;\r\n3.作者的服务器断供;\r\n4.其他未知原因。"; 49 | } 50 | 51 | }); 52 | check_version.Start(); 53 | } 54 | 55 | private void btnGoToUpdate_Click(object sender, EventArgs e) 56 | { 57 | System.Diagnostics.Process.Start(update_url); 58 | } 59 | 60 | private void btnSkipCurrentVersion_Click(object sender, EventArgs e) 61 | { 62 | app.Default.SkipVersion = ret_update.version; 63 | app.Default.Save(); 64 | } 65 | 66 | 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /O-ComTool_Pro/UpdateHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | using System.Xml; 8 | 9 | namespace O_ComTool_Pro 10 | { 11 | 12 | public class UpdateHelper 13 | { 14 | public struct check_value 15 | { 16 | public bool valid; 17 | public string version; 18 | public string link; 19 | public string feature; 20 | } 21 | 22 | public static check_value check_update(string url) 23 | { 24 | check_value ret_value; 25 | ret_value.version = ""; 26 | ret_value.link = ""; 27 | ret_value.feature = ""; 28 | ret_value.valid = false; 29 | 30 | try 31 | { 32 | XmlDocument ver_xml = new XmlDocument(); 33 | ver_xml.Load(url + "/check_version.xml"); 34 | XmlNode ver = ver_xml.SelectSingleNode("checkupdate"); 35 | foreach (XmlNode node in ver) 36 | { 37 | XmlNode verid = ver_xml.SelectSingleNode("checkupdate/version"); 38 | if (node.Name == "version") 39 | { 40 | ret_value.version = node.InnerText; 41 | } 42 | if (node.Name == "link") 43 | { 44 | ret_value.link = node.InnerText; 45 | } 46 | if (verid.InnerText == Application.ProductVersion.Substring(0, 5)) 47 | { 48 | ret_value.feature = "已经是最新版本啦!\r\n"; 49 | } 50 | if (node.Name == "feature") 51 | { 52 | ret_value.feature += node.InnerText; 53 | } 54 | } 55 | ret_value.valid = true; 56 | return ret_value; 57 | } 58 | catch 59 | { 60 | return ret_value; 61 | } 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /O-ComTool_Pro/app.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 9600 7 | 8 | 9 | 3 10 | 11 | 12 | 0 13 | 14 | 15 | 0 16 | 17 | 18 | 0 19 | 20 | 21 | True 22 | 23 | 24 | True 25 | 26 | 27 | False 28 | 29 | 30 | False 31 | 32 | 33 | False 34 | 35 | 36 | 100 37 | 38 | 39 | False 40 | 41 | 42 | False 43 | 44 | 45 | False 46 | 47 | 48 | 1000 49 | 50 | 51 | www.ifreehub.com 52 | 53 | 54 | 55 | 56 | 57 | False 58 | 59 | 60 | False 61 | 62 | 63 | 2018-11-21 23:22:00 64 | 65 | 66 | 39, 40, 34 67 | 68 | 69 | 248, 248, 242 70 | 71 | 72 | 39, 40, 34 73 | 74 | 75 | 248, 248, 242 76 | 77 | 78 | Consolas, 10.5pt 79 | 80 | 81 | Consolas, 10.5pt 82 | 83 | 84 | 3 85 | 86 | 87 | <?xml version="1.0" encoding="utf-16"?> 88 | <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 89 | <string>Title1</string> 90 | <string>Title2</string> 91 | <string>Title3</string> 92 | </ArrayOfString> 93 | 94 | 95 | <?xml version="1.0" encoding="utf-16"?> 96 | <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 97 | <string>Data1</string> 98 | <string>Data2</string> 99 | <string>Data3</string> 100 | </ArrayOfString> 101 | 102 | 103 | 104 | 105 | 106 | True 107 | 108 | 109 | True 110 | 111 | 112 | 20 113 | 114 | 115 | False 116 | 117 | 118 | False 119 | 120 | 121 | 248, 248, 242 122 | 123 | 124 | 39, 40, 34 125 | 126 | 127 | 248, 248, 242 128 | 129 | 130 | 39, 40, 34 131 | 132 | 133 | Consolas, 10.5pt 134 | 135 | 136 | Consolas, 10.5pt 137 | 138 | 139 | True 140 | 141 | 142 | False 143 | 144 | 145 | 0 146 | 147 | 148 | False 149 | 150 | 151 | ([^A-Za-z_&-]((bad|wrong|incorrect|improper|invalid|unsupported|bad)( file| memory)? (descriptor|alloc(ation)?|addr(ess)?|owner(ship)?|arg(ument)?|param(eter)?|setting|length|filename)|not properly|improperly|(operation |connection |authentication |access |permission )?(denied|disallowed|not allowed|refused|problem|failed|failure|not permitted)|no [A-Za-z]+( [A-Za-z]+)? found|invalid|unsupported|not supported|seg(mentation )?fault|corruption|corrupted|corrupt|overflow|underrun|not ok|unimplemented|unsuccessfull|not implemented|permerrors?|fehlers?|errore|errors?|erreurs?|fejl|virhe|grea|erro|fel|\(ee\)|\(ni\))[^A-Za-z_-]) 152 | 153 | 154 | ([^A-Za-z_&-](ok|accepted|allowed|enabled|connected|erfolgreich|exitoso|successo|sucedido|successfully|successful|succeeded|success)[^A-Za-z_-]) 155 | 156 | 157 | [^A-Za-z_&-](\[\-w[A-Za-z-]+\]|caught signal [0-9]+|cannot|(connection (to (remote host|[a-z0-9.]+) )?)?(closed|terminated|stopped|not responding)|exited|no more [A-Za-z] available|unexpected|(command |binary |file )?not found|(o)+ps|out of (space|memory)|low (memory|disk)|unknown|disabled|disconnected|deprecated|refused|disconnect(ion)?|advertencia|avvertimento|attention|warnings?|achtung|exclamation|alerts?|warnungs?|advarsel|pedwarn|aviso|varoitus|upozorenje|peringatan|uyari|varning|avertissement|\(ww\)|\(\?\?\)|could not|unable to)[^A-Za-z_-] 158 | 159 | 160 | [^A-Za-z_&-](debug|test)[^A-Za-z_-] 161 | 162 | 163 | [^0-9A-Za-z_&-](localhost|([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4])\.[0-9]+\.[0-9]+\.[0-9]+|null|none)[^0-9A-Za-z_-] 164 | 165 | 166 | [^A-Za-z_&-](last (failed )?login:|launching|checking|loading|creating|building|important|booting|starting|notice|informational|informationen|informazioni|informaction|oplysninger|informations?|info|informaction|informasi|note|\(ii\)|\(\!\!\))[^A-Za-z_-] 167 | 168 | 169 | ([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]):([0-9][0-9][0-9]-(<|>)) 170 | 171 | 172 | True 173 | 174 | 175 | False 176 | 177 | 178 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # O-Comtool 2 | 3 | ![image](http://www.ifreehub.com/image_bed/upload//l_IUV8bODji6Ykb_GV5opSNeGlloQLde8MvxEiBNT0A.png) 4 | 5 | O-Comtool是一款简单易用的串口调试助手,本软件提供了丰富的功能,有效提高嵌入式开发调试的效率。 6 | 7 | # 特性 8 | * 支持串口参数设置,支持常用波特率选择与波特率自定义 9 | * 支持实时刷新串口,插入新设备即可切换端口,无需重启软件 10 | * 支持ASCII与HEX显示,明码暗码轻松切换 11 | * 支持收发信息时间显示,自动换行,发送回显,轻松显示交互逻辑 12 | * 支持自动计数与重复发送,丢帧与否,一眼便知 13 | * 支持`//` 报文注释,报文含义清晰可见 14 | * 支持报文校验和、CRC快速计算,报文组包快人一步 15 | * 支持加载文件报文,预先导入报文。 16 | * 支持接收区关键字高亮(正则匹配),关键信息一目了然 17 | * 支持实时搜索,可以实时查找关键之,第一时间发现问题 18 | * 支持多达25条报文的快捷发送功能,想发啥就是啥 19 | * 支持软件名称备注,轻松区别多个串口设备 20 | * 支持配置参数导入,导出,到哪都是熟悉的味道 21 | * 更有众多小工具 22 | 23 | # 软件截图 24 | ![image](http://www.ifreehub.com/image_bed/upload//4UkAGlZ9L40ihPI6BgsKSoIKMIb4O0s8wSRynP0lv8E.png) 25 | 26 | ![image](http://www.ifreehub.com/image_bed/upload//u41HcEfwQ-x6s6l4OCtS8YiIOgbAXqK3Yii1rvFDPFg.png) 27 | 28 | ![image](http://www.ifreehub.com/image_bed/upload//MW3EKGsix1Q25JO8JkOEZjwVrHz7LiJpEPTjQGVb81k.png) 29 | 30 | # 使用方法 31 | 请参考如下链接: 32 | 33 | [V1.1.0](http://www.ifreehub.com/archives/3/) 34 | 35 | [V2.0.0](http://www.ifreehub.com/archives/13/) 36 | 37 | [V2.1.0](http://www.ifreehub.com/archives/24/) 38 | 39 | # 如何编译 40 | ## 环境 41 | 42 | * Visual Studio 2017 43 | * .NET Framework 4.5 44 | * Nuget package:FCTB 45 | ## 运行 46 | * 直接打开`O-ComTool_Pro.sln`即可 47 | 48 | # 作者有话说 49 | 由于作者主要做嵌入式开发,当时开发这个软件也是出于工作须要,现学现卖,**面向搜索引擎编程**,代码质量一般,原本计划基于QT重构该软件,但是如今工作繁忙,无力优化与维护,欢迎各位大佬继续优化或者添加新功能,欢迎重构。 50 | 51 | # License 52 | [GPL-3.0](https://github.com/vesamount/O-ComTool/blob/main/LICENSE) 53 | 54 | # 感谢 55 | [FastColoredTextBox](https://github.com/PavelTorgashov/FastColoredTextBox) 56 | 57 | -------------------------------------------------------------------------------- /Res/ASC.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/ASC.ico -------------------------------------------------------------------------------- /Res/ASC_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/ASC_48px.png -------------------------------------------------------------------------------- /Res/ASC_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/ASC_64.png -------------------------------------------------------------------------------- /Res/About.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/About.ico -------------------------------------------------------------------------------- /Res/About_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/About_48px.png -------------------------------------------------------------------------------- /Res/About_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/About_64.png -------------------------------------------------------------------------------- /Res/Add Tag_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Add Tag_48px.png -------------------------------------------------------------------------------- /Res/AddDown_52px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/AddDown_52px.png -------------------------------------------------------------------------------- /Res/Add_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Add_48px.png -------------------------------------------------------------------------------- /Res/Add_Tag.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Add_Tag.ico -------------------------------------------------------------------------------- /Res/Add_Tag_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Add_Tag_64.png -------------------------------------------------------------------------------- /Res/AliPay1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/AliPay1.png -------------------------------------------------------------------------------- /Res/AsciiTable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/AsciiTable.png -------------------------------------------------------------------------------- /Res/BackGround_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/BackGround_48px.png -------------------------------------------------------------------------------- /Res/Calculator_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Calculator_48px.png -------------------------------------------------------------------------------- /Res/Change Theme_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Change Theme_48px.png -------------------------------------------------------------------------------- /Res/Change_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Change_48px.png -------------------------------------------------------------------------------- /Res/Check.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Check.ico -------------------------------------------------------------------------------- /Res/Check_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Check_48px.png -------------------------------------------------------------------------------- /Res/Connect_Green_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Connect_Green_50px.png -------------------------------------------------------------------------------- /Res/Connect_Red_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Connect_Red_50px.png -------------------------------------------------------------------------------- /Res/Connected_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Connected_48px.png -------------------------------------------------------------------------------- /Res/Device Manager_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Device Manager_48px.png -------------------------------------------------------------------------------- /Res/Disconnected_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Disconnected_48px.png -------------------------------------------------------------------------------- /Res/Donate.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Donate.ico -------------------------------------------------------------------------------- /Res/Donate_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Donate_48px.png -------------------------------------------------------------------------------- /Res/Donate_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Donate_64.png -------------------------------------------------------------------------------- /Res/Exit_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Exit_48px.png -------------------------------------------------------------------------------- /Res/Export_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Export_48px.png -------------------------------------------------------------------------------- /Res/File_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/File_48px.png -------------------------------------------------------------------------------- /Res/Format.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Format.ico -------------------------------------------------------------------------------- /Res/Format_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Format_48px.png -------------------------------------------------------------------------------- /Res/Format_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Format_64.png -------------------------------------------------------------------------------- /Res/Help_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Help_48px.png -------------------------------------------------------------------------------- /Res/Home_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Home_48px.png -------------------------------------------------------------------------------- /Res/Icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Icon.ico -------------------------------------------------------------------------------- /Res/Icon/Logo128.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Icon/Logo128.ico -------------------------------------------------------------------------------- /Res/Icon/Logo16.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Icon/Logo16.ico -------------------------------------------------------------------------------- /Res/Icon/Logo32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Icon/Logo32.ico -------------------------------------------------------------------------------- /Res/Icon/Logo48.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Icon/Logo48.ico -------------------------------------------------------------------------------- /Res/Icon/Logo64.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Icon/Logo64.ico -------------------------------------------------------------------------------- /Res/Import_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Import_48px.png -------------------------------------------------------------------------------- /Res/Info_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Info_48px.png -------------------------------------------------------------------------------- /Res/Led_Green_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Led_Green_50px.png -------------------------------------------------------------------------------- /Res/Led_Red_50px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Led_Red_50px.png -------------------------------------------------------------------------------- /Res/Log Cabin_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Log Cabin_48px.png -------------------------------------------------------------------------------- /Res/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Logo.png -------------------------------------------------------------------------------- /Res/Rec_Clear_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Rec_Clear_48px.png -------------------------------------------------------------------------------- /Res/ReplaceDown_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/ReplaceDown_48px.png -------------------------------------------------------------------------------- /Res/Replace_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Replace_48px.png -------------------------------------------------------------------------------- /Res/Restart_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Restart_64.png -------------------------------------------------------------------------------- /Res/Send_Clear_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Send_Clear_48px.png -------------------------------------------------------------------------------- /Res/Settings.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Settings.ico -------------------------------------------------------------------------------- /Res/Settings_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Settings_48px.png -------------------------------------------------------------------------------- /Res/Settings_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Settings_64.png -------------------------------------------------------------------------------- /Res/Show_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Show_48px.png -------------------------------------------------------------------------------- /Res/Sleep_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Sleep_48px.png -------------------------------------------------------------------------------- /Res/SubDown_52px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/SubDown_52px.png -------------------------------------------------------------------------------- /Res/Sub_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Sub_48px.png -------------------------------------------------------------------------------- /Res/TestLogo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/TestLogo.ico -------------------------------------------------------------------------------- /Res/TestLogo2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/TestLogo2.ico -------------------------------------------------------------------------------- /Res/TestLogo3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/TestLogo3.ico -------------------------------------------------------------------------------- /Res/Tools_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Tools_48px.png -------------------------------------------------------------------------------- /Res/Updates.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Updates.ico -------------------------------------------------------------------------------- /Res/Updates_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Updates_128.png -------------------------------------------------------------------------------- /Res/Updates_48px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Updates_48px.png -------------------------------------------------------------------------------- /Res/Updates_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/Updates_64.png -------------------------------------------------------------------------------- /Res/WechatPay1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vesamount/O-ComTool/b7f35dd8d8f2d2ab2a13c5c1ca8239ed7ffda860/Res/WechatPay1.png --------------------------------------------------------------------------------