初始备份。
This commit is contained in:
commit
d8e0f01af1
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
Publish/
|
||||
Res/
|
||||
**/obj
|
||||
*.pdb
|
||||
**/dcu
|
||||
*.dcu
|
BIN
Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project.exe
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project.exe
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project2.exe
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project2.exe
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4 示例/MyDb.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/MyDb.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4 示例/MyDb_SQLite.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/MyDb_SQLite.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4 示例/RyPrint.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/RyPrint.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4 示例/RyWeb.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/RyWeb.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4 示例/System.Data.SQLite.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/System.Data.SQLite.dll
Normal file
Binary file not shown.
2
Bin/Debug/CommonControls/.NET4 示例/UserDb/Win.dat
Normal file
2
Bin/Debug/CommonControls/.NET4 示例/UserDb/Win.dat
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Money_Op]
|
||||
hwnd=4533362
|
BIN
Bin/Debug/CommonControls/.NET4 示例/XPTable.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/XPTable.dll
Normal file
Binary file not shown.
4
Bin/Debug/CommonControls/.NET4 示例/cUpdate.dat
Normal file
4
Bin/Debug/CommonControls/.NET4 示例/cUpdate.dat
Normal file
|
@ -0,0 +1,4 @@
|
|||
<root>
|
||||
<list id="LastUpdateTime" Value="2020/11/24 12:20:37" />
|
||||
<list id="UpdateAfterTime" Value="0" />
|
||||
</root>
|
BIN
Bin/Debug/CommonControls/.NET4 示例/ryControls.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/ryControls.dll
Normal file
Binary file not shown.
11247
Bin/Debug/CommonControls/.NET4 示例/ryControls.xml
Normal file
11247
Bin/Debug/CommonControls/.NET4 示例/ryControls.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Bin/Debug/CommonControls/.NET4 示例/ryUpdate.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/ryUpdate.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/MyDb.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/MyDb.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/MyDb_MSSQL.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/MyDb_MSSQL.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/MyDb_MySQL.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/MyDb_MySQL.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/MyDb_SQLite.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/MyDb_SQLite.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/MySql.Data.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/MySql.Data.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/RyPrint.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/RyPrint.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/RyWeb.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/RyWeb.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/System.Data.SQLite.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/System.Data.SQLite.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/XPTable.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/XPTable.dll
Normal file
Binary file not shown.
BIN
Bin/Debug/CommonControls/.NET4/ryControls.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/ryControls.dll
Normal file
Binary file not shown.
11247
Bin/Debug/CommonControls/.NET4/ryControls.xml
Normal file
11247
Bin/Debug/CommonControls/.NET4/ryControls.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Bin/Debug/CommonControls/.NET4/ryUpdate.dll
Normal file
BIN
Bin/Debug/CommonControls/.NET4/ryUpdate.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4 示例/Itrycn_Project.exe
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/Itrycn_Project.exe
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4 示例/MyDb.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/MyDb.dll
Normal file
Binary file not shown.
4829
Bin/Release/CommonControls/.NET4 示例/MyDb.xml
Normal file
4829
Bin/Release/CommonControls/.NET4 示例/MyDb.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Bin/Release/CommonControls/.NET4 示例/MyDb_SQLite.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/MyDb_SQLite.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4 示例/RyPrint.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/RyPrint.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4 示例/RyWeb.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/RyWeb.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4 示例/System.Data.SQLite.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/System.Data.SQLite.dll
Normal file
Binary file not shown.
2
Bin/Release/CommonControls/.NET4 示例/UserDb/Win.dat
Normal file
2
Bin/Release/CommonControls/.NET4 示例/UserDb/Win.dat
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Money_Op]
|
||||
hwnd=74558
|
BIN
Bin/Release/CommonControls/.NET4 示例/XPTable.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/XPTable.dll
Normal file
Binary file not shown.
4
Bin/Release/CommonControls/.NET4 示例/cUpdate.dat
Normal file
4
Bin/Release/CommonControls/.NET4 示例/cUpdate.dat
Normal file
|
@ -0,0 +1,4 @@
|
|||
<root>
|
||||
<list id="LastUpdateTime" Value="2020/5/22 15:48:23" />
|
||||
<list id="UpdateAfterTime" Value="0" />
|
||||
</root>
|
BIN
Bin/Release/CommonControls/.NET4 示例/ryControls.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/ryControls.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4 示例/ryUpdate.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4 示例/ryUpdate.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/MyDb.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/MyDb.dll
Normal file
Binary file not shown.
4829
Bin/Release/CommonControls/.NET4/MyDb.xml
Normal file
4829
Bin/Release/CommonControls/.NET4/MyDb.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Bin/Release/CommonControls/.NET4/MyDb_MSSQL.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/MyDb_MSSQL.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/MyDb_MySQL.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/MyDb_MySQL.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/MyDb_SQLite.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/MyDb_SQLite.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/MySql.Data.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/MySql.Data.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/RyPrint.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/RyPrint.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/RyWeb.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/RyWeb.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/System.Data.SQLite.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/System.Data.SQLite.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/ryControls.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/ryControls.dll
Normal file
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/ryUpdate.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/ryUpdate.dll
Normal file
Binary file not shown.
127
Bin/混淆_Debug.nrproj
Normal file
127
Bin/混淆_Debug.nrproj
Normal file
|
@ -0,0 +1,127 @@
|
|||
<Reactor_Project ProjectFormat="2">
|
||||
<Main_Assembly>Debug\CommonControls\CommonControls.exe</Main_Assembly>
|
||||
<Assembly>
|
||||
<Filename>Debug\CommonControls\ryControls.dll</Filename>
|
||||
</Assembly>
|
||||
<Assembly>
|
||||
<Filename>Debug\CommonControls\ryUpdate.dll</Filename>
|
||||
</Assembly>
|
||||
<Assembly>
|
||||
<Filename>Debug\CommonControls\MyDb_SQLite.dll</Filename>
|
||||
</Assembly>
|
||||
<Assembly>
|
||||
<Filename>Debug\CommonControls\MyDb.dll</Filename>
|
||||
</Assembly>
|
||||
<General_Settings>
|
||||
<Automatic_Exception_Handling>true</Automatic_Exception_Handling>
|
||||
<Application_Compression>true</Application_Compression>
|
||||
<Show_Loading_Screen>false</Show_Loading_Screen>
|
||||
<Digital_Certificate_PFX_SPC_File />
|
||||
<Digital_Certificate_PVK_File />
|
||||
<Digital_Certificate_PFX_PVK_Password />
|
||||
<Time_Stamp_URL_SHA1>http://timestamp.verisign.com/scripts/timstamp.dll</Time_Stamp_URL_SHA1>
|
||||
<Time_Stamp_URL_SHA256>http://sha256timestamp.ws.symantec.com/sha256/timestamp</Time_Stamp_URL_SHA256>
|
||||
<Embed_Assemblies>false</Embed_Assemblies>
|
||||
<Enable_Visual_Styles>true</Enable_Visual_Styles>
|
||||
<Force_Admin_Privileges>false</Force_Admin_Privileges>
|
||||
<Merge_Assemblies>false</Merge_Assemblies>
|
||||
<Merge_Assembly_Attributes>true</Merge_Assembly_Attributes>
|
||||
<Project_Targets_Mono_Framework>false</Project_Targets_Mono_Framework>
|
||||
<Strong_Name_KeyPair_File />
|
||||
<Strong_Name_KeyPair_Password />
|
||||
<Target_File><AssemblyLocation>\Secure\<AssemblyFileName></Target_File>
|
||||
<V3_Mode>true</V3_Mode>
|
||||
</General_Settings>
|
||||
<Protection_Settings>
|
||||
<Anti_ILDASM>true</Anti_ILDASM>
|
||||
<Inject_Invalid_Metadata>true</Inject_Invalid_Metadata>
|
||||
<Anti_Tampering>false</Anti_Tampering>
|
||||
<Control_Flow_Obfuscation>false</Control_Flow_Obfuscation>
|
||||
<Control_Flow_Obfuscation_Level>9</Control_Flow_Obfuscation_Level>
|
||||
<Native_EXE_File>true</Native_EXE_File>
|
||||
<Native_EXE_Embed_Pdb>false</Native_EXE_Embed_Pdb>
|
||||
<NecroBit>false</NecroBit>
|
||||
<NecroBit_Reflection_Compatibility_Mode>false</NecroBit_Reflection_Compatibility_Mode>
|
||||
<Obfuscation>true</Obfuscation>
|
||||
<Pruning>false</Pruning>
|
||||
<Create_Mapping_File>false</Create_Mapping_File>
|
||||
<Exclude_Enums>false</Exclude_Enums>
|
||||
<Exclude_Events>false</Exclude_Events>
|
||||
<Exclude_Fields>false</Exclude_Fields>
|
||||
<Exclude_Methods>false</Exclude_Methods>
|
||||
<Exclude_Properties>false</Exclude_Properties>
|
||||
<Exclude_Serializable_Types>false</Exclude_Serializable_Types>
|
||||
<Exclude_Types>false</Exclude_Types>
|
||||
<Exclusion_Rules />
|
||||
<Generate_Short_Strings>false</Generate_Short_Strings>
|
||||
<Ignore_InternalsVisibleTo>false</Ignore_InternalsVisibleTo>
|
||||
<Incremental_Obfuscation>false</Incremental_Obfuscation>
|
||||
<Merge_Namespaces>false</Merge_Namespaces>
|
||||
<Merge_Namespaces_Namespace />
|
||||
<Obfuscate_All_Method_Parameters>false</Obfuscate_All_Method_Parameters>
|
||||
<Obfuscate_Public_Types>false</Obfuscate_Public_Types>
|
||||
<Use_Unprintable_Characters>false</Use_Unprintable_Characters>
|
||||
<Pre-JIT_Methods>false</Pre-JIT_Methods>
|
||||
<Public_Types_Internalization>false</Public_Types_Internalization>
|
||||
<Resource_Encryption_And_Compression>true</Resource_Encryption_And_Compression>
|
||||
<String_Encryption>true</String_Encryption>
|
||||
<String_Encryption_Mode>All</String_Encryption_Mode>
|
||||
<String_Encryption_InclusionExclusion_List />
|
||||
<Strong_Name_Removal_Protection>false</Strong_Name_Removal_Protection>
|
||||
</Protection_Settings>
|
||||
<Lock_Settings>
|
||||
<Expire_When_All_Expired>true</Expire_When_All_Expired>
|
||||
<Inbuilt_Lock_Evaluation_Period_Enabled>false</Inbuilt_Lock_Evaluation_Period_Enabled>
|
||||
<Inbuilt_Lock_Evaluation_Period_Type>Trial_Days</Inbuilt_Lock_Evaluation_Period_Type>
|
||||
<Inbuilt_Lock_Evaluation_Period_Time>14</Inbuilt_Lock_Evaluation_Period_Time>
|
||||
<Inbuilt_Lock_Expiry_Date_Enabled>false</Inbuilt_Lock_Expiry_Date_Enabled>
|
||||
<Inbuilt_Lock_Expiry_Date>20180503</Inbuilt_Lock_Expiry_Date>
|
||||
<Inbuilt_Lock_Number_Of_Uses_Enabled>false</Inbuilt_Lock_Number_Of_Uses_Enabled>
|
||||
<Inbuilt_Lock_Number_Of_Uses>10</Inbuilt_Lock_Number_Of_Uses>
|
||||
<Inbuilt_Lock_Max_Number_Of_Instances_Enabled>false</Inbuilt_Lock_Max_Number_Of_Instances_Enabled>
|
||||
<Inbuilt_Lock_Max_Number_Of_Instances>5</Inbuilt_Lock_Max_Number_Of_Instances>
|
||||
<Run_Another_Process_After_Expiration />
|
||||
<Run_Without_License_File>true</Run_Without_License_File>
|
||||
<Shutdown_Process_After_Expiration>true</Shutdown_Process_After_Expiration>
|
||||
<Static_License_FileName />
|
||||
</Lock_Settings>
|
||||
<Dialog_Settings>
|
||||
<Dialog_Evaluation_Period_Enabled>true</Dialog_Evaluation_Period_Enabled>
|
||||
<Dialog_Evaluation_Period>You are on day [current_minutes_days] of your [max_minutes_days] day evaluation period. Your trial period is expired! You need to purchase a license to run this software.</Dialog_Evaluation_Period>
|
||||
<Dialog_Expiry_Date_Enabled>true</Dialog_Expiry_Date_Enabled>
|
||||
<Dialog_Expiry_Date>Your expiration date is reached! You need to purchase a license file to run this software.</Dialog_Expiry_Date>
|
||||
<Dialog_Number_Of_Uses_Enabled>true</Dialog_Number_Of_Uses_Enabled>
|
||||
<Dialog_Number_Of_Uses>You have used this software [current_uses] times out of a maximum of [max_uses]. You have [uses_left] uses left. Your trial period is expired! You need to purchase a license to run this software.</Dialog_Number_Of_Uses>
|
||||
<Dialog_Max_Number_Of_Instances_Enabled>true</Dialog_Max_Number_Of_Instances_Enabled>
|
||||
<Dialog_Max_Number_Of_Instances>You can only run maximal [max_processes] instances of this software at the same time.</Dialog_Max_Number_Of_Instances>
|
||||
<Dialog_License_Not_Found_Enabled>true</Dialog_License_Not_Found_Enabled>
|
||||
<Dialog_License_Not_Found>This software won't run without a valid license file. Either a valid license file could not be found or your license file is expired.</Dialog_License_Not_Found>
|
||||
<Dialog_Nag_Screen_Enabled>false</Dialog_Nag_Screen_Enabled>
|
||||
<Dialog_Nag_Screen>Nag Screen! This message will disappear when a valid license file is installed. You are on day [current_minutes_days] of your [max_minutes_days] day evaluation period. You have [minutes_days_left] days left. You have used this software [current_uses] times out of a maximum of [max_uses]. You have [uses_left] uses left.</Dialog_Nag_Screen>
|
||||
<Dialog_Nag_Screen_XDays>-1</Dialog_Nag_Screen_XDays>
|
||||
<Dialog_Box_Interface />
|
||||
<Dialog_Caption>Lock System</Dialog_Caption>
|
||||
<Color_Gradient_Begin>255255255</Color_Gradient_Begin>
|
||||
<Color_Gradient_End>157211252</Color_Gradient_End>
|
||||
</Dialog_Settings>
|
||||
<License_Manager_Settings>
|
||||
<Individual_Licensing_Bahvior>false</Individual_Licensing_Bahvior>
|
||||
<License_Evaluation_Enabled>false</License_Evaluation_Enabled>
|
||||
<License_Evaluation_Type>Trial_Days</License_Evaluation_Type>
|
||||
<License_Evaluation_Time>1</License_Evaluation_Time>
|
||||
<License_Expiry_Date_Enabled>false</License_Expiry_Date_Enabled>
|
||||
<License_Expiry_Date>20180503</License_Expiry_Date>
|
||||
<License_Hardware_Lock_Enabled>false</License_Hardware_Lock_Enabled>
|
||||
<License_Hardware_BOARD>true</License_Hardware_BOARD>
|
||||
<License_Hardware_CPU>true</License_Hardware_CPU>
|
||||
<License_Hardware_HDD>false</License_Hardware_HDD>
|
||||
<License_Hardware_MAC>true</License_Hardware_MAC>
|
||||
<License_Hardware_ID>####-####-####-####-####</License_Hardware_ID>
|
||||
<License_Number_Of_Uses_Enabled>false</License_Number_Of_Uses_Enabled>
|
||||
<License_Number_Of_Uses>10</License_Number_Of_Uses>
|
||||
<License_Number_Of_Instances_Enabled>false</License_Number_Of_Instances_Enabled>
|
||||
<License_Number_Of_Instances>5</License_Number_Of_Instances>
|
||||
<AdditonalLicenseInformation />
|
||||
<MasterKey>Hr7YPNVEOuGLGJrWzxt2hKWI0xXn4h31i5nGAghNonQ=|<RSAKeyValue><Modulus>twxUWoRvbb2N6CMXQL36TBij9G7nxvU6rTULmVnbS1jYTvPQSKohB2o95vJvdlxjw7KBxYhIFqj9yEn5xvD4GVhj8+MEvG4lNqN1e1FErGin9YYYr4dTZHFe73aG5xxoscKZIg3YYdoBp0lgE2xwfaHyYe03M3mbhQx6axyf7Ak=</Modulus><Exponent>AQAB</Exponent><P>6OP29NbAV7sOKvOFRIeBbnJLh4fOiAjGtqiBlHLyOHt6w1s8N4o4Kr3N2KPVcpj82655KRzRlVDkwQika4eZ9w==</P><Q>yTY83K4a/WpcifMvuAFEuM9wVfXtbQUpV0MSSNgCmWcd6G3+GYShmPUW1gWMv+4H59iiPef1pnXvuzPYnQMp/w==</Q><DP>J/h4Oi1hda01EUoaZVicbkhPjkNQvyhCcrcZBlF0IR2QRFc0TpP6b9uDqNr1l2WKgGnBgbzge7AWksrY7VuooQ==</DP><DQ>PtmhQzFjHts1UqXStwA2bh/lsAQkiJQ/KJG7yWMn1LEAB5Ur9N6X94Y+/tU29NCuSX5Cl2G4OqnGG0yDke/mEw==</DQ><InverseQ>jiKqvwfWSUpKybcT3ucAedpT+kKuB/Qs1xJ0Z6bYOE8EsljxGbq8428Cma5rp33WMP6ybq2HwOddm/73ZFZZKQ==</InverseQ><D>bYP46/cUW8nvHxXvkZKYL/MGFPZNwaFyq7Jy8BrssxXCxOnmkbMH89HCm2ws99mq7qjcL3yr9LLCs5Re1oHRTQT2Vu2hXuGAGVjvHwYPLWGvcYvIuTWoTEw79m+lh/7CYDxfwzwWL095a8D40OvfHauk7xrXDB+qIsEJ7Gkjh0k=</D></RSAKeyValue></MasterKey>
|
||||
</License_Manager_Settings>
|
||||
</Reactor_Project>
|
127
Bin/混淆_Release.nrproj
Normal file
127
Bin/混淆_Release.nrproj
Normal file
|
@ -0,0 +1,127 @@
|
|||
<Reactor_Project ProjectFormat="2">
|
||||
<Main_Assembly>Release\CommonControls\CommonControls.exe</Main_Assembly>
|
||||
<Assembly>
|
||||
<Filename>Release\CommonControls\ryControls.dll</Filename>
|
||||
</Assembly>
|
||||
<Assembly>
|
||||
<Filename>Release\CommonControls\ryUpdate.dll</Filename>
|
||||
</Assembly>
|
||||
<Assembly>
|
||||
<Filename>Release\CommonControls\MyDb_SQLite.dll</Filename>
|
||||
</Assembly>
|
||||
<Assembly>
|
||||
<Filename>Release\CommonControls\MyDb.dll</Filename>
|
||||
</Assembly>
|
||||
<General_Settings>
|
||||
<Automatic_Exception_Handling>true</Automatic_Exception_Handling>
|
||||
<Application_Compression>true</Application_Compression>
|
||||
<Show_Loading_Screen>false</Show_Loading_Screen>
|
||||
<Digital_Certificate_PFX_SPC_File />
|
||||
<Digital_Certificate_PVK_File />
|
||||
<Digital_Certificate_PFX_PVK_Password />
|
||||
<Time_Stamp_URL_SHA1>http://timestamp.verisign.com/scripts/timstamp.dll</Time_Stamp_URL_SHA1>
|
||||
<Time_Stamp_URL_SHA256>http://sha256timestamp.ws.symantec.com/sha256/timestamp</Time_Stamp_URL_SHA256>
|
||||
<Embed_Assemblies>false</Embed_Assemblies>
|
||||
<Enable_Visual_Styles>true</Enable_Visual_Styles>
|
||||
<Force_Admin_Privileges>false</Force_Admin_Privileges>
|
||||
<Merge_Assemblies>false</Merge_Assemblies>
|
||||
<Merge_Assembly_Attributes>true</Merge_Assembly_Attributes>
|
||||
<Project_Targets_Mono_Framework>false</Project_Targets_Mono_Framework>
|
||||
<Strong_Name_KeyPair_File />
|
||||
<Strong_Name_KeyPair_Password />
|
||||
<Target_File><AssemblyLocation>\Secure\<AssemblyFileName></Target_File>
|
||||
<V3_Mode>true</V3_Mode>
|
||||
</General_Settings>
|
||||
<Protection_Settings>
|
||||
<Anti_ILDASM>true</Anti_ILDASM>
|
||||
<Inject_Invalid_Metadata>true</Inject_Invalid_Metadata>
|
||||
<Anti_Tampering>false</Anti_Tampering>
|
||||
<Control_Flow_Obfuscation>false</Control_Flow_Obfuscation>
|
||||
<Control_Flow_Obfuscation_Level>9</Control_Flow_Obfuscation_Level>
|
||||
<Native_EXE_File>true</Native_EXE_File>
|
||||
<Native_EXE_Embed_Pdb>false</Native_EXE_Embed_Pdb>
|
||||
<NecroBit>false</NecroBit>
|
||||
<NecroBit_Reflection_Compatibility_Mode>false</NecroBit_Reflection_Compatibility_Mode>
|
||||
<Obfuscation>true</Obfuscation>
|
||||
<Pruning>false</Pruning>
|
||||
<Create_Mapping_File>false</Create_Mapping_File>
|
||||
<Exclude_Enums>false</Exclude_Enums>
|
||||
<Exclude_Events>false</Exclude_Events>
|
||||
<Exclude_Fields>false</Exclude_Fields>
|
||||
<Exclude_Methods>false</Exclude_Methods>
|
||||
<Exclude_Properties>false</Exclude_Properties>
|
||||
<Exclude_Serializable_Types>false</Exclude_Serializable_Types>
|
||||
<Exclude_Types>false</Exclude_Types>
|
||||
<Exclusion_Rules />
|
||||
<Generate_Short_Strings>false</Generate_Short_Strings>
|
||||
<Ignore_InternalsVisibleTo>false</Ignore_InternalsVisibleTo>
|
||||
<Incremental_Obfuscation>false</Incremental_Obfuscation>
|
||||
<Merge_Namespaces>false</Merge_Namespaces>
|
||||
<Merge_Namespaces_Namespace />
|
||||
<Obfuscate_All_Method_Parameters>false</Obfuscate_All_Method_Parameters>
|
||||
<Obfuscate_Public_Types>false</Obfuscate_Public_Types>
|
||||
<Use_Unprintable_Characters>false</Use_Unprintable_Characters>
|
||||
<Pre-JIT_Methods>false</Pre-JIT_Methods>
|
||||
<Public_Types_Internalization>false</Public_Types_Internalization>
|
||||
<Resource_Encryption_And_Compression>true</Resource_Encryption_And_Compression>
|
||||
<String_Encryption>true</String_Encryption>
|
||||
<String_Encryption_Mode>All</String_Encryption_Mode>
|
||||
<String_Encryption_InclusionExclusion_List />
|
||||
<Strong_Name_Removal_Protection>false</Strong_Name_Removal_Protection>
|
||||
</Protection_Settings>
|
||||
<Lock_Settings>
|
||||
<Expire_When_All_Expired>true</Expire_When_All_Expired>
|
||||
<Inbuilt_Lock_Evaluation_Period_Enabled>false</Inbuilt_Lock_Evaluation_Period_Enabled>
|
||||
<Inbuilt_Lock_Evaluation_Period_Type>Trial_Days</Inbuilt_Lock_Evaluation_Period_Type>
|
||||
<Inbuilt_Lock_Evaluation_Period_Time>14</Inbuilt_Lock_Evaluation_Period_Time>
|
||||
<Inbuilt_Lock_Expiry_Date_Enabled>false</Inbuilt_Lock_Expiry_Date_Enabled>
|
||||
<Inbuilt_Lock_Expiry_Date>20180503</Inbuilt_Lock_Expiry_Date>
|
||||
<Inbuilt_Lock_Number_Of_Uses_Enabled>false</Inbuilt_Lock_Number_Of_Uses_Enabled>
|
||||
<Inbuilt_Lock_Number_Of_Uses>10</Inbuilt_Lock_Number_Of_Uses>
|
||||
<Inbuilt_Lock_Max_Number_Of_Instances_Enabled>false</Inbuilt_Lock_Max_Number_Of_Instances_Enabled>
|
||||
<Inbuilt_Lock_Max_Number_Of_Instances>5</Inbuilt_Lock_Max_Number_Of_Instances>
|
||||
<Run_Another_Process_After_Expiration />
|
||||
<Run_Without_License_File>true</Run_Without_License_File>
|
||||
<Shutdown_Process_After_Expiration>true</Shutdown_Process_After_Expiration>
|
||||
<Static_License_FileName />
|
||||
</Lock_Settings>
|
||||
<Dialog_Settings>
|
||||
<Dialog_Evaluation_Period_Enabled>true</Dialog_Evaluation_Period_Enabled>
|
||||
<Dialog_Evaluation_Period>You are on day [current_minutes_days] of your [max_minutes_days] day evaluation period. Your trial period is expired! You need to purchase a license to run this software.</Dialog_Evaluation_Period>
|
||||
<Dialog_Expiry_Date_Enabled>true</Dialog_Expiry_Date_Enabled>
|
||||
<Dialog_Expiry_Date>Your expiration date is reached! You need to purchase a license file to run this software.</Dialog_Expiry_Date>
|
||||
<Dialog_Number_Of_Uses_Enabled>true</Dialog_Number_Of_Uses_Enabled>
|
||||
<Dialog_Number_Of_Uses>You have used this software [current_uses] times out of a maximum of [max_uses]. You have [uses_left] uses left. Your trial period is expired! You need to purchase a license to run this software.</Dialog_Number_Of_Uses>
|
||||
<Dialog_Max_Number_Of_Instances_Enabled>true</Dialog_Max_Number_Of_Instances_Enabled>
|
||||
<Dialog_Max_Number_Of_Instances>You can only run maximal [max_processes] instances of this software at the same time.</Dialog_Max_Number_Of_Instances>
|
||||
<Dialog_License_Not_Found_Enabled>true</Dialog_License_Not_Found_Enabled>
|
||||
<Dialog_License_Not_Found>This software won't run without a valid license file. Either a valid license file could not be found or your license file is expired.</Dialog_License_Not_Found>
|
||||
<Dialog_Nag_Screen_Enabled>false</Dialog_Nag_Screen_Enabled>
|
||||
<Dialog_Nag_Screen>Nag Screen! This message will disappear when a valid license file is installed. You are on day [current_minutes_days] of your [max_minutes_days] day evaluation period. You have [minutes_days_left] days left. You have used this software [current_uses] times out of a maximum of [max_uses]. You have [uses_left] uses left.</Dialog_Nag_Screen>
|
||||
<Dialog_Nag_Screen_XDays>-1</Dialog_Nag_Screen_XDays>
|
||||
<Dialog_Box_Interface />
|
||||
<Dialog_Caption>Lock System</Dialog_Caption>
|
||||
<Color_Gradient_Begin>255255255</Color_Gradient_Begin>
|
||||
<Color_Gradient_End>157211252</Color_Gradient_End>
|
||||
</Dialog_Settings>
|
||||
<License_Manager_Settings>
|
||||
<Individual_Licensing_Bahvior>false</Individual_Licensing_Bahvior>
|
||||
<License_Evaluation_Enabled>false</License_Evaluation_Enabled>
|
||||
<License_Evaluation_Type>Trial_Days</License_Evaluation_Type>
|
||||
<License_Evaluation_Time>1</License_Evaluation_Time>
|
||||
<License_Expiry_Date_Enabled>false</License_Expiry_Date_Enabled>
|
||||
<License_Expiry_Date>20180503</License_Expiry_Date>
|
||||
<License_Hardware_Lock_Enabled>false</License_Hardware_Lock_Enabled>
|
||||
<License_Hardware_BOARD>true</License_Hardware_BOARD>
|
||||
<License_Hardware_CPU>true</License_Hardware_CPU>
|
||||
<License_Hardware_HDD>false</License_Hardware_HDD>
|
||||
<License_Hardware_MAC>true</License_Hardware_MAC>
|
||||
<License_Hardware_ID>####-####-####-####-####</License_Hardware_ID>
|
||||
<License_Number_Of_Uses_Enabled>false</License_Number_Of_Uses_Enabled>
|
||||
<License_Number_Of_Uses>10</License_Number_Of_Uses>
|
||||
<License_Number_Of_Instances_Enabled>false</License_Number_Of_Instances_Enabled>
|
||||
<License_Number_Of_Instances>5</License_Number_Of_Instances>
|
||||
<AdditonalLicenseInformation />
|
||||
<MasterKey>Hr7YPNVEOuGLGJrWzxt2hKWI0xXn4h31i5nGAghNonQ=|<RSAKeyValue><Modulus>twxUWoRvbb2N6CMXQL36TBij9G7nxvU6rTULmVnbS1jYTvPQSKohB2o95vJvdlxjw7KBxYhIFqj9yEn5xvD4GVhj8+MEvG4lNqN1e1FErGin9YYYr4dTZHFe73aG5xxoscKZIg3YYdoBp0lgE2xwfaHyYe03M3mbhQx6axyf7Ak=</Modulus><Exponent>AQAB</Exponent><P>6OP29NbAV7sOKvOFRIeBbnJLh4fOiAjGtqiBlHLyOHt6w1s8N4o4Kr3N2KPVcpj82655KRzRlVDkwQika4eZ9w==</P><Q>yTY83K4a/WpcifMvuAFEuM9wVfXtbQUpV0MSSNgCmWcd6G3+GYShmPUW1gWMv+4H59iiPef1pnXvuzPYnQMp/w==</Q><DP>J/h4Oi1hda01EUoaZVicbkhPjkNQvyhCcrcZBlF0IR2QRFc0TpP6b9uDqNr1l2WKgGnBgbzge7AWksrY7VuooQ==</DP><DQ>PtmhQzFjHts1UqXStwA2bh/lsAQkiJQ/KJG7yWMn1LEAB5Ur9N6X94Y+/tU29NCuSX5Cl2G4OqnGG0yDke/mEw==</DQ><InverseQ>jiKqvwfWSUpKybcT3ucAedpT+kKuB/Qs1xJ0Z6bYOE8EsljxGbq8428Cma5rp33WMP6ybq2HwOddm/73ZFZZKQ==</InverseQ><D>bYP46/cUW8nvHxXvkZKYL/MGFPZNwaFyq7Jy8BrssxXCxOnmkbMH89HCm2ws99mq7qjcL3yr9LLCs5Re1oHRTQT2Vu2hXuGAGVjvHwYPLWGvcYvIuTWoTEw79m+lh/7CYDxfwzwWL095a8D40OvfHauk7xrXDB+qIsEJ7Gkjh0k=</D></RSAKeyValue></MasterKey>
|
||||
</License_Manager_Settings>
|
||||
</Reactor_Project>
|
0
CHANGELOG.md
Normal file
0
CHANGELOG.md
Normal file
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
## 睿元公用控件组
|
||||
|
||||
睿元公用控件组是一款公用的多功能控件组,集成了通用数据库操作类,并提供了各种常用功能的API接口,让代码编写更容易。
|
BIN
Source/.vs/公用控件组V4/v16/.suo
Normal file
BIN
Source/.vs/公用控件组V4/v16/.suo
Normal file
Binary file not shown.
0
Source/.vs/公用控件组V4/v16/Server/sqlite3/db.lock
Normal file
0
Source/.vs/公用控件组V4/v16/Server/sqlite3/db.lock
Normal file
BIN
Source/.vs/公用控件组V4/v16/Server/sqlite3/storage.ide
Normal file
BIN
Source/.vs/公用控件组V4/v16/Server/sqlite3/storage.ide
Normal file
Binary file not shown.
106
Source/Itrycn_Project/DbOp/FrmAdd.Designer.cs
generated
Normal file
106
Source/Itrycn_Project/DbOp/FrmAdd.Designer.cs
generated
Normal file
|
@ -0,0 +1,106 @@
|
|||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
partial class FrmAdd
|
||||
{
|
||||
/// <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.btnCancel = new ryControls.ButtonEx();
|
||||
this.btnOK = new ryControls.ButtonEx();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtName = new ryControls.TextBoxEx2();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnCancel.Location = new System.Drawing.Point(363, 310);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnCancel.TabIndex = 5;
|
||||
this.btnCancel.Text = "取消";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOK.ForeColor = System.Drawing.Color.White;
|
||||
this.btnOK.Location = new System.Drawing.Point(292, 310);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnOK.TabIndex = 4;
|
||||
this.btnOK.Text = "确定";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.BtnOK_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(8, 20);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(29, 12);
|
||||
this.label1.TabIndex = 7;
|
||||
this.label1.Text = "名称";
|
||||
//
|
||||
// txtName
|
||||
//
|
||||
this.txtName.BackColor = System.Drawing.Color.White;
|
||||
this.txtName.Location = new System.Drawing.Point(55, 12);
|
||||
this.txtName.Name = "txtName";
|
||||
this.txtName.PasswordChar = '\0';
|
||||
this.txtName.ReadOnly = false;
|
||||
this.txtName.SelectionLength = 0;
|
||||
this.txtName.SelectionStart = 0;
|
||||
this.txtName.Size = new System.Drawing.Size(372, 25);
|
||||
this.txtName.TabIndex = 6;
|
||||
//
|
||||
// frmAdd
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(438, 347);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.txtName);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Name = "frmAdd";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "新增";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ryControls.ButtonEx btnCancel;
|
||||
private ryControls.ButtonEx btnOK;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private ryControls.TextBoxEx2 txtName;
|
||||
}
|
||||
}
|
79
Source/Itrycn_Project/DbOp/FrmAdd.cs
Normal file
79
Source/Itrycn_Project/DbOp/FrmAdd.cs
Normal file
|
@ -0,0 +1,79 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
public partial class FrmAdd : Form
|
||||
{
|
||||
public ModalForm mr = null;
|
||||
public string tableName = "MainTable1";
|
||||
public int isAdd = 1;
|
||||
public string selectId = "-1";
|
||||
public FrmAdd()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 需要修改
|
||||
public void GetInfo(string id)
|
||||
{
|
||||
selectId = id;
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData(tableName, id);
|
||||
if (mydb.HaveData(ds))
|
||||
{
|
||||
DataRow reader = ds.Tables[0].Rows[0];
|
||||
#region 读取信息
|
||||
txtName.Text = reader["Name"].ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
|
||||
private void BtnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (txtName.Text == "")
|
||||
{
|
||||
MessageBox.Show("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
RyQuickSQL mySQL = new RyQuickSQL(tableName);
|
||||
mySQL.AddField("name", txtName.Text);
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
if (isAdd >= 1)
|
||||
{
|
||||
mySQL.AddField("addTime",DateTime.Now);
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.ExecuteNonQuery(mySQL.GetInsertSQL(), db.GetParameter(mySQL));
|
||||
}
|
||||
else
|
||||
{
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.ExecuteNonQuery(mySQL.GetUpdateSQL() + " where id=" + selectId, db.GetParameter(mySQL));
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
ModalForm.SetDialogResult(this, mr, DialogResult.OK);
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
ModalForm.SetDialogResult(this, mr, DialogResult.Cancel);
|
||||
}
|
||||
}
|
||||
}
|
120
Source/Itrycn_Project/DbOp/FrmAdd.resx
Normal file
120
Source/Itrycn_Project/DbOp/FrmAdd.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>
|
175
Source/Itrycn_Project/DbOp/FrmView.cs
Normal file
175
Source/Itrycn_Project/DbOp/FrmView.cs
Normal file
|
@ -0,0 +1,175 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
public partial class FrmView : Form
|
||||
{
|
||||
string orderSQL = "order by addTime desc";
|
||||
string tableName = "MainTable1";
|
||||
string titleName = "数据";
|
||||
public FrmView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 需要修改的内容
|
||||
private void RySearch1_OnSearch(object sender, EventArgs e)
|
||||
{
|
||||
//需要修改此处
|
||||
//LoadDb("(" + TableProject.name + " like @SearchText or " + TableProject.des + " like @SearchText)");
|
||||
}
|
||||
|
||||
private void CtlMyPage1_OnPageChange(object sender, EventArgs e)
|
||||
{
|
||||
#region 重新载入数据
|
||||
tableModel1.Rows.Clear();
|
||||
tableModel1.Selections.Clear();
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData(ctlMyPage1.GetSQLText, ctlMyPage1.T_Parameters);
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
DataRow row = ds.Tables[0].Rows[i];
|
||||
XPTable.Models.Row itemList = new XPTable.Models.Row()
|
||||
{
|
||||
Tag = row["id"].ToString()
|
||||
};
|
||||
//需要修改此处
|
||||
//itemList.Cells.Add(new XPTable.Models.Cell(row[""].ToString()));//示例
|
||||
tableModel1.Rows.Add(itemList);
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
#endregion
|
||||
}
|
||||
private void GetRow(string id, int index)
|
||||
{
|
||||
#region 重新载入数据
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData("select * from " + tableName + " where id=" + id);
|
||||
if (mydb.HaveData(ds))
|
||||
{
|
||||
DataRow row = ds.Tables[0].Rows[0];
|
||||
XPTable.Models.Row itemList = tableModel1.Rows[index];
|
||||
//需要修改此处
|
||||
//itemList.Cells[colName.Index].Text = row[TableProject.name].ToString();
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
public void LoadDb(string whereSQL)
|
||||
{
|
||||
string _whereSQL = whereSQL;
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
#region 重新载入数据
|
||||
db.AddParameter("SearchText", "%" + rySearch1.Text + "%");
|
||||
ctlMyPage1.RecordCount = db.GetCount(tableName, _whereSQL);
|
||||
ctlMyPage1.T_Parameters = db.GetParameter();
|
||||
ctlMyPage1.SQLText= db.GetPageSQL(tableName, _whereSQL, orderSQL);
|
||||
ctlMyPage1.SQLText2 = db.GetPageSQL2(tableName, _whereSQL, orderSQL);
|
||||
ctlMyPage1.GotoPageIndex(1);
|
||||
#endregion
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
|
||||
private void BtnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
FrmAdd frm = new FrmAdd()
|
||||
{
|
||||
Text = "添加"+ titleName,
|
||||
Icon = Icon,
|
||||
isAdd = 1
|
||||
};
|
||||
frm.mr = new ModalForm(this, frm);
|
||||
frm.mr.OnDialogResult += new ModalForm.DialogResultHandler((object t, DialogResult dg) => {
|
||||
if (dg == DialogResult.OK)
|
||||
{
|
||||
rySearch1.PerformClick();
|
||||
}
|
||||
});
|
||||
frm.mr.ShowModal();
|
||||
}
|
||||
|
||||
private void BtnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (table1.SelectedItems.Length == 0) { return; }
|
||||
string selectId = table1.SelectedItems[0].Tag.ToString();
|
||||
int index = table1.SelectedItems[0].Index;
|
||||
FrmAdd frm = new FrmAdd()
|
||||
{
|
||||
Text = "修改"+ titleName,
|
||||
Icon = Icon,
|
||||
isAdd = 0
|
||||
};
|
||||
frm.GetInfo(selectId);
|
||||
frm.mr = new ModalForm(this, frm);
|
||||
frm.mr.OnDialogResult += new ModalForm.DialogResultHandler((object t, DialogResult dg) => {
|
||||
if (dg == DialogResult.OK)
|
||||
{
|
||||
GetRow(selectId, index);
|
||||
}
|
||||
});
|
||||
frm.mr.ShowModal();
|
||||
}
|
||||
|
||||
private void BtnDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (table1.SelectedItems.Length == 0) { MessageBox.Show("请先选择要删除的项。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; }
|
||||
string selectId = table1.SelectedItems[0].Tag.ToString();
|
||||
if (MessageBox.Show("确定要删除该项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
|
||||
{
|
||||
return;
|
||||
}
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
db.DelById(tableName, selectId);
|
||||
tableModel1.Rows.RemoveAt(table1.SelectedItems[0].Index);
|
||||
}
|
||||
}
|
||||
|
||||
private void FrmView_Load(object sender, EventArgs e)
|
||||
{
|
||||
Text = "浏览"+ titleName;
|
||||
添加数据ToolStripMenuItem.Text = "添加"+ titleName;
|
||||
修改数据ToolStripMenuItem.Text = "修改" + titleName;
|
||||
删除数据ToolStripMenuItem.Text = "删除" + titleName;
|
||||
rySearch1.PerformClick();
|
||||
}
|
||||
|
||||
private void 添加数据ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
btnAdd.PerformClick();
|
||||
}
|
||||
|
||||
private void 修改数据ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
btnEdit.PerformClick();
|
||||
}
|
||||
|
||||
private void 删除数据ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
btnDel.PerformClick();
|
||||
}
|
||||
}
|
||||
}
|
210
Source/Itrycn_Project/DbOp/frmView.Designer.cs
generated
Normal file
210
Source/Itrycn_Project/DbOp/frmView.Designer.cs
generated
Normal file
|
@ -0,0 +1,210 @@
|
|||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
partial class FrmView
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
this.rySearch1 = new ryControls.rySearch();
|
||||
this.table1 = new XPTable.Models.Table();
|
||||
this.columnModel1 = new XPTable.Models.ColumnModel();
|
||||
this.tableModel1 = new XPTable.Models.TableModel();
|
||||
this.ctlMyPage1 = new MyPage.ctlMyPage();
|
||||
this.btnDel = new ryControls.ButtonEx();
|
||||
this.btnEdit = new ryControls.ButtonEx();
|
||||
this.btnAdd = new ryControls.ButtonEx();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.添加数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.删除数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// rySearch1
|
||||
//
|
||||
this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.rySearch1.EmptyText = "请输入搜索内容";
|
||||
this.rySearch1.Location = new System.Drawing.Point(12, 12);
|
||||
this.rySearch1.Name = "rySearch1";
|
||||
this.rySearch1.Size = new System.Drawing.Size(329, 24);
|
||||
this.rySearch1.TabIndex = 28;
|
||||
this.rySearch1.OnSearch += new System.EventHandler(this.RySearch1_OnSearch);
|
||||
//
|
||||
// table1
|
||||
//
|
||||
this.table1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.table1.ColumnModel = this.columnModel1;
|
||||
this.table1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.table1.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
|
||||
this.table1.EnableHeaderContextMenu = false;
|
||||
this.table1.EnableToolTips = true;
|
||||
this.table1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.table1.FullRowSelect = true;
|
||||
this.table1.GridColor = System.Drawing.Color.Silver;
|
||||
this.table1.GridLines = XPTable.Models.GridLines.Rows;
|
||||
this.table1.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
|
||||
this.table1.HeaderFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.table1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.table1.Location = new System.Drawing.Point(12, 42);
|
||||
this.table1.Name = "table1";
|
||||
this.table1.NoItemsText = "当前还没有任何数据";
|
||||
this.table1.Size = new System.Drawing.Size(1028, 551);
|
||||
this.table1.TabIndex = 29;
|
||||
this.table1.TableModel = this.tableModel1;
|
||||
this.table1.Text = "table1";
|
||||
this.table1.ToolTipShowAlways = true;
|
||||
//
|
||||
// tableModel1
|
||||
//
|
||||
this.tableModel1.RowHeight = 25;
|
||||
//
|
||||
// ctlMyPage1
|
||||
//
|
||||
this.ctlMyPage1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ctlMyPage1.Location = new System.Drawing.Point(12, 595);
|
||||
this.ctlMyPage1.Name = "ctlMyPage1";
|
||||
this.ctlMyPage1.PageSize = 50;
|
||||
this.ctlMyPage1.RecordCount = 0;
|
||||
this.ctlMyPage1.Size = new System.Drawing.Size(506, 26);
|
||||
this.ctlMyPage1.SQLText = "";
|
||||
this.ctlMyPage1.SQLText2 = "";
|
||||
this.ctlMyPage1.T_FirstCaption = "首页";
|
||||
this.ctlMyPage1.T_LastCaption = "末页";
|
||||
this.ctlMyPage1.T_NextCaption = "下一页";
|
||||
this.ctlMyPage1.T_Parameters = null;
|
||||
this.ctlMyPage1.T_PreCaption = "上一页";
|
||||
this.ctlMyPage1.T_SkipCaption = "跳到";
|
||||
this.ctlMyPage1.T_TipCaption = "{pageindex}/{pagecount} 页,共 {recordcount} 条记录,每页 {pagesize} 条";
|
||||
this.ctlMyPage1.TabIndex = 30;
|
||||
this.ctlMyPage1.OnPageChange += new System.EventHandler(this.CtlMyPage1_OnPageChange);
|
||||
//
|
||||
// btnDel
|
||||
//
|
||||
this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnDel.Location = new System.Drawing.Point(978, 12);
|
||||
this.btnDel.Name = "btnDel";
|
||||
this.btnDel.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnDel.TabIndex = 40;
|
||||
this.btnDel.Text = "删除";
|
||||
this.btnDel.UseVisualStyleBackColor = true;
|
||||
this.btnDel.Click += new System.EventHandler(this.BtnDel_Click);
|
||||
//
|
||||
// btnEdit
|
||||
//
|
||||
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnEdit.ForeColor = System.Drawing.Color.White;
|
||||
this.btnEdit.Location = new System.Drawing.Point(910, 12);
|
||||
this.btnEdit.Name = "btnEdit";
|
||||
this.btnEdit.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnEdit.TabIndex = 39;
|
||||
this.btnEdit.Text = "修改";
|
||||
this.btnEdit.UseVisualStyleBackColor = true;
|
||||
this.btnEdit.Click += new System.EventHandler(this.BtnEdit_Click);
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.ForeColor = System.Drawing.Color.White;
|
||||
this.btnAdd.Location = new System.Drawing.Point(842, 12);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnAdd.TabIndex = 38;
|
||||
this.btnAdd.Text = "添加";
|
||||
this.btnAdd.UseVisualStyleBackColor = true;
|
||||
this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.添加数据ToolStripMenuItem,
|
||||
this.修改数据ToolStripMenuItem,
|
||||
this.删除数据ToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70);
|
||||
//
|
||||
// 添加数据ToolStripMenuItem
|
||||
//
|
||||
this.添加数据ToolStripMenuItem.Name = "添加数据ToolStripMenuItem";
|
||||
this.添加数据ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.添加数据ToolStripMenuItem.Text = "添加数据";
|
||||
this.添加数据ToolStripMenuItem.Click += new System.EventHandler(this.添加数据ToolStripMenuItem_Click);
|
||||
//
|
||||
// 修改数据ToolStripMenuItem
|
||||
//
|
||||
this.修改数据ToolStripMenuItem.Name = "修改数据ToolStripMenuItem";
|
||||
this.修改数据ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.修改数据ToolStripMenuItem.Text = "修改数据";
|
||||
this.修改数据ToolStripMenuItem.Click += new System.EventHandler(this.修改数据ToolStripMenuItem_Click);
|
||||
//
|
||||
// 删除数据ToolStripMenuItem
|
||||
//
|
||||
this.删除数据ToolStripMenuItem.Name = "删除数据ToolStripMenuItem";
|
||||
this.删除数据ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.删除数据ToolStripMenuItem.Text = "删除数据";
|
||||
this.删除数据ToolStripMenuItem.Click += new System.EventHandler(this.删除数据ToolStripMenuItem_Click);
|
||||
//
|
||||
// FrmView
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1052, 625);
|
||||
this.Controls.Add(this.btnDel);
|
||||
this.Controls.Add(this.btnEdit);
|
||||
this.Controls.Add(this.btnAdd);
|
||||
this.Controls.Add(this.ctlMyPage1);
|
||||
this.Controls.Add(this.table1);
|
||||
this.Controls.Add(this.rySearch1);
|
||||
this.Name = "FrmView";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "浏览";
|
||||
this.Load += new System.EventHandler(this.FrmView_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ryControls.rySearch rySearch1;
|
||||
private XPTable.Models.Table table1;
|
||||
private MyPage.ctlMyPage ctlMyPage1;
|
||||
private XPTable.Models.TableModel tableModel1;
|
||||
private XPTable.Models.ColumnModel columnModel1;
|
||||
private ryControls.ButtonEx btnDel;
|
||||
private ryControls.ButtonEx btnEdit;
|
||||
private ryControls.ButtonEx btnAdd;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 添加数据ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 修改数据ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 删除数据ToolStripMenuItem;
|
||||
}
|
||||
}
|
129
Source/Itrycn_Project/DbOp/frmView.resx
Normal file
129
Source/Itrycn_Project/DbOp/frmView.resx
Normal file
|
@ -0,0 +1,129 @@
|
|||
<?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="columnModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>141, 21</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>269, 21</value>
|
||||
</metadata>
|
||||
<metadata name="tableModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>22, 16</value>
|
||||
</metadata>
|
||||
</root>
|
322
Source/Itrycn_Project/Form1.Designer.cs
generated
Normal file
322
Source/Itrycn_Project/Form1.Designer.cs
generated
Normal file
|
@ -0,0 +1,322 @@
|
|||
namespace WindowsFormsApp2
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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(Form1));
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.添加提醒ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.复制并添加提醒ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改提醒ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.删除提醒ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.查看日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.notifyTray = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.menuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.显示主窗体ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.关闭软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.columnModel1 = new XPTable.Models.ColumnModel();
|
||||
this.tableModel1 = new XPTable.Models.TableModel();
|
||||
this.BtnRobot = new ryControls.ButtonEx();
|
||||
this.table1 = new XPTable.Models.Table();
|
||||
this.btnDel = new ryControls.ButtonEx();
|
||||
this.btnEdit = new ryControls.ButtonEx();
|
||||
this.btnAdd = new ryControls.ButtonEx();
|
||||
this.btnSetting = new ryControls.ButtonEx();
|
||||
this.ctlMyPage1 = new MyPage.ctlMyPage();
|
||||
this.rySearch1 = new ryControls.rySearch();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.menuTray.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.添加提醒ToolStripMenuItem,
|
||||
this.复制并添加提醒ToolStripMenuItem,
|
||||
this.修改提醒ToolStripMenuItem,
|
||||
this.删除提醒ToolStripMenuItem,
|
||||
this.toolStripMenuItem2,
|
||||
this.查看日志ToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(161, 120);
|
||||
//
|
||||
// 添加提醒ToolStripMenuItem
|
||||
//
|
||||
this.添加提醒ToolStripMenuItem.Name = "添加提醒ToolStripMenuItem";
|
||||
this.添加提醒ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
|
||||
this.添加提醒ToolStripMenuItem.Text = "添加提醒";
|
||||
//
|
||||
// 复制并添加提醒ToolStripMenuItem
|
||||
//
|
||||
this.复制并添加提醒ToolStripMenuItem.Name = "复制并添加提醒ToolStripMenuItem";
|
||||
this.复制并添加提醒ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
|
||||
this.复制并添加提醒ToolStripMenuItem.Text = "复制并添加提醒";
|
||||
//
|
||||
// 修改提醒ToolStripMenuItem
|
||||
//
|
||||
this.修改提醒ToolStripMenuItem.Name = "修改提醒ToolStripMenuItem";
|
||||
this.修改提醒ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
|
||||
this.修改提醒ToolStripMenuItem.Text = "修改提醒";
|
||||
//
|
||||
// 删除提醒ToolStripMenuItem
|
||||
//
|
||||
this.删除提醒ToolStripMenuItem.Name = "删除提醒ToolStripMenuItem";
|
||||
this.删除提醒ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
|
||||
this.删除提醒ToolStripMenuItem.Text = "删除提醒";
|
||||
//
|
||||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(157, 6);
|
||||
//
|
||||
// 查看日志ToolStripMenuItem
|
||||
//
|
||||
this.查看日志ToolStripMenuItem.Name = "查看日志ToolStripMenuItem";
|
||||
this.查看日志ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
|
||||
this.查看日志ToolStripMenuItem.Text = "查看该提醒日志";
|
||||
//
|
||||
// notifyTray
|
||||
//
|
||||
this.notifyTray.ContextMenuStrip = this.menuTray;
|
||||
this.notifyTray.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyTray.Icon")));
|
||||
this.notifyTray.Text = "当游网络网页状态提醒器";
|
||||
this.notifyTray.Visible = true;
|
||||
//
|
||||
// menuTray
|
||||
//
|
||||
this.menuTray.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.menuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.显示主窗体ToolStripMenuItem,
|
||||
this.toolStripMenuItem3,
|
||||
this.关于ToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.关闭软件ToolStripMenuItem});
|
||||
this.menuTray.Name = "menuTray";
|
||||
this.menuTray.Size = new System.Drawing.Size(149, 88);
|
||||
//
|
||||
// 显示主窗体ToolStripMenuItem
|
||||
//
|
||||
this.显示主窗体ToolStripMenuItem.ForeColor = System.Drawing.Color.Black;
|
||||
this.显示主窗体ToolStripMenuItem.Name = "显示主窗体ToolStripMenuItem";
|
||||
this.显示主窗体ToolStripMenuItem.Size = new System.Drawing.Size(148, 24);
|
||||
this.显示主窗体ToolStripMenuItem.Text = "显示主窗体";
|
||||
//
|
||||
// toolStripMenuItem3
|
||||
//
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(145, 6);
|
||||
//
|
||||
// 关于ToolStripMenuItem
|
||||
//
|
||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(148, 24);
|
||||
this.关于ToolStripMenuItem.Text = "关于";
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(145, 6);
|
||||
//
|
||||
// 关闭软件ToolStripMenuItem
|
||||
//
|
||||
this.关闭软件ToolStripMenuItem.ForeColor = System.Drawing.Color.Black;
|
||||
this.关闭软件ToolStripMenuItem.Name = "关闭软件ToolStripMenuItem";
|
||||
this.关闭软件ToolStripMenuItem.Size = new System.Drawing.Size(148, 24);
|
||||
this.关闭软件ToolStripMenuItem.Text = "关闭软件";
|
||||
//
|
||||
// BtnRobot
|
||||
//
|
||||
this.BtnRobot.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.BtnRobot.Location = new System.Drawing.Point(493, 8);
|
||||
this.BtnRobot.Name = "BtnRobot";
|
||||
this.BtnRobot.Size = new System.Drawing.Size(84, 26);
|
||||
this.BtnRobot.TabIndex = 36;
|
||||
this.BtnRobot.Text = "机器人设置";
|
||||
this.BtnRobot.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// table1
|
||||
//
|
||||
this.table1.ColumnModel = this.columnModel1;
|
||||
this.table1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.table1.EnableToolTips = true;
|
||||
this.table1.FullRowSelect = true;
|
||||
this.table1.HeaderFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.table1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.table1.Location = new System.Drawing.Point(12, 75);
|
||||
this.table1.Name = "table1";
|
||||
this.table1.NoItemsText = "当前列表没有任何项";
|
||||
this.table1.Size = new System.Drawing.Size(775, 599);
|
||||
this.table1.TabIndex = 35;
|
||||
this.table1.TableModel = this.tableModel1;
|
||||
this.table1.Text = "table1";
|
||||
//
|
||||
// btnDel
|
||||
//
|
||||
this.btnDel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.btnDel.Enabled = false;
|
||||
this.btnDel.Location = new System.Drawing.Point(182, 39);
|
||||
this.btnDel.Name = "btnDel";
|
||||
this.btnDel.Size = new System.Drawing.Size(79, 30);
|
||||
this.btnDel.TabIndex = 34;
|
||||
this.btnDel.Text = "删除提醒";
|
||||
this.btnDel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnEdit
|
||||
//
|
||||
this.btnEdit.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.btnEdit.Enabled = false;
|
||||
this.btnEdit.Location = new System.Drawing.Point(97, 39);
|
||||
this.btnEdit.Name = "btnEdit";
|
||||
this.btnEdit.Size = new System.Drawing.Size(79, 30);
|
||||
this.btnEdit.TabIndex = 33;
|
||||
this.btnEdit.Text = "修改提醒";
|
||||
this.btnEdit.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.btnAdd.Location = new System.Drawing.Point(12, 39);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(79, 30);
|
||||
this.btnAdd.TabIndex = 32;
|
||||
this.btnAdd.Text = "添加提醒";
|
||||
this.btnAdd.UseVisualStyleBackColor = true;
|
||||
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
||||
//
|
||||
// btnSetting
|
||||
//
|
||||
this.btnSetting.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.btnSetting.Location = new System.Drawing.Point(418, 8);
|
||||
this.btnSetting.Name = "btnSetting";
|
||||
this.btnSetting.Size = new System.Drawing.Size(69, 26);
|
||||
this.btnSetting.TabIndex = 31;
|
||||
this.btnSetting.Text = "设置";
|
||||
this.btnSetting.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ctlMyPage1
|
||||
//
|
||||
this.ctlMyPage1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ctlMyPage1.Location = new System.Drawing.Point(12, 680);
|
||||
this.ctlMyPage1.Name = "ctlMyPage1";
|
||||
this.ctlMyPage1.PageSize = 50;
|
||||
this.ctlMyPage1.RecordCount = 0;
|
||||
this.ctlMyPage1.Size = new System.Drawing.Size(506, 26);
|
||||
this.ctlMyPage1.SQLText = "";
|
||||
this.ctlMyPage1.SQLText2 = "";
|
||||
this.ctlMyPage1.T_FirstCaption = "首页";
|
||||
this.ctlMyPage1.T_LastCaption = "末页";
|
||||
this.ctlMyPage1.T_NextCaption = "下一页";
|
||||
this.ctlMyPage1.T_Parameters = null;
|
||||
this.ctlMyPage1.T_PreCaption = "上一页";
|
||||
this.ctlMyPage1.T_SkipCaption = "跳到";
|
||||
this.ctlMyPage1.T_TipCaption = "{pageindex}/{pagecount} 页,共 {recordcount} 条记录,每页 {pagesize} 条";
|
||||
this.ctlMyPage1.TabIndex = 30;
|
||||
//
|
||||
// rySearch1
|
||||
//
|
||||
this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.rySearch1.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.rySearch1.EmptyText = "请输入提醒名称或备注进行查询";
|
||||
this.rySearch1.Location = new System.Drawing.Point(12, 8);
|
||||
this.rySearch1.Name = "rySearch1";
|
||||
this.rySearch1.Size = new System.Drawing.Size(400, 25);
|
||||
this.rySearch1.TabIndex = 29;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(352, 46);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox1.TabIndex = 37;
|
||||
this.textBox1.Text = "2222222";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(799, 718);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.BtnRobot);
|
||||
this.Controls.Add(this.table1);
|
||||
this.Controls.Add(this.btnDel);
|
||||
this.Controls.Add(this.btnEdit);
|
||||
this.Controls.Add(this.btnAdd);
|
||||
this.Controls.Add(this.btnSetting);
|
||||
this.Controls.Add(this.ctlMyPage1);
|
||||
this.Controls.Add(this.rySearch1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.menuTray.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 添加提醒ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 复制并添加提醒ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 修改提醒ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 删除提醒ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
||||
private System.Windows.Forms.ToolStripMenuItem 查看日志ToolStripMenuItem;
|
||||
public System.Windows.Forms.NotifyIcon notifyTray;
|
||||
private System.Windows.Forms.ContextMenuStrip menuTray;
|
||||
private System.Windows.Forms.ToolStripMenuItem 显示主窗体ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
|
||||
private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 关闭软件ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private XPTable.Models.ColumnModel columnModel1;
|
||||
private XPTable.Models.TableModel tableModel1;
|
||||
private ryControls.ButtonEx BtnRobot;
|
||||
private XPTable.Models.Table table1;
|
||||
private ryControls.ButtonEx btnDel;
|
||||
private ryControls.ButtonEx btnEdit;
|
||||
private ryControls.ButtonEx btnAdd;
|
||||
private ryControls.ButtonEx btnSetting;
|
||||
private MyPage.ctlMyPage ctlMyPage1;
|
||||
private ryControls.rySearch rySearch1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
}
|
||||
}
|
||||
|
46
Source/Itrycn_Project/Form1.cs
Normal file
46
Source/Itrycn_Project/Form1.cs
Normal file
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp2
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
//ryCommon.SuperForm form = new ryCommon.SuperForm(this);
|
||||
//form.SetFormMove(this);
|
||||
rySearch1.PerformClick();
|
||||
}
|
||||
|
||||
private void BtnClick_Click(object sender, EventArgs e)
|
||||
{
|
||||
//SendKeys.SendWait("{enter}");
|
||||
}
|
||||
void AddUrl()
|
||||
{
|
||||
Thread.Sleep(2000);
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
SendKeys.Send("^v");
|
||||
SendKeys.SendWait("{enter}");
|
||||
}));
|
||||
}
|
||||
|
||||
private void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Select(0, 0);
|
||||
}
|
||||
}
|
||||
}
|
215
Source/Itrycn_Project/Form1.resx
Normal file
215
Source/Itrycn_Project/Form1.resx
Normal file
|
@ -0,0 +1,215 @@
|
|||
<?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="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>71, 13</value>
|
||||
</metadata>
|
||||
<metadata name="notifyTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>236, 13</value>
|
||||
</metadata>
|
||||
<metadata name="menuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>347, 13</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="notifyTray.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAANcNAADXDQAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAIAAAADAAAABAAA
|
||||
AAQAAAAFAAAABQAAAAQAAAAEAAAAAwAAAAIAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAABgAAAAsAAAAPAAAAEgAA
|
||||
ABQAAAAWAAAAFwAAABgAAAAYAAAAFwAAABYAAAAUAAAAEgAAAA8AAAAKAAAABgAAAAMAAAABAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAACgAAABMAAAAcAAAAIwAA
|
||||
ACsRDgYzJx8LOzcrD0FDNBFGRzcSSEc3EkhDNBFGNysPQScfCzsRDQYzAAAAKwAAACMAAAAcAAAAEwAA
|
||||
AAoAAAADAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEABgAAABIAAAAgJB0LN25W
|
||||
G12ZdiKIrYUkqreMJMK9kCTRwJIk28GTI+DCkyPiwpMj4sGTI+DAkiTbvZAk0beMJMKthSSqmXYiiG5V
|
||||
G10kHAs3AAAAIAAAABIBAQAGAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQIBAAYAAAAVJR4LMpJx
|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q1jSxWAAAAAQAAAAG5kC1b06Eo/NOgJf/ToCb/0qAm/82cJf/DlCL/tIgd/6uDI/+2l0z/1MKZ//Hs
|
||||
4P///////f36//bx3//07tb/9O7X//Tu1//179n/5tmz/8SZMP/SnyX/06Am/9OgJv/ToCb/06Am/9Og
|
||||
Jv/ToCX/06Eo/LiQLVsAAAABAAAAALuRLlzUoin81KEm/9ShJv/QniX/v5Ag/7KLLP+/pGL/3tGy//j1
|
||||
7v///////////////////////fz5//bx4P/07tb/9O7X//Tu1//x6tD/yqhT/86cIv/UoSb/1KEm/9Sh
|
||||
Jv/UoSb/1KEm/9ShJv/Uoin8u5EuXAAAAAD///8AvJIuWdWjKvvVoif/1aIm/9WkMP/dwHj/7eTN//z8
|
||||
+v///////////////////////////////////////fz5//bx4P/07tb/9O7X//Xv2f/XwIX/yZgk/9Wi
|
||||
J//Voif/1aIn/9WiJ//Voif/1aIn/9WjKvu7ki5Z////AP///wC7ki9S1qQq+tajJ//Woif/16Yv/+K+
|
||||
Zv/v2qf/+O/a//78+f///////////////////////////////////////fz5//bx4P/07tb/9e/Z/+fa
|
||||
s//GmzH/1KEm/9ajJ//Woyf/1qMn/9ajJ//Woyf/1qQq+buSL1L///8A///GALmRMEfWpCv116Mo/9ej
|
||||
KP/Xoyf/1qIl/9ejKP/arDz/479o/+7YpP/479r//vz5/////////////////////////////fz5//bx
|
||||
4P/07tf/8erQ/8upVP/RniT/16Qo/9ejKP/Xoyj/16Mo/9ejKP/WpCv1uZEwRv//xgD//44AtY4wNtel
|
||||
Le3YpCj/2KQo/9ikKP/YpCj/16Qo/9ekJ//XoyX/16Qo/9usPP/jv2j/7tmk//jv2v/+/Pn/////////
|
||||
/////////fz5//bx4P/079n/2MGF/8uaJf/XpCj/2KQo/9ikKP/YpCj/2KQo/9elLe20jjA2//+PAP//
|
||||
dgCqhjAj16Uu3tilKf/YpSn/2KUp/9ilKf/YpSn/2KUp/9ilKf/YpSn/2KQo/9ikJv/YpSn/3K09/+TA
|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/3aks/92pLP/dqSz/3aks/92pLP/dqSz/3aks/92p
|
||||
LP/dqSz/3aks/92pLP/dqSz/3aks/92pLP/dqSz/3qsx9t2tOXipiT8E5LVEAAAAAAAAAAAAAAAAAAAA
|
||||
AAD/6FQA5bZDAMehQgXerjti36002N6rL//eqi3/3qot/96qLf/eqi3/3qot/96qLf/eqi3/3qot/96q
|
||||
Lf/eqi3/3qot/96qLf/eqi3/3qot/96qLf/eqi3/3qsv/9+tNNjerjtix6BDBeW1QwD/6FUAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAD/y0kA3K9BAPi/MwDer0Ai4K86c+CuNrzfrTPk36ww9t+sL/7frC7/36su/9+r
|
||||
Lv/fqy7/36su/9+rLv/fqy7/36wu/9+sL/7frDD2360z5OCuNrvgrzpz3rBAIvi/MwDcr0EA/8tKAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxvkYAsY03AOCxPwDnsjMA3rJHDOCxQC3gsDxS4LA6dOCv
|
||||
OY3hrzif4a84quCvN6/grzev4a84quGvOJ/grzmN4LA6dOCwPFLgsUAs3rJHDOeyMwDgsT8AsIw3APC+
|
||||
RgAAAAAAAAAAAAAAAAAAAAAA4AAAB8AAAAOAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAACAAAABwAAAA+AAAAc=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>458, 13</value>
|
||||
</metadata>
|
||||
<metadata name="columnModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>-685, 51</value>
|
||||
</metadata>
|
||||
<metadata name="tableModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>-544, 51</value>
|
||||
</metadata>
|
||||
</root>
|
180
Source/Itrycn_Project/FrmAbout.Designer.cs
generated
Normal file
180
Source/Itrycn_Project/FrmAbout.Designer.cs
generated
Normal file
|
@ -0,0 +1,180 @@
|
|||
namespace Itrycn_Project
|
||||
{
|
||||
partial class FrmAbout
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAbout));
|
||||
this.pnlTopLogo = new System.Windows.Forms.Panel();
|
||||
this.lblTitle = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.lblVisitUrl = new System.Windows.Forms.Label();
|
||||
this.LblQQ_Qun = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.btnCancel = new ryControls.ButtonEx();
|
||||
this.pnlTopLogo.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pnlTopLogo
|
||||
//
|
||||
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
|
||||
this.pnlTopLogo.Controls.Add(this.lblTitle);
|
||||
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTopLogo.Name = "pnlTopLogo";
|
||||
this.pnlTopLogo.Size = new System.Drawing.Size(434, 59);
|
||||
this.pnlTopLogo.TabIndex = 8;
|
||||
//
|
||||
// lblTitle
|
||||
//
|
||||
this.lblTitle.AutoSize = true;
|
||||
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTitle.Location = new System.Drawing.Point(12, 22);
|
||||
this.lblTitle.Name = "lblTitle";
|
||||
this.lblTitle.Size = new System.Drawing.Size(110, 16);
|
||||
this.lblTitle.TabIndex = 0;
|
||||
this.lblTitle.Text = "睿元管理系统";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 71);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(35, 12);
|
||||
this.label1.TabIndex = 9;
|
||||
this.label1.Text = "官网:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(53, 71);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(0, 12);
|
||||
this.label2.TabIndex = 10;
|
||||
//
|
||||
// lblVisitUrl
|
||||
//
|
||||
this.lblVisitUrl.AutoSize = true;
|
||||
this.lblVisitUrl.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.lblVisitUrl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblVisitUrl.ForeColor = System.Drawing.Color.Blue;
|
||||
this.lblVisitUrl.Location = new System.Drawing.Point(53, 71);
|
||||
this.lblVisitUrl.Name = "lblVisitUrl";
|
||||
this.lblVisitUrl.Size = new System.Drawing.Size(77, 12);
|
||||
this.lblVisitUrl.TabIndex = 11;
|
||||
this.lblVisitUrl.Text = "立即访问官网";
|
||||
this.lblVisitUrl.Click += new System.EventHandler(this.LblVisitUrl_Click);
|
||||
//
|
||||
// LblQQ_Qun
|
||||
//
|
||||
this.LblQQ_Qun.AutoSize = true;
|
||||
this.LblQQ_Qun.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblQQ_Qun.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblQQ_Qun.ForeColor = System.Drawing.Color.Blue;
|
||||
this.LblQQ_Qun.Location = new System.Drawing.Point(54, 94);
|
||||
this.LblQQ_Qun.Name = "LblQQ_Qun";
|
||||
this.LblQQ_Qun.Size = new System.Drawing.Size(59, 12);
|
||||
this.LblQQ_Qun.TabIndex = 14;
|
||||
this.LblQQ_Qun.Text = "183161992";
|
||||
this.toolTip1.SetToolTip(this.LblQQ_Qun, "点击复制");
|
||||
this.LblQQ_Qun.Click += new System.EventHandler(this.LblQQ_Qun_Click);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(54, 94);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(0, 12);
|
||||
this.label4.TabIndex = 13;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(13, 94);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(35, 12);
|
||||
this.label5.TabIndex = 12;
|
||||
this.label5.Text = "QQ群:";
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnCancel.Location = new System.Drawing.Point(357, 237);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnCancel.TabIndex = 16;
|
||||
this.btnCancel.Text = "确定";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
|
||||
//
|
||||
// FrmAbout
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(434, 276);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.LblQQ_Qun);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.lblVisitUrl);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.pnlTopLogo);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "FrmAbout";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "关于";
|
||||
this.Load += new System.EventHandler(this.FrmAbout_Load);
|
||||
this.pnlTopLogo.ResumeLayout(false);
|
||||
this.pnlTopLogo.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel pnlTopLogo;
|
||||
private System.Windows.Forms.Label lblTitle;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label lblVisitUrl;
|
||||
private System.Windows.Forms.Label LblQQ_Qun;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private ryControls.ButtonEx btnCancel;
|
||||
}
|
||||
}
|
44
Source/Itrycn_Project/FrmAbout.cs
Normal file
44
Source/Itrycn_Project/FrmAbout.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
public partial class FrmAbout : Form
|
||||
{
|
||||
public FrmAbout()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void FrmAbout_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblTitle.Text = Itrycn_Info.Soft_Title + " V" + ryCommon.RySoft.VersionStr;
|
||||
}
|
||||
|
||||
private void LblVisitUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
ryCommon.RyFiles.OpenUrl(Itrycn_Info.Soft_Url);
|
||||
}
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void LblQQ_Qun_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(LblQQ_Qun.Text);
|
||||
MessageBox.Show("已成功复制到剪切板,请复制到QQ搜索。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
200
Source/Itrycn_Project/FrmAbout.resx
Normal file
200
Source/Itrycn_Project/FrmAbout.resx
Normal file
|
@ -0,0 +1,200 @@
|
|||
<?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="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAEZcAABGXAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADcoEgA3KBIANygSADcoEgA3KBIANyg
|
||||
SADcoEgA3KBIANygSADcoEgA3KBIANygSADcoEgA3KBIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAA//////+AAf/+AAB//AAAP/gAAA/wAAAP4AAAB8AAAAPAAAADgAAAAYAA
|
||||
AAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAHAAAADwAAAA+AA
|
||||
AAfwAAAP+AAAH/wAAD/+AAB//4AB//////8=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
125
Source/Itrycn_Project/Itrycn_Info.cs
Normal file
125
Source/Itrycn_Project/Itrycn_Info.cs
Normal file
|
@ -0,0 +1,125 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using static ryCommonDb.DataProvider;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置类(本系统基于乘黄V1架构)
|
||||
/// </summary>
|
||||
public class Itrycn_Info
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否能关闭窗体。
|
||||
/// </summary>
|
||||
public static bool isCanCloseForm = true;
|
||||
/// <summary>
|
||||
/// 在线升级配置文件的url
|
||||
/// </summary>
|
||||
public static string Update_Url = "http://www.itrycn.com/update/ryWebMon4.xml";
|
||||
/// <summary>
|
||||
/// 软件标题
|
||||
/// </summary>
|
||||
public static string Soft_Title = "睿元管理系统";
|
||||
/// <summary>
|
||||
/// 软件ID
|
||||
/// </summary>
|
||||
public static string Soft_Id = "Money_Op";
|
||||
/// <summary>
|
||||
/// 开机启动的参数
|
||||
/// </summary>
|
||||
public static string Soft_Pram = "q";
|
||||
/// <summary>
|
||||
/// 官网地址
|
||||
/// </summary>
|
||||
public static string Soft_Url = "http://www.itrycn.com";
|
||||
/// <summary>
|
||||
/// 用户文件夹,该相对路径设置,将在程序启动后转换
|
||||
/// </summary>
|
||||
public static string UserDataFolder = "<app>\\UserDb";
|
||||
/// <summary>
|
||||
/// 左边分类内容新增
|
||||
/// </summary>
|
||||
/// <param name="frm"></param>
|
||||
public static void OnLeftTreeAdd(Itrycn.Frmmain frm)
|
||||
{
|
||||
frm.AddToTreeView(frm.treeView1.Nodes[0], typeof(DbOp.FrmView), "测试", "item.png");
|
||||
Itrycn_Info.LoadSetting();
|
||||
}
|
||||
public static void LoadSetting()
|
||||
{
|
||||
//ryCommon.Storage Stor = new Storage();
|
||||
//Stor.SelectNodeBySet();
|
||||
//LowCountTip = Stor.GetAttrValue("LowCountTip", true);
|
||||
//low_count = Stor.GetAttrValue("LowCount", 10);
|
||||
}
|
||||
/// <summary>
|
||||
/// 单击分类时激发
|
||||
/// </summary>
|
||||
/// <param name="frm"></param>
|
||||
/// <param name="e"></param>
|
||||
public static void OnTreeClick(Itrycn.Frmmain frm, TreeViewEventArgs e)
|
||||
{
|
||||
Type id = (Type)e.Node.Tag;
|
||||
frm.ShowForm(id);
|
||||
}
|
||||
}
|
||||
public class Itrycn_Db
|
||||
{
|
||||
public static string SQLConnStr = "<app>\\UserDb\\myDb.dat|";
|
||||
public static ryCommonDb.DataProvider.DataProviderType dataType = ryCommonDb.DataProvider.DataProviderType.SQLiteDataProvider;
|
||||
public static IDbInterface CreateDataProvider()
|
||||
{
|
||||
return CreateDataProvider(dataType);
|
||||
}
|
||||
|
||||
public static IDbInterface CreateDataProvider(DataProviderType dataProviderType)
|
||||
{
|
||||
switch (dataProviderType)
|
||||
{
|
||||
//case DataProviderType.OdbcDataProvider:
|
||||
// return new OdbcDataProvider();
|
||||
//case DataProviderType.OleDbDataProvider:
|
||||
// return new OleDbDataProvider();
|
||||
//case DataProviderType.OracleDataProvider:
|
||||
// return new OracleDataProvider();
|
||||
case DataProviderType.SQLiteDataProvider:
|
||||
return new SQLiteDataProvider();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
private static void CreateTable(ryCommonDb.DataProvider.DataProviderType dataType, string ConnStr)
|
||||
{
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = CreateDataProvider(dataType);
|
||||
if (db.ConnDb(ConnStr) == 1)
|
||||
{
|
||||
#region 表1
|
||||
RyQuickSQL mySQL = new RyQuickSQL("表1");
|
||||
mySQL.AddField("", "");
|
||||
mySQL.AddField("addTime", DateTime.Now);
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
//
|
||||
#region 表2
|
||||
mySQL.Clear();
|
||||
mySQL.TableName = "表2";
|
||||
mySQL.AddField("", "");
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
public static void CreateTable()
|
||||
{
|
||||
CreateTable(dataType, SQLConnStr);
|
||||
}
|
||||
}
|
||||
}
|
193
Source/Itrycn_Project/Itrycn_Project.csproj
Normal file
193
Source/Itrycn_Project/Itrycn_Project.csproj
Normal file
|
@ -0,0 +1,193 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" 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>{62B5C3E8-4AF1-4A7F-A40B-A6186F83DBD2}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>Itrycn_Project</RootNamespace>
|
||||
<AssemblyName>Itrycn_Project</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<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>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Bin\Debug\CommonControls\.NET4 示例\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Bin\Release\CommonControls\.NET4 示例\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="RyWeb">
|
||||
<HintPath>..\..\Bin\Debug\CommonControls\.NET4\RyWeb.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<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.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="XPTable">
|
||||
<HintPath>..\..\Bin\Debug\CommonControls\.NET4\XPTable.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="clsForm.cs" />
|
||||
<Compile Include="DbOp\FrmAdd.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DbOp\FrmAdd.Designer.cs">
|
||||
<DependentUpon>FrmAdd.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DbOp\FrmView.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DbOp\FrmView.Designer.cs">
|
||||
<DependentUpon>FrmView.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmAbout.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmAbout.Designer.cs">
|
||||
<DependentUpon>FrmAbout.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="RegSoft\frmLogin.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="RegSoft\frmLogin.Designer.cs">
|
||||
<DependentUpon>frmLogin.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmmain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmmain.Designer.cs">
|
||||
<DependentUpon>frmmain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmSetting.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmSetting.Designer.cs">
|
||||
<DependentUpon>frmSetting.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Itrycn_Info.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="DbOp\FrmAdd.resx">
|
||||
<DependentUpon>FrmAdd.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="DbOp\FrmView.resx">
|
||||
<DependentUpon>FrmView.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmAbout.resx">
|
||||
<DependentUpon>FrmAbout.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="RegSoft\frmLogin.resx">
|
||||
<DependentUpon>frmLogin.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmmain.resx">
|
||||
<DependentUpon>frmmain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmSetting.resx">
|
||||
<DependentUpon>frmSetting.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="Resources\closetree.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\opentree.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyDb\MyDbV4.csproj">
|
||||
<Project>{9df20d86-a56e-4cf6-a3d8-f30421297b1b}</Project>
|
||||
<Name>MyDbV4</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\MyDb_SQLite\MyDb_SQLiteV4.csproj">
|
||||
<Project>{6b969ce8-d723-4b2c-a8fd-fad2fb28ff01}</Project>
|
||||
<Name>MyDb_SQLiteV4</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\ryControls\ryControlsV4.csproj">
|
||||
<Project>{9eca3a84-8545-4c4d-84d6-d23e3bdf2d90}</Project>
|
||||
<Name>ryControlsV4</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\RyPrint\RyPrint.csproj">
|
||||
<Project>{B6784652-825A-482C-8A21-08E2539AF2BF}</Project>
|
||||
<Name>RyPrint</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\ryUpdate\ryUpdateV4.csproj">
|
||||
<Project>{11a63e24-0257-4c54-a109-f1a609a52a62}</Project>
|
||||
<Name>ryUpdateV4</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="API\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
14
Source/Itrycn_Project/Itrycn_Project.csproj.user
Normal file
14
Source/Itrycn_Project/Itrycn_Project.csproj.user
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<PublishUrlHistory />
|
||||
<InstallUrlHistory />
|
||||
<SupportUrlHistory />
|
||||
<UpdateUrlHistory />
|
||||
<BootstrapperUrlHistory />
|
||||
<ErrorReportUrlHistory />
|
||||
<FallbackCulture>zh-CN</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
39
Source/Itrycn_Project/Program.cs
Normal file
39
Source/Itrycn_Project/Program.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using Itrycn;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
static System.Threading.Mutex run;
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Itrycn_Info.UserDataFolder = ryCommon.RyFiles.GetRealPath(Itrycn_Info.UserDataFolder);
|
||||
run = new System.Threading.Mutex(true, Itrycn_Info.Soft_Id, out bool runone);
|
||||
if (!runone) //已经运行了
|
||||
{
|
||||
ryCommon.Ini ini = new ryCommon.Ini(Itrycn_Info.UserDataFolder + "\\Win.dat");
|
||||
ryControls.Win32.SendMessage((IntPtr)ini.ReadIni(Itrycn_Info.Soft_Id, "hwnd", 0), 17189, 100, 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
Application.Run(new Frmmain(args));
|
||||
//Application.Run(new WindowsFormsApp2.Form1());
|
||||
}
|
||||
//FrmLogin frm = new FrmLogin();
|
||||
//if (frm.ShowDialog() == DialogResult.OK)
|
||||
//{
|
||||
// Application.Run(new Frmmain());
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
36
Source/Itrycn_Project/Properties/AssemblyInfo.cs
Normal file
36
Source/Itrycn_Project/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Itrycn_Project")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Itrycn_Project")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("62b5c3e8-4af1-4a7f-a40b-a6186f83dbd2")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
83
Source/Itrycn_Project/Properties/Resources.Designer.cs
generated
Normal file
83
Source/Itrycn_Project/Properties/Resources.Designer.cs
generated
Normal file
|
@ -0,0 +1,83 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Itrycn_Project.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("Itrycn_Project.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>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap closetree {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("closetree", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap opentree {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("opentree", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
127
Source/Itrycn_Project/Properties/Resources.resx
Normal file
127
Source/Itrycn_Project/Properties/Resources.resx
Normal file
|
@ -0,0 +1,127 @@
|
|||
<?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="closetree" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\closetree.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="opentree" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\opentree.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
30
Source/Itrycn_Project/Properties/Settings.Designer.cs
generated
Normal file
30
Source/Itrycn_Project/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 Itrycn_Project.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
Source/Itrycn_Project/Properties/Settings.settings
Normal file
7
Source/Itrycn_Project/Properties/Settings.settings
Normal file
|
@ -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>
|
190
Source/Itrycn_Project/RegSoft/frmLogin.Designer.cs
generated
Normal file
190
Source/Itrycn_Project/RegSoft/frmLogin.Designer.cs
generated
Normal file
|
@ -0,0 +1,190 @@
|
|||
namespace Itrycn
|
||||
{
|
||||
partial class FrmLogin
|
||||
{
|
||||
/// <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.txtUserId = new ryControls.TextBoxEx2();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtPwd = new ryControls.TextBoxEx2();
|
||||
this.btnLogin = new ryControls.ButtonEx();
|
||||
this.btnCancel = new ryControls.ButtonEx();
|
||||
this.pnlTopLogo = new System.Windows.Forms.Panel();
|
||||
this.lblTitle = new System.Windows.Forms.Label();
|
||||
this.chkRememberUserId = new System.Windows.Forms.CheckBox();
|
||||
this.chkAutoLogin = new System.Windows.Forms.CheckBox();
|
||||
this.pnlTopLogo.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtUserId
|
||||
//
|
||||
this.txtUserId.BackColor = System.Drawing.Color.White;
|
||||
this.txtUserId.Location = new System.Drawing.Point(97, 103);
|
||||
this.txtUserId.Name = "txtUserId";
|
||||
this.txtUserId.PasswordChar = '\0';
|
||||
this.txtUserId.ReadOnly = false;
|
||||
this.txtUserId.SelectionLength = 0;
|
||||
this.txtUserId.SelectionStart = 0;
|
||||
this.txtUserId.Size = new System.Drawing.Size(209, 25);
|
||||
this.txtUserId.TabIndex = 0;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(50, 111);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "用户ID";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(50, 142);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(29, 12);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "密码";
|
||||
//
|
||||
// txtPwd
|
||||
//
|
||||
this.txtPwd.BackColor = System.Drawing.Color.White;
|
||||
this.txtPwd.Location = new System.Drawing.Point(97, 134);
|
||||
this.txtPwd.Name = "txtPwd";
|
||||
this.txtPwd.PasswordChar = '*';
|
||||
this.txtPwd.ReadOnly = false;
|
||||
this.txtPwd.SelectionLength = 0;
|
||||
this.txtPwd.SelectionStart = 0;
|
||||
this.txtPwd.Size = new System.Drawing.Size(209, 25);
|
||||
this.txtPwd.TabIndex = 1;
|
||||
this.txtPwd.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TxtPwd_KeyDown);
|
||||
//
|
||||
// btnLogin
|
||||
//
|
||||
this.btnLogin.ForeColor = System.Drawing.Color.White;
|
||||
this.btnLogin.Location = new System.Drawing.Point(171, 197);
|
||||
this.btnLogin.Name = "btnLogin";
|
||||
this.btnLogin.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnLogin.TabIndex = 2;
|
||||
this.btnLogin.Text = "登陆";
|
||||
this.btnLogin.UseVisualStyleBackColor = true;
|
||||
this.btnLogin.Click += new System.EventHandler(this.BtnLogin_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnCancel.Location = new System.Drawing.Point(242, 197);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnCancel.TabIndex = 3;
|
||||
this.btnCancel.Text = "取消";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
|
||||
//
|
||||
// pnlTopLogo
|
||||
//
|
||||
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
|
||||
this.pnlTopLogo.Controls.Add(this.lblTitle);
|
||||
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTopLogo.Name = "pnlTopLogo";
|
||||
this.pnlTopLogo.Size = new System.Drawing.Size(377, 59);
|
||||
this.pnlTopLogo.TabIndex = 7;
|
||||
//
|
||||
// lblTitle
|
||||
//
|
||||
this.lblTitle.AutoSize = true;
|
||||
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTitle.Location = new System.Drawing.Point(12, 22);
|
||||
this.lblTitle.Name = "lblTitle";
|
||||
this.lblTitle.Size = new System.Drawing.Size(110, 16);
|
||||
this.lblTitle.TabIndex = 0;
|
||||
this.lblTitle.Text = "睿元管理系统";
|
||||
//
|
||||
// chkRememberUserId
|
||||
//
|
||||
this.chkRememberUserId.AutoSize = true;
|
||||
this.chkRememberUserId.Location = new System.Drawing.Point(97, 165);
|
||||
this.chkRememberUserId.Name = "chkRememberUserId";
|
||||
this.chkRememberUserId.Size = new System.Drawing.Size(84, 16);
|
||||
this.chkRememberUserId.TabIndex = 8;
|
||||
this.chkRememberUserId.Text = "记住用户ID";
|
||||
this.chkRememberUserId.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkAutoLogin
|
||||
//
|
||||
this.chkAutoLogin.AutoSize = true;
|
||||
this.chkAutoLogin.Location = new System.Drawing.Point(202, 165);
|
||||
this.chkAutoLogin.Name = "chkAutoLogin";
|
||||
this.chkAutoLogin.Size = new System.Drawing.Size(72, 16);
|
||||
this.chkAutoLogin.TabIndex = 9;
|
||||
this.chkAutoLogin.Text = "自动登陆";
|
||||
this.chkAutoLogin.UseVisualStyleBackColor = true;
|
||||
this.chkAutoLogin.CheckedChanged += new System.EventHandler(this.ChkAutoLogin_CheckedChanged);
|
||||
//
|
||||
// FrmLogin
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(377, 247);
|
||||
this.Controls.Add(this.chkAutoLogin);
|
||||
this.Controls.Add(this.chkRememberUserId);
|
||||
this.Controls.Add(this.pnlTopLogo);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnLogin);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.txtPwd);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.txtUserId);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Name = "FrmLogin";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "登陆";
|
||||
this.Load += new System.EventHandler(this.FrmLogin_Load);
|
||||
this.pnlTopLogo.ResumeLayout(false);
|
||||
this.pnlTopLogo.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ryControls.TextBoxEx2 txtUserId;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private ryControls.TextBoxEx2 txtPwd;
|
||||
private ryControls.ButtonEx btnLogin;
|
||||
private ryControls.ButtonEx btnCancel;
|
||||
private System.Windows.Forms.Panel pnlTopLogo;
|
||||
private System.Windows.Forms.Label lblTitle;
|
||||
private System.Windows.Forms.CheckBox chkRememberUserId;
|
||||
private System.Windows.Forms.CheckBox chkAutoLogin;
|
||||
}
|
||||
}
|
119
Source/Itrycn_Project/RegSoft/frmLogin.cs
Normal file
119
Source/Itrycn_Project/RegSoft/frmLogin.cs
Normal file
|
@ -0,0 +1,119 @@
|
|||
using Itrycn_Project;
|
||||
using ryCommon;
|
||||
using RyHardWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn
|
||||
{
|
||||
public partial class FrmLogin : Form
|
||||
{
|
||||
public delegate void LoginHandler(object sender,out bool LoginSuccess);
|
||||
[Description("点击登录按钮时激发")]
|
||||
public event LoginHandler OnLoginClick;
|
||||
public FrmLogin()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
private void BtnLogin_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtUserId.Enabled = false;
|
||||
txtPwd.Enabled = false;
|
||||
btnLogin.Enabled = false;
|
||||
LoginPram.UserId = txtUserId.Text;
|
||||
LoginPram.Pwd = txtPwd.Text;
|
||||
bool LoginSuccess = false;
|
||||
OnLoginClick?.Invoke(this,out LoginSuccess);
|
||||
txtUserId.Enabled = true;
|
||||
txtPwd.Enabled = true;
|
||||
btnLogin.Enabled = true;
|
||||
if (LoginSuccess)
|
||||
{
|
||||
#region 登录成功
|
||||
ryCommon.Ini ryIni = new Ini(Itrycn_Info.UserDataFolder + "\\Setting.dat");
|
||||
if (chkAutoLogin.Checked || chkRememberUserId.Checked)
|
||||
{
|
||||
ryIni.WriteIni("User", "id", LoginPram.UserId);
|
||||
if (chkAutoLogin.Checked)
|
||||
{
|
||||
LoginPram.isAutoLogin = 2;
|
||||
ryIni.WriteIni("User", "pwd", rySafe.AES.Encode("121" + LoginPram.Pwd, RyHardWare.Network.GetMacs() + "|" + LoginPram.UserId));
|
||||
}
|
||||
else
|
||||
{
|
||||
LoginPram.isAutoLogin = 1;
|
||||
ryIni.DelKey("User", "pwd");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ryIni.DelKey("User", "id");
|
||||
LoginPram.isAutoLogin = 0;
|
||||
}
|
||||
#endregion
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
}
|
||||
|
||||
private void TxtPwd_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if(e.KeyCode==Keys.Enter)
|
||||
{
|
||||
btnLogin.PerformClick();
|
||||
}
|
||||
}
|
||||
|
||||
private void FrmLogin_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblTitle.Text = Itrycn_Info.Soft_Title;
|
||||
if (System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(Itrycn_Info.UserDataFolder)))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(Itrycn_Info.UserDataFolder);
|
||||
}
|
||||
ryCommon.Ini ryIni = new Ini(Itrycn_Info.UserDataFolder + "\\Setting.dat");
|
||||
txtUserId.Text=ryIni.ReadIni("User", "id", LoginPram.UserId);
|
||||
if(txtUserId.Text!="")
|
||||
{ chkRememberUserId.Checked = true; }
|
||||
string pwd = rySafe.AES.Decode(ryIni.ReadIni("User", "pwd", ""), Network.GetMacs() + "|" + txtUserId.Text);
|
||||
if (pwd.IndexOf("121") == 0) { pwd = pwd.Substring(3); } else { pwd = ""; }
|
||||
txtPwd.Text = pwd;
|
||||
if (pwd != "")
|
||||
{
|
||||
chkAutoLogin.Checked = true;
|
||||
txtUserId.Enabled = false;
|
||||
txtPwd.Enabled = false;
|
||||
btnLogin.PerformClick();
|
||||
btnLogin.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
txtUserId.SelectionLength = 0;
|
||||
txtUserId.SelectionStart = 0;
|
||||
txtPwd.Select();
|
||||
}
|
||||
}
|
||||
|
||||
private void ChkAutoLogin_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkAutoLogin.Checked) { chkRememberUserId.Checked = true; }
|
||||
}
|
||||
}
|
||||
public class LoginPram
|
||||
{
|
||||
public static string UserId = "";
|
||||
public static string Pwd = "";
|
||||
public static int isAutoLogin = 0;
|
||||
}
|
||||
}
|
120
Source/Itrycn_Project/RegSoft/frmLogin.resx
Normal file
120
Source/Itrycn_Project/RegSoft/frmLogin.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
Source/Itrycn_Project/Resources/closetree.png
Normal file
BIN
Source/Itrycn_Project/Resources/closetree.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
Source/Itrycn_Project/Resources/opentree.png
Normal file
BIN
Source/Itrycn_Project/Resources/opentree.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
62
Source/Itrycn_Project/clsForm.cs
Normal file
62
Source/Itrycn_Project/clsForm.cs
Normal file
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn
|
||||
{
|
||||
public static class MDIClientSupport
|
||||
{
|
||||
[DllImport("user32.dll")]
|
||||
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);
|
||||
[DllImport("user32.dll")]
|
||||
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
|
||||
[DllImport("user32.dll", ExactSpelling = true)]
|
||||
private static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
|
||||
private const int GWL_EXSTYLE = -20;
|
||||
private const int WS_EX_CLIENTEDGE = 0x200;
|
||||
private const uint SWP_NOSIZE = 0x0001;
|
||||
private const uint SWP_NOMOVE = 0x0002;
|
||||
private const uint SWP_NOZORDER = 0x0004;
|
||||
private const uint SWP_NOREDRAW = 0x0008;
|
||||
private const uint SWP_NOACTIVATE = 0x0010;
|
||||
private const uint SWP_FRAMECHANGED = 0x0020;
|
||||
private const uint SWP_SHOWWINDOW = 0x0040;
|
||||
private const uint SWP_HIDEWINDOW = 0x0080;
|
||||
private const uint SWP_NOCOPYBITS = 0x0100;
|
||||
private const uint SWP_NOOWNERZORDER = 0x0200;
|
||||
private const uint SWP_NOSENDCHANGING = 0x0400;
|
||||
public static bool SetBevel(this Form form, bool show)
|
||||
{
|
||||
foreach (Control c in form.Controls)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
case MdiClient client:
|
||||
if (client != null)
|
||||
{
|
||||
int windowLong = GetWindowLong(c.Handle, GWL_EXSTYLE);
|
||||
if (show)
|
||||
{
|
||||
windowLong |= WS_EX_CLIENTEDGE;
|
||||
}
|
||||
else
|
||||
{
|
||||
windowLong &= ~WS_EX_CLIENTEDGE;
|
||||
}
|
||||
SetWindowLong(c.Handle, GWL_EXSTYLE, windowLong);
|
||||
// Update the non-client area.
|
||||
SetWindowPos(client.Handle, IntPtr.Zero, 0, 0, 0, 0,
|
||||
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER |
|
||||
SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
140
Source/Itrycn_Project/frmSetting.Designer.cs
generated
Normal file
140
Source/Itrycn_Project/frmSetting.Designer.cs
generated
Normal file
|
@ -0,0 +1,140 @@
|
|||
namespace Itrycn_Project
|
||||
{
|
||||
partial class FrmSetting
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSetting));
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.chkAutoLogin = new System.Windows.Forms.CheckBox();
|
||||
this.btnCancel = new ryControls.ButtonEx();
|
||||
this.btnOK = new ryControls.ButtonEx();
|
||||
this.ChkAutoRun = new System.Windows.Forms.CheckBox();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tabControl1.Controls.Add(this.tabPage1);
|
||||
this.tabControl1.Location = new System.Drawing.Point(2, 3);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(628, 430);
|
||||
this.tabControl1.TabIndex = 0;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.ChkAutoRun);
|
||||
this.tabPage1.Controls.Add(this.chkAutoLogin);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(620, 404);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "普通";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkAutoLogin
|
||||
//
|
||||
this.chkAutoLogin.AutoSize = true;
|
||||
this.chkAutoLogin.Location = new System.Drawing.Point(13, 12);
|
||||
this.chkAutoLogin.Name = "chkAutoLogin";
|
||||
this.chkAutoLogin.Size = new System.Drawing.Size(264, 16);
|
||||
this.chkAutoLogin.TabIndex = 0;
|
||||
this.chkAutoLogin.Text = "下次启动软件进行自动登陆(重启软件后生效)";
|
||||
this.chkAutoLogin.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnCancel.Location = new System.Drawing.Point(541, 443);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(79, 30);
|
||||
this.btnCancel.TabIndex = 22;
|
||||
this.btnCancel.Text = "取消";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOK.ForeColor = System.Drawing.Color.White;
|
||||
this.btnOK.Location = new System.Drawing.Point(456, 443);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(79, 30);
|
||||
this.btnOK.TabIndex = 21;
|
||||
this.btnOK.Text = "保存";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.BtnOK_Click);
|
||||
//
|
||||
// ChkAutoRun
|
||||
//
|
||||
this.ChkAutoRun.AutoSize = true;
|
||||
this.ChkAutoRun.Location = new System.Drawing.Point(13, 34);
|
||||
this.ChkAutoRun.Name = "ChkAutoRun";
|
||||
this.ChkAutoRun.Size = new System.Drawing.Size(108, 16);
|
||||
this.ChkAutoRun.TabIndex = 1;
|
||||
this.ChkAutoRun.Text = "开机时启动软件";
|
||||
this.ChkAutoRun.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// FrmSetting
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(630, 485);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FrmSetting";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "设置";
|
||||
this.Load += new System.EventHandler(this.FrmSetting_Load);
|
||||
this.Resize += new System.EventHandler(this.FrmSetting_Resize);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.CheckBox chkAutoLogin;
|
||||
private ryControls.ButtonEx btnCancel;
|
||||
private ryControls.ButtonEx btnOK;
|
||||
private System.Windows.Forms.CheckBox ChkAutoRun;
|
||||
}
|
||||
}
|
46
Source/Itrycn_Project/frmSetting.cs
Normal file
46
Source/Itrycn_Project/frmSetting.cs
Normal file
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
public partial class FrmSetting : Form
|
||||
{
|
||||
public FrmSetting()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void FrmSetting_Resize(object sender, EventArgs e)
|
||||
{
|
||||
tabControl1.Refresh();
|
||||
}
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void BtnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
mySetting.Save();
|
||||
ryCommon.RyRegedit.RegRoot = Microsoft.Win32.RegistryHive.CurrentUser;
|
||||
ryCommon.RyRegedit.SetAutoRun(ChkAutoRun.Checked, Itrycn_Info.Soft_Id, "\"" + Application.ExecutablePath + "\" "+ Itrycn_Info.Soft_Pram);
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
ryControls.RySetting mySetting = new ryControls.RySetting();
|
||||
private void FrmSetting_Load(object sender, EventArgs e)
|
||||
{
|
||||
mySetting.FilePath = Itrycn_Info.UserDataFolder + "\\Setting.xml";
|
||||
mySetting.Add("AutoLogin", chkAutoLogin,false);
|
||||
mySetting.Read();
|
||||
ryCommon.RyRegedit.RegRoot = Microsoft.Win32.RegistryHive.CurrentUser;
|
||||
ChkAutoRun.Checked = ryCommon.RyRegedit.IsAutoRun(Itrycn_Info.Soft_Id, "\"" + Application.ExecutablePath + "\" "+ Itrycn_Info.Soft_Pram);
|
||||
}
|
||||
}
|
||||
}
|
197
Source/Itrycn_Project/frmSetting.resx
Normal file
197
Source/Itrycn_Project/frmSetting.resx
Normal file
|
@ -0,0 +1,197 @@
|
|||
<?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.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALu+nQCUlIQAfXx1WoaF
|
||||
eteGhXrXhoV614WEetN7enNGh4d7AHNxbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdFjcAHRY3AB0WNwAdFjcAHRY3AAAAAAA4MkgAZGFlAFpX
|
||||
XguNjH+2lZWE/5WVhP+VlYT/lZWE/4uKfZ8pIj8EVFFbACkjPwAAAAAAHRY3AB0WNwAdFjcAHRY3AB0W
|
||||
NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHRY3AJiYhgB2dXAAkZCBAGZkZgAzLkUAFQ0yABQM
|
||||
MQCoqZAAf352WpOTg/eVlYT/lZWE/5WVhP+VlYT/kpGC7nt5c0WQkIEAAAAAAA8ILgAyLEUAaWZoAIWE
|
||||
egBhXmIAY2BkAB0WNwAAAAAAAAAAAAAAAAAAAAAAAAAAAB0WNwCkpY4AeHZxAGNgZBlzcW5XYV5iKCAZ
|
||||
OQj///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X/r62e/6akk/+mpJP/pqST/6akk/+mpJP/pqST86WjkmyioJAEpqOTAKSikgCal4sApaOSAJ6c
|
||||
jgCZlooSpKKSzqakk/+mpJP/pqST/6akk/+mpJP/p6WU/7SzpP/Cwrb/w8O3/7q6seq0s6vRtLSs1Ly8
|
||||
su/ExLj/wcG0/7GvoP+mpJP/pqST/6akk/+mpJP/pqST/6akk/+joZGrj4yEBKGfkAClo5IAjYuCAAAA
|
||||
AAAdFjcAgHx5AIJ/ewuioJDEpqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/66snP+6uav/wcCz/8PD
|
||||
tv/Dw7b/wMCz/7i3qf+sqpr/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6Cdj5f//+8AAAAOAAAA
|
||||
AAAAAAAAAAAAAB0WNwCLiIEAioeAHaKgkdumpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
|
||||
lP+pqJf/rKqa/6yqmv+pp5f/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/oJ6Ptmhk
|
||||
agdtaW0AHRY3AAAAAAAAAAAA/P3NAKOhkQCTkIZLpKKS96akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
|
||||
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
|
||||
k/+ioJDhiYZ/Jo6LgwAdFjcAAAAAAAAAAABhXGUA////AJyajJOmpJP/pqST/6akk/+mpJP/pqST/6ak
|
||||
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
|
||||
k/+mpJP/pqST/6Wjkv6YlopdqKaUAB0WNwAAAAAAAAAAAIB9egDS0rEApKKSUqakk+empJP/pqST/6ak
|
||||
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
|
||||
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AAAABgAAAAYAA
|
||||
AAGAAAABgAAAAcAAAAPgAAAH8AAAD//AB/8=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
542
Source/Itrycn_Project/frmmain.Designer.cs
generated
Normal file
542
Source/Itrycn_Project/frmmain.Designer.cs
generated
Normal file
|
@ -0,0 +1,542 @@
|
|||
namespace Itrycn
|
||||
{
|
||||
partial class Frmmain
|
||||
{
|
||||
/// <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.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("系统");
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frmmain));
|
||||
this.pnlTopLogo = new System.Windows.Forms.Panel();
|
||||
this.lblTitle = new System.Windows.Forms.Label();
|
||||
this.pnlLeft = new System.Windows.Forms.Panel();
|
||||
this.picExpand = new System.Windows.Forms.PictureBox();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.treeView1 = new System.Windows.Forms.TreeView();
|
||||
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
||||
this.pnlMenu = new System.Windows.Forms.Panel();
|
||||
this.superColor1 = new ryControls.SuperColor();
|
||||
this.BtnAbout = new System.Windows.Forms.Button();
|
||||
this.btnSetting = new System.Windows.Forms.Button();
|
||||
this.menuHomeUrl = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.搜索ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.方法ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.是ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.MenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.显示主界面ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.chromeTabControl1 = new ryControls.ChromeTabControl();
|
||||
this.tabPage7 = new System.Windows.Forms.TabPage();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tabPage8 = new System.Windows.Forms.TabPage();
|
||||
this.chinaCalendar1 = new ryControls.ChinaCalendar();
|
||||
this.tabControlEx1 = new ryControls.TabControlEx();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage3 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage4 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage5 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage6 = new System.Windows.Forms.TabPage();
|
||||
this.lableX1 = new ryControls.Controls.LableX();
|
||||
this.pnlTopLogo.SuspendLayout();
|
||||
this.pnlLeft.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picExpand)).BeginInit();
|
||||
this.pnlMenu.SuspendLayout();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.MenuTray.SuspendLayout();
|
||||
this.chromeTabControl1.SuspendLayout();
|
||||
this.tabPage7.SuspendLayout();
|
||||
this.tabControlEx1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pnlTopLogo
|
||||
//
|
||||
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
|
||||
this.pnlTopLogo.Controls.Add(this.lblTitle);
|
||||
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTopLogo.Name = "pnlTopLogo";
|
||||
this.pnlTopLogo.Size = new System.Drawing.Size(1393, 59);
|
||||
this.pnlTopLogo.TabIndex = 6;
|
||||
//
|
||||
// lblTitle
|
||||
//
|
||||
this.lblTitle.AutoSize = true;
|
||||
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTitle.Location = new System.Drawing.Point(25, 21);
|
||||
this.lblTitle.Name = "lblTitle";
|
||||
this.lblTitle.Size = new System.Drawing.Size(110, 16);
|
||||
this.lblTitle.TabIndex = 0;
|
||||
this.lblTitle.Text = "睿元管理系统";
|
||||
//
|
||||
// pnlLeft
|
||||
//
|
||||
this.pnlLeft.Controls.Add(this.picExpand);
|
||||
this.pnlLeft.Controls.Add(this.panel3);
|
||||
this.pnlLeft.Controls.Add(this.treeView1);
|
||||
this.pnlLeft.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pnlLeft.Location = new System.Drawing.Point(0, 89);
|
||||
this.pnlLeft.Name = "pnlLeft";
|
||||
this.pnlLeft.Size = new System.Drawing.Size(200, 714);
|
||||
this.pnlLeft.TabIndex = 8;
|
||||
//
|
||||
// picExpand
|
||||
//
|
||||
this.picExpand.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.picExpand.Image = global::Itrycn_Project.Properties.Resources.closetree;
|
||||
this.picExpand.Location = new System.Drawing.Point(187, 247);
|
||||
this.picExpand.Name = "picExpand";
|
||||
this.picExpand.Size = new System.Drawing.Size(10, 49);
|
||||
this.picExpand.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.picExpand.TabIndex = 8;
|
||||
this.picExpand.TabStop = false;
|
||||
this.picExpand.Click += new System.EventHandler(this.PicExpand_Click);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 697);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(200, 17);
|
||||
this.panel3.TabIndex = 7;
|
||||
//
|
||||
// treeView1
|
||||
//
|
||||
this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.treeView1.BackColor = System.Drawing.Color.White;
|
||||
this.treeView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.treeView1.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.treeView1.ForeColor = System.Drawing.Color.Black;
|
||||
this.treeView1.FullRowSelect = true;
|
||||
this.treeView1.HideSelection = false;
|
||||
this.treeView1.ImageIndex = 5;
|
||||
this.treeView1.ImageList = this.imageList1;
|
||||
this.treeView1.ItemHeight = 20;
|
||||
this.treeView1.LineColor = System.Drawing.Color.Silver;
|
||||
this.treeView1.Location = new System.Drawing.Point(3, 6);
|
||||
this.treeView1.Name = "treeView1";
|
||||
treeNode2.ImageKey = "system.png";
|
||||
treeNode2.Name = "节点0";
|
||||
treeNode2.Text = "系统";
|
||||
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode2});
|
||||
this.treeView1.SelectedImageIndex = 5;
|
||||
this.treeView1.ShowNodeToolTips = true;
|
||||
this.treeView1.Size = new System.Drawing.Size(181, 684);
|
||||
this.treeView1.TabIndex = 3;
|
||||
this.treeView1.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.TreeView1_BeforeSelect);
|
||||
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeView1_AfterSelect);
|
||||
//
|
||||
// imageList1
|
||||
//
|
||||
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
|
||||
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "news.png");
|
||||
this.imageList1.Images.SetKeyName(1, "help.png");
|
||||
this.imageList1.Images.SetKeyName(2, "system.png");
|
||||
this.imageList1.Images.SetKeyName(3, "type.png");
|
||||
this.imageList1.Images.SetKeyName(4, "item.png");
|
||||
this.imageList1.Images.SetKeyName(5, "selected.png");
|
||||
//
|
||||
// pnlMenu
|
||||
//
|
||||
this.pnlMenu.Controls.Add(this.superColor1);
|
||||
this.pnlMenu.Controls.Add(this.BtnAbout);
|
||||
this.pnlMenu.Controls.Add(this.btnSetting);
|
||||
this.pnlMenu.Controls.Add(this.menuHomeUrl);
|
||||
this.pnlMenu.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlMenu.Location = new System.Drawing.Point(0, 59);
|
||||
this.pnlMenu.Name = "pnlMenu";
|
||||
this.pnlMenu.Size = new System.Drawing.Size(1393, 30);
|
||||
this.pnlMenu.TabIndex = 9;
|
||||
//
|
||||
// superColor1
|
||||
//
|
||||
this.superColor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.superColor1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.superColor1.Location = new System.Drawing.Point(307, 6);
|
||||
this.superColor1.Name = "superColor1";
|
||||
this.superColor1.Size = new System.Drawing.Size(73, 22);
|
||||
this.superColor1.TabIndex = 16;
|
||||
//
|
||||
// BtnAbout
|
||||
//
|
||||
this.BtnAbout.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||
this.BtnAbout.FlatAppearance.BorderSize = 0;
|
||||
this.BtnAbout.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(102)))), ((int)(((byte)(153)))));
|
||||
this.BtnAbout.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.BtnAbout.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.BtnAbout.Location = new System.Drawing.Point(154, 6);
|
||||
this.BtnAbout.Name = "BtnAbout";
|
||||
this.BtnAbout.Size = new System.Drawing.Size(68, 20);
|
||||
this.BtnAbout.TabIndex = 15;
|
||||
this.BtnAbout.Text = "关于";
|
||||
this.BtnAbout.UseVisualStyleBackColor = true;
|
||||
this.BtnAbout.Click += new System.EventHandler(this.BtnAbout_Click);
|
||||
//
|
||||
// btnSetting
|
||||
//
|
||||
this.btnSetting.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||
this.btnSetting.FlatAppearance.BorderSize = 0;
|
||||
this.btnSetting.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(102)))), ((int)(((byte)(153)))));
|
||||
this.btnSetting.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSetting.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.btnSetting.Location = new System.Drawing.Point(79, 6);
|
||||
this.btnSetting.Name = "btnSetting";
|
||||
this.btnSetting.Size = new System.Drawing.Size(68, 20);
|
||||
this.btnSetting.TabIndex = 14;
|
||||
this.btnSetting.Text = "软件设置";
|
||||
this.btnSetting.UseVisualStyleBackColor = true;
|
||||
this.btnSetting.Click += new System.EventHandler(this.BtnSetting_Click);
|
||||
//
|
||||
// menuHomeUrl
|
||||
//
|
||||
this.menuHomeUrl.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||
this.menuHomeUrl.FlatAppearance.BorderSize = 0;
|
||||
this.menuHomeUrl.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(102)))), ((int)(((byte)(153)))));
|
||||
this.menuHomeUrl.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.menuHomeUrl.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.menuHomeUrl.Location = new System.Drawing.Point(4, 6);
|
||||
this.menuHomeUrl.Name = "menuHomeUrl";
|
||||
this.menuHomeUrl.Size = new System.Drawing.Size(68, 20);
|
||||
this.menuHomeUrl.TabIndex = 13;
|
||||
this.menuHomeUrl.Text = "访问官网";
|
||||
this.menuHomeUrl.UseVisualStyleBackColor = true;
|
||||
this.menuHomeUrl.Click += new System.EventHandler(this.MenuHomeUrl_Click);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel1.Location = new System.Drawing.Point(200, 786);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1193, 17);
|
||||
this.panel1.TabIndex = 10;
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 1000;
|
||||
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.搜索ToolStripMenuItem,
|
||||
this.方法ToolStripMenuItem,
|
||||
this.是ToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(101, 70);
|
||||
//
|
||||
// 搜索ToolStripMenuItem
|
||||
//
|
||||
this.搜索ToolStripMenuItem.Name = "搜索ToolStripMenuItem";
|
||||
this.搜索ToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
|
||||
this.搜索ToolStripMenuItem.Text = "搜索";
|
||||
//
|
||||
// 方法ToolStripMenuItem
|
||||
//
|
||||
this.方法ToolStripMenuItem.Name = "方法ToolStripMenuItem";
|
||||
this.方法ToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
|
||||
this.方法ToolStripMenuItem.Text = "方法";
|
||||
//
|
||||
// 是ToolStripMenuItem
|
||||
//
|
||||
this.是ToolStripMenuItem.Name = "是ToolStripMenuItem";
|
||||
this.是ToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
|
||||
this.是ToolStripMenuItem.Text = "是";
|
||||
//
|
||||
// notifyIcon1
|
||||
//
|
||||
this.notifyIcon1.ContextMenuStrip = this.MenuTray;
|
||||
this.notifyIcon1.Visible = true;
|
||||
//
|
||||
// MenuTray
|
||||
//
|
||||
this.MenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.显示主界面ToolStripMenuItem,
|
||||
this.退出ToolStripMenuItem});
|
||||
this.MenuTray.Name = "MenuTray";
|
||||
this.MenuTray.Size = new System.Drawing.Size(137, 48);
|
||||
//
|
||||
// 显示主界面ToolStripMenuItem
|
||||
//
|
||||
this.显示主界面ToolStripMenuItem.Name = "显示主界面ToolStripMenuItem";
|
||||
this.显示主界面ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||
this.显示主界面ToolStripMenuItem.Text = "显示主界面";
|
||||
this.显示主界面ToolStripMenuItem.Click += new System.EventHandler(this.显示主界面ToolStripMenuItem_Click);
|
||||
//
|
||||
// 退出ToolStripMenuItem
|
||||
//
|
||||
this.退出ToolStripMenuItem.Name = "退出ToolStripMenuItem";
|
||||
this.退出ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||
this.退出ToolStripMenuItem.Text = "退出";
|
||||
this.退出ToolStripMenuItem.Click += new System.EventHandler(this.退出ToolStripMenuItem_Click);
|
||||
//
|
||||
// chromeTabControl1
|
||||
//
|
||||
this.chromeTabControl1.AllowDragTab = false;
|
||||
this.chromeTabControl1.BackTabPageImage = null;
|
||||
this.chromeTabControl1.Controls.Add(this.tabPage7);
|
||||
this.chromeTabControl1.Controls.Add(this.tabPage8);
|
||||
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
|
||||
this.chromeTabControl1.ImageList = this.imageList1;
|
||||
this.chromeTabControl1.ItemSize = new System.Drawing.Size(150, 25);
|
||||
this.chromeTabControl1.Location = new System.Drawing.Point(310, 110);
|
||||
this.chromeTabControl1.Name = "chromeTabControl1";
|
||||
this.chromeTabControl1.SelectedIndex = 0;
|
||||
this.chromeTabControl1.ShowAddButton = true;
|
||||
this.chromeTabControl1.ShowCloseButton = true;
|
||||
this.chromeTabControl1.Size = new System.Drawing.Size(521, 368);
|
||||
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
|
||||
this.chromeTabControl1.TabContextMenuStrip = null;
|
||||
this.chromeTabControl1.TabIndex = 14;
|
||||
this.chromeTabControl1.TabMaxWidth = 150;
|
||||
this.chromeTabControl1.TabOffColorEnd = System.Drawing.Color.Gainsboro;
|
||||
this.chromeTabControl1.TabOffColorStart = System.Drawing.Color.White;
|
||||
//
|
||||
// tabPage7
|
||||
//
|
||||
this.tabPage7.Controls.Add(this.lableX1);
|
||||
this.tabPage7.Controls.Add(this.label1);
|
||||
this.tabPage7.ImageIndex = 0;
|
||||
this.tabPage7.Location = new System.Drawing.Point(1, 29);
|
||||
this.tabPage7.Name = "tabPage7";
|
||||
this.tabPage7.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage7.Size = new System.Drawing.Size(519, 338);
|
||||
this.tabPage7.TabIndex = 0;
|
||||
this.tabPage7.Text = "这是一个好人的abv充电";
|
||||
this.tabPage7.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(160, 62);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "label1";
|
||||
//
|
||||
// tabPage8
|
||||
//
|
||||
this.tabPage8.Location = new System.Drawing.Point(1, 29);
|
||||
this.tabPage8.Name = "tabPage8";
|
||||
this.tabPage8.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage8.Size = new System.Drawing.Size(519, 338);
|
||||
this.tabPage8.TabIndex = 1;
|
||||
this.tabPage8.Text = "tabPage8";
|
||||
this.tabPage8.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chinaCalendar1
|
||||
//
|
||||
this.chinaCalendar1.BackColor = System.Drawing.Color.White;
|
||||
this.chinaCalendar1.DateTime = new System.DateTime(2019, 2, 9, 10, 54, 20, 495);
|
||||
this.chinaCalendar1.HolidayFolder = "E:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\SysDb\\" +
|
||||
"Holidays";
|
||||
this.chinaCalendar1.Location = new System.Drawing.Point(261, 133);
|
||||
this.chinaCalendar1.Name = "chinaCalendar1";
|
||||
this.chinaCalendar1.Size = new System.Drawing.Size(851, 509);
|
||||
this.chinaCalendar1.TabIndex = 12;
|
||||
//
|
||||
// tabControlEx1
|
||||
//
|
||||
this.tabControlEx1.Controls.Add(this.tabPage1);
|
||||
this.tabControlEx1.Controls.Add(this.tabPage3);
|
||||
this.tabControlEx1.Controls.Add(this.tabPage4);
|
||||
this.tabControlEx1.Controls.Add(this.tabPage2);
|
||||
this.tabControlEx1.Controls.Add(this.tabPage5);
|
||||
this.tabControlEx1.Controls.Add(this.tabPage6);
|
||||
this.tabControlEx1.ItemSize = new System.Drawing.Size(0, 1);
|
||||
this.tabControlEx1.Location = new System.Drawing.Point(200, 200);
|
||||
this.tabControlEx1.Name = "tabControlEx1";
|
||||
this.tabControlEx1.SelectedIndex = 0;
|
||||
this.tabControlEx1.Size = new System.Drawing.Size(400, 191);
|
||||
this.tabControlEx1.TabBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
|
||||
this.tabControlEx1.TabBackground = null;
|
||||
this.tabControlEx1.TabIndex = 77;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 5);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(392, 182);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Tag = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
//
|
||||
// tabPage3
|
||||
//
|
||||
this.tabPage3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
|
||||
this.tabPage3.Location = new System.Drawing.Point(4, 5);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage3.Size = new System.Drawing.Size(392, 182);
|
||||
this.tabPage3.TabIndex = 2;
|
||||
this.tabPage3.Tag = 0;
|
||||
this.tabPage3.Text = "tabPage3";
|
||||
//
|
||||
// tabPage4
|
||||
//
|
||||
this.tabPage4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
|
||||
this.tabPage4.Location = new System.Drawing.Point(4, 5);
|
||||
this.tabPage4.Name = "tabPage4";
|
||||
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage4.Size = new System.Drawing.Size(392, 182);
|
||||
this.tabPage4.TabIndex = 3;
|
||||
this.tabPage4.Tag = 0;
|
||||
this.tabPage4.Text = "tabPage4";
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 5);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(392, 182);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Tag = 0;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
//
|
||||
// tabPage5
|
||||
//
|
||||
this.tabPage5.Location = new System.Drawing.Point(4, 5);
|
||||
this.tabPage5.Name = "tabPage5";
|
||||
this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage5.Size = new System.Drawing.Size(392, 182);
|
||||
this.tabPage5.TabIndex = 4;
|
||||
this.tabPage5.Tag = 0;
|
||||
this.tabPage5.Text = "tabPage5";
|
||||
this.tabPage5.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage6
|
||||
//
|
||||
this.tabPage6.Location = new System.Drawing.Point(4, 5);
|
||||
this.tabPage6.Name = "tabPage6";
|
||||
this.tabPage6.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage6.Size = new System.Drawing.Size(392, 182);
|
||||
this.tabPage6.TabIndex = 5;
|
||||
this.tabPage6.Tag = 0;
|
||||
this.tabPage6.Text = "tabPage6";
|
||||
this.tabPage6.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lableX1
|
||||
//
|
||||
this.lableX1.AutoSize = true;
|
||||
this.lableX1.Location = new System.Drawing.Point(137, 141);
|
||||
this.lableX1.Name = "lableX1";
|
||||
this.lableX1.Size = new System.Drawing.Size(47, 12);
|
||||
this.lableX1.TabIndex = 1;
|
||||
this.lableX1.Text = "lableX1";
|
||||
this.lableX1.DoubleClick += new System.EventHandler(this.lableX1_DoubleClick);
|
||||
//
|
||||
// Frmmain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(1393, 803);
|
||||
this.Controls.Add(this.chromeTabControl1);
|
||||
this.Controls.Add(this.chinaCalendar1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.pnlLeft);
|
||||
this.Controls.Add(this.pnlMenu);
|
||||
this.Controls.Add(this.pnlTopLogo);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.IsMdiContainer = true;
|
||||
this.Name = "Frmmain";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "睿元管理系统";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Frmmain_FormClosing);
|
||||
this.Load += new System.EventHandler(this.Frmmain_Load);
|
||||
this.Shown += new System.EventHandler(this.Frmmain_Shown);
|
||||
this.Resize += new System.EventHandler(this.Frmmain_Resize);
|
||||
this.pnlTopLogo.ResumeLayout(false);
|
||||
this.pnlTopLogo.PerformLayout();
|
||||
this.pnlLeft.ResumeLayout(false);
|
||||
this.pnlLeft.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picExpand)).EndInit();
|
||||
this.pnlMenu.ResumeLayout(false);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.MenuTray.ResumeLayout(false);
|
||||
this.chromeTabControl1.ResumeLayout(false);
|
||||
this.tabPage7.ResumeLayout(false);
|
||||
this.tabPage7.PerformLayout();
|
||||
this.tabControlEx1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel pnlTopLogo;
|
||||
private System.Windows.Forms.Label lblTitle;
|
||||
private System.Windows.Forms.Panel pnlLeft;
|
||||
private System.Windows.Forms.PictureBox picExpand;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
public System.Windows.Forms.TreeView treeView1;
|
||||
private System.Windows.Forms.ImageList imageList1;
|
||||
private System.Windows.Forms.Panel pnlMenu;
|
||||
private System.Windows.Forms.Button menuHomeUrl;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Button btnSetting;
|
||||
private System.Windows.Forms.Timer timer1;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Button BtnAbout;
|
||||
private ryControls.TabControlEx tabControlEx1;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabPage tabPage3;
|
||||
private System.Windows.Forms.TabPage tabPage4;
|
||||
private System.Windows.Forms.TabPage tabPage5;
|
||||
private System.Windows.Forms.TabPage tabPage6;
|
||||
private ryControls.SuperColor superColor1;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 搜索ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 方法ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 是ToolStripMenuItem;
|
||||
private ryControls.ChinaCalendar chinaCalendar1;
|
||||
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
||||
private System.Windows.Forms.ContextMenuStrip MenuTray;
|
||||
private System.Windows.Forms.ToolStripMenuItem 显示主界面ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 退出ToolStripMenuItem;
|
||||
private ryControls.ChromeTabControl chromeTabControl1;
|
||||
private System.Windows.Forms.TabPage tabPage7;
|
||||
private System.Windows.Forms.TabPage tabPage8;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private ryControls.Controls.LableX lableX1;
|
||||
}
|
||||
}
|
||||
|
275
Source/Itrycn_Project/frmmain.cs
Normal file
275
Source/Itrycn_Project/frmmain.cs
Normal file
|
@ -0,0 +1,275 @@
|
|||
using Itrycn_Project;
|
||||
using ryCommon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn
|
||||
{
|
||||
public partial class Frmmain : Form
|
||||
{
|
||||
string[] prog_args;
|
||||
public Frmmain(string[] args)
|
||||
{
|
||||
InitializeComponent();
|
||||
prog_args = args;
|
||||
}
|
||||
public TreeNode AddToTreeView(TreeNode parent, Type id, string text, string imageKey)
|
||||
{
|
||||
return AddToTreeView(parent, id, text, imageKey, "");
|
||||
}
|
||||
public TreeNode AddToTreeView(TreeNode parent, Type id, string text, string imageKey, string ToolTipText)
|
||||
{
|
||||
TreeNode btn = new TreeNode()
|
||||
{
|
||||
SelectedImageKey = "selected.ico",
|
||||
ImageKey = imageKey,
|
||||
Text = text,
|
||||
Tag = id,
|
||||
ToolTipText = ToolTipText
|
||||
};
|
||||
parent.Nodes.Add(btn);
|
||||
return btn;
|
||||
}
|
||||
Dictionary<Type, Form> dict_form = new Dictionary<Type, Form>();
|
||||
/// <summary>
|
||||
/// 显示子窗体
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
public Form ShowForm(Type type)
|
||||
{
|
||||
if (this.ActiveMdiChild != null)
|
||||
{
|
||||
if (this.ActiveMdiChild.GetType() == type) { return this.ActiveMdiChild; }
|
||||
}
|
||||
if (dict_form.ContainsKey(type))
|
||||
{
|
||||
dict_form[type].Show();
|
||||
dict_form[type].BringToFront();
|
||||
return dict_form[type];
|
||||
}
|
||||
else
|
||||
{
|
||||
Form frm = (Form)Activator.CreateInstance(type);
|
||||
frm.Icon = Icon;
|
||||
frm.MdiParent = this;
|
||||
frm.BackColor = Color.White;
|
||||
frm.FormBorderStyle = FormBorderStyle.None;
|
||||
frm.Dock = DockStyle.Fill;//完全填充到应用程序
|
||||
//frm.WindowState = FormWindowState.Maximized;
|
||||
frm.Show();
|
||||
dict_form.Add(type, frm);
|
||||
return frm;
|
||||
}
|
||||
}
|
||||
DateTime dt_lastupdate = DateTime.Now;
|
||||
protected override void WndProc(ref System.Windows.Forms.Message msg)
|
||||
{
|
||||
switch (msg.Msg)
|
||||
{
|
||||
case 17189: //处理消息
|
||||
{
|
||||
#region 激活窗体
|
||||
switch (msg.WParam.ToInt32())
|
||||
{
|
||||
case 100://
|
||||
#region 显示界面
|
||||
if ((int)msg.LParam.ToInt32() == 100)
|
||||
{
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
|
||||
this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
|
||||
//RyForm.SetActiveWindow(Handle);
|
||||
RyForm.BringToTop(Handle);
|
||||
}
|
||||
#endregion
|
||||
break;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
break;
|
||||
default:
|
||||
base.WndProc(ref msg);//调用基类函数处理非自定义消息。
|
||||
break;
|
||||
}
|
||||
}
|
||||
SysFuns.WinHotReg winHotKey;
|
||||
private void WinHotKey_OnHotkey(int HotKeyID)
|
||||
{
|
||||
switch (HotKeyID)
|
||||
{
|
||||
case 101:
|
||||
MessageBox.Show("这是一个测试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void Frmmain_Load(object sender, EventArgs e)
|
||||
{
|
||||
ChinaDate.GetYear(2020,2,1);
|
||||
winHotKey = new SysFuns.WinHotReg(Handle);
|
||||
winHotKey.RegHotKey(101, SysFuns.KeyModifiers.Alt, Keys.F11);
|
||||
winHotKey.OnHotkey += WinHotKey_OnHotkey;
|
||||
string txt = RyFiles.ReadAllText(@"E:\我的代码\毕方项目\C#\当游自动同步系统\Bin\Debug\AutoCutCopy\del.txt");
|
||||
//System.Drawing.Imaging.ImageCodecInfo[] encoders = System.Drawing.Imaging.ImageCodecInfo.GetImageEncoders();
|
||||
//for (int j = 0; j < encoders.Length; ++j)
|
||||
//{
|
||||
// MessageBox.Show(encoders[j].MimeType);
|
||||
//}
|
||||
//ctMsgList1.AddItem("(" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ")", list);
|
||||
//ctMsgList1.AddItem("(" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ")", list);
|
||||
Itrycn_Info.OnLeftTreeAdd(this);
|
||||
//MessageBox.Show(ChinaDate.Get3Fu(2019, 2).ToString());
|
||||
//object mainHandle = ryCommon.Model.ryMemoryShare.ReadFromMemory(1024, typeof(string), "3H3BrowserHandle");
|
||||
//MessageBox.Show(mainHandle.ToString());
|
||||
isExpand = false;
|
||||
PicExpand_Click(picExpand,new EventArgs());
|
||||
Text = Itrycn_Info.Soft_Title+ " V" + ryCommon.RySoft.VersionStr;
|
||||
notifyIcon1.Icon = this.Icon;
|
||||
notifyIcon1.Text = Itrycn_Info.Soft_Title;
|
||||
lblTitle.Text = Itrycn_Info.Soft_Title;
|
||||
picExpand.Left = treeView1.Left + treeView1.Width + 1;
|
||||
pnlLeft.Width = picExpand.Left + picExpand.Width + 1;
|
||||
picExpand.Top = (pnlLeft.Height - picExpand.Height) / 2;
|
||||
treeView1.ExpandAll();
|
||||
this.SetBevel(false);
|
||||
dt_lastupdate = DateTime.Now;
|
||||
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Itrycn_Info.Update_Url);
|
||||
update.CheckUpdate();
|
||||
treeView1.SelectedNode = treeView1.Nodes[0].Nodes[0];
|
||||
foreach (Control ctl in this.Controls)
|
||||
{
|
||||
try
|
||||
{
|
||||
switch(ctl)
|
||||
{
|
||||
case MdiClient ctlMDI:
|
||||
ctlMDI.BackColor = this.BackColor;
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (InvalidCastException)
|
||||
{
|
||||
}
|
||||
}
|
||||
timer1.Enabled = true;
|
||||
}
|
||||
|
||||
bool isExpand = true;
|
||||
private void TreeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e)
|
||||
{
|
||||
if (e.Node.Tag == null) { e.Cancel = true; return; }
|
||||
if (!Itrycn_Info.isCanCloseForm) { e.Cancel = true; return; }
|
||||
}
|
||||
|
||||
private void TreeView1_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
{
|
||||
if (e.Node.Tag == null) { return; }
|
||||
Itrycn_Info.OnTreeClick(this, e);
|
||||
}
|
||||
|
||||
private void PicExpand_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (isExpand)
|
||||
{
|
||||
picExpand.Image = Itrycn_Project.Properties.Resources.opentree;
|
||||
toolTip1.SetToolTip(picExpand,"展开列表");
|
||||
treeView1.Visible = false;
|
||||
picExpand.Left = 0;
|
||||
pnlLeft.Width = picExpand.Width;
|
||||
}
|
||||
else
|
||||
{
|
||||
picExpand.Image = Itrycn_Project.Properties.Resources.closetree;
|
||||
toolTip1.SetToolTip(picExpand, "关闭列表");
|
||||
treeView1.Visible = true;
|
||||
picExpand.Left = treeView1.Left + treeView1.Width + 1;
|
||||
pnlLeft.Width = picExpand.Left + picExpand.Width + 1;
|
||||
}
|
||||
isExpand = !isExpand;
|
||||
}
|
||||
|
||||
private void Frmmain_Resize(object sender, EventArgs e)
|
||||
{
|
||||
picExpand.Top = (pnlLeft.Height - picExpand.Height) / 2;
|
||||
}
|
||||
private void MenuHomeUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
ryCommon.RyFiles.OpenUrl(Itrycn_Info.Soft_Url);
|
||||
}
|
||||
|
||||
private void BtnSetting_Click(object sender, EventArgs e)
|
||||
{
|
||||
FrmSetting frm = new FrmSetting();
|
||||
if(frm.ShowDialog()==DialogResult.OK)
|
||||
{
|
||||
Itrycn_Info.LoadSetting();
|
||||
}
|
||||
}
|
||||
|
||||
private void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (dt_lastupdate.AddMinutes(30) < DateTime.Now)
|
||||
{
|
||||
dt_lastupdate = DateTime.Now;
|
||||
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Itrycn_Info.Update_Url);
|
||||
update.CheckUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnAbout_Click(object sender, EventArgs e)
|
||||
{
|
||||
FrmAbout frm = new FrmAbout();
|
||||
frm.ShowDialog();
|
||||
}
|
||||
|
||||
private void Frmmain_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (!Itrycn_Info.isCanCloseForm)
|
||||
{
|
||||
e.Cancel = true;
|
||||
MessageBox.Show("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
|
||||
private void Frmmain_Shown(object sender, EventArgs e)
|
||||
{
|
||||
ryCommon.Ini ini = new Ini(Itrycn_Info.UserDataFolder + "\\Win.dat");
|
||||
ini.WriteIni(Itrycn_Info.Soft_Id, "hwnd", Handle.ToInt32());
|
||||
if (prog_args.Length >= 1)
|
||||
{
|
||||
if (prog_args[0] ==Itrycn_Info.Soft_Pram)
|
||||
this.Hide();
|
||||
}
|
||||
}
|
||||
|
||||
private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void 显示主界面ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
|
||||
this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
|
||||
RyForm.Show(this);
|
||||
}
|
||||
|
||||
private void buttonEx2_Click(object sender, EventArgs e)
|
||||
{
|
||||
ryControls.Skin.SkinCommon.ButtonSkin.BackColor = Color.Red;
|
||||
}
|
||||
|
||||
private void lableX1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("这是一个测试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
}
|
303
Source/Itrycn_Project/frmmain.resx
Normal file
303
Source/Itrycn_Project/frmmain.resx
Normal file
|
@ -0,0 +1,303 @@
|
|||
<?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="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="imageList1.ImageStream" mimetype="application/x-microso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WMBbwFfAW8BXwFv
|
||||
AV8BbwFfAW8BXwFvAV8BcAFfAbgBbwH/AX8KAAH/AXsB2QFOAZMBGQGzAR0B0wEhAbMBGQHTASEBkwEZ
|
||||
AjYBnQFvCAAB/wF/Af8BfwHeAXsBawEtARgBYwH/AX8B/wF/Af8BfwH/AX8B3gF7AWsBLQEYAWMB/wF/
|
||||
Af8BfwH/AX8EAAH/AX8B3QF7AVgBewETAXsB0AF+Aa8BfgGvAX4B0AF+ARMBewF4AXsB3QF7Af8BfwoA
|
||||
Af8BfwHdAXcBlwFrAXEBYwFvAV8BbwFfAXEBYwGXAWsB3QF7Af8BfxAAAb0BcwHYAU4B9AElAdQBIQFW
|
||||
AToBWwFnAf8Bfw4AAf8BfwGMATEBWgFrCgABawEtAVoBawYAAUIBTQE+BwABPgMAASgDAAFAAwABIAMA
|
||||
AQEBAAEBBgABARYAA/8BAAT/BAAB/AE/Af4BHwQAAfABBwH+AQ8EAAGAAQEB/wEHBgAB/wGDBgAB/wHB
|
||||
BAABBAEgBgABEAEIBgABAQGABgABBwHgAf8BwAQAAR8B+AH/AYEEAAEHAeAB/wEDBAABwAEDAf4BDwQA
|
||||
AfABDwH+AR8EAAH+AX8B/wE/BAAE/wQAAeABBwHgAQcB8AEHAgABwAEDAcABAwHAAQMCAAGAAQEBgAEB
|
||||
AcIBYQESAWwBgAEBAgABjgExBgABDwH4BgABHwH4ARIBTAQAAQcB4AYAAQcB4AYAAQcB4AESAUwDAAEg
|
||||
AR8B/AESAUwCAAEEASABHwH4BgABjgEwBgABhgEhAgABgAEBAYABAQHAAQMCAAGAAQEBwAEDAeABBwGA
|
||||
AQABwAEDAeABBwH4AQ8B4wHnCw==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>132, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>222, 17</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>323, 17</value>
|
||||
</metadata>
|
||||
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>488, 17</value>
|
||||
</metadata>
|
||||
<metadata name="MenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>606, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJQT8AX1hXAEQ7
|
||||
OAA/NjQAPDMwADgwLQA1LCkANy4sAEU7OA5RR0QqS0E+OD41MioyKScJMCclADctKwAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE9HRQBIPjwASkE+AEc9
|
||||
OgBFOzgAQTk2CD82MyI8MzBCOTAtXDUtKmg0LClsRjs4tlVKR+ROQ0DtPzUy5DMqKJUlHh0MKCEfAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAA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YBGBkZABUWFgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArLS0AISMjAE9RUQAAAAAGMTIyJDk7
|
||||
OzY+Pz8zNjc3IyUnJw01NzcAIiQkABscHAAdHx8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAA//AAD/+AAAf+AAAD/AAAA/gAAAH4AAAA8AAAAOAAAADgAAAA4AAAAOAA
|
||||
AADgAAAA4AAAAeAAAADwAAAA8AAAAPAAAADwAAAA+AAAA/gAAAf8AAAf/AAAP/wAB//4AAf/+AAH//gA
|
||||
B//wAAf/8AAH//AAB//wAAf/+AAH//4AD/8=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
63
Source/Itrycn_Project2/Config/Itrycn_Db.cs
Normal file
63
Source/Itrycn_Project2/Config/Itrycn_Db.cs
Normal file
|
@ -0,0 +1,63 @@
|
|||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using static ryCommonDb.DataProvider;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
public static class Itrycn_Db
|
||||
{
|
||||
public static string SQLConnStr = "<app>\\UserDb\\myDb.dat|";
|
||||
public static ryCommonDb.DataProvider.DataProviderType dataType = ryCommonDb.DataProvider.DataProviderType.SQLiteDataProvider;
|
||||
public static IDbInterface CreateDataProvider()
|
||||
{
|
||||
return CreateDataProvider(dataType);
|
||||
}
|
||||
|
||||
public static IDbInterface CreateDataProvider(DataProviderType dataProviderType)
|
||||
{
|
||||
switch (dataProviderType)
|
||||
{
|
||||
//case DataProviderType.OdbcDataProvider:
|
||||
// return new OdbcDataProvider();
|
||||
//case DataProviderType.OleDbDataProvider:
|
||||
// return new OleDbDataProvider();
|
||||
//case DataProviderType.OracleDataProvider:
|
||||
// return new OracleDataProvider();
|
||||
case DataProviderType.SQLiteDataProvider:
|
||||
return new SQLiteDataProvider();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
private static void CreateTable(ryCommonDb.DataProvider.DataProviderType dataType, string ConnStr)
|
||||
{
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = CreateDataProvider(dataType);
|
||||
if (db.ConnDb(ConnStr) == 1)
|
||||
{
|
||||
#region 表1
|
||||
RyQuickSQL mySQL = new RyQuickSQL("表1");
|
||||
mySQL.AddField("", "");
|
||||
mySQL.AddField("addTime", DateTime.Now);
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
//
|
||||
#region 表2
|
||||
mySQL.Clear();
|
||||
mySQL.TableName = "表2";
|
||||
mySQL.AddField("", "");
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
public static void CreateTable()
|
||||
{
|
||||
CreateTable(dataType, SQLConnStr);
|
||||
}
|
||||
}
|
||||
}
|
29
Source/Itrycn_Project2/Config/Soft_Config.cs
Normal file
29
Source/Itrycn_Project2/Config/Soft_Config.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置类,保存在运行期间会被改变的配置信息(本系统基于乘黄V2架构)
|
||||
/// </summary>
|
||||
public static class Soft_Config
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否能关闭窗体。
|
||||
/// </summary>
|
||||
public static bool IsCanCloseForm = true;
|
||||
/// <summary>
|
||||
/// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。
|
||||
/// </summary>
|
||||
public static bool HideByCloseBtn = true;
|
||||
public static void LoadSetting()
|
||||
{
|
||||
//ryCommon.Storage Stor = new Storage();
|
||||
//Stor.SelectNodeBySet();
|
||||
//LowCountTip = Stor.GetAttrValue("LowCountTip", true);
|
||||
//low_count = Stor.GetAttrValue("LowCount", 10);
|
||||
}
|
||||
}
|
||||
}
|
58
Source/Itrycn_Project2/Config/Soft_Info.cs
Normal file
58
Source/Itrycn_Project2/Config/Soft_Info.cs
Normal file
|
@ -0,0 +1,58 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using static ryCommonDb.DataProvider;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置类,保存在运行期间不会被改变的配置信息(本系统基于乘黄V2架构)
|
||||
/// </summary>
|
||||
public static class Soft_Info
|
||||
{
|
||||
/// <summary>
|
||||
/// 在线升级配置文件的url
|
||||
/// </summary>
|
||||
public const string Update_Url = "http://www.itrycn.com/update/ryWebMon4.xml";
|
||||
/// <summary>
|
||||
/// 软件标题
|
||||
/// </summary>
|
||||
public const string Soft_Title = "睿元管理系统";
|
||||
/// <summary>
|
||||
/// 软件ID
|
||||
/// </summary>
|
||||
public const string Soft_Id = "Money_Op";
|
||||
/// <summary>
|
||||
/// 开机启动的参数
|
||||
/// </summary>
|
||||
public const string Soft_Pram = "q";
|
||||
/// <summary>
|
||||
/// 官网地址
|
||||
/// </summary>
|
||||
public const string Soft_Url = "http://www.itrycn.com";
|
||||
/// <summary>
|
||||
/// 售后QQ群
|
||||
/// </summary>
|
||||
public const string QQ_Qun = "183161992";
|
||||
/// <summary>
|
||||
/// 关于界面内容.
|
||||
/// </summary>
|
||||
public const string AboutText = "#softname# #ver#";
|
||||
/// <summary>
|
||||
/// 用户文件夹,该相对路径设置,将在程序启动后转换
|
||||
/// </summary>
|
||||
public static string UserDataFolder = @"<app>\UserDb";
|
||||
/// <summary>
|
||||
/// 是否允许显示托盘图标
|
||||
/// </summary>
|
||||
public static bool ShowTray { get; } = true;
|
||||
/// <summary>
|
||||
/// 是否显示捐赠方式
|
||||
/// </summary>
|
||||
public static bool DonateVisabled { get; } = true;
|
||||
}
|
||||
}
|
106
Source/Itrycn_Project2/DbOp/FrmAdd.Designer.cs
generated
Normal file
106
Source/Itrycn_Project2/DbOp/FrmAdd.Designer.cs
generated
Normal file
|
@ -0,0 +1,106 @@
|
|||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
partial class FrmAdd
|
||||
{
|
||||
/// <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.btnCancel = new ryControls.ButtonEx();
|
||||
this.btnOK = new ryControls.ButtonEx();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtName = new ryControls.TextBoxEx2();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnCancel.Location = new System.Drawing.Point(363, 310);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnCancel.TabIndex = 5;
|
||||
this.btnCancel.Text = "取消";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOK.ForeColor = System.Drawing.Color.White;
|
||||
this.btnOK.Location = new System.Drawing.Point(292, 310);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnOK.TabIndex = 4;
|
||||
this.btnOK.Text = "确定";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.BtnOK_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(8, 20);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(29, 12);
|
||||
this.label1.TabIndex = 7;
|
||||
this.label1.Text = "名称";
|
||||
//
|
||||
// txtName
|
||||
//
|
||||
this.txtName.BackColor = System.Drawing.Color.White;
|
||||
this.txtName.Location = new System.Drawing.Point(55, 12);
|
||||
this.txtName.Name = "txtName";
|
||||
this.txtName.PasswordChar = '\0';
|
||||
this.txtName.ReadOnly = false;
|
||||
this.txtName.SelectionLength = 0;
|
||||
this.txtName.SelectionStart = 0;
|
||||
this.txtName.Size = new System.Drawing.Size(372, 25);
|
||||
this.txtName.TabIndex = 6;
|
||||
//
|
||||
// frmAdd
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(438, 347);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.txtName);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Name = "frmAdd";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "新增";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ryControls.ButtonEx btnCancel;
|
||||
private ryControls.ButtonEx btnOK;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private ryControls.TextBoxEx2 txtName;
|
||||
}
|
||||
}
|
79
Source/Itrycn_Project2/DbOp/FrmAdd.cs
Normal file
79
Source/Itrycn_Project2/DbOp/FrmAdd.cs
Normal file
|
@ -0,0 +1,79 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
public partial class FrmAdd : Form
|
||||
{
|
||||
public ModalForm mr = null;
|
||||
public string tableName = "MainTable1";
|
||||
public int isAdd = 1;
|
||||
public string selectId = "-1";
|
||||
public FrmAdd()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 需要修改
|
||||
public void GetInfo(string id)
|
||||
{
|
||||
selectId = id;
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData(tableName, id);
|
||||
if (mydb.HaveData(ds))
|
||||
{
|
||||
DataRow reader = ds.Tables[0].Rows[0];
|
||||
#region 读取信息
|
||||
txtName.Text = reader["Name"].ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
|
||||
private void BtnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (txtName.Text == "")
|
||||
{
|
||||
MessageBox.Show("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
RyQuickSQL mySQL = new RyQuickSQL(tableName);
|
||||
mySQL.AddField("name", txtName.Text);
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
if (isAdd >= 1)
|
||||
{
|
||||
mySQL.AddField("addTime",DateTime.Now);
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.ExecuteNonQuery(mySQL.GetInsertSQL(), db.GetParameter(mySQL));
|
||||
}
|
||||
else
|
||||
{
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.ExecuteNonQuery(mySQL.GetUpdateSQL() + " where id=" + selectId, db.GetParameter(mySQL));
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
ModalForm.SetDialogResult(this, mr, DialogResult.OK);
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
ModalForm.SetDialogResult(this, mr, DialogResult.Cancel);
|
||||
}
|
||||
}
|
||||
}
|
120
Source/Itrycn_Project2/DbOp/FrmAdd.resx
Normal file
120
Source/Itrycn_Project2/DbOp/FrmAdd.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>
|
175
Source/Itrycn_Project2/DbOp/FrmView.cs
Normal file
175
Source/Itrycn_Project2/DbOp/FrmView.cs
Normal file
|
@ -0,0 +1,175 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
public partial class FrmView : Form
|
||||
{
|
||||
string orderSQL = "order by addTime desc";
|
||||
string tableName = "MainTable1";
|
||||
string titleName = "数据";
|
||||
public FrmView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 需要修改的内容
|
||||
private void RySearch1_OnSearch(object sender, EventArgs e)
|
||||
{
|
||||
//需要修改此处
|
||||
//LoadDb("(" + TableProject.name + " like @SearchText or " + TableProject.des + " like @SearchText)");
|
||||
}
|
||||
|
||||
private void CtlMyPage1_OnPageChange(object sender, EventArgs e)
|
||||
{
|
||||
#region 重新载入数据
|
||||
tableModel1.Rows.Clear();
|
||||
tableModel1.Selections.Clear();
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData(ctlMyPage1.GetSQLText, ctlMyPage1.T_Parameters);
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
DataRow row = ds.Tables[0].Rows[i];
|
||||
XPTable.Models.Row itemList = new XPTable.Models.Row()
|
||||
{
|
||||
Tag = row["id"].ToString()
|
||||
};
|
||||
//需要修改此处
|
||||
//itemList.Cells.Add(new XPTable.Models.Cell(row[""].ToString()));//示例
|
||||
tableModel1.Rows.Add(itemList);
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
#endregion
|
||||
}
|
||||
private void GetRow(string id, int index)
|
||||
{
|
||||
#region 重新载入数据
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData("select * from " + tableName + " where id=" + id);
|
||||
if (mydb.HaveData(ds))
|
||||
{
|
||||
DataRow row = ds.Tables[0].Rows[0];
|
||||
XPTable.Models.Row itemList = tableModel1.Rows[index];
|
||||
//需要修改此处
|
||||
//itemList.Cells[colName.Index].Text = row[TableProject.name].ToString();
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
public void LoadDb(string whereSQL)
|
||||
{
|
||||
string _whereSQL = whereSQL;
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
#region 重新载入数据
|
||||
db.AddParameter("SearchText", "%" + rySearch1.Text + "%");
|
||||
ctlMyPage1.RecordCount = db.GetCount(tableName, _whereSQL);
|
||||
ctlMyPage1.T_Parameters = db.GetParameter();
|
||||
ctlMyPage1.SQLText= db.GetPageSQL(tableName, _whereSQL, orderSQL);
|
||||
ctlMyPage1.SQLText2 = db.GetPageSQL2(tableName, _whereSQL, orderSQL);
|
||||
ctlMyPage1.GotoPageIndex(1);
|
||||
#endregion
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
|
||||
private void BtnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
FrmAdd frm = new FrmAdd()
|
||||
{
|
||||
Text = "添加"+ titleName,
|
||||
Icon = Icon,
|
||||
isAdd = 1
|
||||
};
|
||||
frm.mr = new ModalForm(this, frm);
|
||||
frm.mr.OnDialogResult += new ModalForm.DialogResultHandler((object t, DialogResult dg) => {
|
||||
if (dg == DialogResult.OK)
|
||||
{
|
||||
rySearch1.PerformClick();
|
||||
}
|
||||
});
|
||||
frm.mr.ShowModal();
|
||||
}
|
||||
|
||||
private void BtnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (table1.SelectedItems.Length == 0) { return; }
|
||||
string selectId = table1.SelectedItems[0].Tag.ToString();
|
||||
int index = table1.SelectedItems[0].Index;
|
||||
FrmAdd frm = new FrmAdd()
|
||||
{
|
||||
Text = "修改"+ titleName,
|
||||
Icon = Icon,
|
||||
isAdd = 0
|
||||
};
|
||||
frm.GetInfo(selectId);
|
||||
frm.mr = new ModalForm(this, frm);
|
||||
frm.mr.OnDialogResult += new ModalForm.DialogResultHandler((object t, DialogResult dg) => {
|
||||
if (dg == DialogResult.OK)
|
||||
{
|
||||
GetRow(selectId, index);
|
||||
}
|
||||
});
|
||||
frm.mr.ShowModal();
|
||||
}
|
||||
|
||||
private void BtnDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (table1.SelectedItems.Length == 0) { MessageBox.Show("请先选择要删除的项。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; }
|
||||
string selectId = table1.SelectedItems[0].Tag.ToString();
|
||||
if (MessageBox.Show("确定要删除该项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
|
||||
{
|
||||
return;
|
||||
}
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
db.DelById(tableName, selectId);
|
||||
tableModel1.Rows.RemoveAt(table1.SelectedItems[0].Index);
|
||||
}
|
||||
}
|
||||
|
||||
private void FrmView_Load(object sender, EventArgs e)
|
||||
{
|
||||
Text = "浏览"+ titleName;
|
||||
添加数据ToolStripMenuItem.Text = "添加"+ titleName;
|
||||
修改数据ToolStripMenuItem.Text = "修改" + titleName;
|
||||
删除数据ToolStripMenuItem.Text = "删除" + titleName;
|
||||
rySearch1.PerformClick();
|
||||
}
|
||||
|
||||
private void 添加数据ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
btnAdd.PerformClick();
|
||||
}
|
||||
|
||||
private void 修改数据ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
btnEdit.PerformClick();
|
||||
}
|
||||
|
||||
private void 删除数据ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
btnDel.PerformClick();
|
||||
}
|
||||
}
|
||||
}
|
210
Source/Itrycn_Project2/DbOp/frmView.Designer.cs
generated
Normal file
210
Source/Itrycn_Project2/DbOp/frmView.Designer.cs
generated
Normal file
|
@ -0,0 +1,210 @@
|
|||
namespace Itrycn_Project.DbOp
|
||||
{
|
||||
partial class FrmView
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
this.rySearch1 = new ryControls.rySearch();
|
||||
this.table1 = new XPTable.Models.Table();
|
||||
this.columnModel1 = new XPTable.Models.ColumnModel();
|
||||
this.tableModel1 = new XPTable.Models.TableModel();
|
||||
this.ctlMyPage1 = new MyPage.ctlMyPage();
|
||||
this.btnDel = new ryControls.ButtonEx();
|
||||
this.btnEdit = new ryControls.ButtonEx();
|
||||
this.btnAdd = new ryControls.ButtonEx();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.添加数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.删除数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// rySearch1
|
||||
//
|
||||
this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.rySearch1.EmptyText = "请输入搜索内容";
|
||||
this.rySearch1.Location = new System.Drawing.Point(12, 12);
|
||||
this.rySearch1.Name = "rySearch1";
|
||||
this.rySearch1.Size = new System.Drawing.Size(329, 24);
|
||||
this.rySearch1.TabIndex = 28;
|
||||
this.rySearch1.OnSearch += new System.EventHandler(this.RySearch1_OnSearch);
|
||||
//
|
||||
// table1
|
||||
//
|
||||
this.table1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.table1.ColumnModel = this.columnModel1;
|
||||
this.table1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.table1.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
|
||||
this.table1.EnableHeaderContextMenu = false;
|
||||
this.table1.EnableToolTips = true;
|
||||
this.table1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.table1.FullRowSelect = true;
|
||||
this.table1.GridColor = System.Drawing.Color.Silver;
|
||||
this.table1.GridLines = XPTable.Models.GridLines.Rows;
|
||||
this.table1.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
|
||||
this.table1.HeaderFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.table1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.table1.Location = new System.Drawing.Point(12, 42);
|
||||
this.table1.Name = "table1";
|
||||
this.table1.NoItemsText = "当前还没有任何数据";
|
||||
this.table1.Size = new System.Drawing.Size(1028, 551);
|
||||
this.table1.TabIndex = 29;
|
||||
this.table1.TableModel = this.tableModel1;
|
||||
this.table1.Text = "table1";
|
||||
this.table1.ToolTipShowAlways = true;
|
||||
//
|
||||
// tableModel1
|
||||
//
|
||||
this.tableModel1.RowHeight = 25;
|
||||
//
|
||||
// ctlMyPage1
|
||||
//
|
||||
this.ctlMyPage1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ctlMyPage1.Location = new System.Drawing.Point(12, 595);
|
||||
this.ctlMyPage1.Name = "ctlMyPage1";
|
||||
this.ctlMyPage1.PageSize = 50;
|
||||
this.ctlMyPage1.RecordCount = 0;
|
||||
this.ctlMyPage1.Size = new System.Drawing.Size(506, 26);
|
||||
this.ctlMyPage1.SQLText = "";
|
||||
this.ctlMyPage1.SQLText2 = "";
|
||||
this.ctlMyPage1.T_FirstCaption = "首页";
|
||||
this.ctlMyPage1.T_LastCaption = "末页";
|
||||
this.ctlMyPage1.T_NextCaption = "下一页";
|
||||
this.ctlMyPage1.T_Parameters = null;
|
||||
this.ctlMyPage1.T_PreCaption = "上一页";
|
||||
this.ctlMyPage1.T_SkipCaption = "跳到";
|
||||
this.ctlMyPage1.T_TipCaption = "{pageindex}/{pagecount} 页,共 {recordcount} 条记录,每页 {pagesize} 条";
|
||||
this.ctlMyPage1.TabIndex = 30;
|
||||
this.ctlMyPage1.OnPageChange += new System.EventHandler(this.CtlMyPage1_OnPageChange);
|
||||
//
|
||||
// btnDel
|
||||
//
|
||||
this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnDel.Location = new System.Drawing.Point(978, 12);
|
||||
this.btnDel.Name = "btnDel";
|
||||
this.btnDel.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnDel.TabIndex = 40;
|
||||
this.btnDel.Text = "删除";
|
||||
this.btnDel.UseVisualStyleBackColor = true;
|
||||
this.btnDel.Click += new System.EventHandler(this.BtnDel_Click);
|
||||
//
|
||||
// btnEdit
|
||||
//
|
||||
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnEdit.ForeColor = System.Drawing.Color.White;
|
||||
this.btnEdit.Location = new System.Drawing.Point(910, 12);
|
||||
this.btnEdit.Name = "btnEdit";
|
||||
this.btnEdit.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnEdit.TabIndex = 39;
|
||||
this.btnEdit.Text = "修改";
|
||||
this.btnEdit.UseVisualStyleBackColor = true;
|
||||
this.btnEdit.Click += new System.EventHandler(this.BtnEdit_Click);
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.ForeColor = System.Drawing.Color.White;
|
||||
this.btnAdd.Location = new System.Drawing.Point(842, 12);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(62, 24);
|
||||
this.btnAdd.TabIndex = 38;
|
||||
this.btnAdd.Text = "添加";
|
||||
this.btnAdd.UseVisualStyleBackColor = true;
|
||||
this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.添加数据ToolStripMenuItem,
|
||||
this.修改数据ToolStripMenuItem,
|
||||
this.删除数据ToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70);
|
||||
//
|
||||
// 添加数据ToolStripMenuItem
|
||||
//
|
||||
this.添加数据ToolStripMenuItem.Name = "添加数据ToolStripMenuItem";
|
||||
this.添加数据ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.添加数据ToolStripMenuItem.Text = "添加数据";
|
||||
this.添加数据ToolStripMenuItem.Click += new System.EventHandler(this.添加数据ToolStripMenuItem_Click);
|
||||
//
|
||||
// 修改数据ToolStripMenuItem
|
||||
//
|
||||
this.修改数据ToolStripMenuItem.Name = "修改数据ToolStripMenuItem";
|
||||
this.修改数据ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.修改数据ToolStripMenuItem.Text = "修改数据";
|
||||
this.修改数据ToolStripMenuItem.Click += new System.EventHandler(this.修改数据ToolStripMenuItem_Click);
|
||||
//
|
||||
// 删除数据ToolStripMenuItem
|
||||
//
|
||||
this.删除数据ToolStripMenuItem.Name = "删除数据ToolStripMenuItem";
|
||||
this.删除数据ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.删除数据ToolStripMenuItem.Text = "删除数据";
|
||||
this.删除数据ToolStripMenuItem.Click += new System.EventHandler(this.删除数据ToolStripMenuItem_Click);
|
||||
//
|
||||
// FrmView
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1052, 625);
|
||||
this.Controls.Add(this.btnDel);
|
||||
this.Controls.Add(this.btnEdit);
|
||||
this.Controls.Add(this.btnAdd);
|
||||
this.Controls.Add(this.ctlMyPage1);
|
||||
this.Controls.Add(this.table1);
|
||||
this.Controls.Add(this.rySearch1);
|
||||
this.Name = "FrmView";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "浏览";
|
||||
this.Load += new System.EventHandler(this.FrmView_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.table1)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ryControls.rySearch rySearch1;
|
||||
private XPTable.Models.Table table1;
|
||||
private MyPage.ctlMyPage ctlMyPage1;
|
||||
private XPTable.Models.TableModel tableModel1;
|
||||
private XPTable.Models.ColumnModel columnModel1;
|
||||
private ryControls.ButtonEx btnDel;
|
||||
private ryControls.ButtonEx btnEdit;
|
||||
private ryControls.ButtonEx btnAdd;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 添加数据ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 修改数据ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 删除数据ToolStripMenuItem;
|
||||
}
|
||||
}
|
129
Source/Itrycn_Project2/DbOp/frmView.resx
Normal file
129
Source/Itrycn_Project2/DbOp/frmView.resx
Normal file
|
@ -0,0 +1,129 @@
|
|||
<?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="columnModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>141, 21</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>269, 21</value>
|
||||
</metadata>
|
||||
<metadata name="tableModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>22, 16</value>
|
||||
</metadata>
|
||||
</root>
|
207
Source/Itrycn_Project2/FrmAbout.Designer.cs
generated
Normal file
207
Source/Itrycn_Project2/FrmAbout.Designer.cs
generated
Normal file
|
@ -0,0 +1,207 @@
|
|||
namespace Itrycn_Project
|
||||
{
|
||||
partial class FrmAbout
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAbout));
|
||||
this.pnlTopLogo = new System.Windows.Forms.Panel();
|
||||
this.lblTitle = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.lblVisitUrl = new System.Windows.Forms.Label();
|
||||
this.LblQQ_Qun = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.pnlTopLogo.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pnlTopLogo
|
||||
//
|
||||
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
|
||||
this.pnlTopLogo.Controls.Add(this.lblTitle);
|
||||
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTopLogo.Name = "pnlTopLogo";
|
||||
this.pnlTopLogo.Size = new System.Drawing.Size(493, 59);
|
||||
this.pnlTopLogo.TabIndex = 8;
|
||||
//
|
||||
// lblTitle
|
||||
//
|
||||
this.lblTitle.AutoSize = true;
|
||||
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTitle.Location = new System.Drawing.Point(12, 22);
|
||||
this.lblTitle.Name = "lblTitle";
|
||||
this.lblTitle.Size = new System.Drawing.Size(110, 16);
|
||||
this.lblTitle.TabIndex = 0;
|
||||
this.lblTitle.Text = "睿元管理系统";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 67);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(35, 12);
|
||||
this.label1.TabIndex = 9;
|
||||
this.label1.Text = "官网:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(53, 67);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(0, 12);
|
||||
this.label2.TabIndex = 10;
|
||||
//
|
||||
// lblVisitUrl
|
||||
//
|
||||
this.lblVisitUrl.AutoSize = true;
|
||||
this.lblVisitUrl.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.lblVisitUrl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblVisitUrl.ForeColor = System.Drawing.Color.Blue;
|
||||
this.lblVisitUrl.Location = new System.Drawing.Point(53, 67);
|
||||
this.lblVisitUrl.Name = "lblVisitUrl";
|
||||
this.lblVisitUrl.Size = new System.Drawing.Size(77, 12);
|
||||
this.lblVisitUrl.TabIndex = 11;
|
||||
this.lblVisitUrl.Text = "立即访问官网";
|
||||
this.lblVisitUrl.Click += new System.EventHandler(this.LblVisitUrl_Click);
|
||||
//
|
||||
// LblQQ_Qun
|
||||
//
|
||||
this.LblQQ_Qun.AutoSize = true;
|
||||
this.LblQQ_Qun.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblQQ_Qun.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblQQ_Qun.ForeColor = System.Drawing.Color.Blue;
|
||||
this.LblQQ_Qun.Location = new System.Drawing.Point(234, 67);
|
||||
this.LblQQ_Qun.Name = "LblQQ_Qun";
|
||||
this.LblQQ_Qun.Size = new System.Drawing.Size(59, 12);
|
||||
this.LblQQ_Qun.TabIndex = 14;
|
||||
this.LblQQ_Qun.Text = "183161992";
|
||||
this.toolTip1.SetToolTip(this.LblQQ_Qun, "点击复制");
|
||||
this.LblQQ_Qun.Click += new System.EventHandler(this.LblQQ_Qun_Click);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(234, 67);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(0, 12);
|
||||
this.label4.TabIndex = 13;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(193, 67);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(35, 12);
|
||||
this.label5.TabIndex = 12;
|
||||
this.label5.Text = "QQ群:";
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
|
||||
this.pictureBox1.Location = new System.Drawing.Point(85, 105);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(319, 174);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox1.TabIndex = 17;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.label3.Location = new System.Drawing.Point(13, 297);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(365, 12);
|
||||
this.label3.TabIndex = 18;
|
||||
this.label3.Text = "注:本软件永久免费,您可以任意分发分享本软件,但不得破解本软件";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label6.Location = new System.Drawing.Point(100, 90);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(285, 12);
|
||||
this.label6.TabIndex = 19;
|
||||
this.label6.Text = "支持微信或支付宝进行捐助,您可以捐助任意金额";
|
||||
//
|
||||
// FrmAbout
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(493, 318);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.LblQQ_Qun);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.lblVisitUrl);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.pnlTopLogo);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "FrmAbout";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "关于";
|
||||
this.Load += new System.EventHandler(this.FrmAbout_Load);
|
||||
this.pnlTopLogo.ResumeLayout(false);
|
||||
this.pnlTopLogo.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel pnlTopLogo;
|
||||
private System.Windows.Forms.Label lblTitle;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label lblVisitUrl;
|
||||
private System.Windows.Forms.Label LblQQ_Qun;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label6;
|
||||
}
|
||||
}
|
46
Source/Itrycn_Project2/FrmAbout.cs
Normal file
46
Source/Itrycn_Project2/FrmAbout.cs
Normal file
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
public partial class FrmAbout : Form
|
||||
{
|
||||
public FrmAbout()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void FrmAbout_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblTitle.Text = Soft_Info.Soft_Title + " V" + ryCommon.RySoft.VersionStr;
|
||||
LblQQ_Qun.Text = Soft_Info.QQ_Qun;
|
||||
if (Soft_Info.Soft_Url.Length == 0) { lblVisitUrl.Enabled = false; }
|
||||
}
|
||||
|
||||
private void LblVisitUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
ryCommon.RyFiles.OpenUrl(Soft_Info.Soft_Url);
|
||||
}
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void LblQQ_Qun_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(LblQQ_Qun.Text);
|
||||
MessageBox.Show("已成功复制到剪切板,请复制到QQ搜索。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user