v3.7.1.0 1、增加系统托盘图标状态更新功能:红色-获取WAN口IP或者获取域名绑定IP失败。黄色-获取成功,但WAN口IP和域名绑定IP不一致。绿色-获取成功,WAN口IP和域名绑定IP一致。灰色-WAN口网络不通。2、修改代码和窗体标签刷新BUG。
242
.gitignore
vendored
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
[Xx]64/
|
||||||
|
[Xx]86/
|
||||||
|
[Bb]uild/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
|
||||||
|
# Visual Studio 2015 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUNIT
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# DNX
|
||||||
|
project.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_i.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# JustCode is a .NET coding add-in
|
||||||
|
.JustCode
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
|
||||||
|
# TODO: Un-comment the next line if you do not want to checkin
|
||||||
|
# your web deploy settings because they may include unencrypted
|
||||||
|
# passwords
|
||||||
|
#*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/packages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/packages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/packages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignoreable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directory
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
[Ss]tyle[Cc]op.*
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
node_modules/
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# LightSwitch generated files
|
||||||
|
GeneratedArtifacts/
|
||||||
|
ModelManifest.xml
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
674
LICENSE
Normal file
@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
{one line to give the program's name and a brief idea of what it does.}
|
||||||
|
Copyright (C) {year} {name of author}
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
{project} Copyright (C) {year} {fullname}
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
22
net.nutcore.aliddns/net.nutcore.aliddns.sln
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 14
|
||||||
|
VisualStudioVersion = 14.0.25420.1
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "net.nutcore.aliddns", "net.nutcore.aliddns\net.nutcore.aliddns.csproj", "{018BAB83-CA31-4BDE-BC01-EEC283CEABEA}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{018BAB83-CA31-4BDE-BC01-EEC283CEABEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{018BAB83-CA31-4BDE-BC01-EEC283CEABEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{018BAB83-CA31-4BDE-BC01-EEC283CEABEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{018BAB83-CA31-4BDE-BC01-EEC283CEABEA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
6
net.nutcore.aliddns/net.nutcore.aliddns/App.config
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
153
net.nutcore.aliddns/net.nutcore.aliddns/Form_About.Designer.cs
generated
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
namespace net.nutcore.aliddns
|
||||||
|
{
|
||||||
|
partial class Form_About
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.authorInformation = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.PublishLink = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.personalWebsite = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.textBox_updateInfo = new System.Windows.Forms.TextBox();
|
||||||
|
this.authorInformation.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// authorInformation
|
||||||
|
//
|
||||||
|
this.authorInformation.Controls.Add(this.label3);
|
||||||
|
this.authorInformation.Controls.Add(this.linkLabel1);
|
||||||
|
this.authorInformation.Controls.Add(this.label2);
|
||||||
|
this.authorInformation.Controls.Add(this.label1);
|
||||||
|
this.authorInformation.Controls.Add(this.PublishLink);
|
||||||
|
this.authorInformation.Controls.Add(this.personalWebsite);
|
||||||
|
this.authorInformation.Location = new System.Drawing.Point(12, 12);
|
||||||
|
this.authorInformation.Name = "authorInformation";
|
||||||
|
this.authorInformation.Size = new System.Drawing.Size(242, 91);
|
||||||
|
this.authorInformation.TabIndex = 8;
|
||||||
|
this.authorInformation.TabStop = false;
|
||||||
|
this.authorInformation.Text = "著作信息";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(6, 62);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(95, 12);
|
||||||
|
this.label3.TabIndex = 6;
|
||||||
|
this.label3.Text = "本程序发布地址:";
|
||||||
|
//
|
||||||
|
// linkLabel1
|
||||||
|
//
|
||||||
|
this.linkLabel1.AutoSize = true;
|
||||||
|
this.linkLabel1.Location = new System.Drawing.Point(107, 39);
|
||||||
|
this.linkLabel1.Name = "linkLabel1";
|
||||||
|
this.linkLabel1.Size = new System.Drawing.Size(77, 12);
|
||||||
|
this.linkLabel1.TabIndex = 5;
|
||||||
|
this.linkLabel1.TabStop = true;
|
||||||
|
this.linkLabel1.Text = "阿里开发论坛";
|
||||||
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(6, 39);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(95, 12);
|
||||||
|
this.label2.TabIndex = 4;
|
||||||
|
this.label2.Text = "原程序发布地址:";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(6, 17);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(71, 12);
|
||||||
|
this.label1.TabIndex = 3;
|
||||||
|
this.label1.Text = "原作者主页:";
|
||||||
|
//
|
||||||
|
// PublishLink
|
||||||
|
//
|
||||||
|
this.PublishLink.AutoSize = true;
|
||||||
|
this.PublishLink.Location = new System.Drawing.Point(107, 62);
|
||||||
|
this.PublishLink.Name = "PublishLink";
|
||||||
|
this.PublishLink.Size = new System.Drawing.Size(125, 12);
|
||||||
|
this.PublishLink.TabIndex = 2;
|
||||||
|
this.PublishLink.TabStop = true;
|
||||||
|
this.PublishLink.Text = "AliDDNS 3.0 之后版本";
|
||||||
|
this.PublishLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.PublishLink_LinkClicked);
|
||||||
|
//
|
||||||
|
// personalWebsite
|
||||||
|
//
|
||||||
|
this.personalWebsite.AutoSize = true;
|
||||||
|
this.personalWebsite.Location = new System.Drawing.Point(83, 17);
|
||||||
|
this.personalWebsite.Name = "personalWebsite";
|
||||||
|
this.personalWebsite.Size = new System.Drawing.Size(95, 12);
|
||||||
|
this.personalWebsite.TabIndex = 1;
|
||||||
|
this.personalWebsite.TabStop = true;
|
||||||
|
this.personalWebsite.Text = "www.nutcore.net";
|
||||||
|
this.personalWebsite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.personalWebsite_LinkClicked);
|
||||||
|
//
|
||||||
|
// textBox_updateInfo
|
||||||
|
//
|
||||||
|
this.textBox_updateInfo.Location = new System.Drawing.Point(12, 109);
|
||||||
|
this.textBox_updateInfo.Multiline = true;
|
||||||
|
this.textBox_updateInfo.Name = "textBox_updateInfo";
|
||||||
|
this.textBox_updateInfo.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||||
|
this.textBox_updateInfo.Size = new System.Drawing.Size(242, 132);
|
||||||
|
this.textBox_updateInfo.TabIndex = 9;
|
||||||
|
//
|
||||||
|
// Form_About
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(267, 253);
|
||||||
|
this.Controls.Add(this.textBox_updateInfo);
|
||||||
|
this.Controls.Add(this.authorInformation);
|
||||||
|
this.Name = "Form_About";
|
||||||
|
this.Text = "关于";
|
||||||
|
this.authorInformation.ResumeLayout(false);
|
||||||
|
this.authorInformation.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.GroupBox authorInformation;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.LinkLabel PublishLink;
|
||||||
|
private System.Windows.Forms.LinkLabel personalWebsite;
|
||||||
|
private System.Windows.Forms.TextBox textBox_updateInfo;
|
||||||
|
}
|
||||||
|
}
|
43
net.nutcore.aliddns/net.nutcore.aliddns/Form_About.cs
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.IO;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace net.nutcore.aliddns
|
||||||
|
{
|
||||||
|
public partial class Form_About : Form
|
||||||
|
{
|
||||||
|
public Form_About()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
textBox_updateInfo.ReadOnly = true;
|
||||||
|
string filePath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||||
|
string updateInfoFile = filePath + "updateinfo.txt";
|
||||||
|
if (File.Exists(updateInfoFile))
|
||||||
|
textBox_updateInfo.Text = File.ReadAllText(updateInfoFile, Encoding.Default);
|
||||||
|
else
|
||||||
|
textBox_updateInfo.Text = "软件运行目录下没有找到updateinfo.txt文件!";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PublishLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("explorer.exe", "https://github.com/wisdomwei201804/AliDDNS/");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void personalWebsite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("explorer.exe", "http://www.nutcore.net/");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("explorer.exe", "https://bbs.aliyun.com/read/289624.html");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
120
net.nutcore.aliddns/net.nutcore.aliddns/Form_About.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
BIN
net.nutcore.aliddns/net.nutcore.aliddns/IPMaskedTextBox.dll
Normal file
39
net.nutcore.aliddns/net.nutcore.aliddns/Program.cs
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace net.nutcore.aliddns
|
||||||
|
{
|
||||||
|
static class Program
|
||||||
|
{
|
||||||
|
static System.Threading.Mutex _mutex; //定义为类变量,而非局部变量,用于检测线程
|
||||||
|
/// <summary>
|
||||||
|
/// 应用程序的主入口点。
|
||||||
|
/// </summary>
|
||||||
|
[STAThread]
|
||||||
|
static void Main()
|
||||||
|
{
|
||||||
|
//设定是否可以打开新进程的判断参数
|
||||||
|
bool isNew;
|
||||||
|
|
||||||
|
//获取程序集Guid作为唯一标识
|
||||||
|
Attribute guid_attr = Attribute.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly(), typeof(GuidAttribute));
|
||||||
|
string guid = ((GuidAttribute)guid_attr).Value; //此时guid对当前登录用户生效,当声明为Global时,对所有用户有效
|
||||||
|
_mutex = new System.Threading.Mutex(true, guid, out isNew);
|
||||||
|
if ( isNew ) //没有重复进程时
|
||||||
|
{
|
||||||
|
Application.EnableVisualStyles();
|
||||||
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
Application.Run(new mainForm());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("本程序已经在运行中!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
//_mutex.ReleaseMutex();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// 有关程序集的一般信息由以下
|
||||||
|
// 控制。更改这些特性值可修改
|
||||||
|
// 与程序集关联的信息。
|
||||||
|
[assembly: AssemblyTitle("AliDDNS")]
|
||||||
|
[assembly: AssemblyDescription("通过AliDNS API自动更新域名解析,实现动态域名服务")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("https://github.com/wisdomwei201804/AliDDNS")]
|
||||||
|
[assembly: AssemblyProduct("AliDDNS")]
|
||||||
|
[assembly: AssemblyCopyright("https://github.com/wisdomwei201804/AliDDNS")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
//将 ComVisible 设置为 false 将使此程序集中的类型
|
||||||
|
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
||||||
|
//请将此类型的 ComVisible 特性设置为 true。
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||||
|
[assembly: Guid("018bab83-ca31-4bde-bc01-eec283ceabea")]
|
||||||
|
|
||||||
|
// 程序集的版本信息由下列四个值组成:
|
||||||
|
//
|
||||||
|
// 主版本
|
||||||
|
// 次版本
|
||||||
|
// 生成号
|
||||||
|
// 修订号
|
||||||
|
//
|
||||||
|
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||||
|
// 方法是按如下所示使用“*”: :
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("3.7.1.0")]
|
||||||
|
[assembly: AssemblyFileVersion("3.7.1.0")]
|
103
net.nutcore.aliddns/net.nutcore.aliddns/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace net.nutcore.aliddns.Properties {
|
||||||
|
using System;
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||||
|
/// </summary>
|
||||||
|
// 此类是由 StronglyTypedResourceBuilder
|
||||||
|
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||||
|
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||||
|
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
internal class Resources {
|
||||||
|
|
||||||
|
private static global::System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
|
internal Resources() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
|
get {
|
||||||
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("net.nutcore.aliddns.Properties.Resources", typeof(Resources).Assembly);
|
||||||
|
resourceMan = temp;
|
||||||
|
}
|
||||||
|
return resourceMan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 使用此强类型资源类,为所有资源查找
|
||||||
|
/// 重写当前线程的 CurrentUICulture 属性。
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
internal static global::System.Globalization.CultureInfo Culture {
|
||||||
|
get {
|
||||||
|
return resourceCulture;
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
resourceCulture = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似于 (Icon) 的 System.Drawing.Icon 类型的本地化资源。
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Icon alidns_gray {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("alidns_gray", resourceCulture);
|
||||||
|
return ((System.Drawing.Icon)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似于 (Icon) 的 System.Drawing.Icon 类型的本地化资源。
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Icon alidns_green {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("alidns_green", resourceCulture);
|
||||||
|
return ((System.Drawing.Icon)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似于 (Icon) 的 System.Drawing.Icon 类型的本地化资源。
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Icon alidns_red {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("alidns_red", resourceCulture);
|
||||||
|
return ((System.Drawing.Icon)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似于 (Icon) 的 System.Drawing.Icon 类型的本地化资源。
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Icon alidns_yellow {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("alidns_yellow", resourceCulture);
|
||||||
|
return ((System.Drawing.Icon)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,133 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="alidns_gray" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\alidns_gray.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="alidns_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\alidns_green.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="alidns_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\alidns_red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="alidns_yellow" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\alidns_yellow.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
30
net.nutcore.aliddns/net.nutcore.aliddns/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Runtime Version:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace net.nutcore.aliddns.Properties
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||||
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||||
|
{
|
||||||
|
|
||||||
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
||||||
|
public static Settings Default
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return defaultInstance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/Resources/alidns_red.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/alidns.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/alidns_gray.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/alidns_green.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/alidns_red.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/alidns_yellow.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
net.nutcore.aliddns/net.nutcore.aliddns/aliyun-net-sdk-core.dll
Normal file
661
net.nutcore.aliddns/net.nutcore.aliddns/main.Designer.cs
generated
Normal file
@ -0,0 +1,661 @@
|
|||||||
|
namespace net.nutcore.aliddns
|
||||||
|
{
|
||||||
|
partial class mainForm
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 必需的设计器变量。
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 清理所有正在使用的资源。
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows 窗体设计器生成的代码
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设计器支持所需的方法 - 不要修改
|
||||||
|
/// 使用代码编辑器修改此方法的内容。
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(mainForm));
|
||||||
|
this.timeSetGroup = new System.Windows.Forms.GroupBox();
|
||||||
|
this.checkBox_logAutoSave = new System.Windows.Forms.CheckBox();
|
||||||
|
this.checkBox_minimized = new System.Windows.Forms.CheckBox();
|
||||||
|
this.checkBox_autoUpdate = new System.Windows.Forms.CheckBox();
|
||||||
|
this.checkBox_autoBoot = new System.Windows.Forms.CheckBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.label_nextUpdateSeconds = new System.Windows.Forms.Label();
|
||||||
|
this.updateNow = new System.Windows.Forms.Button();
|
||||||
|
this.debugMessage = new System.Windows.Forms.GroupBox();
|
||||||
|
this.recordId = new System.Windows.Forms.TextBox();
|
||||||
|
this.globalValue = new System.Windows.Forms.Label();
|
||||||
|
this.globalDomainType = new System.Windows.Forms.Label();
|
||||||
|
this.label12 = new System.Windows.Forms.Label();
|
||||||
|
this.label11 = new System.Windows.Forms.Label();
|
||||||
|
this.globalRR = new System.Windows.Forms.Label();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.globalSetGroup = new System.Windows.Forms.GroupBox();
|
||||||
|
this.button_ShowHide = new System.Windows.Forms.Button();
|
||||||
|
this.checkAndSaveConfig = new System.Windows.Forms.Button();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.newSeconds = new System.Windows.Forms.TextBox();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.fullDomainName = new System.Windows.Forms.TextBox();
|
||||||
|
this.accessKeySecret = new System.Windows.Forms.TextBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.accessKeyId = new System.Windows.Forms.TextBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.autoUpdateTimer = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.notifyIcon_sysTray = new System.Windows.Forms.NotifyIcon(this.components);
|
||||||
|
this.contextMenuStrip_sysTrayMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
|
this.toolStripMenuItem_Exit = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.ToolStripMenuItem_About = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.textBox_log = new System.Windows.Forms.TextBox();
|
||||||
|
this.groupBox_netstate = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label_DomainIpStatus = new System.Windows.Forms.Label();
|
||||||
|
this.label_localIpStatus = new System.Windows.Forms.Label();
|
||||||
|
this.domainIP = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.localIP = new System.Windows.Forms.Label();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox_setWanIp = new System.Windows.Forms.GroupBox();
|
||||||
|
this.maskedTextBox_setIP = new System.Windows.Forms.MaskedTextBox();
|
||||||
|
this.button_setIP = new System.Windows.Forms.Button();
|
||||||
|
this.comboBox_whatIsUrl = new System.Windows.Forms.ComboBox();
|
||||||
|
this.button_whatIsTest = new System.Windows.Forms.Button();
|
||||||
|
this.label14 = new System.Windows.Forms.Label();
|
||||||
|
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
||||||
|
this.timeSetGroup.SuspendLayout();
|
||||||
|
this.debugMessage.SuspendLayout();
|
||||||
|
this.globalSetGroup.SuspendLayout();
|
||||||
|
this.contextMenuStrip_sysTrayMenu.SuspendLayout();
|
||||||
|
this.groupBox_netstate.SuspendLayout();
|
||||||
|
this.groupBox_setWanIp.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// timeSetGroup
|
||||||
|
//
|
||||||
|
this.timeSetGroup.Controls.Add(this.checkBox_logAutoSave);
|
||||||
|
this.timeSetGroup.Controls.Add(this.checkBox_minimized);
|
||||||
|
this.timeSetGroup.Controls.Add(this.checkBox_autoUpdate);
|
||||||
|
this.timeSetGroup.Controls.Add(this.checkBox_autoBoot);
|
||||||
|
this.timeSetGroup.Controls.Add(this.label3);
|
||||||
|
this.timeSetGroup.Controls.Add(this.label_nextUpdateSeconds);
|
||||||
|
this.timeSetGroup.Controls.Add(this.updateNow);
|
||||||
|
this.timeSetGroup.Location = new System.Drawing.Point(12, 185);
|
||||||
|
this.timeSetGroup.Name = "timeSetGroup";
|
||||||
|
this.timeSetGroup.Size = new System.Drawing.Size(201, 123);
|
||||||
|
this.timeSetGroup.TabIndex = 4;
|
||||||
|
this.timeSetGroup.TabStop = false;
|
||||||
|
this.timeSetGroup.Text = "其它设置";
|
||||||
|
//
|
||||||
|
// checkBox_logAutoSave
|
||||||
|
//
|
||||||
|
this.checkBox_logAutoSave.AutoSize = true;
|
||||||
|
this.checkBox_logAutoSave.Location = new System.Drawing.Point(8, 45);
|
||||||
|
this.checkBox_logAutoSave.Name = "checkBox_logAutoSave";
|
||||||
|
this.checkBox_logAutoSave.Size = new System.Drawing.Size(96, 16);
|
||||||
|
this.checkBox_logAutoSave.TabIndex = 8;
|
||||||
|
this.checkBox_logAutoSave.Text = "日志自动转储";
|
||||||
|
this.checkBox_logAutoSave.UseVisualStyleBackColor = true;
|
||||||
|
this.checkBox_logAutoSave.CheckedChanged += new System.EventHandler(this.checkBox_logAutoSave_CheckedChanged);
|
||||||
|
//
|
||||||
|
// checkBox_minimized
|
||||||
|
//
|
||||||
|
this.checkBox_minimized.AutoSize = true;
|
||||||
|
this.checkBox_minimized.Location = new System.Drawing.Point(98, 21);
|
||||||
|
this.checkBox_minimized.Name = "checkBox_minimized";
|
||||||
|
this.checkBox_minimized.Size = new System.Drawing.Size(96, 16);
|
||||||
|
this.checkBox_minimized.TabIndex = 7;
|
||||||
|
this.checkBox_minimized.Text = "启动时最小化";
|
||||||
|
this.checkBox_minimized.UseVisualStyleBackColor = true;
|
||||||
|
this.checkBox_minimized.CheckedChanged += new System.EventHandler(this.checkBox_minimized_CheckedChanged);
|
||||||
|
//
|
||||||
|
// checkBox_autoUpdate
|
||||||
|
//
|
||||||
|
this.checkBox_autoUpdate.AutoSize = true;
|
||||||
|
this.checkBox_autoUpdate.Checked = true;
|
||||||
|
this.checkBox_autoUpdate.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.checkBox_autoUpdate.Location = new System.Drawing.Point(8, 71);
|
||||||
|
this.checkBox_autoUpdate.Name = "checkBox_autoUpdate";
|
||||||
|
this.checkBox_autoUpdate.Size = new System.Drawing.Size(72, 16);
|
||||||
|
this.checkBox_autoUpdate.TabIndex = 6;
|
||||||
|
this.checkBox_autoUpdate.Text = "自动更新";
|
||||||
|
this.checkBox_autoUpdate.UseVisualStyleBackColor = true;
|
||||||
|
this.checkBox_autoUpdate.CheckedChanged += new System.EventHandler(this.checkBox_autoUpdate_CheckedChanged);
|
||||||
|
//
|
||||||
|
// checkBox_autoBoot
|
||||||
|
//
|
||||||
|
this.checkBox_autoBoot.AutoSize = true;
|
||||||
|
this.checkBox_autoBoot.Location = new System.Drawing.Point(8, 21);
|
||||||
|
this.checkBox_autoBoot.Name = "checkBox_autoBoot";
|
||||||
|
this.checkBox_autoBoot.Size = new System.Drawing.Size(84, 16);
|
||||||
|
this.checkBox_autoBoot.TabIndex = 5;
|
||||||
|
this.checkBox_autoBoot.Text = "随系统启动";
|
||||||
|
this.checkBox_autoBoot.UseVisualStyleBackColor = true;
|
||||||
|
this.checkBox_autoBoot.CheckedChanged += new System.EventHandler(this.checkBox_autoBoot_CheckedChanged);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(117, 72);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(77, 12);
|
||||||
|
this.label3.TabIndex = 4;
|
||||||
|
this.label3.Text = "秒后更新记录";
|
||||||
|
//
|
||||||
|
// label_nextUpdateSeconds
|
||||||
|
//
|
||||||
|
this.label_nextUpdateSeconds.AutoSize = true;
|
||||||
|
this.label_nextUpdateSeconds.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.label_nextUpdateSeconds.Location = new System.Drawing.Point(97, 72);
|
||||||
|
this.label_nextUpdateSeconds.Name = "label_nextUpdateSeconds";
|
||||||
|
this.label_nextUpdateSeconds.Size = new System.Drawing.Size(17, 12);
|
||||||
|
this.label_nextUpdateSeconds.TabIndex = 3;
|
||||||
|
this.label_nextUpdateSeconds.Text = "60";
|
||||||
|
//
|
||||||
|
// updateNow
|
||||||
|
//
|
||||||
|
this.updateNow.Location = new System.Drawing.Point(6, 94);
|
||||||
|
this.updateNow.Name = "updateNow";
|
||||||
|
this.updateNow.Size = new System.Drawing.Size(185, 23);
|
||||||
|
this.updateNow.TabIndex = 2;
|
||||||
|
this.updateNow.Text = "立即更新";
|
||||||
|
this.updateNow.UseVisualStyleBackColor = true;
|
||||||
|
this.updateNow.Click += new System.EventHandler(this.updateNow_Click);
|
||||||
|
//
|
||||||
|
// debugMessage
|
||||||
|
//
|
||||||
|
this.debugMessage.Controls.Add(this.recordId);
|
||||||
|
this.debugMessage.Controls.Add(this.globalValue);
|
||||||
|
this.debugMessage.Controls.Add(this.globalDomainType);
|
||||||
|
this.debugMessage.Controls.Add(this.label12);
|
||||||
|
this.debugMessage.Controls.Add(this.label11);
|
||||||
|
this.debugMessage.Controls.Add(this.globalRR);
|
||||||
|
this.debugMessage.Controls.Add(this.label10);
|
||||||
|
this.debugMessage.Controls.Add(this.label9);
|
||||||
|
this.debugMessage.Location = new System.Drawing.Point(219, 47);
|
||||||
|
this.debugMessage.Name = "debugMessage";
|
||||||
|
this.debugMessage.Size = new System.Drawing.Size(206, 79);
|
||||||
|
this.debugMessage.TabIndex = 5;
|
||||||
|
this.debugMessage.TabStop = false;
|
||||||
|
this.debugMessage.Text = "调试信息";
|
||||||
|
//
|
||||||
|
// recordId
|
||||||
|
//
|
||||||
|
this.recordId.Location = new System.Drawing.Point(68, 18);
|
||||||
|
this.recordId.Name = "recordId";
|
||||||
|
this.recordId.Size = new System.Drawing.Size(116, 21);
|
||||||
|
this.recordId.TabIndex = 8;
|
||||||
|
this.recordId.Text = "<null>";
|
||||||
|
//
|
||||||
|
// globalValue
|
||||||
|
//
|
||||||
|
this.globalValue.AutoSize = true;
|
||||||
|
this.globalValue.Location = new System.Drawing.Point(47, 60);
|
||||||
|
this.globalValue.Name = "globalValue";
|
||||||
|
this.globalValue.Size = new System.Drawing.Size(41, 12);
|
||||||
|
this.globalValue.TabIndex = 7;
|
||||||
|
this.globalValue.Text = "<null>";
|
||||||
|
//
|
||||||
|
// globalDomainType
|
||||||
|
//
|
||||||
|
this.globalDomainType.AutoSize = true;
|
||||||
|
this.globalDomainType.Location = new System.Drawing.Point(110, 42);
|
||||||
|
this.globalDomainType.Name = "globalDomainType";
|
||||||
|
this.globalDomainType.Size = new System.Drawing.Size(41, 12);
|
||||||
|
this.globalDomainType.TabIndex = 6;
|
||||||
|
this.globalDomainType.Text = "<null>";
|
||||||
|
//
|
||||||
|
// label12
|
||||||
|
//
|
||||||
|
this.label12.AutoSize = true;
|
||||||
|
this.label12.Location = new System.Drawing.Point(8, 59);
|
||||||
|
this.label12.Name = "label12";
|
||||||
|
this.label12.Size = new System.Drawing.Size(41, 12);
|
||||||
|
this.label12.TabIndex = 5;
|
||||||
|
this.label12.Text = "Value:";
|
||||||
|
//
|
||||||
|
// label11
|
||||||
|
//
|
||||||
|
this.label11.AutoSize = true;
|
||||||
|
this.label11.Location = new System.Drawing.Point(77, 41);
|
||||||
|
this.label11.Name = "label11";
|
||||||
|
this.label11.Size = new System.Drawing.Size(35, 12);
|
||||||
|
this.label11.TabIndex = 4;
|
||||||
|
this.label11.Text = "Type:";
|
||||||
|
//
|
||||||
|
// globalRR
|
||||||
|
//
|
||||||
|
this.globalRR.AutoSize = true;
|
||||||
|
this.globalRR.Location = new System.Drawing.Point(28, 41);
|
||||||
|
this.globalRR.Name = "globalRR";
|
||||||
|
this.globalRR.Size = new System.Drawing.Size(41, 12);
|
||||||
|
this.globalRR.TabIndex = 3;
|
||||||
|
this.globalRR.Text = "<null>";
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
this.label10.AutoSize = true;
|
||||||
|
this.label10.Location = new System.Drawing.Point(7, 41);
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
this.label10.Size = new System.Drawing.Size(23, 12);
|
||||||
|
this.label10.TabIndex = 2;
|
||||||
|
this.label10.Text = "RR:";
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
this.label9.AutoSize = true;
|
||||||
|
this.label9.Location = new System.Drawing.Point(7, 21);
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
this.label9.Size = new System.Drawing.Size(53, 12);
|
||||||
|
this.label9.TabIndex = 0;
|
||||||
|
this.label9.Text = "RecordId";
|
||||||
|
//
|
||||||
|
// globalSetGroup
|
||||||
|
//
|
||||||
|
this.globalSetGroup.Controls.Add(this.button_ShowHide);
|
||||||
|
this.globalSetGroup.Controls.Add(this.checkAndSaveConfig);
|
||||||
|
this.globalSetGroup.Controls.Add(this.label8);
|
||||||
|
this.globalSetGroup.Controls.Add(this.newSeconds);
|
||||||
|
this.globalSetGroup.Controls.Add(this.label7);
|
||||||
|
this.globalSetGroup.Controls.Add(this.label6);
|
||||||
|
this.globalSetGroup.Controls.Add(this.fullDomainName);
|
||||||
|
this.globalSetGroup.Controls.Add(this.accessKeySecret);
|
||||||
|
this.globalSetGroup.Controls.Add(this.label5);
|
||||||
|
this.globalSetGroup.Controls.Add(this.accessKeyId);
|
||||||
|
this.globalSetGroup.Controls.Add(this.label4);
|
||||||
|
this.globalSetGroup.Location = new System.Drawing.Point(219, 132);
|
||||||
|
this.globalSetGroup.Name = "globalSetGroup";
|
||||||
|
this.globalSetGroup.Size = new System.Drawing.Size(206, 176);
|
||||||
|
this.globalSetGroup.TabIndex = 6;
|
||||||
|
this.globalSetGroup.TabStop = false;
|
||||||
|
this.globalSetGroup.Text = "设置";
|
||||||
|
//
|
||||||
|
// button_ShowHide
|
||||||
|
//
|
||||||
|
this.button_ShowHide.Location = new System.Drawing.Point(106, 147);
|
||||||
|
this.button_ShowHide.Name = "button_ShowHide";
|
||||||
|
this.button_ShowHide.Size = new System.Drawing.Size(91, 23);
|
||||||
|
this.button_ShowHide.TabIndex = 14;
|
||||||
|
this.button_ShowHide.Text = "显示录入";
|
||||||
|
this.button_ShowHide.UseVisualStyleBackColor = true;
|
||||||
|
this.button_ShowHide.Click += new System.EventHandler(this.button_ShowHide_Click);
|
||||||
|
//
|
||||||
|
// checkAndSaveConfig
|
||||||
|
//
|
||||||
|
this.checkAndSaveConfig.Location = new System.Drawing.Point(8, 147);
|
||||||
|
this.checkAndSaveConfig.Name = "checkAndSaveConfig";
|
||||||
|
this.checkAndSaveConfig.Size = new System.Drawing.Size(93, 23);
|
||||||
|
this.checkAndSaveConfig.TabIndex = 10;
|
||||||
|
this.checkAndSaveConfig.Text = "测试并保存";
|
||||||
|
this.checkAndSaveConfig.UseVisualStyleBackColor = true;
|
||||||
|
this.checkAndSaveConfig.Click += new System.EventHandler(this.checkConfig_Click);
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.Location = new System.Drawing.Point(107, 125);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(65, 12);
|
||||||
|
this.label8.TabIndex = 8;
|
||||||
|
this.label8.Text = "秒更新一次";
|
||||||
|
//
|
||||||
|
// newSeconds
|
||||||
|
//
|
||||||
|
this.newSeconds.Location = new System.Drawing.Point(41, 122);
|
||||||
|
this.newSeconds.Name = "newSeconds";
|
||||||
|
this.newSeconds.Size = new System.Drawing.Size(60, 21);
|
||||||
|
this.newSeconds.TabIndex = 7;
|
||||||
|
this.newSeconds.Text = "60";
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Location = new System.Drawing.Point(6, 125);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(29, 12);
|
||||||
|
this.label7.TabIndex = 6;
|
||||||
|
this.label7.Text = "每隔";
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Location = new System.Drawing.Point(6, 98);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(53, 12);
|
||||||
|
this.label6.TabIndex = 5;
|
||||||
|
this.label6.Text = "完整域名";
|
||||||
|
//
|
||||||
|
// fullDomainName
|
||||||
|
//
|
||||||
|
this.fullDomainName.Location = new System.Drawing.Point(65, 95);
|
||||||
|
this.fullDomainName.Name = "fullDomainName";
|
||||||
|
this.fullDomainName.Size = new System.Drawing.Size(135, 21);
|
||||||
|
this.fullDomainName.TabIndex = 4;
|
||||||
|
this.fullDomainName.Text = "www.xxx.com";
|
||||||
|
this.fullDomainName.ModifiedChanged += new System.EventHandler(this.fullDomainName_ModifiedChanged);
|
||||||
|
//
|
||||||
|
// accessKeySecret
|
||||||
|
//
|
||||||
|
this.accessKeySecret.Location = new System.Drawing.Point(8, 68);
|
||||||
|
this.accessKeySecret.Name = "accessKeySecret";
|
||||||
|
this.accessKeySecret.PasswordChar = '*';
|
||||||
|
this.accessKeySecret.Size = new System.Drawing.Size(192, 21);
|
||||||
|
this.accessKeySecret.TabIndex = 3;
|
||||||
|
this.accessKeySecret.Text = "null";
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Location = new System.Drawing.Point(6, 53);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(95, 12);
|
||||||
|
this.label5.TabIndex = 2;
|
||||||
|
this.label5.Text = "accessKeySecret";
|
||||||
|
//
|
||||||
|
// accessKeyId
|
||||||
|
//
|
||||||
|
this.accessKeyId.Location = new System.Drawing.Point(8, 29);
|
||||||
|
this.accessKeyId.Name = "accessKeyId";
|
||||||
|
this.accessKeyId.PasswordChar = '*';
|
||||||
|
this.accessKeyId.Size = new System.Drawing.Size(192, 21);
|
||||||
|
this.accessKeyId.TabIndex = 1;
|
||||||
|
this.accessKeyId.Text = "null";
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(6, 14);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(71, 12);
|
||||||
|
this.label4.TabIndex = 0;
|
||||||
|
this.label4.Text = "accessKeyId";
|
||||||
|
//
|
||||||
|
// autoUpdateTimer
|
||||||
|
//
|
||||||
|
this.autoUpdateTimer.Enabled = true;
|
||||||
|
this.autoUpdateTimer.Interval = 1000;
|
||||||
|
this.autoUpdateTimer.Tick += new System.EventHandler(this.autoUpdateTimer_Tick);
|
||||||
|
//
|
||||||
|
// notifyIcon_sysTray
|
||||||
|
//
|
||||||
|
this.notifyIcon_sysTray.ContextMenuStrip = this.contextMenuStrip_sysTrayMenu;
|
||||||
|
this.notifyIcon_sysTray.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon_sysTray.Icon")));
|
||||||
|
this.notifyIcon_sysTray.Text = "AliDDNS Tray";
|
||||||
|
this.notifyIcon_sysTray.Visible = true;
|
||||||
|
this.notifyIcon_sysTray.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_sysTray_MouseDoubleClick);
|
||||||
|
//
|
||||||
|
// contextMenuStrip_sysTrayMenu
|
||||||
|
//
|
||||||
|
this.contextMenuStrip_sysTrayMenu.ImageScalingSize = new System.Drawing.Size(24, 24);
|
||||||
|
this.contextMenuStrip_sysTrayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.toolStripMenuItem_Exit,
|
||||||
|
this.ToolStripMenuItem_About});
|
||||||
|
this.contextMenuStrip_sysTrayMenu.Name = "contextMenuStrip1";
|
||||||
|
this.contextMenuStrip_sysTrayMenu.Size = new System.Drawing.Size(101, 48);
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Exit
|
||||||
|
//
|
||||||
|
this.toolStripMenuItem_Exit.Name = "toolStripMenuItem_Exit";
|
||||||
|
this.toolStripMenuItem_Exit.Size = new System.Drawing.Size(100, 22);
|
||||||
|
this.toolStripMenuItem_Exit.Text = "退出";
|
||||||
|
this.toolStripMenuItem_Exit.Click += new System.EventHandler(this.toolStripMenuItem1_Click);
|
||||||
|
//
|
||||||
|
// ToolStripMenuItem_About
|
||||||
|
//
|
||||||
|
this.ToolStripMenuItem_About.Name = "ToolStripMenuItem_About";
|
||||||
|
this.ToolStripMenuItem_About.Size = new System.Drawing.Size(100, 22);
|
||||||
|
this.ToolStripMenuItem_About.Text = "关于";
|
||||||
|
this.ToolStripMenuItem_About.Click += new System.EventHandler(this.ToolStripMenuItem_About_Click);
|
||||||
|
//
|
||||||
|
// textBox_log
|
||||||
|
//
|
||||||
|
this.textBox_log.Location = new System.Drawing.Point(12, 314);
|
||||||
|
this.textBox_log.Multiline = true;
|
||||||
|
this.textBox_log.Name = "textBox_log";
|
||||||
|
this.textBox_log.ReadOnly = true;
|
||||||
|
this.textBox_log.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||||
|
this.textBox_log.Size = new System.Drawing.Size(413, 109);
|
||||||
|
this.textBox_log.TabIndex = 8;
|
||||||
|
//
|
||||||
|
// groupBox_netstate
|
||||||
|
//
|
||||||
|
this.groupBox_netstate.Controls.Add(this.label_DomainIpStatus);
|
||||||
|
this.groupBox_netstate.Controls.Add(this.label_localIpStatus);
|
||||||
|
this.groupBox_netstate.Controls.Add(this.domainIP);
|
||||||
|
this.groupBox_netstate.Controls.Add(this.label2);
|
||||||
|
this.groupBox_netstate.Controls.Add(this.localIP);
|
||||||
|
this.groupBox_netstate.Controls.Add(this.label1);
|
||||||
|
this.groupBox_netstate.Location = new System.Drawing.Point(12, 3);
|
||||||
|
this.groupBox_netstate.Name = "groupBox_netstate";
|
||||||
|
this.groupBox_netstate.Size = new System.Drawing.Size(413, 38);
|
||||||
|
this.groupBox_netstate.TabIndex = 9;
|
||||||
|
this.groupBox_netstate.TabStop = false;
|
||||||
|
this.groupBox_netstate.Text = "网络状态";
|
||||||
|
//
|
||||||
|
// label_DomainIpStatus
|
||||||
|
//
|
||||||
|
this.label_DomainIpStatus.AutoSize = true;
|
||||||
|
this.label_DomainIpStatus.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.label_DomainIpStatus.Location = new System.Drawing.Point(364, 19);
|
||||||
|
this.label_DomainIpStatus.Name = "label_DomainIpStatus";
|
||||||
|
this.label_DomainIpStatus.Size = new System.Drawing.Size(41, 12);
|
||||||
|
this.label_DomainIpStatus.TabIndex = 9;
|
||||||
|
this.label_DomainIpStatus.Text = "未绑定";
|
||||||
|
//
|
||||||
|
// label_localIpStatus
|
||||||
|
//
|
||||||
|
this.label_localIpStatus.AutoSize = true;
|
||||||
|
this.label_localIpStatus.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.label_localIpStatus.Location = new System.Drawing.Point(156, 19);
|
||||||
|
this.label_localIpStatus.Name = "label_localIpStatus";
|
||||||
|
this.label_localIpStatus.Size = new System.Drawing.Size(41, 12);
|
||||||
|
this.label_localIpStatus.TabIndex = 8;
|
||||||
|
this.label_localIpStatus.Text = "未连接";
|
||||||
|
//
|
||||||
|
// domainIP
|
||||||
|
//
|
||||||
|
this.domainIP.AutoSize = true;
|
||||||
|
this.domainIP.Location = new System.Drawing.Point(259, 19);
|
||||||
|
this.domainIP.Name = "domainIP";
|
||||||
|
this.domainIP.Size = new System.Drawing.Size(47, 12);
|
||||||
|
this.domainIP.TabIndex = 7;
|
||||||
|
this.domainIP.Text = "0.0.0.0";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(213, 19);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(47, 12);
|
||||||
|
this.label2.TabIndex = 6;
|
||||||
|
this.label2.Text = "域名IP:";
|
||||||
|
//
|
||||||
|
// localIP
|
||||||
|
//
|
||||||
|
this.localIP.AutoSize = true;
|
||||||
|
this.localIP.Location = new System.Drawing.Point(57, 19);
|
||||||
|
this.localIP.Name = "localIP";
|
||||||
|
this.localIP.Size = new System.Drawing.Size(47, 12);
|
||||||
|
this.localIP.TabIndex = 5;
|
||||||
|
this.localIP.Text = "0.0.0.0";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(5, 19);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||||
|
this.label1.TabIndex = 4;
|
||||||
|
this.label1.Text = "WAN口IP:";
|
||||||
|
//
|
||||||
|
// groupBox_setWanIp
|
||||||
|
//
|
||||||
|
this.groupBox_setWanIp.Controls.Add(this.maskedTextBox_setIP);
|
||||||
|
this.groupBox_setWanIp.Controls.Add(this.button_setIP);
|
||||||
|
this.groupBox_setWanIp.Controls.Add(this.comboBox_whatIsUrl);
|
||||||
|
this.groupBox_setWanIp.Controls.Add(this.button_whatIsTest);
|
||||||
|
this.groupBox_setWanIp.Controls.Add(this.label14);
|
||||||
|
this.groupBox_setWanIp.Location = new System.Drawing.Point(12, 47);
|
||||||
|
this.groupBox_setWanIp.Name = "groupBox_setWanIp";
|
||||||
|
this.groupBox_setWanIp.Size = new System.Drawing.Size(201, 135);
|
||||||
|
this.groupBox_setWanIp.TabIndex = 10;
|
||||||
|
this.groupBox_setWanIp.TabStop = false;
|
||||||
|
this.groupBox_setWanIp.Text = "WAN口IP设置";
|
||||||
|
//
|
||||||
|
// maskedTextBox_setIP
|
||||||
|
//
|
||||||
|
this.maskedTextBox_setIP.Location = new System.Drawing.Point(7, 100);
|
||||||
|
this.maskedTextBox_setIP.Mask = "000.000.000.000";
|
||||||
|
this.maskedTextBox_setIP.Name = "maskedTextBox_setIP";
|
||||||
|
this.maskedTextBox_setIP.PromptChar = ' ';
|
||||||
|
this.maskedTextBox_setIP.Size = new System.Drawing.Size(106, 21);
|
||||||
|
this.maskedTextBox_setIP.TabIndex = 20;
|
||||||
|
//
|
||||||
|
// button_setIP
|
||||||
|
//
|
||||||
|
this.button_setIP.Location = new System.Drawing.Point(119, 99);
|
||||||
|
this.button_setIP.Name = "button_setIP";
|
||||||
|
this.button_setIP.Size = new System.Drawing.Size(76, 23);
|
||||||
|
this.button_setIP.TabIndex = 19;
|
||||||
|
this.button_setIP.Text = "手工指定IP";
|
||||||
|
this.button_setIP.UseVisualStyleBackColor = true;
|
||||||
|
this.button_setIP.Click += new System.EventHandler(this.button_setIP_Click);
|
||||||
|
//
|
||||||
|
// comboBox_whatIsUrl
|
||||||
|
//
|
||||||
|
this.comboBox_whatIsUrl.FormattingEnabled = true;
|
||||||
|
this.comboBox_whatIsUrl.Items.AddRange(new object[] {
|
||||||
|
"http://whatismyip.akamai.com/",
|
||||||
|
"http://www.net.cn/static/customercare/yourip.asp"});
|
||||||
|
this.comboBox_whatIsUrl.Location = new System.Drawing.Point(6, 41);
|
||||||
|
this.comboBox_whatIsUrl.Name = "comboBox_whatIsUrl";
|
||||||
|
this.comboBox_whatIsUrl.Size = new System.Drawing.Size(189, 20);
|
||||||
|
this.comboBox_whatIsUrl.TabIndex = 18;
|
||||||
|
this.comboBox_whatIsUrl.Text = "http://whatismyip.akamai.com/";
|
||||||
|
//
|
||||||
|
// button_whatIsTest
|
||||||
|
//
|
||||||
|
this.button_whatIsTest.Location = new System.Drawing.Point(6, 66);
|
||||||
|
this.button_whatIsTest.Name = "button_whatIsTest";
|
||||||
|
this.button_whatIsTest.Size = new System.Drawing.Size(189, 23);
|
||||||
|
this.button_whatIsTest.TabIndex = 17;
|
||||||
|
this.button_whatIsTest.Text = "获取WAN口IP";
|
||||||
|
this.button_whatIsTest.UseVisualStyleBackColor = true;
|
||||||
|
this.button_whatIsTest.Click += new System.EventHandler(this.button_whatIsTest_Click);
|
||||||
|
//
|
||||||
|
// label14
|
||||||
|
//
|
||||||
|
this.label14.AutoSize = true;
|
||||||
|
this.label14.Location = new System.Drawing.Point(7, 22);
|
||||||
|
this.label14.Name = "label14";
|
||||||
|
this.label14.Size = new System.Drawing.Size(59, 12);
|
||||||
|
this.label14.TabIndex = 16;
|
||||||
|
this.label14.Text = "查询网址:";
|
||||||
|
//
|
||||||
|
// notifyIcon1
|
||||||
|
//
|
||||||
|
this.notifyIcon1.Text = "notifyIcon1";
|
||||||
|
this.notifyIcon1.Visible = true;
|
||||||
|
//
|
||||||
|
// mainForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(437, 430);
|
||||||
|
this.Controls.Add(this.groupBox_setWanIp);
|
||||||
|
this.Controls.Add(this.groupBox_netstate);
|
||||||
|
this.Controls.Add(this.textBox_log);
|
||||||
|
this.Controls.Add(this.globalSetGroup);
|
||||||
|
this.Controls.Add(this.debugMessage);
|
||||||
|
this.Controls.Add(this.timeSetGroup);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Name = "mainForm";
|
||||||
|
this.Text = "AliDDNS";
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.mainForm_FormClosing);
|
||||||
|
this.Load += new System.EventHandler(this.mainForm_Load);
|
||||||
|
this.timeSetGroup.ResumeLayout(false);
|
||||||
|
this.timeSetGroup.PerformLayout();
|
||||||
|
this.debugMessage.ResumeLayout(false);
|
||||||
|
this.debugMessage.PerformLayout();
|
||||||
|
this.globalSetGroup.ResumeLayout(false);
|
||||||
|
this.globalSetGroup.PerformLayout();
|
||||||
|
this.contextMenuStrip_sysTrayMenu.ResumeLayout(false);
|
||||||
|
this.groupBox_netstate.ResumeLayout(false);
|
||||||
|
this.groupBox_netstate.PerformLayout();
|
||||||
|
this.groupBox_setWanIp.ResumeLayout(false);
|
||||||
|
this.groupBox_setWanIp.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private System.Windows.Forms.GroupBox timeSetGroup;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.Label label_nextUpdateSeconds;
|
||||||
|
private System.Windows.Forms.Button updateNow;
|
||||||
|
private System.Windows.Forms.GroupBox debugMessage;
|
||||||
|
private System.Windows.Forms.GroupBox globalSetGroup;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.TextBox newSeconds;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.TextBox fullDomainName;
|
||||||
|
private System.Windows.Forms.TextBox accessKeySecret;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.TextBox accessKeyId;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Timer autoUpdateTimer;
|
||||||
|
private System.Windows.Forms.Button checkAndSaveConfig;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private System.Windows.Forms.Label label12;
|
||||||
|
private System.Windows.Forms.Label label11;
|
||||||
|
private System.Windows.Forms.Label globalRR;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.Label globalDomainType;
|
||||||
|
private System.Windows.Forms.Label globalValue;
|
||||||
|
private System.Windows.Forms.TextBox recordId;
|
||||||
|
private System.Windows.Forms.NotifyIcon notifyIcon_sysTray;
|
||||||
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip_sysTrayMenu;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem_Exit;
|
||||||
|
private System.Windows.Forms.TextBox textBox_log;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox_netstate;
|
||||||
|
private System.Windows.Forms.Label label_DomainIpStatus;
|
||||||
|
private System.Windows.Forms.Label label_localIpStatus;
|
||||||
|
private System.Windows.Forms.Label domainIP;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label localIP;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button button_ShowHide;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox_autoBoot;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox_autoUpdate;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox_minimized;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem_About;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox_logAutoSave;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox_setWanIp;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox_whatIsUrl;
|
||||||
|
private System.Windows.Forms.Button button_whatIsTest;
|
||||||
|
private System.Windows.Forms.Label label14;
|
||||||
|
private System.Windows.Forms.Button button_setIP;
|
||||||
|
private System.Windows.Forms.MaskedTextBox maskedTextBox_setIP;
|
||||||
|
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
715
net.nutcore.aliddns/net.nutcore.aliddns/main.cs
Normal file
@ -0,0 +1,715 @@
|
|||||||
|
using Aliyun.Acs.Alidns.Model.V20150109;
|
||||||
|
using Aliyun.Acs.Core;
|
||||||
|
using Aliyun.Acs.Core.Exceptions;
|
||||||
|
using Aliyun.Acs.Core.Profile;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Net;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using System.Xml;
|
||||||
|
using static Aliyun.Acs.Alidns.Model.V20150109.DescribeSubDomainRecordsResponse;
|
||||||
|
|
||||||
|
namespace net.nutcore.aliddns
|
||||||
|
{
|
||||||
|
public partial class mainForm : Form
|
||||||
|
{
|
||||||
|
static IClientProfile clientProfile;
|
||||||
|
static DefaultAcsClient client;
|
||||||
|
|
||||||
|
public mainForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
this.MinimizeBox = false; //取消窗口最小化按钮
|
||||||
|
this.MaximizeBox = false; //取消窗口最大化按钮
|
||||||
|
}
|
||||||
|
|
||||||
|
private void mainForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try //检查设置文件,如果没有则新建,并赋值默认值
|
||||||
|
{
|
||||||
|
string ExePath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||||
|
string config_file = ExePath + "aliddns_config.xml";
|
||||||
|
if (File.Exists(config_file) != true) //当设置文件aliddns_config.xml不存在时,创建一个新的。
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "没有找到设置文件 aliddns_config.xml,重新创建!" + "\r\n");
|
||||||
|
if (saveConfigFile())
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置文件 aliddns_config.xml 创建成功!" + "\r\n");
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置文件设置项目默认赋值完成!" + "\r\n");
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "请填写正确内容,点击“测试并保存”完成设置!" + "\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception error)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "运行出错!信息:" + error + "\r\n");
|
||||||
|
this.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
//读取设置文件config.xml
|
||||||
|
readConfigFile();
|
||||||
|
//窗体根据参数判断是否最小化驻留系统托盘
|
||||||
|
if (checkBox_minimized.Checked == true)
|
||||||
|
{
|
||||||
|
this.ShowInTaskbar = false; //从状态栏清除
|
||||||
|
this.WindowState = FormWindowState.Minimized; //窗体最小化
|
||||||
|
this.Hide(); //窗体隐藏
|
||||||
|
}
|
||||||
|
else if (checkBox_minimized.Checked == false)
|
||||||
|
{
|
||||||
|
this.Show(); //窗体显示
|
||||||
|
this.WindowState = FormWindowState.Normal; //窗体正常化
|
||||||
|
this.ShowInTaskbar = true; //从状态栏显示
|
||||||
|
}
|
||||||
|
|
||||||
|
try //获取WAN口IP
|
||||||
|
{
|
||||||
|
localIP.Text = getLocalIP();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取WAN口IP失败!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
clientProfile = DefaultProfile.GetProfile("cn-hangzhou", accessKeyId.Text, accessKeySecret.Text);
|
||||||
|
client = new DefaultAcsClient(clientProfile);
|
||||||
|
domainIP.Text = getDomainIP();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取域名和绑定IP失败,请检查设置项目内容和网络状态!" + "\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void readConfigFile()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
//Create xml object
|
||||||
|
XmlDocument xmlDOC = new XmlDocument();
|
||||||
|
string ExePath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||||
|
string config_file = ExePath + "aliddns_config.xml";
|
||||||
|
xmlDOC.Load(config_file);
|
||||||
|
XmlNodeReader readXML = new XmlNodeReader(xmlDOC);
|
||||||
|
XmlNodeList nodes = xmlDOC.SelectSingleNode("Config").ChildNodes; //读取config节点下所有元素
|
||||||
|
/*
|
||||||
|
for (int i = 0; i < nodes.Count; i++)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + nodes[i].Name + ":" + nodes[i].InnerText + "\r\n"); //显示读取内容,用于调试DEBUG。
|
||||||
|
}
|
||||||
|
string[] config = new string[nodes.Count]; //创建一个设置读取数组用于存储读取内容
|
||||||
|
int i = 0;
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置文件找到,开始读取..." + "\r\n");
|
||||||
|
while (readXML.Read())
|
||||||
|
{
|
||||||
|
readXML.MoveToElement(); //Forward
|
||||||
|
if (readXML.NodeType == XmlNodeType.Text) //(node.NodeType 是Text时,即是最内层 即innertext值,node.Attributes为null。
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + readXML.NodeType + "\r\n"); //显示读取内容,用于调试DEBUG。
|
||||||
|
config[i] = readXML.Value;
|
||||||
|
//此行用于调试读取内容
|
||||||
|
//textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "项目[" + i + "]: " + config[i] + "\r\n"); //显示读取内容,用于调试DEBUG。
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
accessKeyId.Text = nodes[0].InnerText;
|
||||||
|
accessKeySecret.Text = nodes[1].InnerText;
|
||||||
|
recordId.Text = nodes[2].InnerText;
|
||||||
|
fullDomainName.Text = nodes[3].InnerText;
|
||||||
|
label_nextUpdateSeconds.Text = newSeconds.Text = nodes[4].InnerText;
|
||||||
|
if (nodes[5].InnerText == "On") checkBox_autoUpdate.Checked = true;
|
||||||
|
else checkBox_autoUpdate.Checked = false;
|
||||||
|
//if ( config[5] == "On" ) autoUpdateOn.Checked = true;
|
||||||
|
//if ( config[5] == "Off ") autoUpdateOff.Checked = true;
|
||||||
|
comboBox_whatIsUrl.Text = nodes[6].InnerText;
|
||||||
|
if (nodes[7].InnerText == "On") checkBox_autoBoot.Checked = true;
|
||||||
|
else checkBox_autoBoot.Checked = false;
|
||||||
|
if (nodes[8].InnerText == "On") checkBox_minimized.Checked = true;
|
||||||
|
else checkBox_minimized.Checked = false;
|
||||||
|
if (nodes[9].InnerText == "On")
|
||||||
|
checkBox_logAutoSave.Checked = true;
|
||||||
|
else
|
||||||
|
checkBox_logAutoSave.Checked = false;
|
||||||
|
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置文件读取成功!" + "\r\n");
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "运行出错!信息: " + error + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool saveConfigFile()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (accessKeyId.Text == "" || accessKeySecret.Text == "" || recordId.Text == "" || fullDomainName.Text == "" || newSeconds.Text == "" || comboBox_whatIsUrl.Text == "")
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "任何值都不能为空!无法填写请输入null或0!" + "\r\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
string ExePath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||||
|
string config_file = ExePath + "aliddns_config.xml";
|
||||||
|
XmlTextWriter textWriter = new XmlTextWriter(config_file, null);
|
||||||
|
textWriter.WriteStartDocument(); //文档开始
|
||||||
|
|
||||||
|
textWriter.WriteComment("AlidnsAutoCheckTool");
|
||||||
|
textWriter.WriteComment("Version:Beta 1.0");
|
||||||
|
//Start config file
|
||||||
|
textWriter.WriteStartElement("Config"); //设置项目开始
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("AccessKeyID", "");
|
||||||
|
textWriter.WriteString(accessKeyId.Text);
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("AccessKeySecret", "");
|
||||||
|
textWriter.WriteString(accessKeySecret.Text);
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("RecordID", "");
|
||||||
|
textWriter.WriteString(recordId.Text);
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("fullDomainName", "");
|
||||||
|
textWriter.WriteString(fullDomainName.Text);
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("WaitingTime", "");
|
||||||
|
textWriter.WriteString(newSeconds.Text);
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("autoUpdate", "");
|
||||||
|
if (checkBox_autoUpdate.Checked == true)
|
||||||
|
textWriter.WriteString("On");
|
||||||
|
else
|
||||||
|
textWriter.WriteString("Off");
|
||||||
|
/*if (autoUpdateOn.Checked == true)
|
||||||
|
textWriter.WriteString("On");
|
||||||
|
if (autoUpdateOff.Checked)
|
||||||
|
textWriter.WriteString("Off");*/
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("whatIsUrl", "");
|
||||||
|
textWriter.WriteString(comboBox_whatIsUrl.Text);
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("autoBoot", "");
|
||||||
|
if (checkBox_autoBoot.Checked == true)
|
||||||
|
textWriter.WriteString("On");
|
||||||
|
else
|
||||||
|
textWriter.WriteString("Off");
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("minimized", "");
|
||||||
|
if (checkBox_minimized.Checked == true)
|
||||||
|
textWriter.WriteString("On");
|
||||||
|
else
|
||||||
|
textWriter.WriteString("Off");
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteStartElement("logautosave", "");
|
||||||
|
if (checkBox_logAutoSave.Checked == true)
|
||||||
|
textWriter.WriteString("On");
|
||||||
|
else
|
||||||
|
textWriter.WriteString("Off");
|
||||||
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
textWriter.WriteEndElement(); //设置项目结束
|
||||||
|
textWriter.WriteEndDocument();//文档结束
|
||||||
|
textWriter.Close(); //文档保存关闭
|
||||||
|
|
||||||
|
label_nextUpdateSeconds.Text = newSeconds.Text;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "运行出错!信息: " + error + "\r\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private string getLocalIP()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string strUrl = comboBox_whatIsUrl.Text; //"http://whatismyip.akamai.com/";
|
||||||
|
Uri uri = new Uri(strUrl);
|
||||||
|
WebRequest webreq = WebRequest.Create(uri);
|
||||||
|
Stream s = webreq.GetResponse().GetResponseStream();
|
||||||
|
StreamReader sr = new StreamReader(s, Encoding.Default);
|
||||||
|
string all = sr.ReadToEnd();
|
||||||
|
//textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "DEBUG信息:" + all + "\r\n");
|
||||||
|
//Cut the string
|
||||||
|
/*
|
||||||
|
string[] symbols = new string[2] { "[", "]" };
|
||||||
|
string[] data = all.Split(symbols, 30, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
string ip = data[1];*/
|
||||||
|
all = Regex.Replace(all, @"(\d+)", "000$1");
|
||||||
|
//textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "DEBUG信息:" + all + "\r\n");
|
||||||
|
all = Regex.Replace(all, @"0+(\d{1,4})", "$1");
|
||||||
|
//textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "DEBUG信息:" + all + "\r\n");
|
||||||
|
string reg = @"(\d{1,4}\.\d{1,4}\.\d{1,4}\.\d{1,4})";
|
||||||
|
Regex regex = new Regex(reg);
|
||||||
|
Match match = regex.Match(all);
|
||||||
|
//textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "DEBUG信息:" + match + "\r\n");
|
||||||
|
string ip = match.Groups[1].Value;
|
||||||
|
//textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "DEBUG信息:" + ip + "\r\n");
|
||||||
|
//return Regex.Replace(ip, @"0*(\d+)", "$1");
|
||||||
|
|
||||||
|
//string ip = all;
|
||||||
|
if (ip.Length > 0)
|
||||||
|
{
|
||||||
|
label_localIpStatus.Text = "已连接";
|
||||||
|
label_localIpStatus.ForeColor = System.Drawing.Color.FromArgb(0, 0, 0, 255);
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "成功获取WAN口IP:" + ip + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_yellow;
|
||||||
|
}
|
||||||
|
//return ip;
|
||||||
|
return Regex.Replace(ip, @"0*(\d+)", "$1");
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
label_localIpStatus.Text = "无连接";
|
||||||
|
label_localIpStatus.ForeColor = System.Drawing.Color.FromArgb(255,255,0,0);
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取WAN口IP失败,请检查设置!" + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_gray;
|
||||||
|
return "0.0.0.0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool setRecordId()
|
||||||
|
{
|
||||||
|
DescribeSubDomainRecordsRequest request = new DescribeSubDomainRecordsRequest();
|
||||||
|
request.SubDomain = fullDomainName.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DescribeSubDomainRecordsResponse response = client.GetAcsResponse(request);
|
||||||
|
List<Record> list = response.DomainRecords;
|
||||||
|
|
||||||
|
if (list.Count == 0)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "阿里云DNS服务访问成功,但没有找到对应域名信息!" + "\r\n");
|
||||||
|
if (addDomainRecord())
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
|
foreach (Record record in list)
|
||||||
|
{
|
||||||
|
i++;
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "阿里云DNS服务返回RecordId:" + i.ToString() + " RecordId:" + record.RecordId + "\r\n");
|
||||||
|
recordId.Text = record.RecordId;
|
||||||
|
globalRR.Text = record.RR;
|
||||||
|
globalDomainType.Text = record.Type;
|
||||||
|
globalValue.Text = domainIP.Text = record.Value;
|
||||||
|
label_DomainIpStatus.Text = "已绑定";
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_yellow;
|
||||||
|
label_DomainIpStatus.ForeColor = System.Drawing.Color.FromArgb(0, 0, 0, 255);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//处理错误
|
||||||
|
catch (ServerException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Server Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
catch (ClientException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Client Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string getDomainIP()
|
||||||
|
{
|
||||||
|
DescribeDomainRecordInfoRequest request = new DescribeDomainRecordInfoRequest();
|
||||||
|
request.RecordId = recordId.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DescribeDomainRecordInfoResponse response = client.GetAcsResponse(request);
|
||||||
|
if (response.Value != "0.0.0.0")
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "域名:" + response.RR + "." + response.DomainName + " 已经绑定IP:" + response.Value + "\r\n");
|
||||||
|
recordId.Text = response.RecordId;
|
||||||
|
globalRR.Text = response.RR;
|
||||||
|
globalDomainType.Text = response.Type;
|
||||||
|
globalValue.Text = response.Value;
|
||||||
|
label_DomainIpStatus.Text = "已绑定";
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_yellow;
|
||||||
|
label_DomainIpStatus.ForeColor = System.Drawing.Color.FromArgb(0, 0, 0, 255);
|
||||||
|
return response.Value;
|
||||||
|
}
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取域名绑定IP失败!" + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return "0.0.0.0";
|
||||||
|
}
|
||||||
|
//处理错误
|
||||||
|
catch (ServerException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Server Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
label_DomainIpStatus.Text = "未绑定";
|
||||||
|
label_DomainIpStatus.ForeColor = System.Drawing.Color.FromArgb(255, 255, 0, 0);
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return "0.0.0.0";
|
||||||
|
}
|
||||||
|
catch (ClientException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Client Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
label_DomainIpStatus.Text = "未绑定";
|
||||||
|
label_DomainIpStatus.ForeColor = System.Drawing.Color.FromArgb(255, 255, 0, 0);
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return "0.0.0.0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateDomainRecord()
|
||||||
|
{
|
||||||
|
string[] symbols = new string[1] { "." };
|
||||||
|
string[] data = fullDomainName.Text.Split(symbols, 30, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
string domainRR = data[0];
|
||||||
|
string domainName = data[1] + "." + data[2];
|
||||||
|
|
||||||
|
UpdateDomainRecordRequest request = new UpdateDomainRecordRequest();
|
||||||
|
request.Type = "A";
|
||||||
|
request.RR = domainRR;
|
||||||
|
request.RecordId = recordId.Text;
|
||||||
|
request.Value = localIP.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "正在将WAN口IP:" + localIP.Text + "与域名" + fullDomainName.Text + "绑定..." + "\r\n");
|
||||||
|
UpdateDomainRecordResponse response = client.GetAcsResponse(request);
|
||||||
|
if (response.RecordId != null)
|
||||||
|
{
|
||||||
|
domainIP.Text = localIP.Text; //更新窗体数据
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_green;
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "域名绑定IP更新成功!" + "\r\n");
|
||||||
|
}
|
||||||
|
recordId.Text = response.RecordId;
|
||||||
|
}
|
||||||
|
//处理错误
|
||||||
|
catch (ServerException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Server Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
}
|
||||||
|
catch (ClientException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Client Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool addDomainRecord()
|
||||||
|
{
|
||||||
|
string[] symbols = new string[1] { "." };
|
||||||
|
string[] data = fullDomainName.Text.Split(symbols, 30, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
string domainRR = data[0];
|
||||||
|
string domainName = data[1] + "." + data[2];
|
||||||
|
|
||||||
|
AddDomainRecordRequest request = new AddDomainRecordRequest();
|
||||||
|
request.Type = "A";
|
||||||
|
request.RR = domainRR;
|
||||||
|
request.DomainName = domainName;
|
||||||
|
request.Value = localIP.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "正在向阿里云DNS服务添加域名:" + fullDomainName.Text + "\r\n");
|
||||||
|
AddDomainRecordResponse response = client.GetAcsResponse(request);
|
||||||
|
if (response.RecordId != null)
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "RecordId:" + response.RecordId + " 域名:" + fullDomainName.Text + "添加成功!" + "\r\n");
|
||||||
|
recordId.Text = response.RecordId;
|
||||||
|
globalDomainType.Text = request.Type;
|
||||||
|
globalRR.Text = request.RR;
|
||||||
|
globalValue.Text = domainIP.Text = request.Value;
|
||||||
|
label_DomainIpStatus.Text = "已绑定";
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_green;
|
||||||
|
label_DomainIpStatus.ForeColor = System.Drawing.Color.FromArgb(0, 0, 0, 255);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//处理错误
|
||||||
|
catch (ServerException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Server Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
catch (ClientException e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "Client Exception: " + e.ErrorCode + e.ErrorMessage + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updatePrepare()
|
||||||
|
{
|
||||||
|
label_nextUpdateSeconds.Text = newSeconds.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
localIP.Text = getLocalIP();
|
||||||
|
domainIP.Text = getDomainIP();
|
||||||
|
if (domainIP.Text == localIP.Text)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "WAN口IP:" + localIP.Text + " 与域名绑定IP:" + domainIP.Text + "一致,无需更新!" + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_green;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "WAN口IP:" + localIP.Text + " 与域名绑定IP:" + domainIP.Text + "不一致,需要更新!" + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_yellow;
|
||||||
|
updateDomainRecord();
|
||||||
|
}
|
||||||
|
|
||||||
|
//localIP.Text = getLocalIP();
|
||||||
|
//domainIP.Text = getDomainIP();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "域名绑定IP更新失败!" + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Events in form
|
||||||
|
private void updateNow_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "---立即开始WAN口IP和域名绑定IP进行查询比较---" + "\r\n");
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_yellow;
|
||||||
|
updatePrepare();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkConfig_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
localIP.Text = getLocalIP(); //读取WAN口IP
|
||||||
|
//domainIP.Text = getDomainIP(); //读取AliDDNS已经绑定IP
|
||||||
|
|
||||||
|
clientProfile = DefaultProfile.GetProfile("cn-hangzhou", accessKeyId.Text, accessKeySecret.Text);
|
||||||
|
client = new DefaultAcsClient(clientProfile);
|
||||||
|
if (setRecordId()) //检查能否从服务器返回RecordId,返回则设置正确,否则设置不正确
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置项目内容填写正确,即将保存到设置文件! " + "\r\n");
|
||||||
|
|
||||||
|
if (saveConfigFile()) //检查设置文件是否保存成功
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置文件保存成功! " + "\r\n");
|
||||||
|
else
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "设置文件保存失败,请检查文件权限! " + "\r\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "阿里云DNS服务没有返回RecordId,设置项目内容没有保存!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception) {
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "阿里云DNS服务访问失败,请检查账户accessKeyId和accessKeySecret!" + "\r\n");
|
||||||
|
label_DomainIpStatus.Text = "未绑定";
|
||||||
|
domainIP.Text = "0.0.0.0";
|
||||||
|
recordId.Text = "null";
|
||||||
|
globalRR.Text = "null";
|
||||||
|
globalDomainType.Text = "null";
|
||||||
|
globalValue.Text = "null";
|
||||||
|
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_red;
|
||||||
|
label_DomainIpStatus.ForeColor = System.Drawing.Color.FromArgb(255, 255, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void autoUpdateTimer_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (checkBox_autoUpdate.Checked == true && label_nextUpdateSeconds.Text != "")
|
||||||
|
{
|
||||||
|
int seconds = Convert.ToInt32(label_nextUpdateSeconds.Text);
|
||||||
|
if (seconds > 0) seconds--;
|
||||||
|
label_nextUpdateSeconds.Text = seconds.ToString();
|
||||||
|
|
||||||
|
if (seconds == 0)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "---计划任务被触发,开始WAN口IP和域名IP查询比较---" + "\r\n");
|
||||||
|
updatePrepare();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (checkBox_logAutoSave.Checked == true)
|
||||||
|
{
|
||||||
|
if ( textBox_log.GetLineFromCharIndex(textBox_log.Text.Length) >10000 )
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "---运行日志超过10000行,开始日志转储---" + "\r\n");
|
||||||
|
logToFiles();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "运行出错!信息: " + error + "\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void toolStripMenuItem1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void notifyIcon_sysTray_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.WindowState == FormWindowState.Minimized)
|
||||||
|
{
|
||||||
|
this.Show(); //窗体显示
|
||||||
|
this.WindowState = FormWindowState.Normal; //窗体正常化
|
||||||
|
this.ShowInTaskbar = true; //从状态栏显示
|
||||||
|
}
|
||||||
|
else if (this.WindowState == FormWindowState.Normal)
|
||||||
|
{
|
||||||
|
this.ShowInTaskbar = false; //从状态栏清除
|
||||||
|
this.WindowState = FormWindowState.Minimized; //窗体最小化
|
||||||
|
this.Hide(); //窗体隐藏
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void mainForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
e.Cancel = true; //取消关闭窗体
|
||||||
|
this.WindowState = FormWindowState.Minimized; //窗体最小化
|
||||||
|
this.Hide(); //窗体隐藏
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button_whatIsTest_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "开始向网址发起查询... " + "\r\n");
|
||||||
|
localIP.Text = getLocalIP();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button_ShowHide_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (button_ShowHide.Text == "显示录入")
|
||||||
|
{
|
||||||
|
button_ShowHide.Text = "隐藏录入";
|
||||||
|
accessKeyId.PasswordChar = (char)0;
|
||||||
|
accessKeySecret.PasswordChar = (char)0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
button_ShowHide.Text = "显示录入";
|
||||||
|
accessKeyId.PasswordChar = '*';
|
||||||
|
accessKeySecret.PasswordChar = '*';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void fullDomainName_ModifiedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "域名修改后请测试并保存!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkBox_autoBoot_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(checkBox_autoBoot.Checked == true)
|
||||||
|
{
|
||||||
|
//获取执行该方法的程序集,并获取该程序集的文件路径(由该文件路径可以得到程序集所在的目录)
|
||||||
|
string thisExecutablePath = System.Reflection.Assembly.GetExecutingAssembly().Location;//this.GetType().Assembly.Location;
|
||||||
|
//SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run注册表中这个路径是开机自启动的路径
|
||||||
|
Microsoft.Win32.RegistryKey Rkey = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
|
||||||
|
Rkey.SetValue("AliDDNS Tray", thisExecutablePath);
|
||||||
|
Rkey.Close();
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "随系统启动自动运行设置成功!" + "\r\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Microsoft.Win32.RegistryKey Rkey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",true);
|
||||||
|
Rkey.DeleteValue("AliDDNS Tray");
|
||||||
|
Rkey.Close();
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "随系统启动自动运行取消!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ToolStripMenuItem_About_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.MinimizeBox = false; //取消窗口最小化按钮
|
||||||
|
this.MaximizeBox = false; //取消窗口最大化按钮
|
||||||
|
Form_About about = new Form_About();
|
||||||
|
about.Show(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkBox_logAutoSave_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (checkBox_logAutoSave.Checked == true)
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "日志自动转储启用成功!日志超过1万行将自动转储。" + "\r\n");
|
||||||
|
else
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "日志自动转储取消!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void logToFiles()
|
||||||
|
{
|
||||||
|
string logPath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||||
|
string logfile = logPath + DateTime.Now.ToString("yyyyMMddHHmmss") + "aliddns_log.txt";
|
||||||
|
if (!File.Exists(logfile))
|
||||||
|
{
|
||||||
|
//using (File.Create(logPath)) { }
|
||||||
|
System.IO.StreamWriter sw = System.IO.File.AppendText(logfile);
|
||||||
|
sw.WriteLine(textBox_log.Text);
|
||||||
|
sw.Close();
|
||||||
|
sw.Dispose();
|
||||||
|
textBox_log.Clear();
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "日志转储为: " + logfile + "\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkBox_autoUpdate_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(checkBox_autoUpdate.Checked == true)
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "域名记录自动更新启用成功!" + "\r\n");
|
||||||
|
else
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "域名记录自动更新取消!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkBox_minimized_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (checkBox_minimized.Checked == true)
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "软件启动时驻留到系统托盘启用!" + "\r\n");
|
||||||
|
else
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "软件启动时驻留到系统托盘取消!" + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button_setIP_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string strIn = maskedTextBox_setIP.Text;
|
||||||
|
if (Regex.IsMatch(strIn, @"^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"))
|
||||||
|
{
|
||||||
|
localIP.Text = maskedTextBox_setIP.Text;
|
||||||
|
updateDomainRecord();
|
||||||
|
//getDomainIP();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "请检查输入格式是否正确!IP地址示例格式:255.255.255.255" + "\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception error)
|
||||||
|
{
|
||||||
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "出错:" + error + "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
288
net.nutcore.aliddns/net.nutcore.aliddns/main.resx
Normal file
@ -0,0 +1,288 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="autoUpdateTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="notifyIcon_sysTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>173, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="contextMenuStrip_sysTrayMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>291, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="notifyIcon_sysTray.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABILAAASCwAAAAAAAAAA
|
||||||
|
AAAAAAAARU36AEVN+gBFTfoHRU36IUVN+kBFTfpgRU36hEVN+rJFTfrWRU365kVN+u9FTfr2RU36/EVN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr+RU36+UVN+vJFTfrpRU363EVN+r1FTfqPRU36aEVN+kdFTfomRU36CEVN
|
||||||
|
+gBFTfoAAAAAAEVN+gBFTfoBRU36L0VN+plFTfrbRU368EVN+vpFTfr+RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr7RU3680VN
|
||||||
|
+t9FTfqgRU36MkVN+gFFTfoARU36AEVN+jBFTfrWRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfraRU36MEVN+gBFTfoFRU36okVN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfqaRU36BkVN+h5FTfrXRU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/REz6/0RM+v9ETPr/REz6/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+ttFTfoiRU36PUVN+u1FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9ETPr/Qkr4/0ZO9f9PVvL/VFvw/1Vb7/9QV/D/R0/y/0JK
|
||||||
|
9f9DS/n/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU368EVN+kJFTfpxRU36+kVN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/Q0v4/1FY9P9zefD/p6v0/8nL+f/S1Pr/09X6/8zO
|
||||||
|
+f+xtPT/fIHs/1Vb7P9DS/T/REz6/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr6RU36YUVN
|
||||||
|
+qZFTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/REz6/0ZO9/9yePP/w8X5/+Xm/v/r7P//6+z//+Xm
|
||||||
|
///k5f//6er//+zt///n6P7/ztD5/4CF7P9IUO//REz5/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfqERU36wEVN+v9FTfr/RU36/0VN+v9FTfr/RU36/0RM+v9IUPj/j5T2/+Hi/f/u7///6+z//+3u
|
||||||
|
//+8v/v/cHb7/2ty+/+anv3/5+j//+zt///u7///5+n+/6Km8f9NVO7/REz5/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+rNFTfrSRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/Rk75/46T9//o6f7/7vD//8TH
|
||||||
|
/f/P0v3/7O3+/3l/9/8+R/n/QEj5/1de+v/Y2v7/5OX9/8LF+f/p6///7u/+/6Sn8f9JUPD/REz6/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU3610VN+uBFTfr/RU36/0VN+v9FTfr/RU36/0NM+v9udfj/4eP9//Hy
|
||||||
|
//+ytfv/YGb3/9DS/f/l5/3/cXfw/1lf7/9bYe//XWPv/8jL+v/r7P7/c3nv/5me+P/s7f//7O3+/4OI
|
||||||
|
7v9DS/X/RU36/0VN+v9FTfr/RU36/0VN+v9FTfrmRU366UVN+v9FTfr/RU36/0VN+v9FTfr/TFT5/8DD
|
||||||
|
/P/29///2Nr7/32C7/+VmfH/6uv+//Hx/v/h4vv/4uP7/+Lj+//f4Pv/6+z9//P0//+vsvL/dXrr/8XH
|
||||||
|
9//29v//1tj5/1de8P9ETPr/RU36/0VN+v9FTfr/RU36/0VN+vBFTfrwRU36/0VN+v9FTfr/RU36/0NL
|
||||||
|
+v9rcfr/6er+//f3///t7v3/7u/9//f3///29///8PH+/+jp///k5v//5Ob//+fo///t7v//9fb///f3
|
||||||
|
///x8f3/6uv8//X2///z9P7/gobv/0JK9/9FTfr/RU36/0VN+v9FTfr/RU3690VN+vVFTfr/RU36/0VN
|
||||||
|
+v9FTfr/REz6/6Gl+//5+f//9/j//+nq///P0f7/4OH+//r7//+usvf/Ymn5/15l+/9eZfv/YGf7/4iN
|
||||||
|
/P/y8v//7e79/87Q/P/k5f//9fb///v7//+8v/b/SVD1/0VN+v9FTfr/RU36/0VN+v9FTfr9RU36+EVN
|
||||||
|
+v9FTfr/RU36/0VN+v9IUPr/wsX9//////+/wvn/ZWz6/05W+v+2uv3//v///42S8/9ASPj/Q0z6/0NM
|
||||||
|
+v9BSfr/ZWz7/+/w///e3/v/W2L2/1xj+/+nqv3/+vv//9vd+v9TWvX/REz6/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr6RU36/0VN+v9FTfr/RU36/0tT+v/O0P7//////4uQ8/9ASPj/Rk76/7y//f//////iIzy/z5G
|
||||||
|
9v9BSfb/QUn2/z9H9v9haPn/7u/+/+Pk/P9XXvb/QEj6/3B2+//29///5uf8/1lg9v9ETPr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+vpFTfr/RU36/0VN+v9FTfr/S1P6/87Q/v//////j5Tx/0BI9/9DS/f/vL/7////
|
||||||
|
//+lqPH/dnvs/4GG7f+Ch+z/en7s/4iM7//z9P7/4+T7/1Ra8v8/R/j/dHr7//n5///m5/z/WWD3/0RM
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU3690VN+v9FTfr/RU36/0VN+v9IT/r/wcT9//////+3uvT/W2Lv/4OI
|
||||||
|
8P/e4Pr///////v7/v/9/f7////+/////v/+/v7/+/v+///////y8v3/lZnu/11j6/+coPf//////9zd
|
||||||
|
/P9SWvj/REz6/0VN+v9FTfr/RU36/0VN+v9FTfr0RU36/0VN+v9FTfr/RU36/0NL+v+anvz///////T1
|
||||||
|
/f/n6Pv//f3+//39////////8PD9/87Q/f/FyP7/xMf9/8rM/v/i4/7//v7///7+///+/v//7Oz7/+7u
|
||||||
|
/P//////t7r5/0hP+f9FTfr/RU36/0VN+v9FTfr/RU36/kVN+u5FTfr/RU36/0VN+v9FTfr/Q0v6/2Rr
|
||||||
|
+//s7f7///////Pz/f+1uPv/o6f9//v8///P0fj/UFf2/0hQ+v9IUPr/SFD6/5uf+///////xcf5/6qt
|
||||||
|
+//o6f7///////n6/v99gvj/Qkr6/0VN+v9FTfr/RU36/0VN+v9FTfr5RU365kVN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/SVH6/7q9/f//////6On7/2Jo7P9dZPf/7+///+Lj+v9VXPT/REz6/0VN+v9GTvr/ur38////
|
||||||
|
//+Fivb/Uln1/9PV+///////1Nb8/1Rb+f9ETPr/RU36/0VN+v9FTfr/RU36/0VN+vJFTfrcRU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9DTPr/ZGv7/+Pk/v//////0dL2/21z7P/W1/v/9PX9/2hu8f9DS/n/REz6/09X
|
||||||
|
+v/W2P3/9PT9/32C8/+6vfj//v7///Pz/v96gPr/Q0v6/0VN+v9FTfr/RU36/0VN+v9FTfr/RU366UVN
|
||||||
|
+s1FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9ETPr/gYb8/+7v////////4+T5/+Lj+v//////io/v/z5G
|
||||||
|
8/8/R/X/Y2r3/+7v/v/z9P3/4OH6//39///4+P//mp77/0dP+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfrbRU36ukVN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/gYb8/+Tl/v//////////////
|
||||||
|
///Y2vj/j5Ps/4qO7f+8vvT//f3/////////////7+/+/5eb/P9JUfr/REz6/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+rxFTfqbRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9ETPr/ZGv7/7q9
|
||||||
|
/f/t7v///f3////////////////////////+/v//8vL//8nL/f9zefv/Rk76/0RM+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36jkVN+mRFTfr4RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9DTPr/SVH6/2Rr+/+anvz/wsT9/8/R/v/Q0v7/xcj9/6Wp/f9tc/v/TVT6/0NL+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+vtFTfpmRU36N0VN+upFTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/Q0v6/0NL+v9IT/r/S1P6/0tT+v9IUPr/REz6/0NL+v9ETPr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU368kVN+kVFTfoaRU360kVN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfrdRU36JUVN+gRFTfqaRU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+p9FTfoHRU36AEVN
|
||||||
|
+ixFTfrSRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfrWRU36MEVN
|
||||||
|
+gBFTfoARU36AEVN+i5FTfqfRU3610VN+u5FTfr6RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr+RU36+EVN+utFTfrURU36nUVN
|
||||||
|
+i5FTfoARU36AAAAAABFTfoARU36AEVN+gZFTfodRU36PUVN+m9FTfqkRU36wEVN+tJFTfrfRU366EVN
|
||||||
|
+vBFTfr1RU36+EVN+vpFTfr6RU36+EVN+vRFTfrtRU365UVN+txFTfrORU36u0VN+pxFTfplRU36OEVN
|
||||||
|
+htFTfoFRU36AEVN+gAAAAAA4AAAB4AAAAGAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAACAAAABgAAAAeAAAAc=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>532, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>56</value>
|
||||||
|
</metadata>
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABILAAASCwAAAAAAAAAA
|
||||||
|
AAAAAAAARU36AEVN+gBFTfoHRU36IUVN+kBFTfpgRU36hEVN+rJFTfrWRU365kVN+u9FTfr2RU36/EVN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr+RU36+UVN+vJFTfrpRU363EVN+r1FTfqPRU36aEVN+kdFTfomRU36CEVN
|
||||||
|
+gBFTfoAAAAAAEVN+gBFTfoBRU36L0VN+plFTfrbRU368EVN+vpFTfr+RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr7RU3680VN
|
||||||
|
+t9FTfqgRU36MkVN+gFFTfoARU36AEVN+jBFTfrWRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfraRU36MEVN+gBFTfoFRU36okVN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfqaRU36BkVN+h5FTfrXRU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/REz6/0RM+v9ETPr/REz6/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+ttFTfoiRU36PUVN+u1FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9ETPr/Qkr4/0ZO9f9PVvL/VFvw/1Vb7/9QV/D/R0/y/0JK
|
||||||
|
9f9DS/n/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU368EVN+kJFTfpxRU36+kVN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/Q0v4/1FY9P9zefD/p6v0/8nL+f/S1Pr/09X6/8zO
|
||||||
|
+f+xtPT/fIHs/1Vb7P9DS/T/REz6/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr6RU36YUVN
|
||||||
|
+qZFTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/REz6/0ZO9/9yePP/w8X5/+Xm/v/r7P//6+z//+Xm
|
||||||
|
///k5f//6er//+zt///n6P7/ztD5/4CF7P9IUO//REz5/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfqERU36wEVN+v9FTfr/RU36/0VN+v9FTfr/RU36/0RM+v9IUPj/j5T2/+Hi/f/u7///6+z//+3u
|
||||||
|
//+8v/v/cHb7/2ty+/+anv3/5+j//+zt///u7///5+n+/6Km8f9NVO7/REz5/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+rNFTfrSRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/Rk75/46T9//o6f7/7vD//8TH
|
||||||
|
/f/P0v3/7O3+/3l/9/8+R/n/QEj5/1de+v/Y2v7/5OX9/8LF+f/p6///7u/+/6Sn8f9JUPD/REz6/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU3610VN+uBFTfr/RU36/0VN+v9FTfr/RU36/0NM+v9udfj/4eP9//Hy
|
||||||
|
//+ytfv/YGb3/9DS/f/l5/3/cXfw/1lf7/9bYe//XWPv/8jL+v/r7P7/c3nv/5me+P/s7f//7O3+/4OI
|
||||||
|
7v9DS/X/RU36/0VN+v9FTfr/RU36/0VN+v9FTfrmRU366UVN+v9FTfr/RU36/0VN+v9FTfr/TFT5/8DD
|
||||||
|
/P/29///2Nr7/32C7/+VmfH/6uv+//Hx/v/h4vv/4uP7/+Lj+//f4Pv/6+z9//P0//+vsvL/dXrr/8XH
|
||||||
|
9//29v//1tj5/1de8P9ETPr/RU36/0VN+v9FTfr/RU36/0VN+vBFTfrwRU36/0VN+v9FTfr/RU36/0NL
|
||||||
|
+v9rcfr/6er+//f3///t7v3/7u/9//f3///29///8PH+/+jp///k5v//5Ob//+fo///t7v//9fb///f3
|
||||||
|
///x8f3/6uv8//X2///z9P7/gobv/0JK9/9FTfr/RU36/0VN+v9FTfr/RU3690VN+vVFTfr/RU36/0VN
|
||||||
|
+v9FTfr/REz6/6Gl+//5+f//9/j//+nq///P0f7/4OH+//r7//+usvf/Ymn5/15l+/9eZfv/YGf7/4iN
|
||||||
|
/P/y8v//7e79/87Q/P/k5f//9fb///v7//+8v/b/SVD1/0VN+v9FTfr/RU36/0VN+v9FTfr9RU36+EVN
|
||||||
|
+v9FTfr/RU36/0VN+v9IUPr/wsX9//////+/wvn/ZWz6/05W+v+2uv3//v///42S8/9ASPj/Q0z6/0NM
|
||||||
|
+v9BSfr/ZWz7/+/w///e3/v/W2L2/1xj+/+nqv3/+vv//9vd+v9TWvX/REz6/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr6RU36/0VN+v9FTfr/RU36/0tT+v/O0P7//////4uQ8/9ASPj/Rk76/7y//f//////iIzy/z5G
|
||||||
|
9v9BSfb/QUn2/z9H9v9haPn/7u/+/+Pk/P9XXvb/QEj6/3B2+//29///5uf8/1lg9v9ETPr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+vpFTfr/RU36/0VN+v9FTfr/S1P6/87Q/v//////j5Tx/0BI9/9DS/f/vL/7////
|
||||||
|
//+lqPH/dnvs/4GG7f+Ch+z/en7s/4iM7//z9P7/4+T7/1Ra8v8/R/j/dHr7//n5///m5/z/WWD3/0RM
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU3690VN+v9FTfr/RU36/0VN+v9IT/r/wcT9//////+3uvT/W2Lv/4OI
|
||||||
|
8P/e4Pr///////v7/v/9/f7////+/////v/+/v7/+/v+///////y8v3/lZnu/11j6/+coPf//////9zd
|
||||||
|
/P9SWvj/REz6/0VN+v9FTfr/RU36/0VN+v9FTfr0RU36/0VN+v9FTfr/RU36/0NL+v+anvz///////T1
|
||||||
|
/f/n6Pv//f3+//39////////8PD9/87Q/f/FyP7/xMf9/8rM/v/i4/7//v7///7+///+/v//7Oz7/+7u
|
||||||
|
/P//////t7r5/0hP+f9FTfr/RU36/0VN+v9FTfr/RU36/kVN+u5FTfr/RU36/0VN+v9FTfr/Q0v6/2Rr
|
||||||
|
+//s7f7///////Pz/f+1uPv/o6f9//v8///P0fj/UFf2/0hQ+v9IUPr/SFD6/5uf+///////xcf5/6qt
|
||||||
|
+//o6f7///////n6/v99gvj/Qkr6/0VN+v9FTfr/RU36/0VN+v9FTfr5RU365kVN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/SVH6/7q9/f//////6On7/2Jo7P9dZPf/7+///+Lj+v9VXPT/REz6/0VN+v9GTvr/ur38////
|
||||||
|
//+Fivb/Uln1/9PV+///////1Nb8/1Rb+f9ETPr/RU36/0VN+v9FTfr/RU36/0VN+vJFTfrcRU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9DTPr/ZGv7/+Pk/v//////0dL2/21z7P/W1/v/9PX9/2hu8f9DS/n/REz6/09X
|
||||||
|
+v/W2P3/9PT9/32C8/+6vfj//v7///Pz/v96gPr/Q0v6/0VN+v9FTfr/RU36/0VN+v9FTfr/RU366UVN
|
||||||
|
+s1FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9ETPr/gYb8/+7v////////4+T5/+Lj+v//////io/v/z5G
|
||||||
|
8/8/R/X/Y2r3/+7v/v/z9P3/4OH6//39///4+P//mp77/0dP+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfrbRU36ukVN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/gYb8/+Tl/v//////////////
|
||||||
|
///Y2vj/j5Ps/4qO7f+8vvT//f3/////////////7+/+/5eb/P9JUfr/REz6/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+rxFTfqbRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9ETPr/ZGv7/7q9
|
||||||
|
/f/t7v///f3////////////////////////+/v//8vL//8nL/f9zefv/Rk76/0RM+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36jkVN+mRFTfr4RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9DTPr/SVH6/2Rr+/+anvz/wsT9/8/R/v/Q0v7/xcj9/6Wp/f9tc/v/TVT6/0NL+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+vtFTfpmRU36N0VN+upFTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/Q0v6/0NL+v9IT/r/S1P6/0tT+v9IUPr/REz6/0NL+v9ETPr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU368kVN+kVFTfoaRU360kVN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfrdRU36JUVN+gRFTfqaRU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+p9FTfoHRU36AEVN
|
||||||
|
+ixFTfrSRU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfrWRU36MEVN
|
||||||
|
+gBFTfoARU36AEVN+i5FTfqfRU3610VN+u5FTfr6RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN
|
||||||
|
+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr/RU36/0VN+v9FTfr+RU36+EVN+utFTfrURU36nUVN
|
||||||
|
+i5FTfoARU36AAAAAABFTfoARU36AEVN+gZFTfodRU36PUVN+m9FTfqkRU36wEVN+tJFTfrfRU366EVN
|
||||||
|
+vBFTfr1RU36+EVN+vpFTfr6RU36+EVN+vRFTfrtRU365UVN+txFTfrORU36u0VN+pxFTfplRU36OEVN
|
||||||
|
+htFTfoFRU36AEVN+gAAAAAA4AAAB4AAAAGAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAACAAAABgAAAAeAAAAc=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
@ -0,0 +1,158 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{018BAB83-CA31-4BDE-BC01-EEC283CEABEA}</ProjectGuid>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>net.nutcore.aliddns</RootNamespace>
|
||||||
|
<AssemblyName>AliDDNS</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>0.0.0.%2a</ApplicationVersion>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>alidns.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="aliyun-net-sdk-alidns">
|
||||||
|
<HintPath>aliyun-net-sdk-alidns.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="aliyun-net-sdk-core">
|
||||||
|
<HintPath>aliyun-net-sdk-core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="PresentationCore" />
|
||||||
|
<Reference Include="PresentationFramework" />
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.DirectoryServices" />
|
||||||
|
<Reference Include="System.Xaml" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Deployment" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="UIAutomationProvider" />
|
||||||
|
<Reference Include="WindowsBase" />
|
||||||
|
<Reference Include="WindowsFormsIntegration" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Form_About.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Form_About.Designer.cs">
|
||||||
|
<DependentUpon>Form_About.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="main.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="main.Designer.cs">
|
||||||
|
<DependentUpon>main.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<EmbeddedResource Include="Form_About.resx">
|
||||||
|
<DependentUpon>Form_About.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="main.resx">
|
||||||
|
<DependentUpon>main.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<None Include="Properties\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<Compile Include="Properties\Settings.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="alidns.ico" />
|
||||||
|
<Content Include="alidns_gray.ico" />
|
||||||
|
<Content Include="alidns_green.ico" />
|
||||||
|
<Content Include="alidns_red.ico" />
|
||||||
|
<Content Include="alidns_yellow.ico" />
|
||||||
|
<None Include="Resources\alidns_yellow.ico" />
|
||||||
|
<None Include="Resources\alidns_red.ico" />
|
||||||
|
<None Include="Resources\alidns_green.ico" />
|
||||||
|
<None Include="Resources\alidns_gray.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 和 x64%29</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PreBuildEvent>copy "$(SolutionDir)net.nutcore.aliddns\updateinfo.txt" "$(TargetDir)"</PreBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
65
net.nutcore.aliddns/net.nutcore.aliddns/updateinfo.txt
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
v3.7.1.0
|
||||||
|
1、增加系统托盘图标状态更新功能:红色-获取WAN口IP或者获取域名绑定IP失败。黄色-获取成功,但WAN口IP和域名绑定IP不一致。绿色-获取成功,WAN口IP和域名绑定IP一致。灰色-WAN口网络不通。
|
||||||
|
2、修改代码和窗体标签刷新BUG。
|
||||||
|
|
||||||
|
v3.7.0.4
|
||||||
|
1、增加根据连接状态刷新系统托盘图标功能。
|
||||||
|
|
||||||
|
v3.7.0.3
|
||||||
|
1、增加线程判断代码,确保当前用户只运行一个实例,避免程序重复运行。
|
||||||
|
|
||||||
|
v3.7.0.2
|
||||||
|
1、优化配置文件读取和初始化代码,避免配置文件读取出错时程序运行不正常。
|
||||||
|
|
||||||
|
v3.7.0.1
|
||||||
|
1、修复窗体布局修改造成的功能实现失常的BUG。2、代码中增加手工输入IP时的格式校验。
|
||||||
|
|
||||||
|
v3.7.0
|
||||||
|
1、版本修改为v3.7.0.0。2、增加手工指定IP功能,当从网址不能获取WAN口IP时作为临时救急功能。
|
||||||
|
|
||||||
|
v3.6.1.1
|
||||||
|
1、系统托盘右键菜单“关于”窗体增加升级信息浏览功能。
|
||||||
|
|
||||||
|
v3.6.0.1
|
||||||
|
1、调整WAN口IP获取功能,使用正则表达式过滤http返回信息,从中查找xxx.xxx.xxx.xxx格式的数字,作为WAN口IP返回,使用范围更广。2、增加万网网址作为IP查询地址。
|
||||||
|
|
||||||
|
v3.6.0
|
||||||
|
1、版本号修改为3.6.0。
|
||||||
|
2、增加日志自动转储功能。
|
||||||
|
3、修复代码BUG。
|
||||||
|
4、窗体布局微调。
|
||||||
|
|
||||||
|
v3.5.0.1
|
||||||
|
1、版本号更新为3.5.0.1。
|
||||||
|
2、修复窗体标题栏仍然显示3.2.0的BUG。
|
||||||
|
3、增加随系统启动功能。
|
||||||
|
4、增加启动时最小化驻留系统托盘功能。
|
||||||
|
5、完善当域名不存在时,作为新记录添加。
|
||||||
|
|
||||||
|
v3.5.0
|
||||||
|
1、增加随系统启动功能。
|
||||||
|
2、增加启动时最小化驻留系统托盘功能。
|
||||||
|
3、完善当域名不存在时,作为新记录添加。
|
||||||
|
4、版本号更新为3.5.0。
|
||||||
|
|
||||||
|
v3.4.0
|
||||||
|
1、修改程序BUG。
|
||||||
|
2、调整细化功能实现返回日志。
|
||||||
|
3、将是否自动更新和WAN口IP获取网址作为参数写入配置文件config.xml。
|
||||||
|
|
||||||
|
v3.3.0
|
||||||
|
1、完善设置检测逻辑。
|
||||||
|
2、域名修改后增加测试提示。
|
||||||
|
|
||||||
|
v3.2.0
|
||||||
|
1、窗体修改布局修改。
|
||||||
|
2、调整程序功能,分别显示WAN口网络状态和域名绑定状态。
|
||||||
|
3、隐藏录入的Aliyun域名账号信息。
|
||||||
|
|
||||||
|
v3.1.0
|
||||||
|
1、界面调整。
|
||||||
|
2、源码BUG修改。
|
||||||
|
3、功能实现细节修改。
|
||||||
|
|
||||||
|
v3.0.0
|
||||||
|
Fork from http://github.com/dtsdao/AliDDNS
|