49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Windows.Forms;
 | |
| using System.Reflection;
 | |
| using DrawGraph;
 | |
| 
 | |
| namespace DrawGraphManagement.MyUserControl
 | |
| {
 | |
|     public class UCBase
 | |
|     {
 | |
|         protected PackObjBase selectPoB = null;
 | |
| 
 | |
|         protected ToolTip toolTip1 = null;
 | |
|         public ColorDialog colorDialog1;
 | |
|         public string[] datasource;
 | |
| 
 | |
|         #region 事件
 | |
|         public delegate void ChangeValueEventHandler(PackObjBase sender, EventArgs e);
 | |
|         public event ChangeValueEventHandler ChangeValue;
 | |
|         public void onChangeValue(PackObjBase pob, EventArgs e)
 | |
|         {
 | |
|             if (ChangeValue != null)
 | |
|             {
 | |
|                 ChangeValue(pob, e);
 | |
|             }
 | |
|         }
 | |
|         #endregion
 | |
| 
 | |
|         public ToolTip SetToolTip
 | |
|         {
 | |
|             set { toolTip1 = value; }
 | |
|         }
 | |
| 
 | |
|         public virtual Panel GreatPropertyPanel(PropertyInfo info) {
 | |
|             return null;
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 实例解析器的对单个值的转换模式
 | |
|     /// </summary>
 | |
|     public enum ConvertModeEnum
 | |
|     {
 | |
|         NoConvert, CodeTableConvert
 | |
|     }
 | |
| }
 |