57 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.ComponentModel;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| 
 | |
| namespace arFrame.Control
 | |
| {
 | |
|     [TypeConverterAttribute(typeof(ExpandableObjectConverter))]
 | |
|     public class MotITem
 | |
|     {
 | |
|          public int idx { get; private set; }
 | |
|         [Category("arFrame"), DisplayName("Tag")]
 | |
|         public string Tag { get; set; }
 | |
|         [Category("arFrame"), DisplayName("글자 정렬 방식")]
 | |
|         public System.Drawing.ContentAlignment TextAlign { get; set; }
 | |
|         [Category("arFrame"), DisplayName("글자 여백")]
 | |
|         public System.Windows.Forms.Padding Padding { get; set; }
 | |
|         [Category("arFrame"), DisplayName("메뉴 사용여부"), Description("활성화시 메뉴의 클릭이벤트가 발생하지 않습니다")]
 | |
|         public Boolean Enable { get; set; }
 | |
|         public string Text { get; set; }
 | |
| 
 | |
|         public Boolean Dirty { get; set; }
 | |
| 
 | |
|         public System.Drawing.Rectangle[] subRect = null;
 | |
| 
 | |
|         //모션 상태값
 | |
|         public Boolean[] State;
 | |
|         public double Position { get; set; }
 | |
|         public double PositionCmd { get; set; }
 | |
|         public System.Drawing.Color PositionColor { get; set; }
 | |
|         
 | |
|         public System.Drawing.RectangleF rect { get; set; }
 | |
| 
 | |
|         [Category("arFrame"), DisplayName("번호")]
 | |
|         public int No { get; set; }
 | |
| 
 | |
|         public MotITem(int idx_)
 | |
|         {
 | |
|             this.Dirty = true;
 | |
|             PositionColor = System.Drawing.Color.White;
 | |
|             subRect = new System.Drawing.Rectangle[6];
 | |
|             rect = System.Drawing.RectangleF.Empty;
 | |
|             Enable = true;
 | |
|             this.idx = idx_;
 | |
|             TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
 | |
|             Padding = new System.Windows.Forms.Padding(0, 0, 0, 0);
 | |
|             No = 0;
 | |
|             this.Text = string.Empty;
 | |
|             this.Enable = true;
 | |
|             this.State = new bool[] { false,false,false,false,false,false};
 | |
|             Position = 0;
 | |
|             PositionCmd = 0;
 | |
|         }
 | |
|     }
 | |
| }
 | 
