개정판 315ae55e
UniqueColorGenerator.cs 추가
색상 자동 설정 수정
Change-Id: I7de4657758710c88f9d4b8bb30e53429cf1f76d1
KCOM_API/ServiceDeepView.svc.cs | ||
---|---|---|
16 | 16 |
using System.Web.Services; |
17 | 17 |
using System.Windows; |
18 | 18 |
using System.Xml; |
19 |
using ColorSelector; |
|
19 | 20 |
|
20 | 21 |
namespace KCOM_API |
21 | 22 |
{ |
... | ... | |
719 | 720 |
_ColorsProperties = (from property in kcomEntity.PROPERTIES |
720 | 721 |
where property.TYPE == "DisplayColor" |
721 | 722 |
select property).ToList(); |
723 |
|
|
724 |
} |
|
725 |
|
|
726 |
if (_ColorsProperties.Count() == 0) |
|
727 |
{ |
|
728 |
ColorGenerator uniqueColorGenerator = new ColorGenerator(System.Drawing.Color.Red); // 2303 = (int)Color.Red |
|
729 |
|
|
730 |
uniqueColorGenerator.GetEnumerator(_result.Count()); |
|
731 |
|
|
732 |
for (int i = 0; i < _result.Count(); i++) |
|
733 |
{ |
|
734 |
var c = uniqueColorGenerator.GetNext(); |
|
735 |
_ColorsProperties.Add(new PROPERTIES { VALUE = String.Format("{0:X2}{1:X2}{2:X2}",c.R, c.G,c.B) }); |
|
736 |
} |
|
722 | 737 |
} |
723 | 738 |
|
724 | 739 |
bool IsProjectNoPass = Properties.Settings.Default.IsProjectNoPass; |
내보내기 Unified diff