Notifying a message in Action center.
Revisión | 135f70c39ff973b4b997a88d9364a2ba51946a14 (tree) |
---|---|
Tiempo | 2015-09-10 13:11:27 |
Autor | JeffyTS <JeffyTS@outl...> |
Commiter | JeffyTS |
Some bug fixed.
@@ -110,11 +110,12 @@ namespace CtrlVix | ||
110 | 110 | return false; |
111 | 111 | } |
112 | 112 | #if DEBUG |
113 | -// Debug.WriteLine("VIX: Done VIX command."); | |
113 | + Debug.WriteLine("VIX: Done VIX command."); | |
114 | 114 | #endif |
115 | + System.Threading.Thread.Sleep(1000); // 1sec wait | |
115 | 116 | err = IJob.WaitWithoutResults(); |
116 | 117 | #if DEBUG |
117 | -// Debug.WriteLine("VIX: Finish JobWaitWithoutResults."); | |
118 | + Debug.WriteLine("VIX: Finish JobWaitWithoutResults."); | |
118 | 119 | #endif |
119 | 120 | if (IVixLib.ErrorIndicatesFailure(err)) |
120 | 121 | { |
@@ -100,6 +100,9 @@ namespace VMwPlayerTaskTray | ||
100 | 100 | private void timer_MainForm_Tick(object sender, EventArgs e) |
101 | 101 | { |
102 | 102 | this.timer_MainForm.Enabled = false; // Timerを無効にする |
103 | +#if DEBUG | |
104 | + Debug.WriteLine("Timer Thread : Start"); | |
105 | +#endif | |
103 | 106 | ChangeMenuItem(vmxFilePath); // VMwareの動作状態をチェックしMenuItemの表示を切り替える |
104 | 107 | if (vmState == VMSTATE.ERROR) |
105 | 108 | { |
@@ -107,8 +110,10 @@ namespace VMwPlayerTaskTray | ||
107 | 110 | this.notifyIcon_MainForm.Visible = false; // タスクトレイからアイコンを取り除く |
108 | 111 | Application.Exit(); // アプリケーション終了 |
109 | 112 | } |
113 | +#if DEBUG | |
114 | + Debug.WriteLine("Timer Thread : Finish"); | |
115 | +#endif | |
110 | 116 | this.timer_MainForm.Enabled = true; // Timerを有効にする |
111 | - | |
112 | 117 | } |
113 | 118 | |
114 | 119 | private void notifyIcon_MainForm_MouseUp(object sender, MouseEventArgs e) |