Syrone Wong
74ad98d9ce
Distinguish unhandled error type
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
e099e92d1a
Fix typo
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
ebc8d9c5bd
Catch more exceptions
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
433c3bfbcc
Delay 5 seconds to start controller when OS is about to resume
Workaround for slow computers
Credit to GangZhou's code
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
99bdec334c
Add global hotkey support ( #724 )
Design:
Use the plain string for both config and hotkey parsing
and make use of KeyConverter, ModifierKeysConverter
to make it more rubust.
Find corresponding label (to display operation result) and callback (to do the real work) based on textbox name. In this case, they should be named as `<Feature-Name><Control-Name>`.
ShowLogsTextBox,
ShowLogsLabel,
ShowLogsCallback.
If this requirement doesn't meet, throw an exception at runtime.
Logic:
How to input keys:
1. put focus in the corresponding textbox
2. press the key combination you want to use
3. when you think it is ready, release all keys
4. the textbox shows your input
How to change keys:
1. put focus in the corresponding textbox
2. press BackSpace to clear content
3. re-input new one
How to deactivate:
1. clear content in the textbox
2. press OK button
Meaning of label color:
- Green: this combination is not occupied by other programs and register successfully
- Yellow: this combination is occupied by other programs and you have to change to another one
- Transparent without color: initial status
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
33b2ca8c8a
Refactor
- Only use one instance of LogForm
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
ab464ca8b1
change controller status if needed
- Change controller based on power mode
- Stop before exiting
Based on GangZhuo's code
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
3417a984fa
Change requirements
- Running on Windows Vista or above
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
a9af9fdfc0
Refactor
- use null conditional access in case some connections been
cancelled unexpectedly and may cause null reference exception
- Refine error message
- use conditional operator to simplify some code
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
6a8a09983e
Merge fixes from @GangZhuo , close #478 ( #638 )
Squashed commit of the following:
commit e280c2385c
Merge: 579039f
87aa9eb
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Wed Mar 16 04:02:27 2016 -0400
Merge remote-tracking branch 'origin/master'
commit 579039fe40
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:45:23 2016 +0800
log unhandle exception
commit 8d863f1d5f
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:44:54 2016 +0800
fix Availability Statistics
commit b3ce1c698a
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:07:54 2016 +0800
tiny refactor
commit 0f7d39e27e
Merge: bd7078a
b01aced
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 20:02:58 2016 +0800
Merge remote-tracking branch 'origin/master'
commit bd7078aa4f
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 20:01:58 2016 +0800
tiny refactor
commit 49adb95b6e
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 03:44:26 2016 -0500
log more Ping information for debug
commit 2aa0620ddd
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 03:04:10 2016 -0500
reduce 3rd packages
[solve conflicts and squash to make history clean]
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
kimw
64390d45ac
GetTempPath() now supports: return a full path with filename combined which pointed to the temporary directory
9 years ago
10people
ca44b52593
Fix error in open log file in debug mode.
9 years ago
clowwindy
71bd0d2b5a
improve user experience for some users
9 years ago
clowwindy
ab38538b34
allow multiple instances
9 years ago
clowwindy
a0a5cafe3d
lint code
10 years ago
clowwindy
6192e09970
revert stop call
10 years ago
Gang Zhuo
f1c821a9cd
call controller.Stop() when application exit
10 years ago
clowwindy
e53873276f
translate Microsoft language into human language
10 years ago
clowwindy
09ad2ca272
release memory periodically
10 years ago
clowwindy
ca0774ddb3
enable visual styles before alert()
10 years ago
clowwindy
7f76141ca2
seperate tray menu from ConfigForm
10 years ago
clowwindy
0d78051318
fix #60
10 years ago
clowwindy
b8252d11e4
remove OpenSSL
10 years ago
clowwindy
ed2722a993
back to polarssl
10 years ago
clowwindy
acf2f807a8
experimental
10 years ago
clowwindy
b538a89fdf
add openssl
10 years ago
clowwindy
afc5137355
some fix
10 years ago
clowwindy
5c2a93e901
use a fixed GUID
10 years ago
wzxjohn
ac4748d6bf
lint code
10 years ago
clowwindy
492869fd5c
move log to temp path
10 years ago
clowwindy
3d6ee55f5a
close #17
10 years ago
clowwindy
04a4427cff
update namespace
10 years ago
clowwindy
28b582590a
update namespace
10 years ago
clowwindy
ce6d4964be
PAC edit
10 years ago
clowwindy
8c09e4a9a5
remove TODO
10 years ago
clowwindy
32cadc3c18
use different namespace
10 years ago
clowwindy
1de2d001d7
lint project
10 years ago
clowwindy
aa105ccfe3
seperate controller and view
10 years ago
clowwindy
53401a4b9b
rename ConfigForm
10 years ago
clowwindy
17765a772f
embed polarssl into exe
10 years ago
clowwindy
5dc798511b
fix table and rc4; fix exception when shutdown; log to file
12 years ago
clowwindy
01d2a904ed
link config to window
12 years ago
clowwindy
e523cbe3fa
add Config class
12 years ago
clowwindy
88a2875b01
reduce dependency
12 years ago
clowwindy
257a1ada1f
add local
12 years ago
clowwindy
0bcff211db
init
12 years ago