개정판 4913851c
issue #923: change control's color when mouse is over1
Change-Id: Id6c30459bd314a0d7d87d9c3ba037aef0db53338
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
536 | 536 |
{ |
537 | 537 |
if (item.GetType().Name == "AdornerFinal") |
538 | 538 |
{ |
539 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
539 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
540 | 540 |
{ |
541 | 541 |
AdonerList.Add(InnerItem); |
542 | 542 |
} |
... | ... | |
544 | 544 |
} |
545 | 545 |
} |
546 | 546 |
} |
547 |
|
|
547 | 548 |
return AdonerList; |
548 | 549 |
} |
549 | 550 |
/// <summary> |
... | ... | |
835 | 836 |
{ |
836 | 837 |
if (item.GetType().Name == "AdornerFinal") |
837 | 838 |
{ |
838 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
839 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
839 | 840 |
{ |
840 | 841 |
switch (InnerItem.DrawingData.GetType().Name) |
841 | 842 |
{ |
... | ... | |
971 | 972 |
{ |
972 | 973 |
if (item.GetType().Name == "AdornerFinal") |
973 | 974 |
{ |
974 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
975 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
975 | 976 |
{ |
976 | 977 |
switch (InnerItem.DrawingData.GetType().Name) |
977 | 978 |
{ |
... | ... | |
1019 | 1020 |
{ |
1020 | 1021 |
if (item.GetType().Name == "AdornerFinal") |
1021 | 1022 |
{ |
1022 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
1023 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
1023 | 1024 |
{ |
1024 | 1025 |
switch (InnerItem.DrawingData.GetType().Name) |
1025 | 1026 |
{ |
... | ... | |
1067 | 1068 |
{ |
1068 | 1069 |
if (item.GetType().Name == "AdornerFinal") |
1069 | 1070 |
{ |
1070 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
1071 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
1071 | 1072 |
{ |
1072 | 1073 |
switch (InnerItem.DrawingData.GetType().Name) |
1073 | 1074 |
{ |
... | ... | |
1122 | 1123 |
{ |
1123 | 1124 |
if (item.GetType().Name == "AdornerFinal") |
1124 | 1125 |
{ |
1125 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
1126 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
1126 | 1127 |
{ |
1127 | 1128 |
switch (InnerItem.DrawingData.GetType().Name) |
1128 | 1129 |
{ |
... | ... | |
1157 | 1158 |
{ |
1158 | 1159 |
if (item.GetType().Name == "AdornerFinal") |
1159 | 1160 |
{ |
1160 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
1161 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
1161 | 1162 |
{ |
1162 | 1163 |
switch (InnerItem.DrawingData.GetType().Name) |
1163 | 1164 |
{ |
... | ... | |
2651 | 2652 |
{ |
2652 | 2653 |
if (item.GetType().Name == "AdornerFinal") |
2653 | 2654 |
{ |
2654 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
2655 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
2655 | 2656 |
|
2656 | 2657 |
{ |
2657 | 2658 |
if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
... | ... | |
2676 | 2677 |
|
2677 | 2678 |
if (item.GetType().Name == "AdornerFinal") |
2678 | 2679 |
{ |
2679 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
2680 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
2680 | 2681 |
{ |
2681 | 2682 |
if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
2682 | 2683 |
{ |
... | ... | |
2755 | 2756 |
double realPointY = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
2756 | 2757 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY)); |
2757 | 2758 |
|
2758 |
if (final.MemberSet.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
|
|
2759 |
if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
|
|
2759 | 2760 |
{ |
2760 | 2761 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(0.001, 0.001)); //dummy |
2761 | 2762 |
} |
내보내기 Unified diff