123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- namespace TSZ.DotNetDll.WinForms
- {
- using System;
- using System.Collections.Generic;
- using System.Runtime.CompilerServices;
- public class GridEditorRow
- {
- private List<object> m_Values;
- public GridEditorRow()
- {
- }
- public GridEditorRow(string strLable, object[] values, bool isNumberValue) : this(strLable, values, ((values != null) && (values.Length > 0)) ? values[0] : null, isNumberValue)
- {
- }
- public GridEditorRow(string strLable, object[] values, object defaultValue, bool isNumberValue)
- {
- this.Lable = strLable;
- this.m_Values = new List<object>(values);
- this.DefaultValue = defaultValue;
- this.IsNumberValue = isNumberValue;
- }
- public GridEditorRow(string strLable, object[] values, object defaultValue, bool isNumberValue, object tag)
- {
- this.Lable = strLable;
- if ((values != null) && (values.Length > 0))
- {
- this.m_Values = new List<object>(values);
- }
- this.DefaultValue = defaultValue;
- this.IsNumberValue = isNumberValue;
- this.Tag = tag;
- }
- public object DefaultValue { get; set; }
- public bool IsNumberValue { get; set; }
- public string Lable { get; set; }
- public object Tag { get; set; }
- public List<object> Values
- {
- get
- {
- if (this.m_Values == null)
- {
- this.m_Values = new List<object>();
- }
- return this.m_Values;
- }
- }
- }
- }
|