개정판 16d13764
issue #000 symbol name click event error modify
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
372 | 372 |
#region Symbol DoubleClick Event |
373 | 373 |
private void Move_Symbol(object sender, MouseButtonEventArgs e) |
374 | 374 |
{ |
375 |
string id = ((e.OriginalSource as Image).DataContext as Symbol_Custom).ID; |
|
376 |
IsMouseDown = true; |
|
377 |
if (e.ClickCount > 1) |
|
375 |
try |
|
378 | 376 |
{ |
379 |
this.PlaceSymbol(id); |
|
377 |
Type type = e.OriginalSource.GetType(); |
|
378 |
string id = string.Empty; |
|
379 |
if (type.Name == "Image") |
|
380 |
{ |
|
381 |
id = ((e.OriginalSource as Image).DataContext as Symbol_Custom).ID; |
|
382 |
} |
|
383 |
else if (type.Name == "Border") |
|
384 |
{ |
|
385 |
id = ((e.OriginalSource as Border).DataContext as Symbol_Custom).ID; |
|
386 |
} |
|
387 |
|
|
388 |
IsMouseDown = true; |
|
389 |
if (e.ClickCount > 1) |
|
390 |
{ |
|
391 |
this.PlaceSymbol(id); |
|
392 |
} |
|
380 | 393 |
} |
394 |
catch(Exception ex) |
|
395 |
{ |
|
396 |
Logger.sendResLog("Move_Symbol", ex.Message, 0); |
|
397 |
} |
|
381 | 398 |
} |
382 | 399 |
#endregion |
383 | 400 |
|
내보내기 Unified diff