markus / KCOM / Common / InitData.cs @ 787a4489
이력 | 보기 | 이력해설 | 다운로드 (1.39 KB)
1 | 787a4489 | KangIngu | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Net; |
||
5 | using System.Windows; |
||
6 | using System.Windows.Controls; |
||
7 | using System.Windows.Documents; |
||
8 | using System.Windows.Input; |
||
9 | using System.Windows.Media; |
||
10 | using System.Windows.Media.Animation; |
||
11 | using System.Windows.Shapes; |
||
12 | using Telerik.Windows.Controls; |
||
13 | using System.IO; |
||
14 | namespace KCOM.Views |
||
15 | { |
||
16 | |||
17 | public class DashStyle |
||
18 | { |
||
19 | public DoubleCollection dashData { get; set; } |
||
20 | } |
||
21 | |||
22 | public partial class TopMenu : UserControl |
||
23 | { |
||
24 | public List<DashStyle> dashSet; |
||
25 | |||
26 | public void InitDataSet() |
||
27 | { |
||
28 | dashSet = new List<DashStyle>() |
||
29 | { |
||
30 | new DashStyle { dashData = new DoubleCollection{999999}}, |
||
31 | new DashStyle { dashData = new DoubleCollection{2,2}}, |
||
32 | new DashStyle { dashData = new DoubleCollection{4,4}}, |
||
33 | new DashStyle { dashData = new DoubleCollection{8,8}}, |
||
34 | new DashStyle { dashData = new DoubleCollection{20,0,0, 5,1.1,5}}, |
||
35 | new DashStyle { dashData = new DoubleCollection{10,10}}, |
||
36 | new DashStyle { dashData = new DoubleCollection{15,15}}, |
||
37 | new DashStyle { dashData = new DoubleCollection{15,3,3,0,3,3}}, |
||
38 | new DashStyle { dashData = new DoubleCollection{15,3,3,3,3,3}}, |
||
39 | }; |
||
40 | cbDashStyle.ItemsSource = dashSet.ToList(); |
||
41 | } |
||
42 | } |
||
43 | } |