개정판 3d31db34
issue #1157 : Markus MainWindow Loaded에서 서비스에 대해 IP Hub 를 체크하는 HubSet와 DocumentId를 가져오는 SetView에 대해서
try-Catch 처리하였고 Exception 발생 시 Process Kill을 통해 프로그램을 종료하였습니다.
Change-Id: Ife2dfc8075d98325348d5f7ddfc4e26615ef1a2f
KCOM/MainWindow.xaml.cs | ||
---|---|---|
82 | 82 |
private void MainWindow_Loaded(object sender, RoutedEventArgs e) |
83 | 83 |
{ |
84 | 84 |
InitializeComponent(); |
85 |
|
|
85 |
|
|
86 | 86 |
//cursor change |
87 | 87 |
this.Cursor = new Cursor(CursorChange().StreamSource); |
88 | 88 |
|
... | ... | |
153 | 153 |
//this.dzMainMenu.FavoritePane.Visibility = Visibility.Collapsed; |
154 | 154 |
//this.dzMainMenu.drawingRotateCanvas.IsHitTestVisible = false; |
155 | 155 |
} |
156 |
this.dzMainMenu.SetView(App.ViewInfo); |
|
157 |
this.dzMainMenu.HubSet(); |
|
156 |
|
|
157 |
try |
|
158 |
{ |
|
159 |
this.dzMainMenu.HubSet(); |
|
160 |
this.dzMainMenu.SetView(App.ViewInfo); |
|
161 |
} |
|
162 |
catch(Exception ex) |
|
163 |
{ |
|
164 |
MessageBoxResult result = MessageBox.Show("웹 서비스에 연결을 할 수 없습니다."); |
|
165 |
if (result == MessageBoxResult.OK) |
|
166 |
System.Diagnostics.Process.GetCurrentProcess().Kill(); |
|
167 |
} |
|
158 | 168 |
} |
159 | 169 |
|
160 | 170 |
//App.ViewInfo = new IKCOM.ViewInfo |
... | ... | |
174 | 184 |
//this.dzMainMenu.SetView(App.ViewInfo); |
175 | 185 |
} |
176 | 186 |
|
177 |
|
|
187 |
|
|
178 | 188 |
bool restoreIfMove = false; |
179 | 189 |
|
180 | 190 |
private void WindowDragEvent(object sender, MouseButtonEventArgs e) |
... | ... | |
199 | 209 |
this.DragMove(); |
200 | 210 |
} |
201 | 211 |
} |
202 |
} |
|
212 |
}
|
|
203 | 213 |
|
204 | 214 |
private void WindowDragEventUp(object sender, MouseButtonEventArgs e) |
205 | 215 |
{ |
내보내기 Unified diff